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,6 +33,7 @@ class AplicaSinonimos(object): | ||
33 | dic[f] = token | 33 | dic[f] = token |
34 | return dic | 34 | return dic |
35 | 35 | ||
36 | + | ||
36 | def sinonimosSintatico(self, texto): | 37 | def sinonimosSintatico(self, texto): |
37 | folhas = Tree.leaves(texto) | 38 | folhas = Tree.leaves(texto) |
38 | dic = self.dicionarioSinonimoFolhas(folhas) | 39 | dic = self.dicionarioSinonimoFolhas(folhas) |
@@ -42,6 +43,7 @@ class AplicaSinonimos(object): | @@ -42,6 +43,7 @@ class AplicaSinonimos(object): | ||
42 | tree = Tree.fromstring(stringTree, brackets='()') | 43 | tree = Tree.fromstring(stringTree, brackets='()') |
43 | return tree | 44 | return tree |
44 | 45 | ||
46 | + | ||
45 | def verificaPalavra(self, token): | 47 | def verificaPalavra(self, token): |
46 | if self.__dicionarios.hasSinonimo(token): | 48 | if self.__dicionarios.hasSinonimo(token): |
47 | return self.__dicionarios.getSinonimo(token) | 49 | return self.__dicionarios.getSinonimo(token) |
src/new/ConversorExtenso.py
1 | +#!/usr/bin/python | ||
1 | # -*- coding: utf-8 -*- | 2 | # -*- coding: utf-8 -*- |
2 | -# Autor: Erickson Silva | 3 | + |
4 | +#Autor: Erickson Silva | ||
5 | +#Email: <erickson.silva@lavid.ufpb.br> <ericksonsilva@live.com> | ||
6 | + | ||
7 | +#LAViD - Laboratório de Aplicações de Vídeo Digital | ||
3 | 8 | ||
4 | import sys | 9 | import sys |
5 | from unicodedata import normalize | 10 | from unicodedata import normalize |