Class ResolvedEntity

All Implemented Interfaces:
Serializable

@Deprecated public class ResolvedEntity extends Attribute implements Serializable
Deprecated.
replaced by Entity.
A reference to a "real world" entity. For example, an EntityMention of "George" could refer to many different Georges. A ResolvedEntity associates the mention with an id from some external knowledge base, e.g. Q23 from Wikidata. An entity may optionally have a sentiment category associated with it (e.g. "positive", "negative", "neutral").
See Also:
  • Constructor Details

  • Method Details

    • getEntityId

      public String getEntityId()
      Deprecated.
      Returns the unique identifier of this entity.
      Returns:
      the unique identifier of this entity
    • getCoreferenceChainId

      public Integer getCoreferenceChainId()
      Deprecated.
      Returns the in-document coreference chain ID for this entity, or null if there is none.
      Returns:
      the in-document coreference chain ID for this entity, or null if there is none
    • getConfidence

      public Double getConfidence()
      Deprecated.
      Returns the confidence for this resolved entity, or null if there is none.
      Returns:
      the confidence for this resolved entity, or null if there is none
    • getSentiment

      public CategorizerResult getSentiment()
      Deprecated.
      Returns the sentiment of this entity, or null if not computed. Only the top-ranked sentiment result is returned. Use Entity.getSentiment() to obtain all results.
      Returns:
      the sentiment of this entity, or null if not computed.
    • toStringHelper

      protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
      Deprecated.
      Overrides:
      toStringHelper in class Attribute