Class StringNGrams.Inputs<T extends TNumber>
- Enclosing class:
StringNGrams<T extends TNumber>
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe values tensor of the ragged string tensor to make ngrams out of.The splits tensor of the ragged string tensor to make ngrams out of.final StringThe string to use to pad the left side of the ngram sequence.final long[]The sizes of the ngrams to create.final longThe number of padding elements to add to each side of each sequence.final booleanThe preserveShortSequences attributefinal StringThe string to use to pad the right side of the ngram sequence.final StringThe string to append between elements of the token.final DataTypeThe Tsplits attribute -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class RawOpInputs
attributeMetadata, attributeNames, attributes, attributeValue, attributeValues, equals, getOutputs, hashCode, toString
-
Field Details
-
data
-
dataSplits
-
separator
The string to append between elements of the token. Use "" for no separator. -
ngramWidths
public final long[] ngramWidthsThe sizes of the ngrams to create. -
leftPad
The string to use to pad the left side of the ngram sequence. Only used if pad_width != 0. -
rightPad
The string to use to pad the right side of the ngram sequence. Only used if pad_width != 0. -
padWidth
public final long padWidthThe number of padding elements to add to each side of each sequence. Note that padding will never be greater than 'ngram_widths'-1 regardless of this value. Ifpad_width=-1, then addmax(ngram_widths)-1elements. -
preserveShortSequences
public final boolean preserveShortSequencesThe preserveShortSequences attribute -
Tsplits
The Tsplits attribute
-
-
Constructor Details
-
Inputs
-