Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RingBDStack/GDAP
/ get_char_lens
Method
get_char_lens
seq2seq/utils.py:158–159 ·
view source on GitHub ↗
(data_file)
Source
from the content-addressed store, hash-verified
156
157
@staticmethod
158
def
get_char_lens(data_file):
159
return
[len(x)
for
x in Path(data_file).open().readlines()]
160
161
@cached_property
162
def
tgt_lens(self):
Callers
2
__init__
Method · 0.95
tgt_lens
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected