det[et[0]] = {endet :1}
except IndexError :
det[et[0]] = 1
- print det
return det
def make_and_write_profile_et(self, ucecl, fileout) :
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
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)