commit eabac41e7f655d0309df3c7b09e075174524eab8
parent 2a57286614215dd7e28d847d595cd586ef89f52e
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Tue, 27 Dec 2011 17:09:01 +0100
lexique workaround
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lexique2sql.py b/lexique2sql.py
@@ -126,7 +126,10 @@ class Word:
def __init__(self, word, phon, base, kind, freq):
self.word = word
self.phon = phon
- base = base.split(',')[0] # workaround for lexique
+ # workarounds for lexique
+ base = base.split(',')[0]
+ if kind == '':
+ kind = "MISC"
self.orig = [(kind, base)]
self.freq = float(freq)
self.nsyl = None