Package com.basistech.rosette.dm
Class Keyphrase
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Keyphrase
- All Implemented Interfaces:
Serializable
A reference to a "keyphrase" of a document. Each keyphrase is a specific
span of text that is highly relevant to the document.
Each Keyphrase provides:
- the name of the specific keyphrase
- the salience associated with the keyphrase
- a list of Extents marking each location of the keyphrase in the text
- 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 list of extents marking the offsets of each instance of the keyphrase in the textReturns the name of the keyphraseReturns the salience value associated with the keyphraseprotected com.google.common.base.MoreObjects.ToStringHelper
Methods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
Keyphrase
-
-
Method Details
-
getPhrase
Returns the name of the keyphrase- Returns:
- phrase the name of the keyphrase
-
getSalience
Returns the salience value associated with the keyphrase- Returns:
- the salience value
-
getExtents
Returns the list of extents marking the offsets of each instance of the keyphrase in the text- Returns:
- the list of extents
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()- Overrides:
toStringHelper
in classBaseAttribute
-