Module org.elasticsearch.xcore
Interface NlpConfig
- All Superinterfaces:
InferenceConfig,LenientlyParsedInferenceConfig,NamedWriteable,NamedXContentObject,StrictlyParsedInferenceConfig,ToXContent,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
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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 ParseFieldstatic final MlConfigVersionstatic final ParseFieldstatic final ParseFieldstatic final 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
-
TOKENIZATION
-
CLASSIFICATION_LABELS
-
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
-