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