Class CoreEntityMention


  • public class CoreEntityMention
    extends Object
    • 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
      • tokens

        public List<CoreLabel> tokens()
        the list of tokens for this entity 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