下载zip文件TensorFlow Keras时出错

2024-09-30 01:20:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在关注tensorflow的机器翻译教程:Neural machine translation with attention

我想在Japanes to English dataset上使用相同的代码,但它引发了以下错误:

Error

当我尝试用浏览器下载文件时,它可以正常工作

我的代码:

# Download the file
path_to_zip = tf.keras.utils.get_file(
    'jpn-eng.zip', origin='http://www.manythings.org/anki/jpn-eng.zip', extract=True)

path_to_file = os.path.dirname(path_to_zip)+"/jpn-eng/jpn.txt"

Tags: topath代码tensorflowwith教程machinezip

热门问题