From ba8a840f8448cd5ff6965e4a518adf879a433835 Mon Sep 17 00:00:00 2001 From: Jari Bakken Date: Fri, 28 Dec 2018 11:14:28 +0100 Subject: [PATCH] spacy.cli.evaluate: fix TypeError (#3101) --- spacy/cli/evaluate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/evaluate.py b/spacy/cli/evaluate.py index 1ca0531fd..68a7eca2c 100644 --- a/spacy/cli/evaluate.py +++ b/spacy/cli/evaluate.py @@ -49,9 +49,9 @@ def evaluate( end = timer() nwords = sum(len(doc_gold[0]) for doc_gold in dev_docs) results = { - "Time": "%.2f s" % end - begin, + "Time": "%.2f s" % (end - begin), "Words": nwords, - "Words/s": "%.0f" % nwords / (end - begin), + "Words/s": "%.0f" % (nwords / (end - begin)), "TOK": "%.2f" % scorer.token_acc, "POS": "%.2f" % scorer.tags_acc, "UAS": "%.2f" % scorer.uas,