From 89b87758875b136317682d6e518767da9a324265 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 6 Jun 2015 05:58:53 +0200 Subject: [PATCH] * Fix output from _min_edit_path when inputs match. --- spacy/gold.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/gold.pyx b/spacy/gold.pyx index cab4ba8a1..82c48ff91 100644 --- a/spacy/gold.pyx +++ b/spacy/gold.pyx @@ -46,7 +46,7 @@ def _min_edit_path(cand_words, gold_words): gold_words = [punct_re.sub('', w) for w in gold_words] if cand_words == gold_words: - return 0, ['M' for _ in gold_words] + return 0, ''.join(['M' for _ in gold_words]) mem = Pool() n_cand = len(cand_words) n_gold = len(gold_words)