public class DataLoader extends Object
| Constructor and Description |
|---|
DataLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadData(String path,
boolean train) |
static void |
main(String[] args) |
void |
Txt2Db(String path,
String dest,
boolean train) |
DBUtils |
Txt2Db(String pid,
String text,
List<String> proteins)
Creates a database for event extraction as an programmatic API-call where
all values are given directly rather then reading the values from files.
|
public void loadData(String path, boolean train)
public DBUtils Txt2Db(String pid, String text, List<String> proteins)
Txt2Db(String, String, boolean), created
in-memory database is returned for further processing and not persisted
to file.
ID<tab>Entity-Type[Protein]<tab>start<tab>end<tab>Mention name
pid - text - proteins - public static void main(String[] args)
Copyright © 2016 JULIE Lab, Germany. All rights reserved.