MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / __len__

Method __len__

seq2seq/utils.py:154–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 dataset_kwargs.update({"add_prefix_space": True} if isinstance(self.tokenizer, BartTokenizer) else {})
153
154 def __len__(self):
155 return len(self.src_lens)
156
157 @staticmethod
158 def get_char_lens(data_file):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected