X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=textaslexico.py;h=a866276a0cbca752f73191932be0cdb68dedd757;hp=d78c8fda4e1d8d7b118019d3e34bd1623b2cf281;hb=be2de22859c8f59abe9e1082981e4c3a62e9b7ca;hpb=b0333175cc68917ceb33589b0b354bf931fec245 diff --git a/textaslexico.py b/textaslexico.py index d78c8fd..a866276 100644 --- a/textaslexico.py +++ b/textaslexico.py @@ -237,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 : @@ -278,15 +278,15 @@ 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)) + #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')