| Package | Description |
|---|---|
| org.deeplearning4j.nn.modelimport.keras.preprocessing.text |
| Modifier and Type | Method and Description |
|---|---|
static TokenizerMode |
TokenizerMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenizerMode[] |
TokenizerMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
INDArray |
KerasTokenizer.sequencesToMatrix(Integer[][] sequences,
TokenizerMode mode)
Turns an array of index sequences into an ND4J matrix of shape
(number of texts, number of words in vocabulary)
|
INDArray |
KerasTokenizer.textsToMatrix(String[] texts,
TokenizerMode mode)
Turns an array of texts into an ND4J matrix of shape
(number of texts, number of words in vocabulary)
|
Copyright © 2021. All rights reserved.