Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Fairseq
Commits
af86c1ac
Commit
af86c1ac
authored
Oct 17, 2017
by
Sergey Edunov
Browse files
Update En2Fr model
parent
2b482f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+3
-3
No files found.
README.md
View file @
af86c1ac
...
@@ -149,14 +149,14 @@ $ python generate.py data-bin/wmt14.en-fr.newstest2014 \
...
@@ -149,14 +149,14 @@ $ python generate.py data-bin/wmt14.en-fr.newstest2014 \
--path data-bin/wmt14.en-fr.fconv-py/model.pt \
--path data-bin/wmt14.en-fr.fconv-py/model.pt \
--beam 5 --batch-size 128 --remove-bpe | tee /tmp/gen.out
--beam 5 --batch-size 128 --remove-bpe | tee /tmp/gen.out
...
...
| Translated 3003 sentences (95451 tokens) in
81.3s (1174.33
tokens/s)
| Translated 3003 sentences (95451 tokens) in
94.5s (1009.60
tokens/s)
| Generate test with beam=5: BLEU4 = 40.
23
, 67.
5
/46.
4
/3
3.8
/25.
0
(BP=
0.997
, ratio=1.00
3
, syslen=8
0963
, reflen=81194)
| Generate test with beam=5: BLEU4 = 40.
70
, 67.
7
/46.
8
/3
4.2
/25.
4
(BP=
1.000
, ratio=1.00
0
, syslen=8
1190
, reflen=81194)
# Scoring with score.py:
# Scoring with score.py:
$ grep ^H /tmp/gen.out | cut -f3- > /tmp/gen.out.sys
$ grep ^H /tmp/gen.out | cut -f3- > /tmp/gen.out.sys
$ grep ^T /tmp/gen.out | cut -f2- > /tmp/gen.out.ref
$ grep ^T /tmp/gen.out | cut -f2- > /tmp/gen.out.ref
$ python score.py --sys /tmp/gen.out.sys --ref /tmp/gen.out.ref
$ python score.py --sys /tmp/gen.out.sys --ref /tmp/gen.out.ref
BLEU4 = 40.
23
, 67.
5
/46.
4
/3
3.8
/25.
0
(BP=
0.997
, ratio=1.00
3
, syslen=8
0963
, reflen=81194)
BLEU4 = 40.
70
, 67.
7
/46.
8
/3
4.2
/25.
4
(BP=
1.000
, ratio=1.00
0
, syslen=8
1190
, reflen=81194)
```
```
# Join the fairseq community
# Join the fairseq community
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment