Skip to content

Commit e28f953

Browse files
Fix detection of Polish past tense
1 parent 46e759b commit e28f953

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

udapi/block/msf/slavic/past.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def process_node(self, node):
5454
)
5555

5656
# compound past tense
57-
if (node.feats['VerbForm'] == 'Part' or node.feats['VerbForm'] == 'PartRes') and node.upos == 'VERB' and node.feats['Voice'] != 'Pass':
58-
aux = [x for x in node.children if x.udeprel == 'aux' and x.feats['Tense'] == 'Pres']
57+
if (node.feats['VerbForm'] in ['Part', 'PartRes', 'Fin']) and node.upos == 'VERB' and node.feats['Voice'] != 'Pass':
58+
aux = [x for x in node.children if x.udeprel == 'aux' and x.feats['Tense'] in ['Pres', '']]
5959
aux_pqp = [x for x in node.children if x.udeprel == 'aux' and x.feats['Tense'] in past_tenses]
6060
refl = [x for x in node.children if x.feats['Reflex'] == 'Yes' and x.udeprel == 'expl']
6161

0 commit comments

Comments
 (0)