Provides standard metric evaluations for dialog. Uses locking and shared memory when numthreads is set to >1 to share metrics between processes.

class parlai.core.metrics.Metrics(opt)

Bases: object

Class that maintains evaluation metrics over dialog.


Initialize self. See help(type(self)) for accurate signature.


Lower text and remove punctuation, articles and extra whitespace.