org.clulab.assembly.grammars.tense_aspect.yml Maven / Gradle / Ivy
The newest version!
taxonomy: org/clulab/reach/biogrammar/taxonomy.yml
rules:
- name: aux
label: Aux
example: "has"
type: "token"
keep: "false"
pattern: |
[incoming=/^aux/]
# auxiliary-dependent
- name: past_aux
label: PastTense
example: "A was phosphorylated by B"
pattern: |
#trigger = [mention="Event" & tag=/^VB/ & !incoming=/^aux/]
trigger = [tag=/^VB/ & !incoming=/^aux/]
aux:Aux = /^aux/ [tag="VBD"]
- name: pres_aux
label: PresentTense
example: "A is phosphorylated by B"
pattern: |
#trigger = [mention="Event" & tag=/^VB/ & !incoming=/^aux/]
trigger = [tag=/^VB/ & !incoming=/^aux/]
aux:Aux = /^aux/ [tag="VBZ" | (tag="MD" & !lemma="will")]
- name: fut_aux
label: FutureTense
example: "A will phosphorylate B"
pattern: |
#trigger = [mention="Event" & tag=/^VB/ & !incoming=/^aux/]
trigger = [tag=/^VB/ & !incoming=/^aux/]
aux:Aux = aux [lemma="will" & tag="MD"]
- name: perf_aux
label: Perfective
example: "A has phosphorylated B"
pattern: |
#trigger = [mention="Event" & tag=/^VB/ & !incoming=/^aux/]
trigger = [tag=/^VB/ & !incoming=/^aux/]
aux:Aux = aux [lemma="have"]
- name: prog_aux
label: Progressive
example: "A is being phosphorylated by B"
pattern: |
#trigger = [mention="Event" & tag=/^VB/ & !incoming=/^aux/]
trigger = [tag=/^VB/ & !incoming=/^aux/]
aux:Aux = (?! /^aux/ [lemma="have"]) /aux(pass)?/ [tag="VBG"]
# matrix-verb
- name: past_matrix
label: PastTense
example: "A phosphorylated B"
type: "token"
pattern: |
#(? [mention="Event" & tag="VBD" & !outgoing=/^aux/ & !incoming=/^aux/])
(? [tag="VBD" & !outgoing=/^aux/ & !incoming=/^aux/])
- name: pres_matrix
label: PresentTense
example: "A phosphorylates B"
type: "token"
pattern: |
#(? [mention="Event" & tag="VBZ" & !outgoing=/^aux/ & !incoming=/^aux/])
(? [tag="VBZ" & !outgoing=/^aux/ & !incoming=/^aux/])
© 2015 - 2025 Weber Informatics LLC | Privacy Policy