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

Method tgt_lens

seq2seq/utils.py:162–164  ·  view source on GitHub ↗

Length in characters of target documents

(self)

Source from the content-addressed store, hash-verified

160
161 @cached_property
162 def tgt_lens(self):
163 """Length in characters of target documents"""
164 return self.get_char_lens(self.tgt_file)
165
166 def make_sortish_sampler(self, batch_size, distributed=False, shuffle=True, **kwargs):
167 if distributed:

Callers

nothing calls this directly

Calls 1

get_char_lensMethod · 0.95

Tested by

no test coverage detected