def Y_to_outputs(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, inputs=None, X=None, **kwargs) -> Iterable: yield from TxtBMESFormat.Y_to_tokens(self.tag_vocab, Y, gold, inputs)
def inputs_to_samples(self, inputs, gold=False): yield from TransformerTransform.inputs_to_samples( self, TxtBMESFormat.inputs_to_samples(self, inputs, gold), True)