Uses of Class
org.opensextant.annotations.Annotation
Package
Description
DeepEye is an approach for simplifying typical NLP annotation exchanges.
-
Uses of Annotation in org.opensextant.annotations
Modifier and TypeMethodDescriptionAnnotationHelper.cacheAnnotation
(String contrib, String etype, String value, int start, String docid) Cache entity annotations, accumulating unique offsets for a name/value pair.protected Annotation
AnnotationHelper.cacheTaxonAnnotation
(String contrib, Taxon taxon, String value, int offset, String docid) Cache taxon entity annotation.static Annotation
AnnotationHelper.createAnnotation
(String contrib, String type, String val, int offset, int len, String docid) static Annotation
AnnotationHelper.createAnnotation
(String contrib, String type, String val, int offset, String docid) Creates a standard named entity annotation.static Annotation
AnnotationHelper.createCountryAnnotation
(String contrib, String type, String val, int offset, String docid, String country_code) Tracking a country name match of some sort.static Annotation
AnnotationHelper.createGeocodingAnnotation
(String contrib, String type, String val, int offset, String docid, Geocoding g) Encode geocoding annotations to be saved.static Annotation
AnnotationHelper.createTaxonAnnotation
(String contrib, String type, String val, int offset, String docid, Taxon n) Create an annotation for a Taxon node that has a found value, val, in document, docid at offset.static Annotation
AnnotationHelper.createTemporalAnnotation
(String contrib, String type, String val, int offset, int len, String docid, Date d, String resolution) Same createTemporalEntityAnnotation, just with len param.static Annotation
AnnotationHelper.createTemporalEntityAnnotation
(String contrib, String type, String val, int offset, String docid, Date d, String resolution) Creates the temporal entity annotation.AnnotationHelper.getCachedAnnotation
(String etype, String value) Careful -- no guarntee that two entity annotations could share the same type/value unintentionally.Modifier and TypeMethodDescriptionstatic List<Annotation>
AnnotationHelper.decodeAnnotations
(List<Annotation> codedAnnots) Given encoded annotations from db, decode them and yield a flattened set of annotations, e.g., for use with MATstatic List<Annotation>
AnnotationHelper.decodeOffsets
(Annotation meta, String offsetList) Generate annotations in a linear fashion.DeepEyeStore.findSimilar
(Annotation q) given the shell of a annot, find similar records.AnnotationHelper.getCachedAnnotations()
Gets the cached annotations, unordered.Modifier and TypeMethodDescriptionvoid
DeepEyeStore.add
(Annotation A) add a single Annotation.void
AnnotationHelper.cacheAnnotation
(Annotation ea) Cache annotation.void
AnnotationHelper.cacheAnnotation
(Annotation ea, int start) Cache entity annotation - in Memory; Note, the actual ID or key in database is usually composed of name+value+contrib.void
AnnotationHelper.cacheAnnotation
(Annotation ea, String key) Cache an annotation.static Country
AnnotationHelper.createCountry
(Annotation a) Returns an instance of a Country object using annotation value as country name, and attr[cc] optionally as code.static Place
AnnotationHelper.createGeocoding
(Annotation a) Decode: Geocoding See OpenSextant Geocoding interface.static Taxon
AnnotationHelper.createTaxon
(Annotation a) Recreates a Taxon from a stored annotation.static List<Annotation>
AnnotationHelper.decodeOffsets
(Annotation meta, String offsetList) Generate annotations in a linear fashion.DeepEyeStore.findSimilar
(Annotation q) given the shell of a annot, find similar records.static long
AnnotationHelper.getFirstOffset
(Annotation a) Gets the first offset.void
DeepEyeStore.update
(Annotation A) Update an existing annotation.Modifier and TypeMethodDescriptionvoid
DeepEyeStore.add
(Collection<Annotation> aList) add a list of entity annotations.static List<Annotation>
AnnotationHelper.decodeAnnotations
(List<Annotation> codedAnnots) Given encoded annotations from db, decode them and yield a flattened set of annotations, e.g., for use with MAT