Welcome to tf2-ndg-benchmarks’s documentation!

Usage

Run under the command for setup.

poetry install

Run under python code for using metrics.

from tf2-ndg-benchmarks import metrics

reference = 'It is a guide to action that ensures that the military will forever heed Party commands'
hypothesis = 'It is a guide to action which ensures that the military always obeys the commands of the party'
bleu = metrics.bleu.Bleu()
score = bleu.sentence_score(reference, hypothesis)

Indices and tables