PCQRSCANER/venv/Lib/site-packages/nltk/test/bleu.doctest

15 lines
296 B
Plaintext
Raw Normal View History

2019-12-22 21:51:47 +01:00
==========
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