(
    shape: Tuple[int, int], split_lengths: List[int], align: Ragged, max_length: int
)
return mask
Return a two-dimensional boolean mask, indicating whether wordpieces
    are dropped from their sequences.

    Drop wordpieces from the end of the sequence.
Return a two-dimensional boolean mask, indicating whether wordpieces
    are dropped from their sequences.
Return a two - dimensional boolean mask indicating whether wordpieces are dropped from their sequences .
def _get_truncation_mask_drop_from_end(
    shape: Tuple[int, int], split_lengths: List[int], align: Ragged, max_length: int
) -> numpy.ndarray:
    """Return a two-dimensional boolean mask, indicating whether wordpieces
    are dropped from their sequences.

    Drop wordpieces from the end of the sequence.
    """
    mask = numpy.ones(shape, dtype="bool")
    mask[:, max_length:] = 0
    return mask
def _get_truncation_mask_drop_from_end ( shape : Tuple [ int , int ] , split_lengths : List [ int ] , align : Ragged , max_length : int ) -> numpy . ndarray : mask = numpy . ones ( shape , dtype = "bool" ) mask [ : , max_length : ] = 0 return mask