From 4881473c2a78b49163677989c73d7e31616bd907 Mon Sep 17 00:00:00 2001 From: Erickson Silva Date: Mon, 26 Oct 2015 10:14:21 -0300 Subject: [PATCH] Corrige função de lower no alexp --- src/alexp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alexp.py b/src/alexp.py index d9a3b48..f3dbadb 100644 --- a/src/alexp.py +++ b/src/alexp.py @@ -60,7 +60,7 @@ def etiquetaSentenca(s): anotada_corrigida = [] for x in anotada: if x[1] not in tag_punctuation: - if x[1] == "NUM": + if x[1] == "NUM" and x[1].isdigit(): anotada_corrigida.append(x) continue tupla = [regex.sub('',x[0]).lower(),x[1]] -- libgit2 0.21.2