I am trying to run a seq2seq model in google colab but when I try to load the dataset with the following command:
def download_NMT():
path_to_zip = tf.keras.utils.get_file(
fname='ita-eng.zip', origin='https://www.manythings.org/anki/ita-eng.zip', extract=True)
path_to_file = os.path.dirname(path_to_zip) + '/ita-eng/ita.txt'
return path_to_file
it doesn't work and gives me the following error:
HTTPError: HTTP Error 406: Not Acceptable
During handling of the above exception, another exception occurred:
Exception Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/keras/utils/data_utils.py in get_file(fname, origin, untar, md5_hash, file_hash, cache_subdir, hash_algorithm, extract, archive_format, cache_dir)
277 urlretrieve(origin, fpath, dl_progress)
278 except urllib.error.HTTPError as e:
--> 279 raise Exception(error_msg.format(origin, e.code, e.msg))
280 except urllib.error.URLError as e:
281 raise Exception(error_msg.format(origin, e.errno, e.reason))
Exception: URL fetch failure on https://www.manythings.org/anki/ita-eng.zip: 406 -- Not Acceptable