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