Commit 04e0f993 by Dmitrijs Milajevs

bleu refactoring: removing the BLEU class.

parent bc55ae9d
========== ==========
BLEU tests BLEU tests
========== ==========
>>> from nltk.align.bleu import BLEU >>> from nltk.align.bleu import bleu
If the candidate has no alignment to any of the references, the BLEU score is If the candidate has no alignment to any of the references, the BLEU score is 0.
0.
>>> BLEU.compute( >>> bleu(
... 'John loves Mary'.split(), ... 'John loves Mary'.split(),
... ['The candidate has no alignment to any of the references'.split()], ... ['The candidate has no alignment to any of the references'.split()],
... [1], ... [1],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment