public class AceDocument extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ace2004
true for 2004 or 2005 APF format
|
static boolean |
ace2005
true for 2005 APF format
|
String |
docID
the document ID
|
ArrayList<AceEntity> |
entities
a list of the entities in the document
|
ArrayList<AceEvent> |
events
a list of the events in the document
|
ArrayList<AceRelation> |
relations
a list of the relations in the document
|
String |
sourceFile
the name of the source file
|
String |
sourceType
the type of source: newswire or bnews
|
ArrayList<AceTimex> |
timeExpressions
a list of the time expressions in the document
|
ArrayList<AceValue> |
values
a list of the value expressions in the document
|
| Constructor and Description |
|---|
AceDocument(String textFileName,
String APFfileName)
create a new AceDocument from the source document in 'textFileName'
and the APF file 'APFfileName'
|
AceDocument(String sourceFile,
String sourceType,
String docID,
String docText) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(AceEntity entity) |
void |
addEvent(AceEvent event) |
void |
addRelation(AceRelation relation) |
void |
addTimeExpression(AceTimex timex) |
void |
addValue(AceValue value) |
Document |
JetDocument() |
static void |
main(String[] args) |
void |
write(PrintWriter w,
Document doc)
writes the AceDocument to 'w' in APF format.
|
public static boolean ace2004
public static boolean ace2005
public String sourceFile
public String sourceType
public String docID
public ArrayList<AceTimex> timeExpressions
public ArrayList<AceRelation> relations
public void addEntity(AceEntity entity)
public void addValue(AceValue value)
public void addTimeExpression(AceTimex timex)
public void addRelation(AceRelation relation)
public void addEvent(AceEvent event)
public Document JetDocument()
public void write(PrintWriter w, Document doc)
public static void main(String[] args)
Copyright © 2016 New York University. All rights reserved.