Commit 0cd57a9238d889aad05196afd713bc891598df5d
1 parent
93bc4ba4
Exists in
master
and in
1 other branch
Corrige tratamento de números romanos.
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
src/AplicaRegras.py
... | ... | @@ -402,12 +402,13 @@ class AplicaRegras(object): |
402 | 402 | while(it.has_next()): |
403 | 403 | tag = it.get_ticket() |
404 | 404 | |
405 | + try: | |
406 | + num_romano = roman_to_int(it.get_word().encode('utf-8')) | |
407 | + lista_simplificada[it.get_count()] = [num_romano.decode('utf-8'), 'NUM-R'] | |
408 | + except: | |
409 | + pass | |
410 | + | |
405 | 411 | if tag == "NUM": |
406 | - try: | |
407 | - num_romano = roman_to_int(it.get_word().encode('utf-8')) | |
408 | - lista_simplificada[it.get_count()] = [num_romano.decode('utf-8'), 'NUM-R'] | |
409 | - except: | |
410 | - pass | |
411 | 412 | num = True |
412 | 413 | |
413 | 414 | if tag != "NPR-P" and (tag[-2:] == "-P" or tag[-2:] == "_P") and self.verificar_excecao_plural(it.get_word()): | ... | ... |