文件名称:neural_machine_translation:使用PyTorch训练Stanford Seq2Seq神经机器翻译的管道
文件大小:11KB
文件格式:ZIP
更新时间:2024-06-16 11:01:54
nlp natural-language-processing deep-learning pytorch seq2seq
关于 使用PyTorch训练管道。 在上训练的模型。 有关IWSLT'15英语-越南语。 用法 首先,安装依赖项: # clone repo git clone https://github.com/dayyass/neural_machine_translation.git # install dependencies cd neural_machine_translation pip install -r requirements.txt 资料格式 机器翻译的并行语料库。 了解更多。 词汇 在训练任何模型之前,您需要为两种语言创建词汇表。 了解更多。 训练 训练神经机器翻译: python train.py 在脚本的开头,有一个可以更改的用于训练的参数列表(以大写形式编写)。 在每个时期执行验证,在最后一个时期之后执行测试。 验证 NotImplementedError :已打
【文件预览】:
neural_machine_translation-main
----train_utils.py(5KB)
----utils.py(821B)
----data()
--------README.md(371B)
----train.py(6KB)
----metrics.py(909B)
----language.py(1KB)
----dataset.py(4KB)
----requirements.txt(479B)
----vocab()
--------moses_vocab.py(3KB)
--------README.md(457B)
----.gitignore(150B)
----README.md(2KB)
----network.py(4KB)
----.pre-commit-config.yaml(552B)