public class SenAnalyzer extends Object
| Constructor and Description |
|---|
SenAnalyzer(DBUtils sr,
DBUtils db_dest)
Use given database
|
SenAnalyzer(SenSimplifier simp)
For creating new dictionary only
|
| Modifier and Type | Method and Description |
|---|---|
List<Chunk>[] |
analyze(String id)
Main method to analyze text
|
void |
closeDB()
Close database [never called]
|
List<Word> |
detectTrg(String txt) |
int |
findEquiv(String txt)
DO NOT USE! This method is not correct due to some changes.
|
Word |
findTrigger(int[] loc,
List<Word> relWord) |
List<Word> |
getModifier(String[] tokens)
Get list of prepositions of a sentence
|
List<Word> |
getPreps(String[] tokens)
Get list of prepositions of a sentence
|
void |
init()
Loading dictionaries
|
boolean |
initAbstract(String pid) |
boolean |
initData(String id)
Workflow: 1.
|
static void |
main(String[] args) |
void |
printChunk(List<Chunk> ls) |
void |
printInChunks() |
void |
processSentence(String txt,
String[] token,
int idx) |
void |
setDB(DBUtils dbs)
Set default database
|
List<TData>[] |
splitData(List<TData> list,
int[] pos)
Split list of Data (Trigger/Protein) based on number of sentences
|
List<EData>[] |
splitEvents(List<EData> list) |
List<Word>[] |
splitTrg(List<Word> list,
int[] pos) |
void |
testAll() |
void |
testChunks() |
void |
testSentence() |
public SenAnalyzer(SenSimplifier simp)
simp - : SenSimplifierpublic void setDB(DBUtils dbs)
dbs - public void closeDB()
public void init()
public boolean initAbstract(String pid)
public boolean initData(String id)
id - : abstract/paragrap ID Output: list of triggers and proteins
stored intopublic List<Chunk>[] analyze(String id)
id - : abstract IDpublic List<TData>[] splitData(List<TData> list, int[] pos)
list - : trigger/proteinpublic void testSentence()
public int findEquiv(String txt)
txt - public void testAll()
public List<Word> getPreps(String[] tokens)
tokens - public List<Word> getModifier(String[] tokens)
tokens - public void testChunks()
public void printInChunks()
public static void main(String[] args)
Copyright © 2016 JULIE Lab, Germany. All rights reserved.