__init__.py 文件源码

python
阅读 15 收藏 0 点赞 0 评论 0

项目:all2vec 作者: iheartradio 项目源码 文件源码
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)
                )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号