public abstract class EnhancementsParser extends Object
Enhancements object, allowing the user to use the results in an easier way.| Constructor and Description |
|---|
EnhancementsParser() |
| Modifier and Type | Method and Description |
|---|---|
Enhancements |
createEnhancements()
Returns an
Enhancements object from a serialized Enhancement Structure |
abstract Double |
parseDocumentSentiment()
Returns the Sentiment for the processed document or
null if
no Sentiment analysis component is configured for the analysis. |
abstract Entity |
parseEntity(String entityUri,
String dataset)
Returns a dereferenced
Entity identified by its URI from a serialized Enhancement Structure |
abstract Collection<EntityAnnotation> |
parseEntityAnnotations()
Returns a
Collection of EntityAnnotations from a serialized Enhancement Structure |
abstract Collection<String> |
parseLanguages()
Returns a
Collection of languages from a serialized Enhancement Structure |
abstract Collection<SentimentAnnotation> |
parseSentimentAnnotation()
Returns a
Collection of SentimentAnnotations from a serialized Enhancement Structure |
abstract Collection<TextAnnotation> |
parseTextAnnotations()
Returns a
Collection of TextAnnotations from a serialized Enhancement Structure |
abstract Collection<TopicAnnotation> |
parseTopicAnnotation()
Returns a
Collection of TopicAnnotations from a serialized Enhancement Structure |
public final Enhancements createEnhancements() throws EnhancementParserException
Enhancements object from a serialized Enhancement StructureEnhancementParserExceptionpublic abstract Collection<String> parseLanguages() throws EnhancementParserException
Collection of languages from a serialized Enhancement StructureEnhancementParserExceptionpublic abstract Collection<TextAnnotation> parseTextAnnotations() throws EnhancementParserException
Collection of TextAnnotations from a serialized Enhancement StructureEnhancementParserExceptionpublic abstract Collection<EntityAnnotation> parseEntityAnnotations() throws EnhancementParserException
Collection of EntityAnnotations from a serialized Enhancement StructureEnhancementParserExceptionpublic abstract Collection<TopicAnnotation> parseTopicAnnotation() throws EnhancementParserException
Collection of TopicAnnotations from a serialized Enhancement StructureEnhancementParserExceptionpublic abstract Collection<SentimentAnnotation> parseSentimentAnnotation() throws EnhancementParserException
Collection of SentimentAnnotations from a serialized Enhancement StructureEnhancementParserExceptionpublic abstract Double parseDocumentSentiment() throws EnhancementParserException
null if
no Sentiment analysis component is configured for the analysis.null if not availableEnhancementParserExceptionpublic abstract Entity parseEntity(String entityUri, String dataset) throws EnhancementParserException
Entity identified by its URI from a serialized Enhancement StructureentityUri - EnhancementParserExceptionCopyright © 2018 Redlink GmbH. All rights reserved.