Closed wlr737 closed 1 year ago
./codes_zcj/metric/word2vec/evaluate.py 中第15行中: class Embedding(object): def init(self): path = '/home/zhengchujie/wordvector/english/glove6B' # please modify the path manually
self.m = KeyedVectors.load(os.path.join(path, 'glove.6B.300d.model.bin'), mmap='r') try: self.unk = self.m.vectors.mean(axis=0) except AttributeError: self.unk = self.m.syn0.mean(axis=0)
'glove.6B.300d.model.bin'文件要怎么下载呢
https://onedrive.live.com/?authkey=%21AM6UkpxAQnqqtaY&id=750C6D59C3BFBC4C%215438&cid=750C6D59C3BFBC4C
./codes_zcj/metric/word2vec/evaluate.py 中第15行中: class Embedding(object): def init(self): path = '/home/zhengchujie/wordvector/english/glove6B' # please modify the path manually
path = ''
'glove.6B.300d.model.bin'文件要怎么下载呢