| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
TextData.Configuration |
setEmbeddingSize(int embeddingSize)
Sets the size for new
TextEmbeddings. |
TextData.Configuration |
setReservedTokens(java.util.List<java.lang.String> reservedTokens)
Sets the list of reserved tokens.
|
TextData.Configuration |
setTextEmbedding(ai.djl.modality.nlp.embedding.TextEmbedding textEmbedding)
Sets the
TextEmbedding to use to embed the text data. |
TextData.Configuration |
setTextProcessors(java.util.List<ai.djl.modality.nlp.preprocess.TextProcessor> textProcessors)
Sets the
TextProcessors to use for the text data. |
TextData.Configuration |
setUnknownToken(java.lang.String unknownToken)
Sets the default unknown token.
|
TextData.Configuration |
setVocabulary(ai.djl.modality.nlp.Vocabulary vocabulary)
Sets the
Vocabulary to use to hold the text data. |
TextData.Configuration |
update(TextData.Configuration other)
Updates this
TextData.Configuration with the non-null values from another configuration. |
public TextData.Configuration setTextProcessors(java.util.List<ai.djl.modality.nlp.preprocess.TextProcessor> textProcessors)
TextProcessors to use for the text data.textProcessors - the TextProcessorspublic TextData.Configuration setTextEmbedding(ai.djl.modality.nlp.embedding.TextEmbedding textEmbedding)
TextEmbedding to use to embed the text data.textEmbedding - the TextEmbeddingpublic TextData.Configuration setVocabulary(ai.djl.modality.nlp.Vocabulary vocabulary)
Vocabulary to use to hold the text data.vocabulary - the Vocabularypublic TextData.Configuration setEmbeddingSize(int embeddingSize)
TextEmbeddings.embeddingSize - the embedding sizepublic TextData.Configuration setUnknownToken(java.lang.String unknownToken)
unknownToken - the String value of unknown tokenpublic TextData.Configuration setReservedTokens(java.util.List<java.lang.String> reservedTokens)
reservedTokens - true to train the text embeddingpublic TextData.Configuration update(TextData.Configuration other)
TextData.Configuration with the non-null values from another configuration.other - the other configuration to use to update this