megatron.data.dataset_utils.is_start_piece#

megatron.data.dataset_utils.is_start_piece(piece)#

Check if the current word piece is the starting piece (BERT).