Class HuggingFaceTokenizerConfig
java.lang.Object
com.yahoo.config.Node
com.yahoo.config.InnerNode
com.yahoo.config.ConfigInstance
com.yahoo.language.huggingface.config.HuggingFaceTokenizerConfig
public final class HuggingFaceTokenizerConfig
extends com.yahoo.config.ConfigInstance
This class represents the root node of hugging-face-tokenizer
Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classThis class represents hugging-face-tokenizer.model[]static final classThis class represents hugging-face-tokenizer.padding Padding strategy.static interfacestatic final classThis class represents hugging-face-tokenizer.truncation Truncation strategy. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.yahoo.config.ConfigInstance
getDefName, getDefNamespace, serialize, serializeMethods inherited from class com.yahoo.config.InnerNode
equals, getAllDescendantLeafNodes, getChildren, getChildrenWithVectorsFlattened, hashCode, postInitialize, toStringMethods inherited from class com.yahoo.config.Node
clone
-
Field Details
-
CONFIG_DEF_MD5
- See Also:
-
CONFIG_DEF_NAME
- See Also:
-
CONFIG_DEF_NAMESPACE
- See Also:
-
CONFIG_DEF_SCHEMA
-
-
Constructor Details
-
HuggingFaceTokenizerConfig
-
-
Method Details
-
getDefMd5
-
getDefName
-
getDefNamespace
-
model
- Returns:
- hugging-face-tokenizer.model[]
-
model
- Parameters:
i- the index of the value to return- Returns:
- hugging-face-tokenizer.model[]
-
addSpecialTokens
public boolean addSpecialTokens()- Returns:
- hugging-face-tokenizer.addSpecialTokens
-
maxLength
public int maxLength()- Returns:
- hugging-face-tokenizer.maxLength
-
truncation
- Returns:
- hugging-face-tokenizer.truncation
-
padding
- Returns:
- hugging-face-tokenizer.padding
-