From 2cf55a46d97605a4ad59fa923c8efd064de7e521 Mon Sep 17 00:00:00 2001 From: Pierre Ratinaud Date: Tue, 18 Nov 2014 00:17:39 +0100 Subject: [PATCH] change dictionary on build --- corpus.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 : -- 2.7.4