core.metrics

Provides standard metric evaluations for dialog.

Uses locking and shared memory when numthreads is set to >1 to share metrics between processes.

parlai.core.metrics.normalize_answer(s)

Lower text and remove punctuation, articles and extra whitespace.

class parlai.core.metrics.Metrics(opt)

Bases: object

Class that maintains evaluation metrics over dialog.

__init__(opt)

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