We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e30ed90 commit 9e68b89Copy full SHA for 9e68b89
1 file changed
udapi/block/ud/cs/addmwt.py
@@ -77,6 +77,21 @@
77
'shape': 'subtree',
78
}
79
80
+# Define static rules for 'naňž', 'oňž', 'proňž', 'zaňž'.
81
+# Add them to the already existing dictionary MWTS.
82
+# naňž -> na + nějž
83
+for prep in 'na o pro za'.split():
84
+ MWTS[prep + 'ňž'] = {
85
+ 'form': prep + ' nějž',
86
+ 'lemma': prep + ' jenž',
87
+ 'upos': 'ADP PRON',
88
+ 'xpos': 'RR--4---------- P4ZS4---------2',
89
+ 'feats': 'AdpType=Prep|Case=Acc Case=Acc|Gender=Masc,Neut|Number=Sing|PrepCase=Pre|PronType=Rel',
90
+ 'deprel': 'case *',
91
+ 'main': 1,
92
+ 'shape': 'subtree',
93
+ }
94
+
95
class AddMwt(udapi.block.ud.addmwt.AddMwt):
96
"""Detect and mark MWTs (split them into words and add the words to the tree)."""
97
0 commit comments