From: Pierre Ratinaud Date: Mon, 17 Nov 2014 23:17:39 +0000 (+0100) Subject: change dictionary on build X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=commitdiff_plain;h=2cf55a46d97605a4ad59fa923c8efd064de7e521 change dictionary on build --- diff --git a/corpus.py b/corpus.py index d13b2f5..8518b25 100644 --- a/corpus.py +++ b/corpus.py @@ -1541,7 +1541,11 @@ class Builder : parametres = dial.doparametres() parametres['originalpath'] = parent.filename PathOut().createdir(parametres['pathout']) - ReadLexique(self.parent, lang = parametres['lang']) + if parametres.get('dictionary', False) : + filein = parametres['dictionary'] + else : + filein = None + ReadLexique(self.parent, lang = parametres['lang'], filein = filein) if parametres['lang'] != 'other' and os.path.exists(self.parent.DictPath.get(parametres['lang']+'_exp', 'french_exp')): self.parent.expressions = ReadDicoAsDico(self.parent.DictPath.get(parametres['lang']+'_exp', 'french_exp')) else :