Uses of Class
com.gengoai.hermes.AnnotationType
-
Packages that use AnnotationType Package Description com.gengoai.hermes Hermes is a framework for Natural Language Processing.com.gengoai.hermes.annotator com.gengoai.hermes.extraction com.gengoai.hermes.extraction.lyre com.gengoai.hermes.format com.gengoai.hermes.format.conll com.gengoai.hermes.ml -
-
Uses of AnnotationType in com.gengoai.hermes
Fields in com.gengoai.hermes declared as AnnotationType Modifier and Type Field Description static AnnotationType
Types. CONSTITUENT_PARSE
AnnotationType denoting that a constituent parse has be performed.static AnnotationType
Types. ENTITY
Entity annotation typestatic AnnotationType
Types. LEXICON_MATCH
AnnotationType for lexicon matchesstatic AnnotationType
Types. ML_ENTITY
Machine learning provided Entitiesstatic AnnotationType
Types. MWE
Multi-word expression annotationsstatic AnnotationType
Types. NON_TERMINAL_NODE
Non-Terminal node in a constituency parsestatic AnnotationType
Types. PHRASE_CHUNK
Phrase Chunk annotation typestatic AnnotationType
AnnotationType. ROOT
The constant ROOT representing the base annotation type.static AnnotationType
Types. SENTENCE
Sentence annotation typestatic AnnotationType
Types. TOKEN
Token annotation typestatic AnnotationType
Types. TOKEN_TYPE_ENTITY
AnnotationType for Entities identified using TokenTypes.static AnnotationType
Types. WORD_SENSE
Methods in com.gengoai.hermes that return AnnotationType Modifier and Type Method Description static AnnotationType
Types. annotation(String name)
Annotation annotation type.AnnotationType
Annotation. getType()
static AnnotationType
AnnotationType. make(AnnotationType parent, String name)
Makes a new or retrieves an existing AnnotationType with the given parent and namestatic AnnotationType
AnnotationType. make(AnnotationType parent, String name, AttributeType<? extends Tag> tagAttributeType)
Makes a new or retrieves an existing AnnotationType with the given parent and namestatic AnnotationType
AnnotationType. make(String name)
Makes a new or retrieves an existing AnnotationType.static AnnotationType
AnnotationType. make(String name, AttributeType<? extends Tag> tagAttributeType)
Makes a new or retrieves an existing AnnotationType.static AnnotationType
AnnotationType. valueOf(String name)
Methods in com.gengoai.hermes that return types with arguments of type AnnotationType Modifier and Type Method Description protected HierarchicalRegistry<AnnotationType>
AnnotationType. registry()
static Collection<AnnotationType>
AnnotationType. values()
Methods in com.gengoai.hermes with parameters of type AnnotationType Modifier and Type Method Description default Document.AnnotationBuilder
Document. annotationBuilder(@NonNull AnnotationType type)
Creates an annotation builder for adding annotations to the document.default RelationGraph
HString. annotationGraph(Tuple relationTypes, AnnotationType... annotationTypes)
Constructs a relation graph with the given relation types as the edges and the given annotation types as the vertices (theHString.interleaved(AnnotationType...)
method is used to get the annotations).List<Annotation>
Document. annotations(AnnotationType type, Span span)
Gets annotations of the given type that overlap with the given span.List<Annotation>
Document. annotations(AnnotationType type, Span span, Predicate<? super Annotation> filter)
Gets annotations of the given type that overlap with the given span and meet the given filter.default List<Annotation>
HString. annotations(@NonNull AnnotationType type)
Gets annotations of a given type that overlap with this HString.default List<Annotation>
HString. annotations(@NonNull AnnotationType type, @NonNull Predicate<? super Annotation> filter)
Gets annotations of a given type and that test positive for the given filter that overlap with this HString.default Stream<Annotation>
HString. annotationStream(@NonNull AnnotationType type)
Gets a java Stream over annotations of the given type overlapping this HString.default Annotation
HString. asAnnotation(@NonNull AnnotationType type)
Attempts to cast this HString to an Annotation of the given type.default HString
HString. context(@NonNull AnnotationType type, int windowSize)
Generates a new HString consisting of this HString and its given window size (number) of annotation type to the left and right.Annotation
Document. createAnnotation(AnnotationType type, int start, int end, Map<AttributeType<?>,?> attributeMap)
Creates an annotation of the given type encompassing the given span and having the given attributes.Annotation
Document. createAnnotation(AnnotationType type, int start, int end, Map<AttributeType<?>,?> attributeMap, List<Relation> relations)
Creates an annotation of the given type encompassing the given span and having the given attributes.default RelationGraph
HString. dependencyGraph(@NonNull AnnotationType... types)
Creates aRelationGraph
with dependency edges and vertices made up of the given types.default List<Annotation>
HString. enclosedAnnotations(@NonNull AnnotationType annotationType)
Gets all annotations of the given type enclosed by this HStringdefault Annotation
HString. first(@NonNull AnnotationType type)
Gets the first annotation overlapping this HString with the given annotation type.default void
HString. forEach(@NonNull AnnotationType type, @NonNull Consumer<? super Annotation> consumer)
Convenience method for processing annotations of a given type.default boolean
HString. hasAnnotation(@NonNull AnnotationType annotationType)
Determines if a annotation of a given type is associated with the HStringdefault List<Annotation>
HString. interleaved(AnnotationType... types)
Returns the annotations of the given types that overlap this string in a maximum match fashion.default boolean
Annotation. isInstance(@NonNull AnnotationType type)
default boolean
HString. isInstance(AnnotationType type)
Returns true this HString is an instance of the given annotation typedefault Annotation
HString. last(@NonNull AnnotationType type)
Gets the last annotation overlapping this HString with the given annotation type.default HString
HString. leftContext(@NonNull AnnotationType type, int windowSize)
Generates an HString representing thewindowSize
of given annotation types to the left of the start of this HString.static AnnotationType
AnnotationType. make(AnnotationType parent, String name)
Makes a new or retrieves an existing AnnotationType with the given parent and namestatic AnnotationType
AnnotationType. make(AnnotationType parent, String name, AttributeType<? extends Tag> tagAttributeType)
Makes a new or retrieves an existing AnnotationType with the given parent and nameAnnotation
AnnotationSet. next(Annotation annotation, AnnotationType type)
Gets the first annotation after a given one of the given typeAnnotation
Document. next(Annotation annotation, AnnotationType type)
Determines the next annotation of the given type after the given annotation (e.g.default Annotation
HString. next(@NonNull AnnotationType type)
Gets the annotation of a given type that is next in order (of span) to this onestatic Annotation
Fragments. orphanedAnnotation(AnnotationType annotationType)
Creates an orphaned empty annotation, i.e.Annotation
AnnotationSet. previous(Annotation annotation, AnnotationType type)
Gets the first annotation before a given one of the given typeAnnotation
Document. previous(Annotation annotation, AnnotationType type)
Determines the previous annotation of the given type after the given annotation (e.g.default Annotation
HString. previous(@NonNull AnnotationType type)
Gets the annotation of a given type that is previous in order (of span) to this oneList<Annotation>
AnnotationSet. removeAll(AnnotationType type)
Removes all annotations of a given type and marks that type as not completed.void
Document. removeAnnotationType(AnnotationType type)
Removes all annotations of a given type.default HString
HString. rightContext(@NonNull AnnotationType type, int windowSize)
Generates an HString representing thewindowSize
of given annotation types to the right of the end of this HString without going past the sentence end.default List<Annotation>
HString. startingHere(@NonNull AnnotationType type)
Gets annotations of a given type that have the same starting offset as this HString. -
Uses of AnnotationType in com.gengoai.hermes.annotator
Constructors in com.gengoai.hermes.annotator with parameters of type AnnotationType Constructor Description FuzzyLexiconAnnotator(@NonNull AnnotationType annotationType, @NonNull AttributeType<?> attributeType, @NonNull Lexicon lexicon, @NonNull Language lexiconLanguage, int maxDistance)
Instantiates a new FuzzyLexiconAnnotator.FuzzyLexiconAnnotator(@NonNull AnnotationType annotationType, @NonNull AttributeType<?> attributeType, @NonNull String lexiconName, @NonNull Language lexiconLanguage, int maxDistance)
Instantiates a new FuzzyLexiconAnnotator.LexiconAnnotator(@NonNull AnnotationType type, @NonNull Lexicon lexicon)
Instantiates a new LexiconAnnotator.LexiconAnnotator(@NonNull AnnotationType type, @NonNull String lexiconName)
Instantiates a new LexiconAnnotator.RegexAnnotator(@NonNull String regex, @NonNull AnnotationType providedType)
Instantiates a new RegexAnnotator.SubTypeAnnotator(@NonNull AnnotationType annotationType, boolean nonOverlapping, @NonNull Collection<AnnotationType> subTypes)
Instantiates a new SubTypeAnnotator.SubTypeAnnotator(@NonNull AnnotationType annotationType, @NonNull Collection<AnnotationType> subTypes)
Instantiates a new SubTypeAnnotator where overlapping annotations is not allowed..Constructor parameters in com.gengoai.hermes.annotator with type arguments of type AnnotationType Constructor Description SubTypeAnnotator(@NonNull AnnotationType annotationType, boolean nonOverlapping, @NonNull Collection<AnnotationType> subTypes)
Instantiates a new SubTypeAnnotator.SubTypeAnnotator(@NonNull AnnotationType annotationType, @NonNull Collection<AnnotationType> subTypes)
Instantiates a new SubTypeAnnotator where overlapping annotations is not allowed.. -
Uses of AnnotationType in com.gengoai.hermes.extraction
Fields in com.gengoai.hermes.extraction declared as AnnotationType Modifier and Type Field Description protected @NonNull AnnotationType[]
MultiPhaseExtractor.MultiPhaseExtractorBuilder. annotationTypes
Methods in com.gengoai.hermes.extraction with parameters of type AnnotationType Modifier and Type Method Description V
MultiPhaseExtractor.MultiPhaseExtractorBuilder. annotations(AnnotationType... types)
The annotations to base the extraction onMethod parameters in com.gengoai.hermes.extraction with type arguments of type AnnotationType Modifier and Type Method Description V
MultiPhaseExtractor.MultiPhaseExtractorBuilder. annotations(List<AnnotationType> types)
The annotations to base the extraction on -
Uses of AnnotationType in com.gengoai.hermes.extraction.lyre
Methods in com.gengoai.hermes.extraction.lyre with parameters of type AnnotationType Modifier and Type Method Description static LyreExpression
LyreDSL. annotation(@NonNull AnnotationType type)
Returns all annotations of the given type overlapping with the current HStringstatic LyreExpression
LyreDSL. annotation(@NonNull AnnotationType type, @NonNull LyreExpression expression)
Returns all annotations of the given type overlapping with the HString resulting from the given expression.static LyreExpression
LyreDSL. annotation(@NonNull AnnotationType type, @NonNull LyreExpression expression, String tag)
Returns all annotations of the given type overlapping with the HString resulting from the given expression.static LyreExpression
LyreDSL. annotation(@NonNull AnnotationType type, String tag)
Returns all annotations of the given type overlapping with the current HStringstatic LyreExpression
LyreDSL. interleave(@NonNull AnnotationType... types)
Returns all annotations of the given types in interleaved fashion (seeHString.interleaved(AnnotationType...)
**static LyreExpression
LyreDSL. iob(@NonNull AnnotationType type)
Generates IOB-formatted tags for the given expressionstatic LyreExpression
LyreDSL. iob(@NonNull AnnotationType type, @NonNull LyreExpression expression)
Generates IOB-formatted tags for the given expression -
Uses of AnnotationType in com.gengoai.hermes.format
Fields in com.gengoai.hermes.format with type parameters of type AnnotationType Modifier and Type Field Description static ParameterDef<AnnotationType>
TaggedFormat. ANNOTATION_TYPE
The constant ANNOTATION_TYPE.ParamMap.Parameter<AnnotationType>
TaggedFormat.TaggedParameters. annotationType
The Annotation type. -
Uses of AnnotationType in com.gengoai.hermes.format.conll
Constructors in com.gengoai.hermes.format.conll with parameters of type AnnotationType Constructor Description IOBFieldProcessor(AnnotationType annotationType, AttributeType<?> attributeType)
Instantiates a new IOBFieldProcessor. -
Uses of AnnotationType in com.gengoai.hermes.ml
Methods in com.gengoai.hermes.ml with parameters of type AnnotationType Modifier and Type Method Description static HStringDataSetGenerator.Builder
HStringDataSetGenerator. builder(@NonNull AnnotationType datumAnnotationType)
Creates a builder which will build an HStringDataSetGenerator where the givenAnnotationType
will be the basis for the Observation signals.static void
IOB. decode(@NonNull HString sentence, @NonNull Sequence<?> result, @NonNull AnnotationType annotationType)
static TagDecoder
IOB. decoder(@NonNull AnnotationType annotationType)
static ObservationExtractor<HString>
IOB. encoder(@NonNull AnnotationType annotationType)
static ObservationExtractor<HString>
IOB. encoder(@NonNull AnnotationType annotationType, @NonNull Set<String> validTags)
default HString
ContextualizedEmbedding. transform(@NonNull HString hString, @NonNull AnnotationType annotationType)
Constructors in com.gengoai.hermes.ml with parameters of type AnnotationType Constructor Description ElmoSeq2SeqModel(@NonNull AnnotationType annotationType, @NonNull AnnotationType trainingAnnotationType)
IOBTagger(@NonNull HStringDataSetGenerator inputGenerator, @NonNull AnnotationType annotationType, @NonNull Model labeler)
Instantiates a new IOBTagger
-