def METHOD_NAME(self):
    metric = WordMetric(mode='exact')
    metric.process(None, self.pred)
    eval_res = metric.evaluate(size=3)
    self.assertAlmostEqual(eval_res['recog/word_acc'], 1. / 3, 4)