MCPcopy Create free account
hub / github.com/CaraJ7/MMSearch / load

Method load

retrieve_content/tokenization/utils.py:16–21  ·  view source on GitHub ↗
(cls, path)

Source from the content-addressed store, hash-verified

14
15 @classmethod
16 def load(cls, path):
17 try:
18 with open(path, 'rb') as f:
19 return pickle.load(f)
20 except (pickle.PickleError, OSError) as e:
21 raise IOError('Unable to load {} from path: {}'.format(cls.__name__, path)) from e

Callers 8

eval_rerank.pyFile · 0.80
eval_end2end.pyFile · 0.80
eval_requery.pyFile · 0.80
_get_fullpage_contentFunction · 0.80
load_modelFunction · 0.80
mmsearch_engine.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected