diff --git a/spacy/lang/en/lex_attrs.py b/spacy/lang/en/lex_attrs.py index 54a744426..4ab31f0ab 100644 --- a/spacy/lang/en/lex_attrs.py +++ b/spacy/lang/en/lex_attrs.py @@ -14,8 +14,7 @@ _num_words = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', def like_num(text): - text = text.replace(',', '') - text = text.replace('.', '') + text = text.replace(',', '').replace('.', '') if text.isdigit(): return True if text.count('/') == 1: