Commit 118a47d0 authored by szr712's avatar szr712

新语文端侧

parent f3209851
......@@ -65,7 +65,7 @@ def cer(preFile,textFile):
round(float(all_edit_distance)/all_chars, 5)))
if __name__ == "__main__":
preFile = "./data/test_data/end2end_zsd/pre"
textFile = "./data/test_data/end2end_zsd/gt"
preFile = "./data/test_data/end2end_chinese/pre"
textFile = "./data/test_data/end2end_chinese/gt"
cer(preFile,textFile)
\ No newline at end of file
......@@ -49,4 +49,4 @@ CUDA_VISIBLE_DEVICES=4 python translate2.py -load_weights weights/token_classifi
CUDA_VISIBLE_DEVICES=4 python translate_file2.py -load_weights weights/token_classifiaction_aug_Chinese/token_classification_split_Chinese_148_0.012723878987599165 -pkl_dir weights/token_classifiaction_aug_Chinese -src_voc ./data/voc/pinyin.txt -trg_voc ./data/voc/hanzi.txt -test_dir data/test_data/end2end/Chinese/pinyin -result_dir data/test_data/end2end/Chinese/hanzi
CUDA_VISIBLE_DEVICES=4 python translate_file2.py -load_weights weights/token_classification_split_zsd/token_classification_split_zsd/token_classification_split_zsd_98_0.0004903546059381369 -pkl_dir weights/token_classification_split_zsd/token_classification_split_zsd -src_voc ./data/voc/pinyin.txt -trg_voc ./data/voc/hanzi.txt -test_dir data/test_data/end2end_zsd/pinyin -result_dir data/test_data/end2end_zsd/pre
CUDA_VISIBLE_DEVICES=4 python translate_file2.py -load_weights weights/Chinese_weights/token_classification_split_Chinese_149_0.013830240316456183 -pkl_dir weights/Chinese_weights -src_voc ./data/voc/pinyin.txt -trg_voc ./data/voc/hanzi.txt -test_dir data/test_data/end2end_chinese/pinyin -result_dir data/test_data/end2end_chinese/pre
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment