Commit 6a0348ae6e571688916cb45e015bcc8b55ceb2e8
1 parent
2af8fd22
Exists in
master
and in
1 other branch
Reposiciona criação de instância do LerDicionarios no PortGlosa
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
src/PortGlosa.py
| ... | ... | @@ -11,9 +11,7 @@ from ThreadTradutor import * |
| 11 | 11 | from TraduzSentencas import * |
| 12 | 12 | from LerDicionarios import * |
| 13 | 13 | |
| 14 | - | |
| 15 | 14 | tradutor = TraduzSentencas() |
| 16 | -dicionario = LerDicionarios() | |
| 17 | 15 | taxas = [] |
| 18 | 16 | |
| 19 | 17 | def traduzir(texto, log=None, threads=False, taxa_qualidade=False): |
| ... | ... | @@ -64,6 +62,7 @@ def quebrar_texto(texto): |
| 64 | 62 | if '.' not in texto: |
| 65 | 63 | return [texto] |
| 66 | 64 | |
| 65 | + dicionario = LerDicionarios() | |
| 67 | 66 | texto_quebrado = texto.split() |
| 68 | 67 | tamanho_texto_quebrado = len(texto_quebrado) |
| 69 | 68 | sentencas = [] | ... | ... |