X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=analysetxt.py;h=cd3ac77c22709caed04a8114ae215611d411cebc;hp=54f0c5cfef2cae88a5360f8120b45b2ff338bb8a;hb=9bde3d55d2131f1a33234a43c0de8b200ddb8f9a;hpb=d33694ef233bd4a28e69d88e9eef3c5c129442fe diff --git a/analysetxt.py b/analysetxt.py index 54f0c5c..cd3ac77 100644 --- a/analysetxt.py +++ b/analysetxt.py @@ -53,7 +53,10 @@ class AnalyseText : self.dialok = True self.parametres = parametres self.val = False - self.pathout = PathOut(corpus.parametres['originalpath'], analyse_type = parametres['type'], dirout = corpus.parametres['pathout']) + if not 'pathout' in self.parametres : + self.pathout = PathOut(corpus.parametres['originalpath'], analyse_type = parametres['type'], dirout = corpus.parametres['pathout']) + else : + self.pathout = PathOut(filename = corpus.parametres['originalpath'], dirout = self.parametres['pathout'], analyse_type = self.parametres['name']) self.parametres = self.make_config(parametres) log.info(self.pathout.dirout) if self.parametres is not None : @@ -147,7 +150,7 @@ class Alceste(AnalyseText) : elif self.parametres['classif_mode'] == 2 : self.corpus.make_and_write_sparse_matrix_from_uci(self.actives, self.pathout['TableUc1'], self.pathout['listeuce1']) Rscript = self.printRscript() - self.doR(Rscript) + self.doR(Rscript, dlg = self.dlg, message = 'CHD...') #self.lc = make_ucecl_from_R(self.pathout['uce']) #self.lc0 = self.lc.pop(0) self.corpus.make_ucecl_from_R(self.pathout['uce']) @@ -158,7 +161,7 @@ class Alceste(AnalyseText) : self.clnb = len(self.corpus.lc) self.parametres['clnb'] = self.clnb Rscript = self.printRscript2() - self.doR(Rscript) + self.doR(Rscript, dlg = self.dlg, message = 'profils et A.F.C. ...') self.time = time() - self.t1 minutes, seconds = divmod(self.time, 60) hours, minutes = divmod(minutes, 60)