Class Mention

All Implemented Interfaces:
Serializable

public class Mention extends Attribute implements Serializable
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

    • getConfidence

      public Double getConfidence()
      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()
      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.
    • getSource

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

      public String getSubsource()
      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()
      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()
      Overrides:
      toStringHelper in class Attribute