Class EntityMention

All Implemented Interfaces:
Serializable

@Deprecated public class EntityMention extends Attribute implements Serializable
Deprecated.
This class is replaced by Mention.
A mention of a entity in the text. For example, "George" and "George Washington" are mentions of type "PERSON".
See Also:
  • Constructor Details

  • Method Details

    • getEntityType

      public String getEntityType()
      Deprecated.
      Returns the type of the entity. For example, "PERSON", "LOCATION", "ORGANIZATION".
      Returns:
      the type of entity
    • getConfidence

      public Double getConfidence()
      Deprecated.
      Returns the confidence of the entity extractor in identifying this mention.
      Returns:
      the confidence of the entity extractor in identifying this mention. This value will be null if there is no calculated confidence value.
    • getLinkingConfidence

      public Double getLinkingConfidence()
      Deprecated.
      Returns the linking confidence of the kb-linker in link this mention and entity id.
      Returns:
      the linking confidence of the kb-linker in link this mention and entity id. This value will be null if there is no calculated confidence value.
    • getCoreferenceChainId

      public Integer getCoreferenceChainId()
      Deprecated.
      Returns a chain id that links together entity mentions that refer to the same entity as determined by in-document analysis. This is null if no in-document coreference information is available. Currently, the chain id is the index (into the EntityMention list) of the head mention of the chain. The head mention is the (first) longest mention in the chain.
      Returns:
      the coreference chain id, or null if chaining has not been applied
    • getFlags

      public Integer getFlags()
      Deprecated.
      Returns flags associated with a mention. Interpretation of the flags varies by extractor and language.
      Returns:
      flags associated with the mention. These may be null (rather than 0) if there are no flags.
    • getSource

      public String getSource()
      Deprecated.
      Returns the entity extraction source that produced this entity. For example, "statistical", "regex", "gazetteer".
      Returns:
      the entity extraction source
    • getSubsource

      public String getSubsource()
      Deprecated.
      Returns the entity extraction subsource that produced this entity. This is usually filename for the regular expression file or gazetteer in which the entity appears. For example, "./data/gazetteer/eng/accept/gaz-LE.bin"
      Returns:
      the entity extraction subsource
    • getNormalized

      public String getNormalized()
      Deprecated.
      Returns the normalized form of the mention. This form typically normalizes spaces spaces and removes embedded newlines. It may omit prefixes in languages like Arabic. This is not a canonical way to refer to the entity (see ResolvedEntity) but rather a simplified form of this particular mention text.
      Returns:
      the normalized form of the mention
    • toStringHelper

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