public class StringListToIndicesNDArrayTransform extends StringListToCountsNDArrayTransform
binary, columnIdx, columnName, delimiter, ignoreUnknown, map, newColumnName, vocabulary
inputSchema
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, transform
getInputSchema, mapSequence
public 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 StringListToCountsNDArrayTransform
Copyright © 2020. All rights reserved.