mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
* Fix output from _min_edit_path when inputs match.
This commit is contained in:
parent
27c8dc3db2
commit
89b8775887
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user