tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.37k stars 1.96k forks source link

The order of output test sequences #277

Closed ycheng-sec closed 6 years ago

ycheng-sec commented 6 years ago

I prepared a list of sentences as test input in a file test.in. After inference, I got a list of translation sentences in test.output. However, I found that the original sentences and the output sentences are not corresponding to each other in proper order. How do I get the proper mapping between sentences in the input file and output file? Thanks.

Here is the command I used to do the inference. python -m nmt.nmt --out_dir=tmp/model --inference_input_file=tmp/test.in --inference_output_file=tmp/test.output

Solved. I think it is because the training data is not large enough. After I use a large training data, the output look more like the translation of the original data.