Commit 93bc4ba4a5f9a5ac47f7e44e235e1b5bad5c4987

Authored by Erickson Silva
1 parent b9c9d0b4
Exists in master and in 1 other branch devel

Adiciona exceções no tratamento de plural

Showing 2 changed files with 7 additions and 2 deletions   Show diff stats
data/excecoesPlural.csv
1 1 vlibras
2   -libras
3 2 \ No newline at end of file
  3 +libras
  4 +lápis
  5 +vírus
  6 +tagênis
  7 +ônibus
  8 +férias
4 9 \ No newline at end of file
... ...
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  
... ...