Class CommonTokenizationConfig.AbstractBuilder<BuilderT extends CommonTokenizationConfig.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.ml.CommonTokenizationConfig.AbstractBuilder<BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
NlpBertTokenizationConfig.Builder,NlpRobertaTokenizationConfig.Builder,XlmRobertaTokenizationConfig.Builder
- Enclosing class:
- CommonTokenizationConfig
public abstract static class CommonTokenizationConfig.AbstractBuilder<BuilderT extends CommonTokenizationConfig.AbstractBuilder<BuilderT>>
extends WithJsonObjectBuilderBase<BuilderT>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal BuilderTdoLowerCase(Boolean value) Should the tokenizer lower case the textfinal BuilderTmaxSequenceLength(Integer value) Maximum input sequence length for the modelprotected abstract BuilderTself()final BuilderTTokenization spanning options.final BuilderTtruncate(TokenizationTruncate value) Should tokenization input be automatically truncated before sending to the model for inferencefinal BuilderTwithSpecialTokens(Boolean value) Is tokenization completed with special tokensMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()
-
-
Method Details
-
doLowerCase
Should the tokenizer lower case the textAPI name:
do_lower_case -
maxSequenceLength
Maximum input sequence length for the modelAPI name:
max_sequence_length -
span
Tokenization spanning options. Special value of -1 indicates no spanning takes placeAPI name:
span -
truncate
Should tokenization input be automatically truncated before sending to the model for inferenceAPI name:
truncate -
withSpecialTokens
Is tokenization completed with special tokensAPI name:
with_special_tokens -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<BuilderT extends CommonTokenizationConfig.AbstractBuilder<BuilderT>>
-