URL 在 google colab 上获取失败 -403 错误
URL fetch failure -403 error on google colab
我 运行 在 google colab 上使用 TFLite 模型 Maker.ipynb 训练文本分类模型。但是当我 运行 按照笔记本中的命令下载数据集时;
data_dir = tf.keras.utils.get_file(
fname='SST-2.zip',
origin='https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8',
extract=True)
data_dir = os.path.join(os.path.dirname(data_dir), 'SST-2')
我收到 403 错误;
异常:URL https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8 获取失败:403 -- 禁止
根据您的代码,我认为它是 Stanford Sentiment Treebank v2 (SST2) 数据集。试试 TensorFlow https://dl.fbaipublicfiles.com/glue/data/SST-2.zip as origin and see. I got that link from Model Maker Text Classification Tutorial。
我 运行 在 google colab 上使用 TFLite 模型 Maker.ipynb 训练文本分类模型。但是当我 运行 按照笔记本中的命令下载数据集时;
data_dir = tf.keras.utils.get_file(
fname='SST-2.zip',
origin='https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8',
extract=True)
data_dir = os.path.join(os.path.dirname(data_dir), 'SST-2')
我收到 403 错误;
异常:URL https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8 获取失败:403 -- 禁止
根据您的代码,我认为它是 Stanford Sentiment Treebank v2 (SST2) 数据集。试试 TensorFlow https://dl.fbaipublicfiles.com/glue/data/SST-2.zip as origin and see. I got that link from Model Maker Text Classification Tutorial。