无法在 Jupyter Notebook 中加载 Pickled Glove 840b 300d

Unable to load Pickled Glove 840b 300d in Jupyter Notebook

%%time

glove_embeddings = np.load('https://www.kaggle.com/code/authman/pickled-glove-840b-300d', allow_pickle=True)
fasttext_embeddings = np.load('../input/pickled-crawl300d2m-for-kernel-competitions/crawl-300d-2M.pkl', allow_pickle=True)

获取错误:

FileNotFoundError: [Errno 2] 没有那个文件或目录: 'https://www.kaggle.com/code/authman/pickled-glove-840b-300d'

Kaggle link 的外部网站显示 404 错误消息,因此 URL 下没有可用文件。尝试登录到 Kaggle,转到这个 URL: https://www.kaggle.com/datasets/authman/pickled-glove840b300d-for-10sec-loading, download the file manually and then use a local path in your code as you did for fasttext. Or you download the zipped file from the official website (https://nlp.stanford.edu/projects/glove/) 并自己腌制它。