tensorflow / nmt

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

Could we use the same trained model for translating from English to Germane #315

Open frajos100 opened 6 years ago

frajos100 commented 6 years ago

Hi we have trained german to English model and perform translation using the following command

python -m nmt.nmt --src=de --tgt=en --out_dir=tmp\deen_gnmt --inference_input_file=tmp\my_infer_file.de --inference_output_file=tmp\deen_gnmt\output_infer

Would I be able t o convert from English to German using the same trained model by only change the src and target and inference input file. I have found the below command does not convert the English Text to German. python -m nmt.nmt --src=en --tgt=de --out_dir=tmp\deen_gnmt --inference_input_file=tmp\my_infer_file.en --inference_output_file=tmp\deen_gnmt\output_infer

Do i need to preform training and get a new model created for English to German to perform the conversion?

luozhouyang commented 6 years ago

Yes, you do.