public class AceRelationMention extends Object
| Modifier and Type | Field and Description |
|---|---|
AceEntityMention |
arg1
arg1: an AceEntityMention
|
AceEntityMention |
arg2
arg2: an AceEntityMention
|
double |
confidence
our confidence in the presence of this relation mention
|
Span |
extent
the span of the extent of the event, with start and end positions based
on the ACE offsets (excluding XML tags).
|
String |
id
the ID of the mention
|
AceRelation |
relation
relation: the AceRelation of which this is a mention
|
String |
text
the text of the extent of the event mention.
|
| Constructor and Description |
|---|
AceRelationMention(Element mentionElement,
AceDocument acedoc,
String fileText)
create an AceEntityMention from the information in the APF file.
|
AceRelationMention(String id,
AceEntityMention arg1,
AceEntityMention arg2,
Document doc) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
returns a String representation of the mention, consisting of
the type and subtype of the relation, and the text of the argument
mentions.
|
void |
write(PrintWriter w) |
public String id
public Span extent
public String text
public AceEntityMention arg1
public AceEntityMention arg2
public AceRelation relation
public double confidence
public AceRelationMention(String id, AceEntityMention arg1, AceEntityMention arg2, Document doc)
public AceRelationMention(Element mentionElement, AceDocument acedoc, String fileText)
mentionElement - the XML element from the APF file containing
information about this mentionacedoc - the AceDocument to which this relation mention
belongspublic void write(PrintWriter w)
Copyright © 2016 New York University. All rights reserved.