public class CoreEntityMention
extends java.lang.Object
Constructor and Description |
---|
CoreEntityMention(CoreSentence mySentence,
CoreMap coreMapEntityMention) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<CoreEntityMention> |
canonicalEntityMention()
return the canonical entity mention for this entity mention
|
Pair<java.lang.Integer,java.lang.Integer> |
charOffsets()
char offsets of mention
|
CoreMap |
coreMap()
get the underlying CoreMap if need be
|
java.lang.String |
entity()
return the entity this entity mention is linked to
|
java.lang.String |
entityType()
return the type of the entity mention
|
java.util.Map<java.lang.String,java.lang.Double> |
entityTypeConfidences()
return a map of labels to confidences
|
CoreSentence |
sentence()
get this entity mention's sentence
|
java.lang.String |
text()
full text of the mention
|
java.util.List<CoreLabel> |
tokens()
the list of tokens for this entity mention
|
java.lang.String |
toString() |
public CoreEntityMention(CoreSentence mySentence, CoreMap coreMapEntityMention)
public CoreMap coreMap()
public CoreSentence sentence()
public java.lang.String text()
public java.util.List<CoreLabel> tokens()
public Pair<java.lang.Integer,java.lang.Integer> charOffsets()
public java.lang.String entityType()
public java.util.Map<java.lang.String,java.lang.Double> entityTypeConfidences()
public java.lang.String entity()
public java.util.Optional<CoreEntityMention> canonicalEntityMention()
public java.lang.String toString()
toString
in class java.lang.Object