-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmaster.yml
43 lines (36 loc) · 1.03 KB
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
taxonomy:
- Relation:
- Contains
- Event:
- ArabidopsisEvent:
- Phosphorylation
- Entity:
- Family
- BioProcess
- TermOfInterest
vars:
entitywildcard: "[entity=/[BI].*/]+"
rules:
# - name: "arabidopsis-sentence"
# label: ArabidopsisEvent
# type: basic
# pattern: |
# [lemma=/arabid.*/]
- name: "arabadopsis-example"
label: ArabidopsisEvent
type: event
pattern: |
# interesting triggers: contains
trigger = [tag=/V.*/]
# assert the term of interest is present in this sentence
context: ^Context = (>>|<<)+ [lemma=/[Aa]rabid.*/] # NOTE: /(?i)arabid.*/ fails. Why?
subject: ^Entity = >nsubj [entity=/[BI].*/]+
#negation: ^NegationMarker = >neg
#object: ^Entity = >dobj [entity=/[BI].*/]+
- name: "phosphorylation-syntax-verb-1"
label: Phosphorylation
type: event
pattern: |
trigger = [tag=/V.*/ & lemma=/phosphorylat.*/]
theme: ^Entity = >dobj [entity=/[BI].*/]+
actor: ^Entity? = >nsubj [entity=/[BI].*/]+