Package com.basistech.rosette.dm
Class Concept
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Concept
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID associated with the conceptReturns the name for the conceptReturns the salience associated with this conceptprotected com.google.common.base.MoreObjects.ToStringHelperMethods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
Concept
-
-
Method Details
-
getPhrase
Returns the name for the concept- Returns:
- phrase the name of the concept
-
getSalience
Returns the salience associated with this concept- Returns:
- the salience
-
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:
toStringHelperin classBaseAttribute
-