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 BuilderT
doLowerCase
(Boolean value) Should the tokenizer lower case the textfinal BuilderT
maxSequenceLength
(Integer value) Maximum input sequence length for the modelprotected abstract BuilderT
self()
final BuilderT
Tokenization spanning options.final BuilderT
truncate
(TokenizationTruncate value) Should tokenization input be automatically truncated before sending to the model for inferencefinal BuilderT
withSpecialTokens
(Boolean value) Is tokenization completed with special tokensMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:
self
in classWithJsonObjectBuilderBase<BuilderT extends CommonTokenizationConfig.AbstractBuilder<BuilderT>>
-