public class StringListToIndicesNDArrayTransform extends StringListToCountsNDArrayTransform
binary, columnIdx, columnName, delimiter, ignoreUnknown, map, newColumnName, vocabularyinputSchema| Constructor and Description |
|---|
StringListToIndicesNDArrayTransform(String columnName,
List<String> vocabulary,
String delimiter,
boolean binary,
boolean ignoreUnknown) |
StringListToIndicesNDArrayTransform(String columnName,
String newColumnName,
List<String> vocabulary,
String delimiter,
boolean binary,
boolean ignoreUnknown) |
| Modifier and Type | Method and Description |
|---|---|
protected INDArray |
makeBOWNDArray(Collection<Integer> indices) |
columnName, columnNames, getIndices, map, map, mapSequence, outputColumnName, outputColumnNames, readVocabFromFile, setInputSchema, toString, transformgetInputSchema, mapSequencepublic StringListToIndicesNDArrayTransform(String columnName, List<String> vocabulary, String delimiter, boolean binary, boolean ignoreUnknown)
columnName - The name of the column to convertvocabulary - The possible tokens that may be present.delimiter - The delimiter for the Strings to convertignoreUnknown - Whether to ignore unknown tokensprotected INDArray makeBOWNDArray(Collection<Integer> indices)
makeBOWNDArray in class StringListToCountsNDArrayTransformCopyright © 2019. All rights reserved.