public class TextToTermIndexSequenceTransform extends BaseSequenceExpansionTransform
expandedColumnNames, inputSchema, requiredColumns| Constructor and Description |
|---|
TextToTermIndexSequenceTransform(String columnName,
String newColumnName,
List<String> vocabulary,
String delimiter,
boolean exceptionOnUnknown) |
TextToTermIndexSequenceTransform(String columnName,
String newColumnName,
Map<String,Integer> wordIndexMap,
String delimiter,
boolean exceptionOnUnknown) |
| Modifier and Type | Method and Description |
|---|---|
protected List<ColumnMetaData> |
expandedColumnMetaDatas(List<ColumnMetaData> origColumnMeta,
List<String> expandedColumnNames) |
protected List<List<Writable>> |
expandTimeStep(List<Writable> currentStepValues) |
columnName, columnNames, map, map, mapSequence, mapSequence, outputColumnName, outputColumnNames, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputSchema, setInputSchemapublic TextToTermIndexSequenceTransform(String columnName, String newColumnName, List<String> vocabulary, String delimiter, boolean exceptionOnUnknown)
columnName - Name of the text columnnewColumnName - Name of the column after expansionvocabulary - Vocabularydelimiter - DelimiterexceptionOnUnknown - If true: throw an exception on unknown characters. False: skip unknown characters.public TextToTermIndexSequenceTransform(String columnName, String newColumnName, Map<String,Integer> wordIndexMap, String delimiter, boolean exceptionOnUnknown)
columnName - Name of the text columnnewColumnName - Name of the column after expansionwordIndexMap - Map from terms in vocabulary to indecesdelimiter - DelimiterexceptionOnUnknown - If true: throw an exception on unknown characters. False: skip unknown characters.protected List<ColumnMetaData> expandedColumnMetaDatas(List<ColumnMetaData> origColumnMeta, List<String> expandedColumnNames)
expandedColumnMetaDatas in class BaseSequenceExpansionTransformprotected List<List<Writable>> expandTimeStep(List<Writable> currentStepValues)
expandTimeStep in class BaseSequenceExpansionTransformCopyright © 2019. All rights reserved.