CoreNLP (edu-ext/stanford/nlp: coref, kbp, lexparser, ner, pos-tagger, sentiment, srparser)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +5 -0
- CoreNLP/edu-ext/stanford/nlp/models/coref/neural/english-model-conll.ser.gz +3 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/coref-model.ser.gz +3 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/coref-word-counts +3 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/gazetteers/regexner_cased.tab +0 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/gazetteers/regexner_caseless.tab +3 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_alternate_names.rules +2 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_city_of_headquarters.rules +2 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_country_of_headquarters.rules +3 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_parents.rules +2 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_politicalSLASHreligious_affiliation.rules +1 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_shareholders.rules +6 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_stateorprovince_of_headquarters.rules +2 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_subsidiaries.rules +6 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_top_membersSLASHemployees.rules +26 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_age.rules +8 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_alternate_names.rules +2 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_cause_of_death.rules +6 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_charges.rules +4 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_children.rules +10 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_cities_of_residence.rules +14 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_city_of_birth.rules +6 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_city_of_death.rules +7 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_countries_of_residence.rules +24 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_country_of_birth.rules +10 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_country_of_death.rules +14 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_date_of_birth.rules +6 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_date_of_death.rules +6 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_employee_of.rules +68 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_origin.rules +1 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_other_family.rules +9 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_parents.rules +2 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_schools_attended.rules +8 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_siblings.rules +9 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_spouse.rules +29 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_stateorprovince_of_birth.rules +6 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_stateorprovince_of_death.rules +7 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_stateorprovinces_of_residence.rules +13 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_title.rules +8 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tac-re-kbp2015.ser.gz +3 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tac-re-lr.ser.gz +3 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/defs.rules +28 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/gpe_subsidiaries.rules +46 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_alternate_names.rules +26 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_city_of_headquarters.rules +123 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_country_of_headquarters.rules +123 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_date_dissolved.rules +52 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_date_founded.rules +10 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_dissolved.rules +62 -0
- CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_founded.rules +12 -0
.gitattributes
CHANGED
|
@@ -164,3 +164,8 @@ CoreNLP/stanford-corenlp-4.5.7/stanford-corenlp-4.5.7.jar filter=lfs diff=lfs me
|
|
| 164 |
CoreNLP/stanford-corenlp-4.5.7/StanfordDependenciesManual.pdf filter=lfs diff=lfs merge=lfs -text
|
| 165 |
CoreNLP/stanford-corenlp-4.5.7/xom-1.3.9-sources.jar filter=lfs diff=lfs merge=lfs -text
|
| 166 |
CoreNLP/stanford-corenlp-4.5.7/xom.jar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
CoreNLP/stanford-corenlp-4.5.7/StanfordDependenciesManual.pdf filter=lfs diff=lfs merge=lfs -text
|
| 165 |
CoreNLP/stanford-corenlp-4.5.7/xom-1.3.9-sources.jar filter=lfs diff=lfs merge=lfs -text
|
| 166 |
CoreNLP/stanford-corenlp-4.5.7/xom.jar filter=lfs diff=lfs merge=lfs -text
|
| 167 |
+
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/coref-word-counts filter=lfs diff=lfs merge=lfs -text
|
| 168 |
+
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/gazetteers/regexner_caseless.tab filter=lfs diff=lfs merge=lfs -text
|
| 169 |
+
CoreNLP/edu-ext/stanford/nlp/models/pos-tagger/english-bidirectional-distsim.tagger filter=lfs diff=lfs merge=lfs -text
|
| 170 |
+
CoreNLP/edu-ext/stanford/nlp/models/pos-tagger/english-caseless-left3words-distsim.tagger filter=lfs diff=lfs merge=lfs -text
|
| 171 |
+
CoreNLP/edu-ext/stanford/nlp/models/pos-tagger/english-left3words-distsim.tagger filter=lfs diff=lfs merge=lfs -text
|
CoreNLP/edu-ext/stanford/nlp/models/coref/neural/english-model-conll.ser.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a396e6e71411a3d31aa18bc90c8a6e974454c7b210af18ce75b71677d8fe15f
|
| 3 |
+
size 38184097
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/coref-model.ser.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf2c5c8cf89ed8c01e83c200bb2543ffea350a02a619fbf62e48e9884f982c69
|
| 3 |
+
size 3834781
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/coref-word-counts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a88a3ae4e7d818c89d6d50620a7345694cca2244ed2dd7786f718c8ee08f0c8
|
| 3 |
+
size 11468739
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/gazetteers/regexner_cased.tab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/gazetteers/regexner_caseless.tab
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e38b4b4e79bc79045b9d52fa080e019bf2b4374fe0cf01fcad2061bbaaae9909
|
| 3 |
+
size 18024128
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_alternate_names.rules
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# appos is a very finicky edge
|
| 2 |
+
#{ner:ORGANIZATION}=entity >/appos/ {ner:ORGANIZATION}=slot
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_city_of_headquarters.rules
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ner:/ORGANIZATION/}=entity >appos ( {} >/compound|flat|nn|amod/ {ner:/CITY|LOCATION/}=slot )
|
| 2 |
+
{ner:/ORGANIZATION/}=entity >/amod/ ({word:/based|registered|headquartered/} >/obl/ {ner:/CITY/}=slot)
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_country_of_headquarters.rules
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ner:/ORGANIZATION/}=entity >appos ( {} >/compound|flat|nn|amod/ {ner:/COUNTRY|LOCATION/}=slot )
|
| 2 |
+
{ner:/ORGANIZATION/}=entity >appos ( {} >/compound|flat|nn|amod/ {ner:/NATIONALITY|LOCATION/}=slot )
|
| 3 |
+
{ner:/ORGANIZATION/}=entity >/amod/ ({word:/based|registered|headquartered/} >/obl/ {ner:/COUNTRY|NATIONALITY/}=slot)
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_parents.rules
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ner:ORGANIZATION}=entity >/appos|conj.*/ ( {lemma:/parent|owner/} >/(nmod:|obl:|prep_)of/ {ner:ORGANIZATION}=slot )
|
| 2 |
+
{ner:ORGANIZATION}=entity >/amod/ ({word:/owned|backed|controlled/} >/obl/ {ner:ORGANIZATION}=slot)
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_politicalSLASHreligious_affiliation.rules
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{tag:/NN.?/} >/.subj.*/ {ner:ORGANIZATION}=entity >/appos|conj.*/ ( {tag:/NN.*/} >/amod|nn|compound|flat/ {ner:IDEOLOGY}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_shareholders.rules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{lemma:/(sell|transfer)/}=entity >nsubj {ner:ORGANIZATION}=entity >obj {lemma:share} >/(nmod:|obl:|prep_)to/ {ner:/(ORGANIZATION|LOCATION|CITY|STATE_OR_PROVINCE|COUNTRY)/}=slot
|
| 2 |
+
{lemma:/(purchase|buy|retain)/} >nsubj {ner:/(ORGANIZATION|CITY|STATE_OR_PROVINCE|COUNTRY|PERSON)/}=slot >obj {lemma:/(stake|share)/} >/(nmod|obl)*/ {ner:ORGANIZATION}=entity
|
| 3 |
+
{lemma:invest} >nsubj {ner:/(ORGANIZATION|CITY|STATE_OR_PROVINCE|COUNTRY|PERSON)/}=slot >obj {} >/(nmod|obl):in/ {ner:ORGANIZATION}=entity
|
| 4 |
+
{lemma:acquire} >nsubj {ner:/(ORGANIZATION|CITY|STATE_OR_PROVINCE|COUNTRY|PERSON)/}=slot >obj {} >/.*/ {ner:ORGANIZATION}=entity
|
| 5 |
+
{lemma:get} >nsubj {ner:/(ORGANIZATION|CITY|STATE_OR_PROVINCE|COUNTRY|PERSON)/}=slot >obj {lemma:stake} >/.*/ {ner:ORGANIZATION}=entity
|
| 6 |
+
{lemma:transfer} >nsubj {ner:/(ORGANIZATION|CITY|STATE_OR_PROVINCE|COUNTRY|PERSON)/}=slot >obj {lemma:stake} >/(nmod|obl):in/ {ner:ORGANIZATION}=entity
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_stateorprovince_of_headquarters.rules
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ner:/ORGANIZATION/}=entity >appos ( {} >/compound|flat|nn|amod/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot )
|
| 2 |
+
{ner:/ORGANIZATION/}=entity >/amod/ ({word:/based|registered|headquartered/} >/obl/ {ner:/STATE_OR_PROVINCE/}=slot)
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_subsidiaries.rules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{lemma:/buy|sell|acquire|own/} >/.subj.*/ {ner:ORGANIZATION}=entity >/(i?)obj/ {ner:ORGANIZATION}=slot
|
| 2 |
+
{lemma:/buy|sell|acquire|own/} >/.subj.*/ {ner:ORGANIZATION}=entity >/(i?)obj/ ( {} >/appos/ {ner:ORGANIZATION}=slot )
|
| 3 |
+
{lemma:/buy|sell|acquire|own/} >/.subj.*/ {ner:ORGANIZATION}=slot >/(prep_|nmod:|obl:)(by|to)/ {ner:ORGANIZATION}=entity
|
| 4 |
+
{lemma:/buy|sell|acquire|own/} >/.subj.*/ {ner:ORGANIZATION}=entity >/(i?)obj/ ( {lemma:/stake|interest|share/} >/(prep_|nmod:|obl:)in/ {ner:ORGANIZATION}=slot )
|
| 5 |
+
{ner:ORGANIZATION}=entity >/appos|conj.*/ ( {lemma:/part|subsidiary|unit|division|branch|wing/} >/(prep_|nmod:|obl:)of/ {ner:ORGANIZATION}=slot )
|
| 6 |
+
# {ner:ORGANIZATION}=slot >/nmod:poss/ {ner:ORGANIZATION}=entity
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/org_top_membersSLASHemployees.rules
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
macro TOPTITLE = lemma:/[eE]xecutive|[cC]hairman|[pP]resident|[cC]hief|[hH]ead|[gG]eneral|[cC][eE][oO]|[oO]fficer|[lL]eader|[vV]ice|[kK]ing|[pP]rince|[mM]anager|[mM]inister|[aA]dviser|[bB]oss|[cC]hair|[aA]mbassador|[sS]tar|[gG]overnor|[iI]nvestor|[rR]epresentative|[dD]ean|[cC]ommissioner|[cC]ommander|[mM]idfielder|[sS]peaker|[Rr]esearcher|[eE]ditor|[Cc]hancellor|[fF]ellow|[lL]eadership|[dD]iplomat|[aA]ssociate|[sS]triker|[pP]ilot|[cC]aptain|[bB]anker|[mM]ayor|[pP]remier|[pP]roducer|[aA]rchitect|[dD]esigner|[mM]ajor|[aA]dvisor|[pP]resident|[sS]enator|[sS]pecialist|[fF]aculty|[cC]hairwoman|[mM]ediator|[pP]rosecutor|[eE]ntrepreneur|[cC]reator|[sS]uperstar|[cC]ommentator|[pP]rincipal|[oO]perative|[bB]usinessman|[pP]eacekeeper|[iI]nvestigator|[cC]oordinator|[kK]night|[lL]awmaker|[jJ]ustice|[pP]ublisher|[pP]laymaker|[mM]oderator|[nN]egotiator|[Dd]irector|[Jj]ustice/
|
| 2 |
+
|
| 3 |
+
{ner:PERSON}=slot >/nn|compound|flat|amod|appos/ ( {${TOPTITLE}} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity )
|
| 4 |
+
{ner:PERSON}=slot >/nn|compound|flat|amod|appos/ ( {${TOPTITLE}} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity ) )
|
| 5 |
+
{${TOPTITLE}} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity >/appos/ {ner:PERSON}=slot
|
| 6 |
+
{${TOPTITLE}} >/(prep_|nmod:|obl:)(of|at)/ ( {ner:ORGANIZATION}=entity >/appos/ {ner:PERSON}=slot )
|
| 7 |
+
( {${TOPTITLE}} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity ) >/nsubj.*/ {ner:PERSON}=slot >cop {}
|
| 8 |
+
{tag:/VB.*/} >nsubj {ner:PERSON}=slot >/(prep_|nmod:|obl:)as/ ( {${TOPTITLE}} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity )
|
| 9 |
+
{}=slot >/acl:relcl/ ({tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)as/ ( {${TOPTITLE}} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity ) )
|
| 10 |
+
{${TOPTITLE}} >/nmod:poss/ {ner:ORGANIZATION}=entity >/appos/ {ner:PERSON}=slot
|
| 11 |
+
{ner:PERSON}=slot >appos ( {${TOPTITLE}} >/(nmod:|obl:)(poss|of|at)/ {ner:ORGANIZATION}=entity )
|
| 12 |
+
{${TOPTITLE}} >/(prep_|nmod:|obl:)(of|at|poss)/ {ner:ORGANIZATION}=entity >/nn|compound|flat|amod|appos/ {ner:PERSON}=slot
|
| 13 |
+
# Variants with things that aren't titles, but are good for employee relationships
|
| 14 |
+
{ner:PERSON}=slot >/nn|compound|flat|amod|appos/ ( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity )
|
| 15 |
+
{lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity >/nn|compound|flat|amod|appos/ {ner:PERSON}=slot
|
| 16 |
+
{lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity >/appos/ {ner:PERSON}=slot
|
| 17 |
+
{lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ ( {ner:ORGANIZATION}=entity >/appos/ {ner:PERSON}=slot )
|
| 18 |
+
( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity ) >/nsubj.*/ {ner:PERSON}=slot >cop {}
|
| 19 |
+
{tag:/VB.*/} >nsubj {ner:PERSON}=slot >/(prep_|nmod:|obl:)as/ ( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity )
|
| 20 |
+
{}=slot >/acl:relcl/ ({tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)as/ ( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=entity ) )
|
| 21 |
+
{ner:ORGANIZATION}=entity >/nmod:poss/ ( {lemma:/speaker|head|chief/} >/appos/ {ner:PERSON}=slot )
|
| 22 |
+
# SLOT's firm, ENTITY
|
| 23 |
+
{lemma:/firm|company|business|association|corporation|organization|society/} >/nmod:poss/ {ner:PERSON}=slot >/appos/ {ner:ORGANIZATION}=entity
|
| 24 |
+
# TITLE of ORG, ENTITY / ORG 's TITLE, ENTITY
|
| 25 |
+
{${TOPTITLE}} >/(prep_|nmod:|obl:)(of|poss)/ {ner:ORGANIZATION}=entity >/appos/ {ner:PERSON}=slot
|
| 26 |
+
{lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|poss)/ {ner:ORGANIZATION}=entity >/appos/ {ner:PERSON}=slot
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_age.rules
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Joe died of X
|
| 2 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(at)/ {ner:NUMBER}=slot
|
| 3 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(at)/ ( {lemma:/age/} >nummod {ner:NUMBER}=slot )
|
| 4 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(at)/ {ner:NUMBER}=slot)
|
| 5 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(at)/ ({lemma:/age/} >nummod {ner:NUMBER}=slot ))
|
| 6 |
+
# X, who rel Y
|
| 7 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(at)/ {ner:NUMBER}=slot)
|
| 8 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(at)/ {ner:NUMBER}=slot))
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_alternate_names.rules
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# appos is a very finicky edge
|
| 2 |
+
# {ner:PERSON}=entity >/appos/ {ner:PERSON}=slot
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_cause_of_death.rules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Joe died of X
|
| 2 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(of|from|after)/ {ner:CAUSE_OF_DEATH}=slot
|
| 3 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(of|from|after)/ {ner:CAUSE_OF_DEATH}=slot)
|
| 4 |
+
# X, who rel Y
|
| 5 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(of|from|after)/ {ner:CAUSE_OF_DEATH}=slot)
|
| 6 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(of|from|after)/ {ner:CAUSE_OF_DEATH}=slot))
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_charges.rules
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{lemma:/charge|convict|indict|accuse/} >nsubj {}=entity >/(prep_|nmod:|obl:)(of|with)/ {ner:/CRIMINAL_CHARGE/}=slot
|
| 2 |
+
{lemma:/charge|convict|indict|accuse/} >nsubj {}=entity >/(prep_|nmod:|obl:)(of|with)/ ( {ner:/CRIMINAL_CHARGE/} >/conj:and/ {ner:/CRIMINAL_CHARGE/}=slot )
|
| 3 |
+
{lemma:/plead/} >nsubj {}=entity >obj {} >/(prep_|nmod:|obl:)(of|to)/ {ner:/CRIMINAL_CHARGE/}
|
| 4 |
+
{lemma:/face/} >nsubj {}=entity >obj {ner:/CRIMINAL_CHARGE/}
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_children.rules
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# His son, Joe
|
| 2 |
+
# (Stanford dependencies; conj is fixing common parse errors)
|
| 3 |
+
{ner:PERSON}=entity >/poss/ ( {lemma:/son|daughter|child/} >/appos|conj.*/ {ner:PERSON}=slot )
|
| 4 |
+
# (Universal dependencies; conj is fixing common parse errors)
|
| 5 |
+
{lemma:/son|daughter|child/} >/nmod:poss/ {ner:PERSON}=entity >/appos|conj.*/ {ner:PERSON}=slot
|
| 6 |
+
{ner:PERSON}=entity >/poss/ ( {lemma:/son|daughter|child/} >/appos|conj.*/ {ner:PERSON}=slot )
|
| 7 |
+
# Among ENTITY's sons are SLOT.
|
| 8 |
+
{lemma:/be/} >/(prep_|nmod:|obl:).*/ ( {lemma:/son|daughter|child/} >/nmod:poss/ {ner:PERSON}=entity ) >/.subj/ {ner:PERSON}=slot
|
| 9 |
+
# SLOT, son of ENTITY
|
| 10 |
+
{ner:PERSON}=slot >/appos|conj.*/ ( {lemma:/son|daughter|child/} >/(prep_|nmod:|obl:)of/ {ner:PERSON}=entity )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_cities_of_residence.rules
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#John lives in Stanford
|
| 2 |
+
{lemma:/raise|live|reside|grow/;tag:/VB.*/} >/nsubj.*/ {}=entity [ >/(prep_|nmod:|obl:)in/ {ner:CITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:CITY}=slot ]
|
| 3 |
+
#John was born in Kansas but lives in Stanford
|
| 4 |
+
{} >/nsubj.*/ {}=entity >/conj.*/ ({lemma:/raise|live|reside|grow/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:CITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:CITY}=slot ] )
|
| 5 |
+
#John, who lives in Stanford, met me today.
|
| 6 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:CITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:CITY}=slot])
|
| 7 |
+
# X, who rel Y
|
| 8 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} >/nsubj.*/ {lemma:who} [ >/(prep_|nmod:|obl:)in/ {ner:CITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:CITY}=slot ])
|
| 9 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:who} >rcmod ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:CITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:CITY}=slot]))
|
| 10 |
+
# "John, of Stanford" -- consistently marked wrong by annotators?
|
| 11 |
+
{}=entity >/(prep_|nmod:|obl:)of/ {ner:CITY}=slot
|
| 12 |
+
#Canada-based John
|
| 13 |
+
{ner:PERSON}=entity >/amod/ ( {word:/based|raised/} >/obl/ {ner:/CITY/}=slot )
|
| 14 |
+
{ner:PERSON}=entity >/compound/ ( {ner:TITLE} >/compound/ {ner:/CITY/}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_city_of_birth.rules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#example: Obama was born in Hawaii.
|
| 2 |
+
{lemma:bear;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(at|in)/ {ner:/CITY|LOCATION/}=slot
|
| 3 |
+
# X, who rel Y
|
| 4 |
+
{}=entity >/acl:relcl/ ({lemma:bear;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(at|in)/ {ner:/CITY|LOCATION/}=slot)
|
| 5 |
+
#Canada-born John
|
| 6 |
+
{ner:PERSON}=entity >/amod/ ( {word:/born/} >/obl/ {ner:/CITY/}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_city_of_death.rules
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#example: Joe died in Hawaii.
|
| 2 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ {ner:/CITY|LOCATION/}=slot
|
| 3 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ ( {} >/compound|flat|nn|amod/ {ner:/CITY|LOCATION/}=slot )
|
| 4 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/CITY|LOCATION/}=slot)
|
| 5 |
+
# X, who rel Y
|
| 6 |
+
{}=entity >/acl:relcl/ ({lemma:die;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(in|at)/ {ner:/CITY|LOCATION/}=slot)
|
| 7 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/CITY|LOCATION/}=slot))
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_countries_of_residence.rules
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#John lives in Stanford
|
| 2 |
+
{lemma:/raise|live|reside|grow/;tag:/VB.*/} >/nsubj.*/ {}=entity [ >/(prep_|nmod:|obl:)in/ {ner:COUNTRY}=slot | >/(prep_|nmod:|obl:)at/ {ner:COUNTRY}=slot ]
|
| 3 |
+
#John was born in Kansas but lives in Stanford
|
| 4 |
+
{} >/nsubj.*/ {}=entity >/conj.*/ ({lemma:/raise|live|reside|grow/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:COUNTRY}=slot | >/(prep_|nmod:|obl:)at/ {ner:COUNTRY}=slot ] )
|
| 5 |
+
#John, who lives in Stanford, met me today.
|
| 6 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:COUNTRY}=slot | >/(prep_|nmod:|obl:)at/ {ner:COUNTRY}=slot])
|
| 7 |
+
# X, who rel Y
|
| 8 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} >/nsubj.*/ {lemma:who} [ >/(prep_|nmod:|obl:)in/ {ner:COUNTRY}=slot | >/(prep_|nmod:|obl:)at/ {ner:COUNTRY}=slot ])
|
| 9 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:who} >rcmod ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:COUNTRY}=slot | >/(prep_|nmod:|obl:)at/ {ner:COUNTRY}=slot]))
|
| 10 |
+
# "John, of Stanford" -- consistently marked wrong by annotators?
|
| 11 |
+
{}=entity >/(prep_|nmod:|obl:)of/ {ner:COUNTRY}=slot
|
| 12 |
+
#John lives in Stanford
|
| 13 |
+
{lemma:/raise|live|reside|grow/;tag:/VB.*/} >/nsubj.*/ {}=entity [ >/(prep_|nmod:|obl:)in/ {ner:NATIONALITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:NATIONALITY}=slot ]
|
| 14 |
+
#John was born in Kansas but lives in Stanford
|
| 15 |
+
{} >/nsubj.*/ {}=entity >/conj.*/ ({lemma:/raise|live|reside|grow/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:NATIONALITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:NATIONALITY}=slot ] )
|
| 16 |
+
#John, who lives in Stanford, met me today.
|
| 17 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:NATIONALITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:NATIONALITY}=slot])
|
| 18 |
+
# X, who rel Y
|
| 19 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} >/nsubj.*/ {lemma:who} [ >/(prep_|nmod:|obl:)in/ {ner:NATIONALITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:NATIONALITY}=slot ])
|
| 20 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:who} >rcmod ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:NATIONALITY}=slot | >/(prep_|nmod:|obl:)at/ {ner:NATIONALITY}=slot]))
|
| 21 |
+
# "John, of Stanford" -- consistently marked wrong by annotators?
|
| 22 |
+
{}=entity >/(prep_|nmod:|obl:)of/ {ner:NATIONALITY}=slot
|
| 23 |
+
#Canada-based John
|
| 24 |
+
{ner:PERSON}=entity >/amod/ ( {word:/based|raised/} >/obl/ {ner:/COUNTRY|NATIONALITY/}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_country_of_birth.rules
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#example: Obama was born in Hawaii.
|
| 2 |
+
{lemma:bear;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(at|in)/ {ner:/COUNTRY|LOCATION/}=slot
|
| 3 |
+
# X, who rel Y
|
| 4 |
+
{}=entity >/acl:relcl/ ({lemma:bear;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(at|in)/ {ner:/COUNTRY|LOCATION/}=slot)
|
| 5 |
+
#example: Obama was born in Hawaii.
|
| 6 |
+
{lemma:bear;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(at|in)/ {ner:/NATIONALITY|LOCATION/}=slot
|
| 7 |
+
# X, who rel Y
|
| 8 |
+
{}=entity >/acl:relcl/ ({lemma:bear;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(at|in)/ {ner:/NATIONALITY|LOCATION/}=slot)
|
| 9 |
+
#Canada-born John
|
| 10 |
+
{ner:PERSON}=entity >/amod/ ( {word:/born/} >/obl/ {ner:/COUNTRY|NATIONALITY/}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_country_of_death.rules
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#example: Joe died in Hawaii.
|
| 2 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ {ner:/COUNTRY|LOCATION/}=slot
|
| 3 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ ( {} >/compound|flat|nn|amod/ {ner:/COUNTRY|LOCATION/}=slot )
|
| 4 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/COUNTRY|LOCATION/}=slot)
|
| 5 |
+
# X, who rel Y
|
| 6 |
+
{}=entity >/acl:relcl/ ({lemma:die;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(in|at)/ {ner:/COUNTRY|LOCATION/}=slot)
|
| 7 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/COUNTRY|LOCATION/}=slot))
|
| 8 |
+
#example: Joe died in Hawaii.
|
| 9 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ {ner:/NATIONALITY|LOCATION/}=slot
|
| 10 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ ( {} >/compound|flat|nn|amod/ {ner:/NATIONALITY|LOCATION/}=slot )
|
| 11 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/NATIONALITY|LOCATION/}=slot)
|
| 12 |
+
# X, who rel Y
|
| 13 |
+
{}=entity >/acl:relcl/ ({lemma:die;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(in|at)/ {ner:/NATIONALITY|LOCATION/}=slot)
|
| 14 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/NATIONALITY|LOCATION/}=slot))
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_date_of_birth.rules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Joe died of X
|
| 2 |
+
{lemma:/bear/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot
|
| 3 |
+
{lemma:/bear/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot)
|
| 4 |
+
# X, who rel Y
|
| 5 |
+
{}=entity >/acl:relcl/ ({lemma:/bear/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot)
|
| 6 |
+
{}=entity >/acl:relcl/ ({lemma:/bear/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot))
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_date_of_death.rules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Joe died of X
|
| 2 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot
|
| 3 |
+
{lemma:/die/;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot)
|
| 4 |
+
# X, who rel Y
|
| 5 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot)
|
| 6 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(on|in)|(nmod:|obl:)tmod/ {ner:/DATE|TIME/}=slot))
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_employee_of.rules
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
macro JOB = lemma:/(p|P)resident|(E|e)x\-president|ceo|CEO|(S|s)tar|(P|p)rofessor|(o|O)rganizer|(m|M)anager|(c|C)oach|(E|e)mployee|(n|N)egotiator|(m|M)inister|(H|h)ead|(E|e)mployee|(S|s)enator|(G|g)overnor|(F|f)ounder|(C|c)o\-founder|(O|o)wner|(C|c)hancell?or|(V|v)ice-chancell?or|(M|m)ayor|(L|l)eader|(P|p)remier|(S|s)ecretary|(R|r)uler|[Mm]ember/
|
| 2 |
+
macro ORG = ner:/ORGANIZATION|LOCATION|COUNTRY|STATE_OR_PROVINCE|CITY|NATIONALITY/
|
| 3 |
+
macro EMPLOY = lemma:/(S|s)ign|(E|e)mploy|(E|e)elect|(R|r)e\-elect/
|
| 4 |
+
|
| 5 |
+
# Joe, CEO of IBM.
|
| 6 |
+
{}=entity >appos ( ({ner:/TITLE/} >/(nmod:|obl:|prep_)of/ {${ORG}}=slot) )
|
| 7 |
+
{}=entity >appos ( ({${JOB}} >/(nmod:|obl:|prep_)of/ {${ORG}}=slot) )
|
| 8 |
+
# ^ from Jason's: {}=entity >appos ({${JOB}} >/nn|compound|poss|amod|prep_from|(nmod:|obl:)from|prep_of|(nmod:|obl:)of|prep_at|(nmod:|obl:)at/ {${ORG}}=slot)S
|
| 9 |
+
|
| 10 |
+
# Joe is CEO of IBM.
|
| 11 |
+
{ner:/TITLE/} >nsubj {}=entity >cop {lemma:/be/} >/(prep_|nmod:|obl:)(of|at|from|for)/ {${ORG}}=slot
|
| 12 |
+
{${JOB}} >nsubj {}=entity >cop {lemma:/be/} >/(prep_|nmod:|obl:)(of|at|from|for)/ {${ORG}}=slot
|
| 13 |
+
# ^ from Jason's: {${JOB}} >nsubj {}=entity >cop {lemma:/be/} >>/prep_at|(nmod:|obl:)at|prep_of|(nmod:|obl:)of|prep_from|(nmod:|obl:)from/ {${ORG}}=slot
|
| 14 |
+
|
| 15 |
+
# Joe is working at IBM / Joe is working at IBM
|
| 16 |
+
{lemma:/work|write|play|consult|serve/} >nsubj {}=entity ?>cop {lemma:/be/} >/(prep_|nmod:|obl:)(at|for)/ {${ORG}}=slot
|
| 17 |
+
|
| 18 |
+
# Joe is a research scientist working at IBM
|
| 19 |
+
{ner:/TITLE/} >nsubj {}=entity ?>cop {lemma:/be/} >/acl/ ( {lemma:/work|write|play|consult/} >/(prep_|nmod:|obl:)(at|for)/ {${ORG}}=slot )
|
| 20 |
+
{${JOB}} >nsubj {}=entity ?>cop {lemma:/be/} >/acl/ ( {lemma:/work|write|play|consult/} >/(prep_|nmod:|obl:)(at|for)/ {${ORG}}=slot )
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
# Joe's company, IBM
|
| 24 |
+
{lemma:/company|firm|business|store|club|group|team|band/} >/nmod:poss/ {}=entity >appos {${ORG}}=slot
|
| 25 |
+
|
| 26 |
+
# Joe of IBM 's XYZ
|
| 27 |
+
{ner:PERSON}=entity >/(prep_|nmod:|obl:)of/ ( {} >/nmod:poss/ {${ORG}} )
|
| 28 |
+
|
| 29 |
+
##{}=entity >appos ({${JOB}} >/prep_from|prep_of|prep_at/ {${ORG}}=slot)
|
| 30 |
+
##too generic
|
| 31 |
+
#{}=entity >/nn|compound/ {${ORG}}=slot >/nn|compound/ {${JOB}}
|
| 32 |
+
##too generic
|
| 33 |
+
#{}=entity >dep ({${JOB}} >/prep_of|(nmod:|obl:)of|prep_from|(nmod:|obl:)from/ {${ORG}}=slot)
|
| 34 |
+
##too generic
|
| 35 |
+
#{}=entity >/amod|poss/ {${ORG}}=slot >/nn|compound/ {${JOB}}
|
| 36 |
+
#{}=entity >/abbrev/ {${ORG}}=slot
|
| 37 |
+
#{${JOB}} >poss {${ORG}}=slot >tmod {}=entity
|
| 38 |
+
##too generic
|
| 39 |
+
#{${JOB}} >/(prep_|nmod:|obl:)of/ ({}=entity >/nn|compound/ {${ORG}}=slot)
|
| 40 |
+
#{tag:/VB.*/} >dep ({${JOB}} >poss {${ORG}}=slot) >nsubj {}=entity
|
| 41 |
+
#{${EMPLOY}} >/nsubj:pass/ {}=entity >/prep_to|(nmod:|obl:)to|prep_by|(nmod:|obl:)by/ {${ORG}}=slot
|
| 42 |
+
#{${EMPLOY}} >nsubj {}=entity >/obj|prep_as|(nmod:|obl:)as/ ({${JOB}} >/(prep_|nmod:|obl:)of/ {${ORG}}=slot)
|
| 43 |
+
|
| 44 |
+
### COPIED FROM top_employees ###
|
| 45 |
+
{ner:PERSON}=entity >/nn|compound|flat|amod|appos/ ( {ner:TITLE} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot )
|
| 46 |
+
{ner:PERSON}=entity >/nn|compound|flat|amod|appos/ ( {ner:TITLE} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot ) )
|
| 47 |
+
{ner:TITLE} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot >/appos/ {ner:PERSON}=entity
|
| 48 |
+
{ner:TITLE} >/(prep_|nmod:|obl:)(of|at)/ ( {ner:ORGANIZATION}=slot >/appos/ {ner:PERSON}=entity )
|
| 49 |
+
( {ner:TITLE} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot ) >/nsubj.*/ {ner:PERSON}=entity >cop {}
|
| 50 |
+
{tag:/VB.*/} >nsubj {ner:PERSON}=entity >/(prep_|nmod:|obl:)as/ ( {ner:TITLE} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot )
|
| 51 |
+
{}=entity >/acl:relcl/ ({tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)as/ ( {ner:TITLE} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot ) )
|
| 52 |
+
{ner:TITLE} >/nmod:poss/ {ner:ORGANIZATION}=slot >/appos/ {ner:PERSON}=entity
|
| 53 |
+
{ner:PERSON}=entity >appos ( {ner:TITLE} >/(nmod:|obl:)(poss|of|at)/ {ner:ORGANIZATION}=slot )
|
| 54 |
+
{ner:TITLE} >/(prep_|nmod:|obl:)(of|at|poss)/ {ner:ORGANIZATION}=slot >/nn|compound|flat|amod|appos/ {ner:PERSON}=entity
|
| 55 |
+
# Variants with things that aren't titles, but are good for employee relationships
|
| 56 |
+
{ner:PERSON}=entity >/nn|compound|flat|amod|appos/ ( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot )
|
| 57 |
+
{lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot >/appos/ {ner:PERSON}=entity
|
| 58 |
+
{lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ ( {ner:ORGANIZATION}=slot >/appos/ {ner:PERSON}=entity )
|
| 59 |
+
( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot ) >/nsubj.*/ {ner:PERSON}=entity >cop {}
|
| 60 |
+
{tag:/VB.*/} >nsubj {ner:PERSON}=entity >/(prep_|nmod:|obl:)as/ ( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot )
|
| 61 |
+
{}=entity >/acl:relcl/ ({tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)as/ ( {lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|at)/ {ner:ORGANIZATION}=slot ) )
|
| 62 |
+
{ner:ORGANIZATION}=slot >/nmod:poss/ ( {lemma:/speaker|head|chief/} >/appos/ {ner:PERSON}=entity )
|
| 63 |
+
# entity's firm, slot
|
| 64 |
+
{lemma:/firm|company|business|association|corporation|organization|society/} >/nmod:poss/ {ner:PERSON}=entity >/appos/ {ner:ORGANIZATION}=slot
|
| 65 |
+
# TITLE of ORG, slot / ORG 's TITLE, slot
|
| 66 |
+
{ner:TITLE} >/(prep_|nmod:|obl:)(of|poss)/ {ner:ORGANIZATION}=slot >/appos/ {ner:PERSON}=entity
|
| 67 |
+
{lemma:/speaker|head|chief/} >/(prep_|nmod:|obl:)(of|poss)/ {ner:ORGANIZATION}=slot >/appos/ {ner:PERSON}=entity
|
| 68 |
+
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_origin.rules
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{ner:PERSON}=entity >/appos/ ( {ner:TITLE} >/amod|nn|compound|flat/ {ner:NATIONALITY}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_other_family.rules
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# His family, Joe
|
| 2 |
+
# (Stanford dependencies; conj is fixing common parse errors)
|
| 3 |
+
{ner:PERSON}=entity >/poss/ ( {lemma:/grandson|granddaughter|uncle|aunt|cousin|niece|nephew/} >/appos|conj.*/ {ner:PERSON}=slot )
|
| 4 |
+
# (Universal dependencies; conj is fixing common parse errors)
|
| 5 |
+
{lemma:/grandson|granddaughter|uncle|aunt|cousin|niece|nephew/} >/nmod:poss/ {ner:PERSON}=entity >/appos|conj.*/ {ner:PERSON}=slot
|
| 6 |
+
# Among ENTITY's sons are SLOT.
|
| 7 |
+
{lemma:/be/} >/(prep_|nmod:|obl:).*/ ( {lemma:/grandson|granddaughter|uncle|aunt|cousin|niece|nephew/} >/nmod:poss/ {ner:PERSON}=entity ) >/.subj/ {ner:PERSON}=slot
|
| 8 |
+
# SLOT, son of ENTITY
|
| 9 |
+
{ner:PERSON}=slot >/appos|conj.*/ ( {lemma:/grandson|granddaughter|uncle|aunt|cousin|niece|nephew/} >/(prep_|nmod:|obl:)of/ {ner:PERSON}=entity )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_parents.rules
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{lemma: /\Qdaughter\E/}=null >nsubj=E1 {}=entity >/(prep_|nmod:|obl:)of/=E2 {}=slot
|
| 2 |
+
{}=entity >/acl:relcl/ ({lemma: /\Qdaughter\E/}=null >nsubj=E1 {lemma:who} >/(prep_|nmod:|obl:)of/=E2 {}=slot)
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_schools_attended.rules
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PER recieved his degree from SCHOOL
|
| 2 |
+
{lemma:/receive|earn/} >nsubj {ner:PERSON}=entity >obj {lemma:/diploma|degree|doctorate|master|bachelor|PhD/} >/(prep_|nmod:|obl:)(from|at)/ {ner:ORGANIZATION}=slot
|
| 3 |
+
# PER graduated from SCHOOL
|
| 4 |
+
{lemma:/graduate|enroll/} >nsubj {ner:PERSON}=entity >/(prep_|nmod:|obl:)(from|at)/ {ner:ORGANIZATION}=slot
|
| 5 |
+
# PER attend SCHOOL
|
| 6 |
+
{lemma:attend} >nsubj {ner:PERSON}=entity >obj {ner:ORGANIZATION}=slot
|
| 7 |
+
#SCHOOL-educated PER
|
| 8 |
+
{ner:PERSON}=entity >/amod/ ( {word:/educated|trained/} >/obl/ {ner:/ORGANIZATION/}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_siblings.rules
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# His brother, Joe
|
| 2 |
+
# (Stanford dependencies; conj is fixing common parse errors)
|
| 3 |
+
{ner:PERSON}=entity >/poss/ ( {lemma:/brother|sister/} >/appos|conj.*/ {ner:PERSON}=slot )
|
| 4 |
+
# (Universal dependencies; conj is fixing common parse errors)
|
| 5 |
+
{lemma:/brother|sister/} >/nmod:poss/ {ner:PERSON}=entity >/appos|conj.*/ {ner:PERSON}=slot
|
| 6 |
+
# Among ENTITY's sons are SLOT.
|
| 7 |
+
{lemma:/be/} >/(prep_|nmod:|obl:).*/ ( {lemma:/brother|sister/} >/nmod:poss/ {ner:PERSON}=entity ) >/.subj/ {ner:PERSON}=slot
|
| 8 |
+
# SLOT, son of ENTITY
|
| 9 |
+
{ner:PERSON}=slot >/appos|conj.*/ ( {lemma:/brother|sister/} >/(prep_|nmod:|obl:)of/ {ner:PERSON}=entity )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_spouse.rules
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#Obama married Michelle
|
| 2 |
+
{lemma:/marry|wed/;tag:/VB.*/} >nsubj {ner:PERSON}=entity >obj {ner:PERSON}=slot
|
| 3 |
+
#Obama is married to Michelle.
|
| 4 |
+
{lemma:/marry|wed/;tag:/VB.*/} >/nsubj:pass/ {}=entity >/(prep_|nmod:|obl:)to/ {ner:PERSON}=slot
|
| 5 |
+
{}=entity >/acl:relcl/ ({lemma:/marry|wed/;tag:/VB.*/} >/nsubj:pass/ {lemma:who} >/(prep_|nmod:|obl:)to/ {ner:PERSON}=slot)
|
| 6 |
+
#Michelle is married to Obama.
|
| 7 |
+
{lemma:/marry|wed/;tag:/VB.*/} >/nsubj:pass/ {ner:PERSON}=slot >/(prep_|nmod:|obl:)to/ {}=entity
|
| 8 |
+
{}=entity >/acl:relcl/ ({lemma:/marry|wed/;tag:/VB.*/} >/nsubj:pass/ {ner:PERSON}=slot >/(prep_|nmod:|obl:)to/ {lemma:who})
|
| 9 |
+
#John married Laura in July. (removed tag:/V.*/ since sometimes POS tagging is incorrect and cannot tag "marry" right!)
|
| 10 |
+
{lemma:/marry|wed/} >nsubj {}=entity >obj {ner:PERSON}=slot
|
| 11 |
+
{}=entity >/acl:relcl/ ({lemma:/marry|wed/} >nsubj {lemma:who} >obj {ner:PERSON}=slot)
|
| 12 |
+
#Laura is marrying John in July
|
| 13 |
+
{lemma:/marry|wed/} >nsubj {ner:PERSON}=slot >obj {}=entity
|
| 14 |
+
{}=entity >/acl:relcl/ ({lemma:/marry|wed/} >nsubj {ner:PERSON}=slot >obj {lemma:who})
|
| 15 |
+
#Michelle, who is married to Obama, ...
|
| 16 |
+
{ner:PERSON}=entity >/rcmod|acl:relcl/ ( {lemma:/marry|wed/} >/(prep_|nmod:|obl:)to/ {ner:PERSON}=slot)
|
| 17 |
+
#Michelle, who is married to Obama, ...
|
| 18 |
+
{ner:PERSON}=slot >/rcmod|acl:relcl/ ( {lemma:/marry|wed/} >/(prep_|nmod:|obl:)to/ {ner:PERSON}=entity )
|
| 19 |
+
#John, the husband of Judy, ...
|
| 20 |
+
{ner:PERSON}=entity >appos ( {word:/wife|husband|spouse/} >/(prep_|nmod:|obl:)of/ {ner:PERSON}=slot )
|
| 21 |
+
#Judy, the wife of John, ...
|
| 22 |
+
{ner:PERSON}=slot >appos ( {word:/wife|husband|spouse/} >/(prep_|nmod:|obl:)of/ {ner:PERSON}=entity)
|
| 23 |
+
#John tied knot with Judy in July.
|
| 24 |
+
{word:tied} >nsubj {ner:PERSON}=entity >obj {word:knot} >/(prep_|nmod:|obl:)with/ {ner:PERSON}=slot
|
| 25 |
+
{}=entity >/acl:relcl/ ({word:tied} >nsubj {lemma:who} >obj {word:knot} >/(prep_|nmod:|obl:)with/ {ner:PERSON}=slot)
|
| 26 |
+
#Judy tied knot with John in July.
|
| 27 |
+
{word:tied} >nsubj {ner:PERSON}=slot >obj {word:knot} >/(prep_|nmod:|obl:)with/ {ner:PERSON}=entity
|
| 28 |
+
# His wife, Michelle
|
| 29 |
+
{ner:PERSON}=entity >/nmod:poss/ ( {lemma:/wife|husband|spouse/} >appos {ner:PERSON}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_stateorprovince_of_birth.rules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#example: Obama was born in Hawaii.
|
| 2 |
+
{lemma:bear;tag:/VB.*/} >nsubj {}=entity >/(prep_|nmod:|obl:)(at|in)/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot
|
| 3 |
+
# X, who rel Y
|
| 4 |
+
{}=entity >/acl:relcl/ ({lemma:bear;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(at|in)/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot)
|
| 5 |
+
#Canada-born John
|
| 6 |
+
{ner:PERSON}=entity >/amod/ ( {word:/born/} >/obl/ {ner:/STATE_OR_PROVINCE/}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_stateorprovince_of_death.rules
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#example: Joe died in Hawaii.
|
| 2 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot
|
| 3 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:)(in|at)/ ( {} >/compound|flat|nn|amod/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot )
|
| 4 |
+
{lemma:die} >nsubj {}=entity >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot)
|
| 5 |
+
# X, who rel Y
|
| 6 |
+
{}=entity >/acl:relcl/ ({lemma:die;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)(in|at)/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot)
|
| 7 |
+
{}=entity >/acl:relcl/ ({lemma:/die/;tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:).*/ ({} >/(prep_|nmod:|obl:)(in|at)/ {ner:/STATE_OR_PROVINCE|LOCATION/}=slot))
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_stateorprovinces_of_residence.rules
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#John lives in Stanford
|
| 2 |
+
{lemma:/raise|live|reside|grow/;tag:/VB.*/} >/nsubj.*/ {}=entity [ >/(prep_|nmod:|obl:)in/ {ner:STATE_OR_PROVINCE}=slot | >/(prep_|nmod:|obl:)at/ {ner:STATE_OR_PROVINCE}=slot ]
|
| 3 |
+
#John was born in Kansas but lives in Stanford
|
| 4 |
+
{} >/nsubj.*/ {}=entity >/conj.*/ ({lemma:/raise|live|reside|grow/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:STATE_OR_PROVINCE}=slot | >/(prep_|nmod:|obl:)at/ {ner:STATE_OR_PROVINCE}=slot ] )
|
| 5 |
+
#John, who lives in Stanford, met me today.
|
| 6 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:STATE_OR_PROVINCE}=slot | >/(prep_|nmod:|obl:)at/ {ner:STATE_OR_PROVINCE}=slot])
|
| 7 |
+
# X, who rel Y
|
| 8 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:/raise|live|reside/;tag:/VB.*/} >/nsubj.*/ {lemma:who} [ >/(prep_|nmod:|obl:)in/ {ner:STATE_OR_PROVINCE}=slot | >/(prep_|nmod:|obl:)at/ {ner:STATE_OR_PROVINCE}=slot ])
|
| 9 |
+
{}=entity >/rcmod|acl:relcl/ ({lemma:who} >rcmod ({lemma:/raise|live|reside/;tag:/VB.*/} [ >/(prep_|nmod:|obl:)in/ {ner:STATE_OR_PROVINCE}=slot | >/(prep_|nmod:|obl:)at/ {ner:STATE_OR_PROVINCE}=slot]))
|
| 10 |
+
# "John, of Stanford" -- consistently marked wrong by annotators?
|
| 11 |
+
{}=entity >/(prep_|nmod:|obl:)of/ {ner:STATE_OR_PROVINCE}=slot
|
| 12 |
+
#Canada-based John
|
| 13 |
+
{ner:PERSON}=entity >/amod/ ( {word:/based|raised/} >/obl/ {ner:/STATE_OR_PROVINCE/}=slot )
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/semgrex/per_title.rules
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ner:PERSON}=entity >/nn|compound|flat|amod|appos/ {ner:TITLE}=slot
|
| 2 |
+
{ner:PERSON}=entity >/nn|compound|flat|amod|appos/ ( {ner:TITLE} >/conj.*/ {ner:TITLE}=slot )
|
| 3 |
+
{ner:TITLE}=slot >/appos/ {ner:PERSON}=entity
|
| 4 |
+
{ner:TITLE}=slot >/nsubj.*/ {ner:PERSON}=entity >cop {}
|
| 5 |
+
{tag:/VB.*/} >nsubj {ner:PERSON}=entity >/(prep_|nmod:|obl:)as/ {ner:TITLE}=slot
|
| 6 |
+
{}=entity >/acl:relcl/ ({tag:/VB.*/} >nsubj {lemma:who} >/(prep_|nmod:|obl:)as/ {ner:TITLE}=slot)
|
| 7 |
+
# As a TITLE, PERSON VERB'd
|
| 8 |
+
{tag:/VB.?|NN.?/} >nsubj {ner:PERSON}=entity >/(prep_|nmod:|obl:)as/ {ner:TITLE}=slot
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tac-re-kbp2015.ser.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1bc9897375bffb2c5360c7eca8878fe5b3f6b92c162a564e28cf0429b8220b3b
|
| 3 |
+
size 18821711
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tac-re-lr.ser.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fb0dbe474dba8f31a78301d195bcb2cf2d143ba0ab0796fed056d5a4b23bde2
|
| 3 |
+
size 16470629
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/defs.rules
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Case insensitive pattern matching (see java.util.regex.Pattern flags)
|
| 2 |
+
ner = { type: "CLASS", value: "edu.stanford.nlp.ling.CoreAnnotations$NamedEntityTagAnnotation" }
|
| 3 |
+
pos = { type: "CLASS", value: "edu.stanford.nlp.ling.CoreAnnotations$PartOfSpeechAnnotation" }
|
| 4 |
+
lemma = { type: "CLASS", value: "edu.stanford.nlp.ling.CoreAnnotations$LemmaAnnotation" }
|
| 5 |
+
tokens = { type: "CLASS", value: "edu.stanford.nlp.ling.CoreAnnotations$TokensAnnotation" }
|
| 6 |
+
kbpentity = { type: "CLASS", value: "edu.stanford.nlp.ie.KBPTokensregexExtractor$Subject" }
|
| 7 |
+
slotvalue = { type: "CLASS", value: "edu.stanford.nlp.ie.KBPTokensregexExtractor$Object" }
|
| 8 |
+
|
| 9 |
+
$ENTITY = ([ { kbpentity:true } ]+ )
|
| 10 |
+
$ENTITY_PER = ( [ { kbpentity::EXISTS } & { ner:/.*PERSON.*/ } ]+ )
|
| 11 |
+
$ENTITY_ORG = ( [ { kbpentity::EXISTS } & { ner:/.*ORGANIZATION.*/ } ]+ )
|
| 12 |
+
$SLOT_VALUE = ([ { slotvalue:true } ]+ )
|
| 13 |
+
$SLOT_VALUE_NATIONALITY = ([ { slotvalue:true; ner:"NATIONALITY" } ]+ )
|
| 14 |
+
$SLOT_VALUE_ORG = ([ { slotvalue:true; ner:"ORGANIZATION" } ]+ )
|
| 15 |
+
|
| 16 |
+
$ORG = ( [ { ner:"ORGANIZATION" } ] )
|
| 17 |
+
$PERSON = ( [ { ner:"PERSON" } ] )
|
| 18 |
+
$DATE = ( [ { ner:"DATE" } ] )
|
| 19 |
+
|
| 20 |
+
$CAPITALIZED = ( [ { kbpentity::NOT_EXISTS } & {word:/[A-Z][a-z]+/} ] )
|
| 21 |
+
$URL = ( [ { slotvalue::EXISTS } & ( { ner:"URL" } | { word:/(([A-Za-z]{3,9}:(?:\\?\/\\?\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\\?\/[\+~%\\?\/.\w_-]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\\?\/\\w]*))?/ } ) ] )
|
| 22 |
+
#$URL = ( [ { slotvalue::EXISTS } & ( { ner:"URL" } ) ] )
|
| 23 |
+
$AGE = ( [ { slotvalue::EXISTS } & { word:/[0-9]{1,2}(-[Yy]ears?-[Oo]ld)?/ } ] )
|
| 24 |
+
$CRIMINAL_CHARGE = ( [ { slotvalue::EXISTS } & { ner:/.*CRIMINAL_CHARGE.*/ } ]+ )
|
| 25 |
+
$TITLE = ( [ { slotvalue::EXISTS } & { ner:/.*TITLE.*/ } ]+ )
|
| 26 |
+
$TOP_TITLE = ( [ { lemma:/[eE]xecutive|[cC]hairman|[pP]resident|[cC]hief|[hH]ead|[gG]eneral|[cC][eE][oO]|[oO]fficer|[lL]eader|[vV]ice|[kK]ing|[pP]rince|[mM]anager|[mM]inister|[aA]dviser|[bB]oss|[cC]hair|[aA]mbassador|[sS]tar|[gG]overnor|[iI]nvestor|[rR]epresentative|[dD]ean|[cC]ommissioner|[cC]ommander|[mM]idfielder|[sS]peaker|[Rr]esearcher|[eE]ditor|[Cc]hancellor|[fF]ellow|[lL]eadership|[dD]iplomat|[aA]ssociate|[sS]triker|[pP]ilot|[cC]aptain|[bB]anker|[mM]ayor|[pP]remier|[pP]roducer|[aA]rchitect|[dD]esigner|[mM]ajor|[aA]dvisor|[pP]resident|[sS]enator|[sS]pecialist|[fF]aculty|[cC]hairwoman|[mM]ediator|[pP]rosecutor|[eE]ntrepreneur|[cC]reator|[sS]uperstar|[cC]ommentator|[pP]rincipal|[oO]perative|[bB]usinessman|[pP]eacekeeper|[iI]nvestigator|[cC]oordinator|[kK]night|[lL]awmaker|[jJ]ustice|[pP]ublisher|[pP]laymaker|[mM]oderator|[nN]egotiator|[Dd]irector|[Jj]ustice/ } ] )
|
| 27 |
+
|
| 28 |
+
ENV.defaults.weight = 1.0
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/gpe_subsidiaries.rules
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ /[Ss]chool|[Dd]epartment|[Oo]ffice|[Ii]nstitute|[Cc]enter|[Dd]ivision]/ /of|for/ $SLOT_VALUE ) }
|
| 2 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ [ { slotvalue:true; lemma:/[mM]inistry|[dD]epartment/; ner:"ORGANIZATION" } ] /of|for/ [ { slotvalue:true; ner:"ORGANIZATION" } ]+ )}
|
| 3 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ $SLOT_VALUE ) }
|
| 4 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /[Ss]chool|[Dd]epartment|[Oo]ffice|[Ii]nstitute|[Cc]enter|[Dd]ivision]/ /of|for/ $SLOT_VALUE ) }
|
| 5 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ $SLOT_VALUE /[Ss]chool|[Dd]epartment|[Oo]ffice|[Ii]nstitute|[Cc]enter|[Dd]ivision/ ) }
|
| 6 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY $SLOT_VALUE /[Ss]chool|[Dd]epartment|[Oo]ffice|[Ii]nstitute|[Cc]enter|[Dd]ivision/ ) }
|
| 7 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE []{0,3} /a/ /subsidiary/ /of/ $ENTITY ) }
|
| 8 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ /subsidiary/ /,|:/ $SLOT_VALUE ) }
|
| 9 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE /[Ss]chool|[Dd]epartment|[Oo]ffice|[Ii]nstitute|[Cc]enter|[Dd]ivision]/ /at/ /the/ $ENTITY ) }
|
| 10 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE /[Ss]chool|[Dd]epartment|[Oo]ffice|[Ii]nstitute|[Cc]enter|[Dd]ivision]/ /at/ $ENTITY ) }
|
| 11 |
+
//
|
| 12 |
+
//// From Ce's rules
|
| 13 |
+
//{ result:"gpe:subsidiaries", pattern: ( $ENTITY [{lemma:/'s|’s/}] [{lemma:/subsidiary/}] $SLOT_VALUE ), weight: 0.541667}
|
| 14 |
+
//{ result:"gpe:subsidiaries", pattern: ( $ENTITY [{lemma:/subsidiary/}] $SLOT_VALUE ), weight: 0.541667}
|
| 15 |
+
//{ result:"gpe:subsidiaries", pattern: ( $SLOT_VALUE [{lemma:/'s|’s/}] [{lemma:/corporate/}] $ENTITY ), weight: 0.714286}
|
| 16 |
+
//{ result:"gpe:subsidiaries", pattern: ( $SLOT_VALUE [{lemma:/be/}] [{lemma:/a/}] [{lemma:/subsidiary/}] [{lemma:/of/}] $ENTITY ), weight: 0.541667}
|
| 17 |
+
////Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 18 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "," "a" "subsidiary" "of" $ENTITY ) }
|
| 19 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "a" "subsidiary" "of" $ENTITY ) }
|
| 20 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "as" "a" "subsidiary" "of" $ENTITY ) }
|
| 21 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "operates" "as" "a" "subsidiary" "of" $ENTITY ) }
|
| 22 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "," "a" "branch" "of" $ENTITY ) }
|
| 23 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "a" "branch" "of" $ENTITY ) }
|
| 24 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "as" "a" "branch" "of" $ENTITY ) }
|
| 25 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "," "a" "regional" "branch" "of" $ENTITY ) }
|
| 26 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "a" "regional" "branch" "of" $ENTITY ) }
|
| 27 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "as" "a" "regional" "branch" "of" $ENTITY ) }
|
| 28 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "," "owned" "by" $ENTITY ) }
|
| 29 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "owned" "by" $ENTITY ) }
|
| 30 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY "owns" $SLOT_VALUE ) }
|
| 31 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY "owned" $SLOT_VALUE ) }
|
| 32 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "belongs" "to" $ENTITY ) }
|
| 33 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "," "belonging" "to" $ENTITY ) }
|
| 34 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ $SLOT_VALUE "subsidiary" ) }
|
| 35 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ "subsidiary" $SLOT_VALUE ) }
|
| 36 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ "unit" $SLOT_VALUE ) }
|
| 37 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ "arm" $SLOT_VALUE ) }
|
| 38 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ []{0,4} "subsidiary" $SLOT_VALUE ) }
|
| 39 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ []{0,4} "branch" $SLOT_VALUE ) }
|
| 40 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ []{0,4} "unit" $SLOT_VALUE ) }
|
| 41 |
+
//{ result: "gpe:subsidiaries", pattern: ( $ENTITY /'s|’s/ []{0,4} "arm" $SLOT_VALUE ) }
|
| 42 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "subsidiary" "of" $ENTITY ) }
|
| 43 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "the" []{0,4} "arm" "of" $ENTITY ) }
|
| 44 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "the" []{0,4} "unit" "of" $ENTITY ) }
|
| 45 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "the" []{0,4} "branch" "of" $ENTITY ) }
|
| 46 |
+
//{ result: "gpe:subsidiaries", pattern: ( $SLOT_VALUE "is" "the" []{0,4} "subsidiary" "of" $ENTITY ) }
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_alternate_names.rules
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "(" $SLOT_VALUE ")" ) }
|
| 2 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "(" "aka" $SLOT_VALUE ")" ) }
|
| 3 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "(" "or" $SLOT_VALUE ")" ) }
|
| 4 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "aka" $SLOT_VALUE "," ) }
|
| 5 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "or" $SLOT_VALUE "," ) }
|
| 6 |
+
//Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 7 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "formerly" "known" "as" $SLOT_VALUE ) }
|
| 8 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "aka" $SLOT_VALUE ) }
|
| 9 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "a.k.a." $SLOT_VALUE ) }
|
| 10 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "is" "also" "known" "as" $SLOT_VALUE ) }
|
| 11 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "is" "known" "as" $SLOT_VALUE ) }
|
| 12 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "also" "known" "as" $SLOT_VALUE ) }
|
| 13 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "better" "known" "as" $SLOT_VALUE ) }
|
| 14 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "best" "known" "as" $SLOT_VALUE ) }
|
| 15 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "(" "also" "known" "as" $SLOT_VALUE ")" ) }
|
| 16 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "(" "better" "known" "as" $SLOT_VALUE ")" ) }
|
| 17 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "formerly" "known" "as" "``" $SLOT_VALUE ) }
|
| 18 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "aka" "``" $SLOT_VALUE ) }
|
| 19 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "a.k.a." "``" $SLOT_VALUE ) }
|
| 20 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "is" "also" "known" "as" "``" $SLOT_VALUE ) }
|
| 21 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "is" "known" "as" "``" $SLOT_VALUE ) }
|
| 22 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "also" "known" "as" "``" $SLOT_VALUE ) }
|
| 23 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "better" "known" "as" "``" $SLOT_VALUE ) }
|
| 24 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "," "best" "known" "as" "``" $SLOT_VALUE ) }
|
| 25 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "(" "also" "known" "as" "``" $SLOT_VALUE "''" ")" ) }
|
| 26 |
+
{ result: "org:alternate_names", pattern: ( $ENTITY "(" "better" "known" "as" "``" $SLOT_VALUE "''" ")" ) }
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_city_of_headquarters.rules
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE $ENTITY ) }
|
| 2 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE /'s|’s/ $ENTITY ) }
|
| 3 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "of" $ENTITY ) }
|
| 4 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{pos:/NN./}]+ $ENTITY ) }
|
| 5 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" [{lemma:/a|the/}] $SLOT_VALUE [{tag:/JJ|NN./}] ) }
|
| 6 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," [{lemma:/a|the/}] $SLOT_VALUE [{tag:/JJ|NN./}] ) }
|
| 7 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{tag:/JJ|NN./}]+ $ENTITY ) }
|
| 8 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE $ENTITY ) }
|
| 9 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," /a|the/ $SLOT_VALUE [{tag:/NN./}] ) }
|
| 10 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," /a|the/ $SLOT_VALUE ) }
|
| 11 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "in" $SLOT_VALUE ) }
|
| 12 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{tag:/NN.?/}] $ENTITY ) }
|
| 13 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{tag:/NN.?/}] [{tag:/NN.?/}] $ENTITY ) }
|
| 14 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE /-/ /area/ $ENTITY) }
|
| 15 |
+
|
| 16 |
+
//Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 17 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "in" $SLOT_VALUE ) }
|
| 18 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "in" $SLOT_VALUE ) }
|
| 19 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "in" $SLOT_VALUE ) }
|
| 20 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "in" $SLOT_VALUE ) }
|
| 21 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "in" $SLOT_VALUE ) }
|
| 22 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "in" $SLOT_VALUE ) }
|
| 23 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "is" "in" $SLOT_VALUE ) }
|
| 24 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "is" "in" $SLOT_VALUE ) }
|
| 25 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "is" "in" $SLOT_VALUE ) }
|
| 26 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "is" "in" $SLOT_VALUE ) }
|
| 27 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "are" "in" $SLOT_VALUE ) }
|
| 28 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "are" "in" $SLOT_VALUE ) }
|
| 29 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 30 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 31 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 32 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 33 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "are" "in" $SLOT_VALUE ) }
|
| 34 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "are" "in" $SLOT_VALUE ) }
|
| 35 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 36 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 37 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 38 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 39 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 40 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 41 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "headquartered" "in" $SLOT_VALUE ) }
|
| 42 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" $SLOT_VALUE ) }
|
| 43 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "located" "in" $SLOT_VALUE ) }
|
| 44 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "headquartered" "in" $SLOT_VALUE ) }
|
| 45 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" $SLOT_VALUE ) }
|
| 46 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "located" "in" $SLOT_VALUE ) }
|
| 47 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "headquartered" "in" $SLOT_VALUE ) }
|
| 48 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "based" "in" $SLOT_VALUE ) }
|
| 49 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "located" "in" $SLOT_VALUE ) }
|
| 50 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "complex" "of" $ENTITY ) }
|
| 51 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "campus" "of" $ENTITY ) }
|
| 52 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "head" "office" "of" $ENTITY ) }
|
| 53 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "office" "of" $ENTITY ) }
|
| 54 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "offices" "of" $ENTITY ) }
|
| 55 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "headquarters" "of" $ENTITY ) }
|
| 56 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "campus" "in" $SLOT_VALUE ) }
|
| 57 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "head" "office" "in" $SLOT_VALUE ) }
|
| 58 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "office" "in" $SLOT_VALUE ) }
|
| 59 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "offices" "in" $SLOT_VALUE ) }
|
| 60 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "headquarters" "in" $SLOT_VALUE ) }
|
| 61 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" $SLOT_VALUE "-" "based" ) }
|
| 62 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" $SLOT_VALUE "based" ) }
|
| 63 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" $SLOT_VALUE "-" "based" ) }
|
| 64 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" $SLOT_VALUE "based" ) }
|
| 65 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" $SLOT_VALUE "-" "based" ) }
|
| 66 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" $SLOT_VALUE "based" ) }
|
| 67 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" $SLOT_VALUE "-" "based" ) }
|
| 68 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" $SLOT_VALUE "based" ) }
|
| 69 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" []{0,4} "based" "in" $SLOT_VALUE ) }
|
| 70 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "city" "of" $SLOT_VALUE ) }
|
| 71 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "city" "of" $SLOT_VALUE ) }
|
| 72 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "town" "of" $SLOT_VALUE ) }
|
| 73 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "town" "of" $SLOT_VALUE ) }
|
| 74 |
+
|
| 75 |
+
// Also allow for location to interject
|
| 76 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 77 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 78 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 79 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 80 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 81 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 82 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 83 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 84 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 85 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 86 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "are" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 87 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "are" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 88 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 89 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 90 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 91 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "is" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 92 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "are" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 93 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "are" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 94 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 95 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 96 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 97 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 98 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 99 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 100 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "headquartered" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 101 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 102 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "located" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 103 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "headquartered" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 104 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 105 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "located" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 106 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "campus" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 107 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "head" "office" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 108 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "office" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 109 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "offices" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 110 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "headquarters" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 111 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 112 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 113 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 114 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 115 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 116 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 117 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 118 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 119 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" []{0,4} "based" "in" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 120 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "city" "of" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 121 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "city" "of" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 122 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "town" "of" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 123 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "town" "of" [{ner:/CITY|LOCATION/}] "," $SLOT_VALUE ) }
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_country_of_headquarters.rules
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE $ENTITY ) }
|
| 2 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE /'s|’s/ $ENTITY ) }
|
| 3 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "of" $ENTITY ) }
|
| 4 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{pos:/NN./}]+ $ENTITY ) }
|
| 5 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" [{lemma:/a|the/}] $SLOT_VALUE [{tag:/JJ|NN./}] ) }
|
| 6 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," [{lemma:/a|the/}] $SLOT_VALUE [{tag:/JJ|NN./}] ) }
|
| 7 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{tag:/JJ|NN./}]+ $ENTITY ) }
|
| 8 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE $ENTITY ) }
|
| 9 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," /a|the/ $SLOT_VALUE [{tag:/NN./}] ) }
|
| 10 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," /a|the/ $SLOT_VALUE ) }
|
| 11 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "in" $SLOT_VALUE ) }
|
| 12 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{tag:/NN.?/}] $ENTITY ) }
|
| 13 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE [{tag:/NN.?/}] [{tag:/NN.?/}] $ENTITY ) }
|
| 14 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE /-/ /area/ $ENTITY ) }
|
| 15 |
+
|
| 16 |
+
//Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 17 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "in" $SLOT_VALUE ) }
|
| 18 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "in" $SLOT_VALUE ) }
|
| 19 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "in" $SLOT_VALUE ) }
|
| 20 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "in" $SLOT_VALUE ) }
|
| 21 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "in" $SLOT_VALUE ) }
|
| 22 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "in" $SLOT_VALUE ) }
|
| 23 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "is" "in" $SLOT_VALUE ) }
|
| 24 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "is" "in" $SLOT_VALUE ) }
|
| 25 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "is" "in" $SLOT_VALUE ) }
|
| 26 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "is" "in" $SLOT_VALUE ) }
|
| 27 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "are" "in" $SLOT_VALUE ) }
|
| 28 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "are" "in" $SLOT_VALUE ) }
|
| 29 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 30 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 31 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 32 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "is" "in" $SLOT_VALUE ) }
|
| 33 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "are" "in" $SLOT_VALUE ) }
|
| 34 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "are" "in" $SLOT_VALUE ) }
|
| 35 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 36 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 37 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 38 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 39 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 40 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "in" $SLOT_VALUE ) }
|
| 41 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "headquartered" "in" $SLOT_VALUE ) }
|
| 42 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" $SLOT_VALUE ) }
|
| 43 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "located" "in" $SLOT_VALUE ) }
|
| 44 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "headquartered" "in" $SLOT_VALUE ) }
|
| 45 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" $SLOT_VALUE ) }
|
| 46 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "located" "in" $SLOT_VALUE ) }
|
| 47 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "headquartered" "in" $SLOT_VALUE ) }
|
| 48 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "based" "in" $SLOT_VALUE ) }
|
| 49 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "located" "in" $SLOT_VALUE ) }
|
| 50 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "complex" "of" $ENTITY ) }
|
| 51 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "campus" "of" $ENTITY ) }
|
| 52 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "head" "office" "of" $ENTITY ) }
|
| 53 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "office" "of" $ENTITY ) }
|
| 54 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "main" "offices" "of" $ENTITY ) }
|
| 55 |
+
{ result: "org:city_of_headquarters", pattern: ( $SLOT_VALUE "headquarters" "of" $ENTITY ) }
|
| 56 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "campus" "in" $SLOT_VALUE ) }
|
| 57 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "head" "office" "in" $SLOT_VALUE ) }
|
| 58 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "office" "in" $SLOT_VALUE ) }
|
| 59 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "offices" "in" $SLOT_VALUE ) }
|
| 60 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "headquarters" "in" $SLOT_VALUE ) }
|
| 61 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" $SLOT_VALUE "-" "based" ) }
|
| 62 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" $SLOT_VALUE "based" ) }
|
| 63 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" $SLOT_VALUE "-" "based" ) }
|
| 64 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" $SLOT_VALUE "based" ) }
|
| 65 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" $SLOT_VALUE "-" "based" ) }
|
| 66 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" $SLOT_VALUE "based" ) }
|
| 67 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" $SLOT_VALUE "-" "based" ) }
|
| 68 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" $SLOT_VALUE "based" ) }
|
| 69 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" []{0,4} "based" "in" $SLOT_VALUE ) }
|
| 70 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "city" "of" $SLOT_VALUE ) }
|
| 71 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "city" "of" $SLOT_VALUE ) }
|
| 72 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "town" "of" $SLOT_VALUE ) }
|
| 73 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "town" "of" $SLOT_VALUE ) }
|
| 74 |
+
|
| 75 |
+
// Also allow for location to interject
|
| 76 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 77 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 78 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 79 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 80 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 81 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 82 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "complex" "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 83 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "campus" "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 84 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "head" "office" "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 85 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "office" "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 86 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "main" "offices" "are" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 87 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY /'s|’s/ "headquarters" "are" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 88 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 89 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 90 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 91 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "is" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 92 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "are" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 93 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "are" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 94 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "complex" "of" $ENTITY "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 95 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "campus" "of" $ENTITY "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 96 |
+
{ result: "org:city_of_headquarters", pattern: ( "head" "office" "of" $ENTITY "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 97 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "office" "of" $ENTITY "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 98 |
+
{ result: "org:city_of_headquarters", pattern: ( "main" "offices" "of" $ENTITY "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 99 |
+
{ result: "org:city_of_headquarters", pattern: ( "headquarters" "of" $ENTITY "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 100 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "headquartered" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 101 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 102 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "located" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 103 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "headquartered" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 104 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 105 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "located" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 106 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "campus" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 107 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "head" "office" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 108 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "office" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 109 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "main" "offices" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 110 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "has" "its" "headquarters" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 111 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 112 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "a" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 113 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 114 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "an" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 115 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 116 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 117 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "-" "based" ) }
|
| 118 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "an" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE "based" ) }
|
| 119 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "a" []{0,4} "based" "in" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 120 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "city" "of" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 121 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "city" "of" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 122 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "is" "based" "in" "the" "town" "of" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
| 123 |
+
{ result: "org:city_of_headquarters", pattern: ( $ENTITY "," "based" "in" "the" "town" "of" [{ner:/COUNTRY|LOCATION/}] "," $SLOT_VALUE ) }
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_date_dissolved.rules
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 2 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "ceased" "to" "exist" $SLOT_VALUE ) }
|
| 3 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "dissolved" $SLOT_VALUE ) }
|
| 4 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" []{0,4} "dissolved" $SLOT_VALUE ) }
|
| 5 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "dissolved" []{0,4} $SLOT_VALUE ) }
|
| 6 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "wound" "up" $SLOT_VALUE ) }
|
| 7 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" []{0,4} "wound" "up" $SLOT_VALUE ) }
|
| 8 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "wound" "up" []{0,4} $SLOT_VALUE ) }
|
| 9 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "liquidated" $SLOT_VALUE ) }
|
| 10 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" []{0,4} "liquidated" $SLOT_VALUE ) }
|
| 11 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "liquidated" []{0,4} $SLOT_VALUE ) }
|
| 12 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "disbanded" $SLOT_VALUE ) }
|
| 13 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" []{0,4} "disbanded" $SLOT_VALUE ) }
|
| 14 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "was" "disbanded" []{0,4} $SLOT_VALUE ) }
|
| 15 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "dissolved" ) }
|
| 16 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "wound" "up" ) }
|
| 17 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "ceased" "to" "exist" ) }
|
| 18 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "liquidated" ) }
|
| 19 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "disbanded" ) }
|
| 20 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "dissolved" ) }
|
| 21 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "wound" "up" ) }
|
| 22 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "liquidated" ) }
|
| 23 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "disbanded" ) }
|
| 24 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "ceased" "to" "exist" ) }
|
| 25 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "dissolved" ) }
|
| 26 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "wound" "up" ) }
|
| 27 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "liquidated" ) }
|
| 28 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "disbanded" ) }
|
| 29 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "dissolved" ) }
|
| 30 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "wound" "up" ) }
|
| 31 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "liquidated" ) }
|
| 32 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "disbanded" ) }
|
| 33 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "dissolved" ) }
|
| 34 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "wound" "up" ) }
|
| 35 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "ceased" "to" "exist" ) }
|
| 36 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "liquidated" ) }
|
| 37 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "disbanded" ) }
|
| 38 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "dissolved" ) }
|
| 39 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "wound" "up" ) }
|
| 40 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "liquidated" ) }
|
| 41 |
+
{ result: "org:date_dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "disbanded" ) }
|
| 42 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "," "dissolved" $SLOT_VALUE ) }
|
| 43 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "," "officially" "dissolved" $SLOT_VALUE ) }
|
| 44 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "," "disbanded" $SLOT_VALUE ) }
|
| 45 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "," "officially" "disbanded" $SLOT_VALUE ) }
|
| 46 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "," "liquidated" $SLOT_VALUE ) }
|
| 47 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "," "wound" "up" $SLOT_VALUE ) }
|
| 48 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "," "officially" "liquidated" $SLOT_VALUE ) }
|
| 49 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY "existed" "until" $SLOT_VALUE ) }
|
| 50 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY /'s|’s/ "liquidation" $SLOT_VALUE ) }
|
| 51 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY /'s|’s/ "dissolution" $SLOT_VALUE ) }
|
| 52 |
+
{ result: "org:date_dissolved", pattern: ( $ENTITY /'s|��s/ "end" $SLOT_VALUE ) }
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_date_founded.rules
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 2 |
+
{ result: "org:date_founded", pattern: ( $ENTITY "was" "founded" $SLOT_VALUE ) }
|
| 3 |
+
{ result: "org:date_founded", pattern: ( $ENTITY "," "founded" $SLOT_VALUE ) }
|
| 4 |
+
{ result: "org:date_founded", pattern: ( $ENTITY "was" "incorporated" $SLOT_VALUE ) }
|
| 5 |
+
{ result: "org:date_founded", pattern: ( $ENTITY "," "incorporated" $SLOT_VALUE ) }
|
| 6 |
+
{ result: "org:date_founded", pattern: ( $ENTITY "was" "established" $SLOT_VALUE ) }
|
| 7 |
+
{ result: "org:date_founded", pattern: ( $ENTITY "," "established" $SLOT_VALUE ) }
|
| 8 |
+
{ result: "org:date_founded", pattern: ( "founded" $ENTITY $SLOT_VALUE ) }
|
| 9 |
+
{ result: "org:date_founded", pattern: ( "established" $ENTITY $SLOT_VALUE ) }
|
| 10 |
+
{ result: "org:date_founded", pattern: ( "formed" $ENTITY $SLOT_VALUE ) }
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_dissolved.rules
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/be|,/}] [{lemma:/dissolved/}] [{lemma:/in/}] $DATE ) }
|
| 2 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/dissolved/}] [{lemma:/in/}] $DATE ) }
|
| 3 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/go|,/}] [{lemma:/bankrupt/}] [{lemma:/in/}] $DATE ) }
|
| 4 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/bankrupt/}] [{lemma:/in/}] $DATE ) }
|
| 5 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/bankrupt/}] [{lemma:/in/}] $DATE ) }
|
| 6 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/bankrupt/}] $DATE ) }
|
| 7 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/close/}] [{lemma:/it/}] [{lemma:/'s|’s/}] [{lemma:/door/}] [{lemma:/in/}] $DATE ) }
|
| 8 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/it/}] [{lemma:/'s|’s/}] [{lemma:/door/}] [{lemma:/in/}] $DATE ) }
|
| 9 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/go/}] [{lemma:/out/}] [{lemma:/of/}] [{lemma:/business/}] [{lemma:/in/}] $DATE ) }
|
| 10 |
+
{ result: "org:dissolved", pattern: ( $ENTITY [{lemma:/out/}] [{lemma:/of/}] [{lemma:/business/}] [{lemma:/in/}] $DATE ) }
|
| 11 |
+
//Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 12 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "ceased" "to" "exist" $SLOT_VALUE ) }
|
| 13 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "," "disbanded" $SLOT_VALUE ) }
|
| 14 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "," "dissolved" $SLOT_VALUE ) }
|
| 15 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "existed" "until" $SLOT_VALUE ) }
|
| 16 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "," "liquidated" $SLOT_VALUE ) }
|
| 17 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "," "officially" "disbanded" $SLOT_VALUE ) }
|
| 18 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "," "officially" "dissolved" $SLOT_VALUE ) }
|
| 19 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "," "officially" "liquidated" $SLOT_VALUE ) }
|
| 20 |
+
{ result: "org:dissolved", pattern: ( $ENTITY /'s|’s/ "dissolution" $SLOT_VALUE ) }
|
| 21 |
+
{ result: "org:dissolved", pattern: ( $ENTITY /'s|’s/ "end" $SLOT_VALUE ) }
|
| 22 |
+
{ result: "org:dissolved", pattern: ( $ENTITY /'s|’s/ "liquidation" $SLOT_VALUE ) }
|
| 23 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" []{0,4} "disbanded" $SLOT_VALUE ) }
|
| 24 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "disbanded" $SLOT_VALUE ) }
|
| 25 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "disbanded" []{0,4} $SLOT_VALUE ) }
|
| 26 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" []{0,4} "dissolved" $SLOT_VALUE ) }
|
| 27 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "dissolved" $SLOT_VALUE ) }
|
| 28 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "dissolved" []{0,4} $SLOT_VALUE ) }
|
| 29 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" []{0,4} "liquidated" $SLOT_VALUE ) }
|
| 30 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "liquidated" $SLOT_VALUE ) }
|
| 31 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "liquidated" []{0,4} $SLOT_VALUE ) }
|
| 32 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" []{0,4} "wound" "up" $SLOT_VALUE ) }
|
| 33 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "wound" "up" $SLOT_VALUE ) }
|
| 34 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "was" "wound" "up" []{0,4} $SLOT_VALUE ) }
|
| 35 |
+
{ result: "org:dissolved", pattern: ( $ENTITY "," "wound" "up" $SLOT_VALUE ) }
|
| 36 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "ceased" "to" "exist" ) }
|
| 37 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "ceased" "to" "exist" ) }
|
| 38 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "disbanded" ) }
|
| 39 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "disbanded" ) }
|
| 40 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "disbanded" ) }
|
| 41 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "disbanded" ) }
|
| 42 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "dissolved" ) }
|
| 43 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "dissolved" ) }
|
| 44 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "dissolved" ) }
|
| 45 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "dissolved" ) }
|
| 46 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "liquidated" ) }
|
| 47 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "liquidated" ) }
|
| 48 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "liquidated" ) }
|
| 49 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "liquidated" ) }
|
| 50 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" []{0,4} "wound" "up" ) }
|
| 51 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "," $ENTITY "was" "wound" "up" ) }
|
| 52 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" []{0,4} "wound" "up" ) }
|
| 53 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE $ENTITY "was" "wound" "up" ) }
|
| 54 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "ceased" "to" "exist" ) }
|
| 55 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "disbanded" ) }
|
| 56 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "disbanded" ) }
|
| 57 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "dissolved" ) }
|
| 58 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "dissolved" ) }
|
| 59 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "liquidated" ) }
|
| 60 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "liquidated" ) }
|
| 61 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" []{0,4} "wound" "up" ) }
|
| 62 |
+
{ result: "org:dissolved", pattern: ( $SLOT_VALUE "when" $ENTITY "was" "wound" "up" ) }
|
CoreNLP/edu-ext/stanford/nlp/models/kbp/english/tokensregex/org_founded.rules
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{ result: "org:founded", pattern: ( $ENTITY [{lemma:/be|,/}] [{lemma:/found/}] [{lemma:/in/}] $DATE ) }
|
| 2 |
+
{ result: "org:founded", pattern: ( $ENTITY [{lemma:/found/}] [{lemma:/in/}] $DATE ) }
|
| 3 |
+
//Rules from Roth's manual patterns https://raw.githubusercontent.com/beroth/relationfactory/master/resources/manual_annotation/context_patterns2012.txt
|
| 4 |
+
{ result: "org:founded", pattern: ( $ENTITY "," "established" $SLOT_VALUE ) }
|
| 5 |
+
{ result: "org:founded", pattern: ( $ENTITY "," "founded" $SLOT_VALUE ) }
|
| 6 |
+
{ result: "org:founded", pattern: ( $ENTITY "," "incorporated" $SLOT_VALUE ) }
|
| 7 |
+
{ result: "org:founded", pattern: ( $ENTITY "was" "established" $SLOT_VALUE ) }
|
| 8 |
+
{ result: "org:founded", pattern: ( $ENTITY "was" "founded" $SLOT_VALUE ) }
|
| 9 |
+
{ result: "org:founded", pattern: ( $ENTITY "was" "incorporated" $SLOT_VALUE ) }
|
| 10 |
+
{ result: "org:founded", pattern: ( "established" $ENTITY $SLOT_VALUE ) }
|
| 11 |
+
{ result: "org:founded", pattern: ( "formed" $ENTITY $SLOT_VALUE ) }
|
| 12 |
+
{ result: "org:founded", pattern: ( "founded" $ENTITY $SLOT_VALUE ) }
|