Commit 4528e001cc896ff729c96da4faaa4ecc38eb3f5a
1 parent
de2bb436
ignorowanie homonimii w sekcji [lexemes] w regułach segmentacji
git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/morfeusz@126 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing
1 changed file
with
1 additions
and
1 deletions
fsabuilder/morfeuszbuilder/tagset/segtypes.py
... | ... | @@ -179,7 +179,7 @@ class Segtypes(object): |
179 | 179 | class SegtypePattern(object): |
180 | 180 | |
181 | 181 | def __init__(self, lemma, pattern, segnum): |
182 | - self.lemma = lemma | |
182 | + self.lemma = lemma.split(':')[0] if len(lemma) > 1 else lemma | |
183 | 183 | self.pattern = pattern |
184 | 184 | self.segnum = segnum |
185 | 185 | |
... | ... |