<p dir="auto">The dbpedia_csv.tar.gz file downloaded seems to be corrupt and the link for the dataset, i.e.<br>
<a href="https://googledrive.com/host/0Bz8a_Dbh9Qhbfll6bVpmNUtUcFdjYmF2SEpmZUZUcVNiMUw1TWN6RDV3a0JHT3kxLVhVR2M/dbpedia_csv.tar.gz" rel="nofollow">https://googledrive.com/host/0Bz8a_Dbh9Qhbfll6bVpmNUtUcFdjYmF2SEpmZUZUcVNiMUw1TWN6RDV3a0JHT3kxLVhVR2M/dbpedia_csv.tar.gz</a></p>
<p dir="auto">is giving 404 error. The file dbpedia_csv.tar.gz seems to be downloaded but upon running tensorflow/tensorflow/examples/learn/text_classification_cnn.py, an error is produced giving</p>
<p dir="auto">Successfully downloaded dbpedia_csv.tar.gz 1657 bytes.<br>
Traceback (most recent call last):<br>
File "main.py", line 122, in <br>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run<br>
sys.exit(main(sys.argv[:1] + flags_passthrough))<br>
File "main.py", line 88, in main<br>
'dbpedia', test_with_fake_data=FLAGS.test_with_fake_data, size='large')<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/<strong>init</strong>.py", line 64, in load_dataset<br>
return DATASETS[name](size, test_with_fake_data)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/text_datasets.py", line 48, in load_dbpedia<br>
maybe_download_dbpedia(data_dir)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/text_datasets.py", line 40, in maybe_download_dbpedia<br>
tfile = tarfile.open(archive_path, 'r:*')<br>
File "/usr/lib/python2.7/tarfile.py", line 1678, in open<br>
raise ReadError("file could not be opened successfully")<br>
tarfile.ReadError: file could not be opened successfully</p>
<p dir="auto">DBPEDIA_URL in <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/learn/python/learn/datasets/text_datasets.py">text_datasets.py</a> is not a valid url anymore because web hosting in Google Drive has been deprecated, <a href="https://gsuite-developers.googleblog.com/2015/08/deprecating-web-hosting-support-in.html" rel="nofollow">https://gsuite-developers.googleblog.com/2015/08/deprecating-web-hosting-support-in.html</a></p>
<p dir="auto">Proposed fix:</p>
<ul dir="auto">
<li>Move <a href="https://drive.google.com/drive/folders/0Bz8a_Dbh9Qhbfll6bVpmNUtUcFdjYmF2SEpmZUZUcVNiMUw1TWN6RDV3a0JHT3kxLVhVR2M" rel="nofollow">dbpedia_csv.tar.gz</a> to cloud storage.</li>
</ul>
<p dir="auto">What is affected:</p>
<ul dir="auto">
<li>Text classification examples that depend on DBpedia data like <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/learn/text_classification.py">text_classification.py</a> are now broken.</li>
</ul>