Nlp Google Colab上传单词嵌入

Nlp Google Colab上传单词嵌入,nlp,word-embedding,google-colaboratory,Nlp,Word Embedding,Google Colaboratory,我正在使用GoogleColab来实现我的DL模型NLP,我上传并导入了我的训练数据截图,现在我想对GloVe word嵌入进行预训练。如果我以同样的方式上传,我想可能需要几个小时,即使这样,我也不确定它是否有效 有人遇到过同样的问题吗 谢谢 上传培训数据 尝试直接将其删除 !wget http://nlp.stanford.edu/data/glove.6B.zip 我把文件上传到我的硬盘上,然后从谷歌硬盘导入 from googleapiclient.discovery import bu

我正在使用GoogleColab来实现我的DL模型NLP,我上传并导入了我的训练数据截图,现在我想对GloVe word嵌入进行预训练。如果我以同样的方式上传,我想可能需要几个小时,即使这样,我也不确定它是否有效

有人遇到过同样的问题吗

谢谢

上传培训数据

尝试直接将其删除

!wget http://nlp.stanford.edu/data/glove.6B.zip

我把文件上传到我的硬盘上,然后从谷歌硬盘导入

from googleapiclient.discovery import build
drive_service = build('drive', 'v3')
file_id = 'your file id '

import io
from googleapiclient.http import MediaIoBaseDownload

request = drive_service.files().get_media(fileId=file_id)
downloaded = io.BytesIO()
downloader = MediaIoBaseDownload(downloaded, request)
done = False
while done is False:
  # _ is a placeholder for a progress object that we ignore.
  # (Our file is small, so we skip reporting progress.)
  _, done = downloader.next_chunk()

downloaded.seek(0)
glove=format(downloaded.read())

有趣的我没有安装我的G-drive?zip文件存储在哪里?这是持续的吗?