X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=textaslexico.py;h=a866276a0cbca752f73191932be0cdb68dedd757;hp=82311cd72d4af17958b4258fb7c36cf94035cb8f;hb=1fb687c23b19ae4cc88146acf393041356c1df3a;hpb=8fa853a25a9d62b1446e1bc543e5a3a4d0e03dcf diff --git a/textaslexico.py b/textaslexico.py index 82311cd..a866276 100644 --- a/textaslexico.py +++ b/textaslexico.py @@ -17,6 +17,9 @@ import tempfile from ConfigParser import RawConfigParser from guifunct import getPage, getCorpus from time import sleep +import logging + +log = logging.getLogger('iramuteq.spec') class Lexico(AnalyseText) : def doanalyse(self) : @@ -234,10 +237,10 @@ class Lexico(AnalyseText) : else : self.parametres['indice'] = 'chi2' self.parametres['clnb'] = len(ListEt) - if dial.checklem.GetValue() : - self.parametres['lem'] = 1 - else : - self.parametres['lem'] = 0 + #if dial.checklem.GetValue() : + # self.parametres['lem'] = 1 + #else : + # self.parametres['lem'] = 0 dial.Destroy() return self.parametres else : @@ -275,7 +278,20 @@ class Lexico(AnalyseText) : mineff = self.parametres['mineff'] #dlg = progressbar(self, maxi = 3) tabout = self.corpus.make_lexitable(mineff, self.listet) + #log.warning('Fmax a 200') + #Fmax = [line for line in tabout[1:] if sum(line[1:]) > 199] + #formesmax = [line[0] for line in Fmax] + #Fmax = [line[1:] for line in Fmax] + #summax = [sum(col) for col in zip(*Fmax)] + #tabout.append(['Fmax'] + summax) + #tabout = [line for line in tabout if line[0] not in formesmax] + #log.warning('ATTENTION : hapax par etoile') + #tabout.append(['hapax'] + self.corpus.gethapaxbyet(self.listet)) write_tab(tabout, self.dictpathout['tableafcm']) + + #log.warning('ATTENTION : gethapaxuces') + #self.corpus.gethapaxuces() + tabout = self.corpus.make_efftype_from_etoiles(self.listet) write_tab(tabout, self.dictpathout['tabletypem']) #dlg.Update(2, u'R...')