Commit 93bc4ba4a5f9a5ac47f7e44e235e1b5bad5c4987
1 parent
b9c9d0b4
Exists in
master
and in
1 other branch
Adiciona exceções no tratamento de plural
Showing
2 changed files
with
7 additions
and
2 deletions
Show diff stats
data/excecoesPlural.csv
src/AplicaRegras.py
... | ... | @@ -410,7 +410,7 @@ class AplicaRegras(object): |
410 | 410 | pass |
411 | 411 | num = True |
412 | 412 | |
413 | - if tag != "NPR-P" and tag[-2:] == "-P" or tag[-2:] == "_P" and self.verificar_excecao_plural(it.get_word()): | |
413 | + if tag != "NPR-P" and (tag[-2:] == "-P" or tag[-2:] == "_P") and self.verificar_excecao_plural(it.get_word()): | |
414 | 414 | singular = self.analisar_plural(it.get_word()) |
415 | 415 | lista_simplificada[it.get_count()][0] = singular |
416 | 416 | ... | ... |