public class AceEntityMention extends AceMention
| Modifier and Type | Field and Description |
|---|---|
AceEntity |
entity
the entity of which this is a mention.
|
Span |
head
the span of the head of the mention, with start and end positions based
on the ACE offsets (excluding XML tags).
|
String |
headText
the text of the head.
|
Span |
jetHead
the span of the head of the mention, with start and end positions based
on Jet offsets (and so including following whitespace).
|
String |
type
the type of the mention: NAME, NOMINAL, or PRONOUN.
|
extent, id, jetExtent, text| Constructor and Description |
|---|
AceEntityMention(Element mentionElement,
String fileText)
create an AceEntityMention from the information in the APF file.
|
AceEntityMention(String id,
String type,
Span extent,
Span head,
String fileText) |
| Modifier and Type | Method and Description |
|---|---|
static Span |
convertSpan(Span jetSpan,
String fileText)
converts a jet Span to an APF span.
|
boolean |
equals(Object o)
returns 'true' if 'o' is an AceEntityMention with the same head span.
|
String |
getHeadText() |
Span |
getJetHead() |
AceEventArgumentValue |
getParent()
returns the entity of which this is a mention.
|
String |
getType()
the type (of the parent entity, value, or timex).
|
compareTopublic String type
public Span head
public Span jetHead
public String headText
public AceEntity entity
public AceEntityMention(String id, String type, Span extent, Span head, String fileText)
public AceEntityMention(Element mentionElement, String fileText)
mentionElement - the XML element from the APF file containing
information about this mentionfileText - the text of the document, including XML tagspublic static Span convertSpan(Span jetSpan, String fileText)
public AceEventArgumentValue getParent()
getParent in class AceMentionpublic String getType()
AceMentiongetType in class AceMentionpublic Span getJetHead()
getJetHead in class AceMentionpublic String getHeadText()
getHeadText in class AceMentionCopyright © 2016 New York University. All rights reserved.