aymara / aymara/lima

Head token in Modex rules sub-automatons

Open
#20 0 comments 0 reactions 1 assignee Claimed by @romaricb View on GitHub
enhancement
Dominant language
C++
Stars
119
Forks
20
PR merge metrics
No merged PRs in 30d

Description

One should be able to define and use a head token in sub-automatons.

Currently, you define and use a subautomaton like that:

```
define subautomaton NounGroup {
pattern=$DET? ($ADV{0-2} $ADJ){0-2} ($NC){0-2} $NC
}

@InfinitiveVerb::%NounGroup:SYNTACTIC_RELATION:
+!GovernorOf(right.1.4,"ANY")
+GovernedBy(trigger.1,"PrepInf")
+CreateRelationBetween(right.1.4,trigger.1,"COD_V")
=>AddRelationInGraph()
=AddRelationInGraph()
=

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.