* Fix output from _min_edit_path when inputs match.

This commit is contained in:
Matthew Honnibal 2015-06-06 05:58:53 +02:00
parent 27c8dc3db2
commit 89b8775887
1 changed files with 1 additions and 1 deletions

View File

@ -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)