public class AceEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
ArrayList<AceEventArgument> |
arguments
arguments of the event (each of type AceEventArgument)
|
String |
genericity |
String |
id
the ID of the event
|
ArrayList<AceEventMention> |
mentions
a list of the mentions of this event (each of type AceEventMention)
|
String |
modality |
String |
polarity |
String |
subtype
the subtype of the event
|
String |
tense |
String |
type
the type of the event:
|
| Constructor and Description |
|---|
AceEvent(Element eventElement,
AceDocument acedoc,
String fileText)
create an AceEvent from the information in the APF file.
|
AceEvent(String id,
String type,
String subtype)
create a new event with the specified id, type, subtype, and arguments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMention(AceEventMention mention)
add mention 'mention' to the event.
|
String |
toString() |
void |
write(PrintWriter w)
write the event to 'w' in APF format.
|
public String type
public String subtype
public String modality
public String polarity
public String genericity
public String tense
public String id
public ArrayList<AceEventArgument> arguments
public ArrayList<AceEventMention> mentions
public AceEvent(String id, String type, String subtype)
public AceEvent(Element eventElement, AceDocument acedoc, String fileText)
eventElement - the XML element from the APF file containing
information about this entityacedoc - the AceDocument of which this AceEvent is a partfileText - the text of the documentpublic void addMention(AceEventMention mention)
public void write(PrintWriter w)
Copyright © 2016 New York University. All rights reserved.