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
88a8bd42
Commit
88a8bd42
authored
Oct 06, 2017
by
Myle Ott
Browse files
Fix smoothed (sentence-level) BLEU calculation
parent
d92ce54c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fairseq/clib/libbleu/libbleu.cpp
fairseq/clib/libbleu/libbleu.cpp
+2
-2
No files found.
fairseq/clib/libbleu/libbleu.cpp
View file @
88a8bd42
...
@@ -104,11 +104,11 @@ void bleu_zero_init(bleu_stat* stat) {
...
@@ -104,11 +104,11 @@ void bleu_zero_init(bleu_stat* stat) {
void
bleu_one_init
(
bleu_stat
*
stat
)
{
void
bleu_one_init
(
bleu_stat
*
stat
)
{
bleu_zero_init
(
stat
);
bleu_zero_init
(
stat
);
stat
->
count1
=
1
;
stat
->
count1
=
0
;
stat
->
count2
=
1
;
stat
->
count2
=
1
;
stat
->
count3
=
1
;
stat
->
count3
=
1
;
stat
->
count4
=
1
;
stat
->
count4
=
1
;
stat
->
match1
=
1
;
stat
->
match1
=
0
;
stat
->
match2
=
1
;
stat
->
match2
=
1
;
stat
->
match3
=
1
;
stat
->
match3
=
1
;
stat
->
match4
=
1
;
stat
->
match4
=
1
;
...
...
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