public static enum SemanticAnnotationHelper.Mode extends Enum<SemanticAnnotationHelper.Mode>
Enum Constant and Description |
---|
ANNOTATION
The default mode: the helper gets annotation values and produces mention
URIs associated with them.
|
DOCUMENT
Mode used when indexing document features.
|
Modifier and Type | Method and Description |
---|---|
static SemanticAnnotationHelper.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SemanticAnnotationHelper.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SemanticAnnotationHelper.Mode ANNOTATION
public static final SemanticAnnotationHelper.Mode DOCUMENT
SemanticAnnotationHelper#getMentionUris(Annotation, int, Indexer)
method called once, with a null
value for the annotation. At
search time, the helper will emulate document-spanning annotations by
obtaining the document length from the
QueryEngine#getDocumentSizes()
method.public static SemanticAnnotationHelper.Mode[] values()
for (SemanticAnnotationHelper.Mode c : SemanticAnnotationHelper.Mode.values()) System.out.println(c);
public static SemanticAnnotationHelper.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 GATE. All rights reserved.