com.davidbracewell.hermes.example.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-examples Show documentation
Show all versions of hermes-examples Show documentation
A Natural Language Processing framework for Java
- name: spookEvent
pattern: [ /^spook/ & $VERB] #Match the word spook when it's a verb
annotations:
- capture: "*" #Create an EVENT anntotation from what is captured in the pattern
type: EVENT
attributes: [TAG: SPOOK_EVENT]
relations:
- name: spookee #Create an EVENT_ROLE relation of type SPOOKEE between the captured text in pattern and its direct object
type: EVENT_ROLE
value: SPOOKEE
source:
relation: DEPENDENCY:dobj
annotation: PHRASE_CHUNK #We will expand the direct object to the phrase chunk level
constraint: $NOUN #and we only want phrase chunks that are nouns
target:
capture: "*"
- name: spooker #Create an EVENT_ROLE relation of type SPOOKER between the captured text in pattern and its subject
type: EVENT_ROLE
value: SPOOKER
source:
relation: DEPENDENCY:nsubj
annotation: PHRASE_CHUNK #We will expand the nsubj to the phrase chunk level
constraint: $NOUN #and we only want phrase chunks that are nouns
target:
capture: "*"