From f4cba135ed6aed06ee15e9d41a9091101a4c1bef Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 13 Dec 2012 09:57:49 +0100 Subject: [PATCH] ... --- corpusNG.py | 5 ----- functions.py | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/corpusNG.py b/corpusNG.py index 7354463..11961e1 100644 --- a/corpusNG.py +++ b/corpusNG.py @@ -525,7 +525,6 @@ class Corpus : det[et[0]] = {endet :1} except IndexError : det[et[0]] = 1 - print det return det def make_and_write_profile_et(self, ucecl, fileout) : @@ -1051,11 +1050,7 @@ class BuildFromAlceste(BuildCorpus) : ucetxt = txt.split('laphrasepoursplitter') else : txt = ' '.join(txt) - - print txt txt = self.make_cleans(txt) - - print txt ucetxt = self.make_uces(txt, self.corpus.parametres['douce']) if self.corpus.ucis[-1].paras == [] : idpara += 1 diff --git a/functions.py b/functions.py index 4479eaf..e77d3f2 100644 --- a/functions.py +++ b/functions.py @@ -436,7 +436,10 @@ def ReadDicoAsDico(dicopath): return dico def ReadLexique(parent, lang = 'french'): - parent.lexique = ReadDicoAsDico(parent.DictPath.get(lang, 'french')) + if lang != 'other' : + parent.lexique = ReadDicoAsDico(parent.DictPath.get(lang, 'french')) + else : + parent.lexique = {} def ReadList(filein, encoding = sys.getdefaultencoding()): #file = open(filein) -- 2.7.4