You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
296 B
Plaintext
15 lines
296 B
Plaintext
==========
|
|
BLEU tests
|
|
==========
|
|
|
|
>>> from nltk.translate import bleu
|
|
|
|
If the candidate has no alignment to any of the references, the BLEU score is 0.
|
|
|
|
>>> bleu(
|
|
... ['The candidate has no alignment to any of the references'.split()],
|
|
... 'John loves Mary'.split(),
|
|
... [1],
|
|
... )
|
|
0
|