Class Entity

java.lang.Object
com.basistech.rosette.apimodel.Entity

public final class Entity extends Object
Extracted entity
  • Method Details

    • builder

      public static Entity.EntityBuilder builder()
    • getType

      public String getType()
      Returns:
      the entity type
    • getMention

      public String getMention()
      Returns:
      the entity mention text
    • getNormalized

      public String getNormalized()
      Returns:
      the normalized entity mention text
    • getCount

      public Integer getCount()
      Returns:
      the entity mention count
    • getMentionOffsets

      public List<MentionOffsets> getMentionOffsets()
      Returns:
      the list of offsets for all mentions
    • getEntityId

      public String getEntityId()
      Returns:
      the ID of this entity. If this entity was linked to a knowledge base, the resulting string will begin with 'Q'. If it was not linked to a knowledge base, it will begin with a 'T'. 'T' identifiers represent intra-document co-references.
    • getConfidence

      public Double getConfidence()
      Returns:
      the confidence score for the entity (0.0-1.0)
    • getLinkingConfidence

      public Double getLinkingConfidence()
      Returns:
      the confidence score for linking the entity to the knowledge base (0.0-1.0)
    • getSalience

      public Double getSalience()
      Returns:
      the salience score for the entity (0.0|1.0)
    • getSentiment

      public Label getSentiment()
      Returns:
      the sentiment information.
    • getDbpediaType

      @Deprecated public String getDbpediaType()
      Deprecated.
      use dbpediaTypes instead.
      Returns:
      the DBpediaType
    • getDbpediaTypes

      public List<String> getDbpediaTypes()
      Returns:
      the DBpediaTypes
      Since:
      1.14.0 (19.08)
    • getPermId

      public String getPermId()
      Returns:
      the PermID
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object