-
Notifications
You must be signed in to change notification settings - Fork 46
/
translate_readme.txt
17 lines (12 loc) · 1.24 KB
/
translate_readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Command for using translate.py BPE-case:
python translate.py -k {beam_width} -p {number_of_processors} -n -bpe {path/model.npz} {path/source_dict} {path/target_dict} {path/valid.txt or test.txt} {save_path/save_file_name}
Command for using translate.py Char-case:
python translate.py -k {beam_width} -p {number_of_processors} -n -dec_c -utf8 {path/model.npz} {path/source_dict} {path/target_dict} {path/valid.txt or test.txt} {save_path/save_file_name}
Command for using translate_both.py BPE-case:
python translate_both.py -k {beam_width} -p {number_of_processors} -n -bpe {path/model.npz} {path/source_dict} {path/target_dict} {path/valid.txt or test.txt} {save_path/save_file_name}
Command for using translate_both.py Char-case:
python translate_both.py -k {beam_width} -p {number_of_processors} -n -dec_c -utf8 {path/model.npz} {path/source_dict} {path/target_dict} {path/valid.txt or test.txt} {save_path/save_file_name}
Command for using translate_attc.py Char-case:
python translate_attc.py -k {beam_width} -p {number_of_processors} -n -dec_c -utf8 {path/model.npz} {path/source_dict} {path/target_dict} {path/valid.txt or test.txt} {save_path/save_file_name}
Command for using `multi-bleu.perl':
perl multi-bleu.perl {reference.txt} < {translated.txt}