Module org.elasticsearch.xcore
Interface NlpConfig
- All Superinterfaces:
InferenceConfig,LenientlyParsedInferenceConfig,NamedWriteable,NamedXContentObject,StrictlyParsedInferenceConfig,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,VersionedNamedWriteable,Writeable
- All Known Implementing Classes:
FillMaskConfig,NerConfig,PassThroughConfig,QuestionAnsweringConfig,TextClassificationConfig,TextEmbeddingConfig,TextExpansionConfig,TextSimilarityConfig,ZeroShotClassificationConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final MlConfigVersionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfig
DEFAULT_RESULTS_FIELD, DEFAULT_TOP_CLASSES_RESULTS_FIELD, RESULTS_FIELDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleandefault booleanMethods inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfig
apply, getDefaultInput, getMinimalSupportedMlConfigVersion, getMinimalSupportedTransportVersion, getMinimalSupportedVersion, getMinLicenseSupported, getMinLicenseSupportedForAction, getResultsField, incompatibleUpdateException, isAllocateOnly, isTargetTypeSupported, requestingImportance, validateTrainedModelInputMethods inherited from interface org.elasticsearch.xpack.core.ml.utils.NamedXContentObject
getNameMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getWriteableName, supportsVersion
-
Field Details
-
VOCABULARY
static final org.elasticsearch.xcontent.ParseField VOCABULARY -
TOKENIZATION
static final org.elasticsearch.xcontent.ParseField TOKENIZATION -
CLASSIFICATION_LABELS
static final org.elasticsearch.xcontent.ParseField CLASSIFICATION_LABELS -
NUM_TOP_CLASSES
static final org.elasticsearch.xcontent.ParseField NUM_TOP_CLASSES -
MINIMUM_NLP_SUPPORTED_VERSION
-
-
Method Details
-
getVocabularyConfig
VocabularyConfig getVocabularyConfig()- Returns:
- the vocabulary configuration that allows retrieving it
-
getTokenization
Tokenization getTokenization()- Returns:
- the model tokenization parameters
-
supportsIngestPipeline
default boolean supportsIngestPipeline()- Specified by:
supportsIngestPipelinein interfaceInferenceConfig
-
supportsPipelineAggregation
default boolean supportsPipelineAggregation()- Specified by:
supportsPipelineAggregationin interfaceInferenceConfig
-
supportsSearchRescorer
default boolean supportsSearchRescorer()- Specified by:
supportsSearchRescorerin interfaceInferenceConfig
-