Skip to content

Commit 1a4ec2d

Browse files
Comment out code that alters UPOS
1 parent e2096f0 commit 1a4ec2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

udapi/block/msf/slavic/preprocessor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def process_node(self,node):
1717

1818
# in some languages, participles are annotated with UPOS=VERB, while in others they are annotated with UPOS=ADJ
1919
# we change the UPOS to ADJ when a participle expresses case
20-
if node.upos == 'VERB' and node.feats['VerbForm'] == 'Part' and node.feats['Case'] != '':
21-
node.upos = 'ADJ'
20+
#if node.upos == 'VERB' and node.feats['VerbForm'] == 'Part' and node.feats['Case'] != '':
21+
# node.upos = 'ADJ'
2222

2323
# in Polish, the conditional mood for auxiliary verbs is marked as deprel == 'aux:cnd' and not as in the last Slavic languages ​​feats['Mood'] == 'Cnd'
2424
if node.deprel == 'aux:cnd':
@@ -54,8 +54,8 @@ def process_node(self,node):
5454
node.feats['Number'] = subj[0].feats['Number']
5555

5656
# participles in passive are sometimes annotated as VERB, sometimes as ADJ
57-
if node.upos == 'VERB' and node.feats['Voice'] == 'Pass':
58-
node.upos = 'ADJ'
57+
#if node.upos == 'VERB' and node.feats['Voice'] == 'Pass':
58+
# node.upos = 'ADJ'
5959

6060
# there are cases where the node has deprel=='expl:pv' or 'expl:pass' or 'expl:impers' and Reflex is not Yes (i.e. Macedonian treebank)
6161
# we add the Reflex=Yes feature

0 commit comments

Comments
 (0)