third_party/tensorflow-text/src/tensorflow_text/python/ops/trimmer_ops.py
def generate_masks(self, segments):
    """Generates a boolean mask specifying which portions of `segments` to drop.

    Users should be able to use the results of generate_masks() to drop items
    in segments using `tf.ragged.boolean_mask(seg, mask)`.

    Args:
      segments: A list of `RaggedTensor` each w/ a shape of [num_batch,
        (num_items)].

    Returns:
      a list with len(segments) number of items and where each item is a
      `RaggedTensor` with the same shape as its counterpart in `segments` and
      with a boolean dtype where each value is True if the corresponding
      value in `segments` should be kept and False if it should be dropped
      instead.
    """
    raise NotImplementedError()
Generates a boolean mask specifying which portions of `segments` to drop.

    Users should be able to use the results of generate_masks() to drop items
    in segments using `tf.ragged.boolean_mask(seg, mask)`.

    Args:
      segments: A list of `RaggedTensor` each w/ a shape of [num_batch,
        (num_items)].

    Returns:
      a list with len(segments) number of items and where each item is a
      `RaggedTensor` with the same shape as its counterpart in `segments` and
      with a boolean dtype where each value is True if the corresponding
      value in `segments` should be kept and False if it should be dropped
      instead.
    
Generates a boolean mask specifying which portions of `segments` to drop.
Users should be able to use the results of generate_masks() to drop items
in segments using `tf.ragged.boolean_mask(seg, mask)`.
Generates a boolean mask specifying which portions of ` segments ` to drop . Users should be able to use the results of generate_masks () to drop items in segments using ` tf . ragged . boolean_mask ( seg mask ) ` .
def generate_masks(self, segments):
    raise NotImplementedError()
def generate_masks ( self , segments ) : raise NotImplementedError ( )
Generates a boolean mask specifying which portions of `segments` to drop.
Generates a boolean mask specifying which portions of ` segments ` to drop .
"""Generates a boolean mask specifying which portions of `segments` to drop.

    Users should be able to use the results of generate_masks() to drop items
    in segments using `tf.ragged.boolean_mask(seg, mask)`.

    Args:
      segments: A list of `RaggedTensor` each w/ a shape of [num_batch,
        (num_items)].

    Returns:
      a list with len(segments) number of items and where each item is a
      `RaggedTensor` with the same shape as its counterpart in `segments` and
      with a boolean dtype where each value is True if the corresponding
      value in `segments` should be kept and False if it should be dropped
      instead.
    """
a list with len(segments) number of items and where each item is a
`RaggedTensor` with the same shape as its counterpart in `segments` and
with a boolean dtype where each value is True if the corresponding
value in `segments` should be kept and False if it should be dropped
instead.
a list with len ( segments ) number of items and where each item is a ` RaggedTensor ` with the same shape as its counterpart in ` segments ` and with a boolean dtype where each value is True if the corresponding value in ` segments ` should be kept and False if it should be dropped instead .
self
segments
A list of `RaggedTensor` each w/ a shape of [num_batch,
(num_items)].
A list of ` RaggedTensor ` each w / a shape of [ num_batch ( num_items ) ] .