Commit 03bf3bbb41dc410f9237d5f48071beb468437dd3
1 parent
0b076d4e
poprawienie błędu w typach segmentów
git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/morfeusz@120 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing
1 changed file
with
1 additions
and
1 deletions
fsabuilder/morfeuszbuilder/tagset/segtypes.py
| ... | ... | @@ -111,7 +111,7 @@ class Segtypes(object): |
| 111 | 111 | self._validate( |
| 112 | 112 | u'Pattern must contain encodedForm and part-of-speech fields', |
| 113 | 113 | lineNum, |
| 114 | - re.match(r'.+?\:[a-z_]+', pattern, re.U)) | |
| 114 | + re.match(r'.+?\:[a-z_]+', pattern, re.U) and len(pattern.split(':')) == 2) | |
| 115 | 115 | |
| 116 | 116 | if segtype in self.segtype2Segnum: |
| 117 | 117 | segnum = self.segtype2Segnum[segtype] |
| ... | ... |