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.
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.