Class StringNGrams.Inputs<T extends TNumber>

java.lang.Object
org.tensorflow.op.RawOpInputs<StringNGrams<T>>
org.tensorflow.op.strings.StringNGrams.Inputs<T>
Enclosing class:
StringNGrams<T extends TNumber>

public static class StringNGrams.Inputs<T extends TNumber> extends RawOpInputs<StringNGrams<T>>
  • Field Details

    • data

      public final Operand<TString> data
      The values tensor of the ragged string tensor to make ngrams out of. Must be a 1D string tensor.
    • dataSplits

      public final Operand<T extends TNumber> dataSplits
      The splits tensor of the ragged string tensor to make ngrams out of.
    • separator

      public final String separator
      The string to append between elements of the token. Use "" for no separator.
    • ngramWidths

      public final long[] ngramWidths
      The sizes of the ngrams to create.
    • leftPad

      public final String leftPad
      The string to use to pad the left side of the ngram sequence. Only used if pad_width != 0.
    • rightPad

      public final String rightPad
      The string to use to pad the right side of the ngram sequence. Only used if pad_width != 0.
    • padWidth

      public final long padWidth
      The 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. If pad_width=-1, then add max(ngram_widths)-1 elements.
    • preserveShortSequences

      public final boolean preserveShortSequences
      The preserveShortSequences attribute
    • Tsplits

      public final DataType Tsplits
      The Tsplits attribute
  • Constructor Details