File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 'main' : 1 ,
7777 'shape' : 'subtree' ,
7878 }
79+ for prep in 'skirzě skrzě skrze' .split ():
80+ MWTS [prep + 'ň' ] = {
81+ 'form' : prep + ' něj' ,
82+ 'lemma' : 'skrz on' ,
83+ 'upos' : 'ADP PRON' ,
84+ 'xpos' : 'RV--4---------- PEZS4--3-------' ,
85+ 'feats' : 'AdpType=Voc|Case=Acc Case=Acc|Gender=Masc,Neut|Number=Sing|Person=3|PrepCase=Pre|PronType=Prs' ,
86+ 'deprel' : 'case *' ,
87+ 'main' : 1 ,
88+ 'shape' : 'subtree' ,
89+ }
7990
8091# Define static rules for 'naňž', 'oňž', 'proňž', 'zaňž'.
8192# Add them to the already existing dictionary MWTS.
91102 'main' : 1 ,
92103 'shape' : 'subtree' ,
93104 }
105+ # Additional contractions in Old Czech with vocalization.
106+ for prep in 'skirzě skrzě skrze' .split ():
107+ MWTS [prep + 'ňž' ] = {
108+ 'form' : prep + ' nějž' ,
109+ 'lemma' : 'skrz jenž' ,
110+ 'upos' : 'ADP PRON' ,
111+ 'xpos' : 'RV--4---------- P4ZS4---------2' ,
112+ 'feats' : 'AdpType=Voc|Case=Acc Case=Acc|Gender=Masc,Neut|Number=Sing|PrepCase=Pre|PronType=Rel' ,
113+ 'deprel' : 'case *' ,
114+ 'main' : 1 ,
115+ 'shape' : 'subtree' ,
116+ }
94117
95118class AddMwt (udapi .block .ud .addmwt .AddMwt ):
96119 """Detect and mark MWTs (split them into words and add the words to the tree)."""
You can’t perform that action at this time.
0 commit comments