change dictionary on build
authorPierre Ratinaud <ratinaud@univ-tlse2.fr>
Mon, 17 Nov 2014 23:17:39 +0000 (00:17 +0100)
committerPierre Ratinaud <ratinaud@univ-tlse2.fr>
Mon, 17 Nov 2014 23:17:39 +0000 (00:17 +0100)
corpus.py

index d13b2f5..8518b25 100644 (file)
--- 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 :