Skip to content

Commit 21649d7

Browse files
Correct detection of anterior tenses
1 parent 2e61d9c commit 21649d7

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

udapi/block/msf/romance/romance.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
'potere', 'dovere', 'volere', 'sapere'] # Italian
88

99
class Aspect(str, Enum):
10+
ANT = 'Ant'
1011
IMP = 'Imp'
1112
IMPPROG = 'ImpProg'
1213
PERF = 'Perf'
@@ -523,10 +524,22 @@ def process_periphrastic_verb_forms(self, node, auxes, expl, polarity, phrase_or
523524

524525
# Italian
525526
# Trapassato prossimo -> PhraseTense=Past, PhraseAspect=Pqp
526-
elif auxes[0].feats['Tense'] in ['Imp', 'Past']: # TODO prej neni v Past, jenom Imp
527+
elif auxes[0].feats['Tense'] == 'Imp':
527528
tense=Tense.PAST.value
528529
aspect=Aspect.PQP.value
529530

531+
# Spanish
532+
# pretérito anterior ante pretérito -> PhraseTense=Past, PhraseAspect=Ant
533+
534+
# Italian
535+
# trapassato remoto -> PhraseTense=Past, PhraseAspect=Ant
536+
537+
# French
538+
# passé antérieur -> PhraseTense=Past, PhraseAspect=Ant
539+
elif auxes[0].feats['Tense'] == 'Past':
540+
tense=Tense.PAST.value
541+
aspect = Aspect.ANT.value
542+
530543
self.write_node_info(head_node,
531544
tense=tense,
532545
number=auxes[0].feats['Number'],
@@ -709,4 +722,4 @@ def process_copulas(self, node, cop, expl, polarity, phrase_ords):
709722
if cop[0].lemma == 'ser':
710723
node.misc['PhraseAspect'] = Aspect.PERF.value
711724
elif cop[0].lemma == 'estar':
712-
node.misc['PhraseAspect'] = Aspect.IMP.value
725+
node.misc['PhraseAspect'] = Aspect.IMP.value

0 commit comments

Comments
 (0)