public class Mention extends Object implements Comparable<Mention>
Modifier and Type | Field and Description |
---|---|
protected String |
nameType
A string representing the name type for this extent.
|
protected Parse |
parse
The parse node that this extent is based on.
|
protected String |
type
A string representing the type of this extent.
|
Constructor and Description |
---|
Mention(Mention mention) |
Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType) |
Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Mention e) |
Span |
getHeadSpan()
Returns the character offsets for the head of this extent.
|
int |
getId()
Returns the id associated with this mention.
|
String |
getNameType()
Returns the named-entity category associated with this mention.
|
Parse |
getParse()
Returns the parse node that this extent is based on.
|
Span |
getSpan()
Returns the character offsets for this extent.
|
void |
setId(int i)
Associates an id with this mention.
|
protected void |
setNameType(String nameType)
Specifies the named-entity category associated with this mention.
|
void |
setParse(Parse parse)
Specifies the parse for this mention.
|
String |
toString() |
protected String type
protected Parse parse
protected String nameType
public Mention(Span span, Span headSpan, int entityId, Parse parse, String extentType, String nameType)
public Mention(Mention mention)
public Span getSpan()
public Span getHeadSpan()
public Parse getParse()
public int compareTo(Mention e)
compareTo
in interface Comparable<Mention>
public void setParse(Parse parse)
parse
- The parse for this mention.public String getNameType()
protected void setNameType(String nameType)
nameType
- the named-entity category associated with this mention.public void setId(int i)
i
- The id for this mention.public int getId()
Copyright © 2019 The Apache Software Foundation. All rights reserved.