public class Enhancements extends Object implements Iterable<Enhancement>
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<TextAnnotation,EntityAnnotation> |
getBestAnnotations()
Returns the best
EntityAnnotations (those with the highest confidence value) for each extracted TextAnnotation |
Collection<TopicAnnotation> |
getCategories()
Returns the
Collection of extracted categories (topics) for the analyzed content |
Double |
getDocumentSentiment()
Getter for the overall sentiment of the Document
|
Collection<Enhancement> |
getEnhancements()
Returns the
Collection of all Enhancements, including Text, Entity and Topic annotations |
Collection<Entity> |
getEntities()
Returns the
Collection of dereferenced Entitys |
Collection<Entity> |
getEntitiesByConfidenceValue(Double confidenceValue)
Returns a
Collection of Entitys for which associated EntityAnnotations has a confidence value
greater than or equal to the value passed by parameter |
Entity |
getEntity(String URI)
Returns a dereferenced entity by its URI
|
EntityAnnotation |
getEntityAnnotation(String entityUri)
Returns an
EntityAnnotation by its associated dereferenced Entity URI |
Collection<EntityAnnotation> |
getEntityAnnotations()
Returns the
Collection of extracted EntityAnnotations |
Collection<EntityAnnotation> |
getEntityAnnotations(TextAnnotation ta)
|
Collection<EntityAnnotation> |
getEntityAnnotationsByConfidenceValue(Double confidenceValue)
Returns a
Collection of EntityAnnotations which confidences values are greater than or equal
to the value passed by parameter |
Collection<EntityAnnotation> |
getEntityAnnotationsByConfidenceValue(Double minConfidenceValue,
Double maxConfidenceValue)
Returns a
Collection of EntityAnnotations which confidences values are greater than or equal
to the value passed by parameter |
com.google.common.collect.Multimap<TextAnnotation,EntityAnnotation> |
getEntityAnnotationsByTextAnnotation() |
Collection<KeywordAnnotation> |
getKeywordAnnotations()
Returns the
Collection of extracted EntityAnnotations |
Collection<KeywordAnnotation> |
getKeywordAnnotationsByCountMetric(Integer minCount,
Double minMetric)
Returns a
Collection of KeywordAnnotations which
a
count greater than or equal the required count
metric greater than or equals the required metric
y |
Collection<String> |
getLanguages()
Returns a
Collection of identified languages in the analyzed content |
Collection<SentimentAnnotation> |
getSentimentAnnotations()
Returns the
Collection of extracted SentimentAnnotations. |
Collection<TextAnnotation> |
getTextAnnotations()
Returns the
Collection of extracted TextAnnotations |
Collection<TextAnnotation> |
getTextAnnotationsByConfidenceValue(Double confidenceValue)
Returns a
Collection of TextAnnotations which confidences values are greater than or equal
to the value passed by parameter |
Collection<TopicAnnotation> |
getTopicAnnotations()
Returns the
Collection of extracted EntityAnnotations |
boolean |
hasCategory(String conceptURI)
Returns true if the contents has been categorized with a category identified by the URI passed by parameter
|
Iterator<Enhancement> |
iterator() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Iterator<Enhancement> iterator()
iterator in interface Iterable<Enhancement>public Collection<Enhancement> getEnhancements()
Collection of all Enhancements, including Text, Entity and Topic annotationspublic Collection<TextAnnotation> getTextAnnotations()
Collection of extracted TextAnnotationspublic Collection<EntityAnnotation> getEntityAnnotations()
Collection of extracted EntityAnnotationspublic Collection<SentimentAnnotation> getSentimentAnnotations()
Collection of extracted SentimentAnnotations. This
allows to process low level sentiment values extracted from sub-sections of the
document (e.g. on Sentence level). Use getDocumentSentiment() to
get the overall sentiment of the document as a wholegetDocumentSentiment()public Collection<TopicAnnotation> getTopicAnnotations()
Collection of extracted EntityAnnotationspublic Collection<Entity> getEntities()
Collection of dereferenced Entityspublic Entity getEntity(String URI)
URI - public Collection<EntityAnnotation> getEntityAnnotations(TextAnnotation ta)
ta - TextAnnotationpublic Collection<Entity> getEntitiesByConfidenceValue(Double confidenceValue)
Collection of Entitys for which associated EntityAnnotations has a confidence value
greater than or equal to the value passed by parameterconfidenceValue - Threshold confidence valuepublic Collection<TextAnnotation> getTextAnnotationsByConfidenceValue(Double confidenceValue)
Collection of TextAnnotations which confidences values are greater than or equal
to the value passed by parameterconfidenceValue - Threshold confidence valuepublic Collection<EntityAnnotation> getEntityAnnotationsByConfidenceValue(Double confidenceValue)
Collection of EntityAnnotations which confidences values are greater than or equal
to the value passed by parameterconfidenceValue - Threshold confidence valuepublic Collection<EntityAnnotation> getEntityAnnotationsByConfidenceValue(Double minConfidenceValue, Double maxConfidenceValue)
Collection of EntityAnnotations which confidences values are greater than or equal
to the value passed by parameterminConfidenceValue - Minimum threshold confidence valuemaxConfidenceValue - Maximum threshold confidence valuepublic com.google.common.collect.Multimap<TextAnnotation,EntityAnnotation> getEntityAnnotationsByTextAnnotation()
public com.google.common.collect.Multimap<TextAnnotation,EntityAnnotation> getBestAnnotations()
EntityAnnotations (those with the highest confidence value) for each extracted TextAnnotationpublic EntityAnnotation getEntityAnnotation(String entityUri)
EntityAnnotation by its associated dereferenced Entity URIentityUri - public Collection<String> getLanguages()
Collection of identified languages in the analyzed contentpublic Double getDocumentSentiment()
null if no sentiment component
is configured for the analysis.public Collection<TopicAnnotation> getCategories()
Collection of extracted categories (topics) for the analyzed contentpublic boolean hasCategory(String conceptURI)
conceptURI - URI of the category conceptpublic Collection<KeywordAnnotation> getKeywordAnnotations()
Collection of extracted EntityAnnotationspublic Collection<KeywordAnnotation> getKeywordAnnotationsByCountMetric(Integer minCount, Double minMetric)
Collection of KeywordAnnotations which
a minCount - Threshold count value or null for no thresholdminMetric - Threshold metric value or null for no thresholdKeywordAnnotations fulfilling the parsed requirements.Copyright © 2018 Redlink GmbH. All rights reserved.