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 |
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 |
com.google.common.collect.Multimap<TextAnnotation,EntityAnnotation> |
getEntityAnnotationsByTextAnnotation() |
Collection<String> |
getLanguages()
Returns a
Collection of identified languages in the analyzed content |
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 |
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() |
public 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<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 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 Collection<TopicAnnotation> getCategories()
Collection of extracted categories (topics) for the analyzed contentpublic boolean hasCategory(String conceptURI)
conceptURI - URI of the category conceptCopyright © 2014 Redlink GmbH. All rights reserved.