laywerrobot/lib/python3.6/site-packages/nltk/test/bleu.doctest
2020-08-27 21:55:39 +02:00

14 lines
296 B
Text

==========
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