public enum EmbeddingPresence extends Enum<EmbeddingPresence>
TokenSequence.embedded()
calls considerably in most cases.
TokenSequene.createEmbedding()
.Enum Constant and Description |
---|
ALWAYS_QUERY
Default embedding creation will always be attempted for each token since
the embedding presence varies (it may depend on token's text or other token properties).
|
CACHED_FIRST_QUERY
Creation of the default embedding for the particular
TokenId
will be attempted for the first time but if there will be no embedding
created then there will be no other attempts for embedding creation
for any tokens with the same token id. |
NONE
There is no default embedding for the given
TokenId
and its creation will not be attempted. |
Modifier and Type | Method and Description |
---|---|
static EmbeddingPresence |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmbeddingPresence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmbeddingPresence CACHED_FIRST_QUERY
TokenId
will be attempted for the first time but if there will be no embedding
created then there will be no other attempts for embedding creation
for any tokens with the same token id.
LanguageHierarchy.embeddingPresence(org.netbeans.api.lexer.TokenId)
.public static final EmbeddingPresence ALWAYS_QUERY
public static final EmbeddingPresence NONE
TokenId
and its creation will not be attempted.
public static EmbeddingPresence[] values()
public static EmbeddingPresence 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 null