Commit f806b639eeb829344b4d1c2385ac1493cb4e3950
1 parent
f4643602
Exists in
master
and in
1 other branch
Adiciona cabeçalho no ConversorExtenso
Showing
2 changed files
with
8 additions
and
1 deletions
Show diff stats
src/new/AplicaSinonimos.py
... | ... | @@ -33,6 +33,7 @@ class AplicaSinonimos(object): |
33 | 33 | dic[f] = token |
34 | 34 | return dic |
35 | 35 | |
36 | + | |
36 | 37 | def sinonimosSintatico(self, texto): |
37 | 38 | folhas = Tree.leaves(texto) |
38 | 39 | dic = self.dicionarioSinonimoFolhas(folhas) |
... | ... | @@ -42,6 +43,7 @@ class AplicaSinonimos(object): |
42 | 43 | tree = Tree.fromstring(stringTree, brackets='()') |
43 | 44 | return tree |
44 | 45 | |
46 | + | |
45 | 47 | def verificaPalavra(self, token): |
46 | 48 | if self.__dicionarios.hasSinonimo(token): |
47 | 49 | return self.__dicionarios.getSinonimo(token) | ... | ... |
src/new/ConversorExtenso.py