machine-translation
machine-translation copied to clipboard
在tensor2tensor中使用自己的语料实现中英文翻译
subword-nmt
为什么我用subword-nmt get-vocab --input tmp/raw-train.zh-en.en --output en.vocab生成不了数据呀,是版本不兼容吗?
INFO:tensorflow:Saving dict for global step 300000: global_step = 300000, loss = 5.3842344, metrics-translate_enzh_sub50k_rev/targets/accuracy = 0.2301816, metrics-translate_enzh_sub50k_rev/targets/accuracy_per_sequence = 0.000856898, metrics-translate_enzh_sub50k_rev/targets/accuracy_top5 = 0.41271442, metrics-translate_enzh_sub50k_rev/targets/approx_bleu_score = 0.01490011, metrics-translate_enzh_sub50k_rev/targets/neg_log_perplexity = -5.3780227, metrics-translate_enzh_sub50k_rev/targets/rouge_2_fscore = 0.055390585,...
如何输入自己的数据进行翻译呢?
generate_en_vocab.py", line 17, in with open("data/vocab.enzh-sub-en.{}".format(vocab_size), "w") as fopen: FileNotFoundError: [Errno 2] No such file or directory: 'data/vocab.enzh-sub-en.50000'