Commit 98646c8725404469544356aeec2e79c44fccd137
1 parent
ffb45245
Exists in
master
and in
1 other branch
Corrige indentação no alexp
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/new/alexp.py
@@ -81,19 +81,19 @@ def corrigeAnotacao(lista): | @@ -81,19 +81,19 @@ def corrigeAnotacao(lista): | ||
81 | 81 | ||
82 | # a função abaixo parece muito restritiva; talvez não seja necessário | 82 | # a função abaixo parece muito restritiva; talvez não seja necessário |
83 | # que o arquivo esteja no diretório nltk_data | 83 | # que o arquivo esteja no diretório nltk_data |
84 | -def encontraArquivo(caminho=DIR): | 84 | +def encontraArquivo(): |
85 | """Encontra arquivo na pasta vlibras-translate. | 85 | """Encontra arquivo na pasta vlibras-translate. |
86 | """ | 86 | """ |
87 | so = platform.system() | 87 | so = platform.system() |
88 | - if so == 'Windows': | ||
89 | - return expanduser("~") + "\\vlibras-translate\data\cfg.syn.nltk" | ||
90 | - else: | ||
91 | - return expanduser("~") + "/vlibras-translate/data/cfg.syn.nltk" | 88 | + if so == 'Windows': |
89 | + return expanduser("~") + "\\vlibras-translate\data\cfg.syn.nltk" | ||
90 | + else: | ||
91 | + return expanduser("~") + "/vlibras-translate/data/cfg.syn.nltk" | ||
92 | 92 | ||
93 | def extraiSintaxe(): | 93 | def extraiSintaxe(): |
94 | """Extrai gramática armazenada em arquivo cujo caminho é definido relativamente ao diretório nltk_data. | 94 | """Extrai gramática armazenada em arquivo cujo caminho é definido relativamente ao diretório nltk_data. |
95 | """ | 95 | """ |
96 | - arquivo=encontraArquivo(caminho) | 96 | + arquivo=encontraArquivo() |
97 | if arquivo: | 97 | if arquivo: |
98 | f=open(arquivo,"rU") | 98 | f=open(arquivo,"rU") |
99 | sintaxe=f.read() | 99 | sintaxe=f.read() |