Class TokenizationConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TokenizationConfig.Builder>
co.elastic.clients.elasticsearch.ml.TokenizationConfig.Builder
- All Implemented Interfaces:
WithJson<TokenizationConfig.Builder>,ObjectBuilder<TokenizationConfig>
- Enclosing class:
- TokenizationConfig
public static class TokenizationConfig.Builder extends WithJsonObjectBuilderBase<TokenizationConfig.Builder> implements ObjectBuilder<TokenizationConfig>
-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ObjectBuilder<TokenizationConfig>bert(NlpBertTokenizationConfig v)ObjectBuilder<TokenizationConfig>bert(java.util.function.Function<NlpBertTokenizationConfig.Builder,ObjectBuilder<NlpBertTokenizationConfig>> fn)TokenizationConfigbuild()ObjectBuilder<TokenizationConfig>mpnet(NlpBertTokenizationConfig v)ObjectBuilder<TokenizationConfig>mpnet(java.util.function.Function<NlpBertTokenizationConfig.Builder,ObjectBuilder<NlpBertTokenizationConfig>> fn)ObjectBuilder<TokenizationConfig>roberta(NlpRobertaTokenizationConfig v)ObjectBuilder<TokenizationConfig>roberta(java.util.function.Function<NlpRobertaTokenizationConfig.Builder,ObjectBuilder<NlpRobertaTokenizationConfig>> fn)protected TokenizationConfig.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TokenizationConfig.Builder>
-
bert
-
bert
public ObjectBuilder<TokenizationConfig> bert(java.util.function.Function<NlpBertTokenizationConfig.Builder,ObjectBuilder<NlpBertTokenizationConfig>> fn) -
mpnet
-
mpnet
public ObjectBuilder<TokenizationConfig> mpnet(java.util.function.Function<NlpBertTokenizationConfig.Builder,ObjectBuilder<NlpBertTokenizationConfig>> fn) -
roberta
-
roberta
public ObjectBuilder<TokenizationConfig> roberta(java.util.function.Function<NlpRobertaTokenizationConfig.Builder,ObjectBuilder<NlpRobertaTokenizationConfig>> fn) -
build
- Specified by:
buildin interfaceObjectBuilder<TokenizationConfig>
-