windows上transformer infer报错
Created by: JiaXiao243
在/PaddleNLP/neural_machine_translation/transformer路径下,执行python -u infer.py --src_vocab_fpath wmt16_ende_data_bpe_clean/vocab_all.bpe.32000 --trg_vocab_fpath wmt16_ende_data_bpe_clean/vocab_all.bpe.32000 --test_file_pattern wmt16_ende_data_bpe_clean/newstest2014.tok.bpe.32000.en-de --batch_size 32 model_path base_model/iter_100000.infer.model beam_size 5 max_out_len 255,对模型进行预测,报错信息如下: window上infer结果如下所示,存在异常字符, 对比linux上infer的输出结果,如图所示: