Commit 224fd058be420616f05fffa245f293b6b1eef8fb
1 parent
4b5e1b65
Exists in
master
and in
1 other branch
Corrige tradutor para retornar glosa com acentos
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/TraduzSentencas.py
... | ... | @@ -57,8 +57,8 @@ class TraduzSentencas(object): |
57 | 57 | texto_com_sinonimos = self.aplic_sin.aplicar_sinonimos(sentenca_corrigida) |
58 | 58 | if taxa: |
59 | 59 | taxa_qualidade = self.gerar_metrica_qualidade(texto_com_sinonimos) |
60 | - return {'glosa':glosa_sem_acentos, 'taxa':taxa_qualidade, 'sintatica':has_sintatica} | |
61 | - return self.aplic_regras.remover_acento(texto_com_sinonimos).upper().encode('utf-8') | |
60 | + return {'glosa':texto_com_sinonimos.upper().encode('utf-8'), 'taxa':taxa_qualidade, 'sintatica':has_sintatica} | |
61 | + return texto_com_sinonimos.upper().encode('utf-8') | |
62 | 62 | return "TEXTO ERRADO ESCOLHER OUTRO" |
63 | 63 | |
64 | 64 | ... | ... |