public class AceRelation extends Object
| Modifier and Type | Field and Description |
|---|---|
AceEntity |
arg1
arg1 of the relation: an entity
|
AceEntity |
arg2
arg2 of the relation: an entity
|
String |
id
the ID of the relation
|
ArrayList |
mentions
a list of the mentions of this relation (each of type AceRelationMention)
|
String |
relClass
the class of the mention: explicit or implicit (not for ace2004 et seq.)
|
String |
subtype
the subtype of the relation
|
String |
type
the type of the relation:
|
| Constructor and Description |
|---|
AceRelation(Element relationElement,
AceDocument acedoc,
String fileText)
create an AceRelation from the information in the APF file.
|
AceRelation(String id,
String type,
String subtype,
String relClass,
AceEntity arg1,
AceEntity arg2) |
public String type
public String subtype
public String id
public String relClass
public AceEntity arg1
public AceEntity arg2
public ArrayList mentions
public AceRelation(String id, String type, String subtype, String relClass, AceEntity arg1, AceEntity arg2)
public AceRelation(Element relationElement, AceDocument acedoc, String fileText)
relationElement - the XML element from the APF file containing
information about this entityacedoc - the AceDocument of which this AceRelation is a partpublic void addMention(AceRelationMention mention)
public void write(PrintWriter w)
Copyright © 2016 New York University. All rights reserved.