projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab23968
)
...
author
Pierre
<ratinaud@univ-tlse2.fr>
Thu, 13 Dec 2012 08:57:49 +0000
(09:57 +0100)
committer
Pierre
<ratinaud@univ-tlse2.fr>
Thu, 13 Dec 2012 08:57:49 +0000
(09:57 +0100)
corpusNG.py
patch
|
blob
|
history
functions.py
patch
|
blob
|
history
diff --git
a/corpusNG.py
b/corpusNG.py
index
7354463
..
11961e1
100644
(file)
--- a/
corpusNG.py
+++ b/
corpusNG.py
@@
-525,7
+525,6
@@
class Corpus :
det[et[0]] = {endet :1}
except IndexError :
det[et[0]] = 1
det[et[0]] = {endet :1}
except IndexError :
det[et[0]] = 1
- print det
return det
def make_and_write_profile_et(self, ucecl, fileout) :
return det
def make_and_write_profile_et(self, ucecl, fileout) :
@@
-1051,11
+1050,7
@@
class BuildFromAlceste(BuildCorpus) :
ucetxt = txt.split('laphrasepoursplitter')
else :
txt = ' '.join(txt)
ucetxt = txt.split('laphrasepoursplitter')
else :
txt = ' '.join(txt)
-
- print txt
txt = self.make_cleans(txt)
txt = self.make_cleans(txt)
-
- print txt
ucetxt = self.make_uces(txt, self.corpus.parametres['douce'])
if self.corpus.ucis[-1].paras == [] :
idpara += 1
ucetxt = self.make_uces(txt, self.corpus.parametres['douce'])
if self.corpus.ucis[-1].paras == [] :
idpara += 1
diff --git
a/functions.py
b/functions.py
index
4479eaf
..
e77d3f2
100644
(file)
--- a/
functions.py
+++ b/
functions.py
@@
-436,7
+436,10
@@
def ReadDicoAsDico(dicopath):
return dico
def ReadLexique(parent, lang = 'french'):
return dico
def ReadLexique(parent, lang = 'french'):
- parent.lexique = ReadDicoAsDico(parent.DictPath.get(lang, 'french'))
+ if lang != 'other' :
+ parent.lexique = ReadDicoAsDico(parent.DictPath.get(lang, 'french'))
+ else :
+ parent.lexique = {}
def ReadList(filein, encoding = sys.getdefaultencoding()):
#file = open(filein)
def ReadList(filein, encoding = sys.getdefaultencoding()):
#file = open(filein)