public class AceEntity extends AceEventArgumentValue
| Modifier and Type | Field and Description |
|---|---|
String |
entClass
(for ACE 2004 and later) class of entity: NEG|SPC|GEN|USP
|
boolean |
generic
true if the entity is generic (class not SPC)
|
ArrayList<AceEntityMention> |
mentions
a list of the mentions of the entity
|
ArrayList<AceEntityName> |
names
a list of the names of the entity
|
String |
subtype
the subtype of the EDT type; null for pre-2004 annotation.
|
String |
type
the EDT type of the entity: PERSON, ORGANIZATION, GPE,
LOCATION, or FACILITY; for ACE 2004, also WEAPON or VEHICLE.
|
id| Constructor and Description |
|---|
AceEntity(Element entityElement,
String fileText)
create an AceEntity from the information in the APF file.
|
AceEntity(String id,
String type,
String subtype,
boolean generic) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMention(AceEntityMention mention)
adds mention 'mention' to the mentions of this entity.
|
void |
addName(AceEntityName name)
adds name 'name' to the names associated with this entity.
|
AceEntityMention |
findMention(String id) |
void |
write(PrintWriter w)
writes the entity to 'w' in APF format.
|
public String type
public String subtype
public String entClass
public boolean generic
public ArrayList<AceEntityMention> mentions
public ArrayList<AceEntityName> names
public void addMention(AceEntityMention mention)
public void addName(AceEntityName name)
public AceEntityMention findMention(String id)
public void write(PrintWriter w)
Copyright © 2016 New York University. All rights reserved.