https://github.com/taishan1994/seq2seq_english_to_chinese
基于pytorch的英文翻译成中文
https://github.com/taishan1994/seq2seq_english_to_chinese
Last synced: 4 months ago
JSON representation
基于pytorch的英文翻译成中文
- Host: GitHub
- URL: https://github.com/taishan1994/seq2seq_english_to_chinese
- Owner: taishan1994
- Created: 2021-10-23T12:04:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-23T12:17:15.000Z (almost 4 years ago)
- Last Synced: 2025-02-14T17:42:22.124Z (8 months ago)
- Language: Python
- Size: 967 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# seq2seq_english_to_chinese
基于pytorch的英文翻译成中文# 说明
在config.py中有相关的配置,可以通过设置进行训练、测试、评估和预测。运行:
```python
python main.py
```# 评估和预测
```python
Corpus BLEU: 19.718745812119977
输入:text = 'how old are you?'
翻译后的中文结果为:你几岁?,score:-1.188377857208252
翻译后的中文结果为:你几岁?,score:-1.4670623540878296
翻译后的中文结果为:你怎么样?,score:-3.0076115131378174
翻译后的中文结果为:您几岁?,score:-3.912196397781372
翻译后的中文结果为:你怎么了?,score:-4.185540676116943
```# 参考
> https://blog.csdn.net/zp563987805/article/details/104451932