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

Function load_data

rq/text2emb/amazon_text2emb.py:14–19  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

12from accelerate.utils import gather_object
13
14def load_data(args):
15 if args.root:
16 print("args.root: ", args.root)
17 item2feature_path = os.path.join(args.root, f'{args.dataset}.item.json')
18 item2feature = load_json(item2feature_path)
19 return item2feature
20
21def generate_text(item2feature, features):
22 item_text_list = []

Callers 1

preprocess_textFunction · 0.70

Calls 1

load_jsonFunction · 0.85

Tested by

no test coverage detected