public class EventExtraction extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ccList |
static Set<String> |
ccSet |
static String[] |
prepList |
static Set<String> |
prepSet |
| Constructor and Description |
|---|
EventExtraction(DBUtils sr,
DBUtils db)
Extract event from the given data
|
| Modifier and Type | Method and Description |
|---|---|
void |
evaluateTrg(BasicChunk bs,
List<Word> preps,
List<Word> mods,
String[] tokens,
List<Word> Trgs)
Evaluating candidate triggers whether they can form events
|
List<PData> |
extractBindNP(Word tg,
BasicChunk bc,
List<Word> preps)
12.10.2011 Extracting binding events
|
List<PData> |
extractBindVP(Word tg,
VerbChunk vc,
List<Word> preps) |
void |
extractEvents(String id)
Extracting events from abstract/paragraph.
|
void |
extractNP(BasicChunk bs,
List<Word> preps) |
List<PData> |
extractNP(int idx,
BasicChunk bs,
List<Word> preps) |
List<PData> |
extractRegNP(Word tg,
BasicChunk bc,
List<Word> preps) |
List<PData> |
extractRegVP(Word tg,
VerbChunk vc,
List<Word> preps) |
void |
extractSentence(int i) |
List<PData> |
extractSimpleNP(Word tg,
BasicChunk bc,
List<Word> preps)
Extracting simple event from BasicChunk with a given trigger (+type)
|
List<PData> |
extractSimpleVP(Word tg,
VerbChunk vc,
List<Word> mods)
Find pros for binding event which has pattern as: Pro1 - Trg - Pro2
|
void |
extractVP(VerbChunk vc,
List<Word> preps,
List<Word> mods) |
List<Word> |
findCausePro(BasicChunk bs,
Word tg)
Get Pro as cause for : PRO-xx TG PRO/EVENT
|
List<Word> |
findFrontPro(BasicChunk bs,
Word tg,
int len)
12.10.2011 Find pro in front of tg for noun phrase/subject patterns: PRO
- TG
|
List<Word> |
findPro(BasicChunk bs,
int start,
int len)
Find pro after a given position (for use with tg- prep1 - prep2) Only
looks for pro after prep2
|
List<Word> |
findPro(BasicChunk bs,
Word tg,
String prep,
int len)
11.10.2011.
|
List<Word> |
findRegPro(BasicChunk bs,
Word tg,
int start,
int len)
Find pro after a given position (for use with tg- prep1 - prep2) Only
looks for pro after prep2
|
Set<PData> |
getExtractedEvents()
Available after
Test() or Test(String) has been run. |
Set<Word> |
getExtractedTriggers()
Available after
Test() or Test(String) has been run. |
List<Word> |
getInChunkPro(BasicChunk bs,
Word tg)
11.10.2011.
|
List<Word> |
getMod(BasicChunk bs,
Word tg,
List<Word> ls)
Get modifier for trigger in order to determine trigger type
|
List<Word> |
getMod(BasicChunk bs,
Word tg,
List<Word> pros,
List<Word> ls)
Get modifier for trigger in order to determine trigger type
|
List<Word> |
getMod(Chunk c1,
Chunk c2,
List<Word> ls)
Get modifier for trigger in order to determine trigger type
|
List<Word> |
getMod(int pos1,
int pos2,
List<Word> ls)
Get modifier for trigger in order to determine trigger type
|
Map<String,RuleSets> |
groupRules(Map<String,Rules>[] map) |
void |
init() |
void |
initSentence(String id) |
static void |
main(String[] args) |
void |
printChunkList() |
void |
setDb(DBUtils docDb) |
void |
Test() |
void |
Test(String outPath) |
public static final String[] ccList
public static final String[] prepList
public void init()
public void evaluateTrg(BasicChunk bs, List<Word> preps, List<Word> mods, String[] tokens, List<Word> Trgs)
bs - : BasicChunk contains trgspreps - : preposition listmods - : modifier wordstokens - : list of words/tokensTrgs - : detected TG (used to determine trg type)public List<PData> extractSimpleNP(Word tg, BasicChunk bc, List<Word> preps)
tg - bc - preps - mods - public List<PData> extractBindNP(Word tg, BasicChunk bc, List<Word> preps)
bc - preps - mods - public void extractNP(BasicChunk bs, List<Word> preps)
public List<PData> extractNP(int idx, BasicChunk bs, List<Word> preps)
public List<Word> getMod(Chunk c1, Chunk c2, List<Word> ls)
c1 - c2 - ls - public List<Word> getMod(int pos1, int pos2, List<Word> ls)
ls - : list of modifierspublic List<Word> getMod(BasicChunk bs, Word tg, List<Word> ls)
bs - : BasicChunktg - : trgls - : list of modifierspublic List<Word> getMod(BasicChunk bs, Word tg, List<Word> pros, List<Word> ls)
bs - : BasicChunktg - : trgpros - :list of prols - : modifierspublic List<PData> extractSimpleVP(Word tg, VerbChunk vc, List<Word> mods)
tg - : triggerls - : Basic Chunkpublic List<Word> getInChunkPro(BasicChunk bs, Word tg)
bs - : BasicChunktg - : triggerpublic List<Word> findPro(BasicChunk bs, Word tg, String prep, int len)
bs - : BasicChunktg - : trigprep - :preplen - : number of chunkspublic List<Word> findCausePro(BasicChunk bs, Word tg)
bs - tg - public List<Word> findPro(BasicChunk bs, int start, int len)
bs - : BasicChunkstart - : start positionlen - : distance to look forpublic List<Word> findRegPro(BasicChunk bs, Word tg, int start, int len)
bs - : BasicChunkstart - : start positionlen - : distance to look forpublic List<Word> findFrontPro(BasicChunk bs, Word tg, int len)
bs - : BasicChunktg - : trigprep - :preplen - : number of chunkspublic void initSentence(String id)
public void extractSentence(int i)
public void printChunkList()
public void Test(String outPath)
public void Test()
public void extractEvents(String id)
id - : PMID (abstract/paragraph)public Set<Word> getExtractedTriggers()
Test() or Test(String) has been run.
Contains the words identified as being triggers.public Set<PData> getExtractedEvents()
Test() or Test(String) has been run.
Contains identified events mentions.public static void main(String[] args)
public void setDb(DBUtils docDb)
Copyright © 2016 JULIE Lab, Germany. All rights reserved.