def remove_eos(self, data, eos_token=EOS[1]): return operate_on_Narray(data, self._remove_eos, eos_token)
def add_eos(self, data, eos_token=EOS[1]): return operate_on_Narray(data, self._add_eos, eos_token)
def remove_go(self, data, go_token=GO[1]): return operate_on_Narray(data, self._remove_go, go_token)
def pad(self, data, max_len, pad_token=PAD[1], l_pad_len=0): return operate_on_Narray(data, self._pad, max_len, pad_token, l_pad_len)
def add_go(self, data, go_token=GO[1]): return operate_on_Narray(data, self._add_go, go_token)
def max_seq_len(self, batch_data): return operate_on_Narray(batch_data, max)
def seq_len(self, batch_data): return operate_on_Narray(batch_data, len)
def to_tokens(self, ids): return operate_on_Narray(ids, self.ids_to_tokens)
def combine_fn(self, tags): return operate_on_Narray(tags, self.combine_tag)
def modify_fn(self, tags): return operate_on_Narray(tags, self.modify_tag)