Skip to content

Commit a4f9098

Browse files
Correct person detection for Slavic conditional mood
1 parent 836ce88 commit a4f9098

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

udapi/block/msf/slavic/conditional.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def process_node(self, node):
3030

3131
phrase_ords = [x.ord for x in phrase_nodes]
3232
phrase_ords.sort()
33-
34-
auxVerb = aux_cnd[0]
3533

3634
person='3' # TODO there is a problem in russian etc. (same as in past tense)
37-
if auxVerb.feats['Person'] != '':
38-
person=auxVerb.feats['Person']
35+
36+
for aux_verb in aux:
37+
if aux_verb.feats['Person'] != '':
38+
person=aux_verb.feats['Person']
3939

4040

4141
self.write_node_info(node,
@@ -69,11 +69,21 @@ def process_node(self, node):
6969
phrase_nodes += neg
7070

7171
copVerb = cop[0]
72+
73+
person = '3'
74+
75+
for aux_verb in aux:
76+
if aux_verb.feats['Person'] != '':
77+
person=aux_verb.feats['Person']
78+
for cop_verb in cop:
79+
if cop_verb.feats['Person'] != '':
80+
person=aux_verb.feats['Person']
81+
7282
phrase_ords = [x.ord for x in phrase_nodes]
7383
phrase_ords.sort()
7484
self.write_node_info(node,
7585
aspect=copVerb.feats['Aspect'],
76-
person=copVerb.feats['Person'],
86+
person=person,
7787
number=copVerb.feats['Number'],
7888
mood='Cnd',
7989
form='Fin',

0 commit comments

Comments
 (0)