You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear authors,
I wrote a script according to Load_model_and_translate_baseline.ipynb to translate some test file. But I found that the translation results are so different from results that decoded during training. What's more, the translation results are quite far apart from source text.
And I'm sure the source text is the same with dev set.
How can I make them the same.............
Below is my script...
import sys
import pickle
import numpy as np
import tensorflow as tf
Dear authors,
I wrote a script according to Load_model_and_translate_baseline.ipynb to translate some test file. But I found that the translation results are so different from results that decoded during training. What's more, the translation results are quite far apart from source text.
And I'm sure the source text is the same with dev set.
How can I make them the same.............
Below is my script...
import sys
import pickle
import numpy as np
import tensorflow as tf
REPO_PATH = 'xxxxxxxxxxxxx/good-translation-wrong-in-context/'
sys.path.insert(0, REPO_PATH)
print(sys.path)
import lib
import lib.task.seq2seq.models.transformer as tr
VOC_PATH = REPO_PATH + '/scripts/build/'
def cli_main():
inp_voc = pickle.load(open(VOC_PATH + 'src.voc', 'rb'))
out_voc = pickle.load(open(VOC_PATH + 'dst.voc', 'rb'))
testid = inp_voc.ids(['BOS', 'EOS', 'UNK'])
print(testid)
if name == 'main':
cli_main()
The text was updated successfully, but these errors were encountered: