Skip to content

Commit 32f3ab5

Browse files
committed
Merge branch 'master' of github.com:yistLin/pytorch-dual-learning
2 parents 7f41190 + 6466ec8 commit 32f3ab5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lm/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Language Model
22

3+
This language model is heavily depended on [Word-level language modeling RNN - pytorch/examples](https://github.com/pytorch/examples/tree/master/word_language_model). To train it, just use the code here and follow the steps provided there.
4+
35
### Usage
46

5-
Reload model and dictionary first, and use `get_prob()` to get language model probability.
7+
Reload pre-trained model and dictionary first, and use `get_prob()` to get language model probability.
68

79
```python
810
words = ['we', 'have', 'told', 'that', 'this', 'will']

nmt/README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Neural Machine Translation
22

3-
### Reference
3+
This NMT model is heavily depended on [pcyin/pytorch\_nmt](https://github.com/pcyin/pytorch_nmt). To train model, just follow the steps provided there.
44

5-
This NMT model is heavily depend on [pcyin/pytorch\_nmt](https://github.com/pcyin/pytorch_nmt).
5+
Basiscally, you need to:
6+
1. use `vocab.py` to generate vocab file
7+
2. use `nmt.py` to train model
8+
9+
And you may find `scripts/train.sh` helpful.
610

711
### Test Results
812

0 commit comments

Comments
 (0)