Commit b02e3b8ffcd7f33ccbdd8c545aba0ba406fe5c3b
1 parent
05257307
Exists in
master
and in
1 other branch
Mantém ponto final ao quebrar sentenças
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/PortGlosa.py
... | ... | @@ -71,7 +71,7 @@ def quebrar_texto(texto): |
71 | 71 | lista_texto.append(texto_quebrado[i]) |
72 | 72 | if '.' in texto_quebrado[i]: |
73 | 73 | if not dicionario.has_pron_tratam(texto_quebrado[i].lower()) and i < tamanho_texto_quebrado-1 and texto_quebrado[i+1][0].isupper(): |
74 | - sentenca = " ".join(lista_texto)[:-1] | |
74 | + sentenca = " ".join(lista_texto)[:-1]+"." | |
75 | 75 | sentencas.append(sentenca) |
76 | 76 | lista_texto = [] |
77 | 77 | continue | ... | ... |