Package edu.stanford.nlp.pipeline
Class CoreEntityMention
- java.lang.Object
-
- edu.stanford.nlp.pipeline.CoreEntityMention
-
public class CoreEntityMention extends Object
-
-
Constructor Summary
Constructors Constructor Description CoreEntityMention(CoreSentence mySentence, CoreMap coreMapEntityMention)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<CoreEntityMention>canonicalEntityMention()return the canonical entity mention for this entity mentionPair<Integer,Integer>charOffsets()char offsets of mentionCoreMapcoreMap()get the underlying CoreMap if need beStringentity()return the entity this entity mention is linked toStringentityType()return the type of the entity mentionMap<String,Double>entityTypeConfidences()return a map of labels to confidencesCoreSentencesentence()get this entity mention's sentenceStringtext()full text of the mentionList<CoreLabel>tokens()the list of tokens for this entity mentionStringtoString()
-
-
-
Constructor Detail
-
CoreEntityMention
public CoreEntityMention(CoreSentence mySentence, CoreMap coreMapEntityMention)
-
-
Method Detail
-
coreMap
public CoreMap coreMap()
get the underlying CoreMap if need be
-
sentence
public CoreSentence sentence()
get this entity mention's sentence
-
text
public String text()
full text of the mention
-
entityType
public String entityType()
return the type of the entity mention
-
entityTypeConfidences
public Map<String,Double> entityTypeConfidences()
return a map of labels to confidences
-
entity
public String entity()
return the entity this entity mention is linked to
-
canonicalEntityMention
public Optional<CoreEntityMention> canonicalEntityMention()
return the canonical entity mention for this entity mention
-
-