X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=corpusNG.py;h=19cfd29e4d1e65a3e4bc5b0a0faafa4b77c98979;hp=11961e109bf5c7662aba1fcbce2ba34208358415;hb=1f82fb8e9ed83b8524b00039f1a8c51c2b12a8be;hpb=f4cba135ed6aed06ee15e9d41a9091101a4c1bef diff --git a/corpusNG.py b/corpusNG.py index 11961e1..19cfd29 100644 --- a/corpusNG.py +++ b/corpusNG.py @@ -527,6 +527,17 @@ class Corpus : det[et[0]] = 1 return det + def make_etline(self, listet) : + etuces = [[] for et in listet] + for uci in self.ucis : + get = list(set(uci.etoiles).intersection(listet)) + if len(get) > 1 : + return '2 variables sur la meme ligne' + elif get != [] : + etuces[listet.index(get[0])] += [uce.ident for uce in uci.uces] + return etuces + + def make_and_write_profile_et(self, ucecl, fileout) : log.info('etoiles/classes') etoiles = self.make_etoiles()