|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopennlp.tools.coref.mention.Mention
public class Mention
Data structure representation of a mention.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String type
protected Parse parse
protected String nameType
| Constructor Detail |
|---|
public Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType)
public Mention(Span span,
Span headSpan,
int entityId,
Parse parse,
String extentType,
String nameType)
public Mention(Mention mention)
| Method Detail |
|---|
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()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||