Restore missing normalization from gold align

PR #4526 missed extra lower-casing and spacing normalization.
This commit is contained in:
Matthew Honnibal 2019-10-27 13:47:08 +01:00
parent 554850206c
commit bddfbc7e1b

View File

@ -77,6 +77,7 @@ _NORM_MAP = {"``": '"', "''": '"'}
def _normalize(tokens):
tokens = [w.replace(" ", "").lower() for w in tokens]
return [_NORM_MAP.get(word, word) for word in tokens]