{ }
Creates ngrams from ragged string data.
tf.raw_ops.StringNGrams(
data,
data_splits,
separator,
ngram_widths,
left_pad,
right_pad,
pad_width,
preserve_short_sequences,
name=None
)
This op accepts a ragged tensor with 1 ragged dimension containing only strings and outputs a ragged tensor with 1 ragged dimension containing ngrams of that string, joined along the innermost axis.
Returns | |
---|---|
A tuple of Tensor objects (ngrams, ngrams_splits).
|
|
ngrams
|
A Tensor of type string .
|
ngrams_splits
|
A Tensor . Has the same type as data_splits .
|