From 12c3d5fbba92a06c9e12a8b089c79e9b41831b28 Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 9 May 2017 01:15:28 +0200 Subject: [PATCH] Fix formatting --- spacy/lang/en/lex_attrs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: