Class Concept

All Implemented Interfaces:
Serializable

public class Concept extends BaseAttribute implements Serializable
A reference to a high-level "concept" of a document. A concept can be an abstract or concrete topic that is highly relevant to the document in question. Concepts may or may not be explicitly referenced in the document, and as such do not refer to any specific span of text. Each Concept provides:
  • the name of the specific concept
  • a salience value associated with the concept
  • an ID that associates the concept some external knowledge base, e.g. Q23 from Wikidata.
See Also:
  • Constructor Details

  • Method Details

    • getPhrase

      public String getPhrase()
      Returns the name for the concept
      Returns:
      phrase the name of the concept
    • getSalience

      public Double getSalience()
      Returns the salience associated with this concept
      Returns:
      the salience
    • getConceptId

      public String getConceptId()
      Returns the ID associated with the concept
      Returns:
      the ID associated with the concept
    • toStringHelper

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