def load_entities(self, entities, file_getter):
"""Load underlying entities."""
for k in entities:
annoy_filepath = file_getter.get_file_path('{}.ann'.format(k))
try:
self._annoy_objects[k].load(self,
annoy_filepath)
except IOError as e:
raise IOError(
"Error: cannot load file {0}, which was built "
"with the model. '{1}'".format(annoy_filepath, e)
)
评论列表
文章目录