take care .
照 顾 好 自 己 。
wait here .
在 这 等 着 。
well done !
干 的 好 !
he studied hard .
他 努 力 學 習 。
he tends to lie .
他 企 图 说 谎 。
he was very old .
他 很 老 。
do you have kids ?
你 們 有 孩 子 嗎 ?
- .pth格式的预训练模型如下。
- 链接:https://pan.baidu.com/s/1hcuDdnFhFX0WceVNzCXBGA
- 提取码:k1h0
英文与中文使用\t进行分割。
运行:
python train.py
将训练好的模型,放置在data文件夹下。修改utils.utils_transformer中的model_path路径。 在translate.py文件下输入需要翻译的英文语句,运行:
python translate.py
将训练好的模型,放置在data文件夹下。修改evaluate中的model_path路径。运行:
python evaluate.py