Constructor and Description |
---|
AnnotatorFactory(GenerationConfig generationConfig) |
Modifier and Type | Method and Description |
---|---|
Annotator |
getAnnotator(AnnotationStyle style)
Create a new
Annotator that can create annotations according to
the given style. |
CompositeAnnotator |
getAnnotator(Annotator... annotators) |
Annotator |
getAnnotator(Class<? extends Annotator> clazz)
Create a new custom
Annotator from the given class. |
public AnnotatorFactory(GenerationConfig generationConfig)
public Annotator getAnnotator(AnnotationStyle style)
Annotator
that can create annotations according to
the given style.style
- the annotation style that dictates what kind of annotations
are required.public Annotator getAnnotator(Class<? extends Annotator> clazz)
Annotator
from the given class.clazz
- A class implementing Annotator
.public CompositeAnnotator getAnnotator(Annotator... annotators)
Copyright © 2022. All rights reserved.