neubig / travatar

This is a repository for the Travatar forest-to-string translation decoder
GNU Lesser General Public License v3.0
28 stars 11 forks source link

PINC #16

Closed philip30 closed 10 years ago

philip30 commented 10 years ago

In this pull request, PINC is implemented by modifying the existing bleu. PINC is an inverse BLEU and being used for measuring dissimilarity between system output and source sentence. To do so, we can add "inverse=true" in BLEU options. In addition, PINC does not calculate brevity penalty, therefore we can do that by specifying "brevity=false" in BLEU options.

Some minor bug fixed in BLEU such as denominator that always be 4 in BLEU calculation and used std::abs instead of abs function in CheckAlmost function are also included.