projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3bc705
)
change dictionary on build
author
Pierre Ratinaud
<ratinaud@univ-tlse2.fr>
Mon, 17 Nov 2014 23:17:39 +0000
(
00:17
+0100)
committer
Pierre Ratinaud
<ratinaud@univ-tlse2.fr>
Mon, 17 Nov 2014 23:17:39 +0000
(
00:17
+0100)
corpus.py
patch
|
blob
|
history
diff --git
a/corpus.py
b/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'])
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 :
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 :