MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / __init__

Method __init__

sft.py:31–36  ·  view source on GitHub ↗
(self, data_path, dataset, index_file=".index.json")

Source from the content-addressed store, hash-verified

29
30class TokenExtender:
31 def __init__(self, data_path, dataset, index_file=".index.json"):
32 self.data_path = data_path
33 self.dataset = dataset
34 self.index_file = index_file
35 self.indices = None
36 self.new_tokens = None
37
38 def _load_data(self):
39 with open(os.path.join(self.data_path, self.dataset + self.index_file), 'r') as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected