Giter Club home page Giter Club logo

Comments (10)

zhangjingxian1998 avatar zhangjingxian1998 commented on May 16, 2024 2

i used conda to install torchtext, and it seems that it recommends torchtext==0.6.0, Screenshot from 2023-05-06 20-22-20 then you actually don't need to change anything but the two lines in util/data_loader(line 6, 7) Screenshot from 2023-05-06 20-18-41 and it works well! Screenshot from 2023-05-06 20-20-37

Hello, my friend, can you give me a copy of your requirements.txt? I would be very grateful.

python3.8
torch==1.7
torchvison==0.8.1
torchtext==0.8.0

replace the

from torchtext.legacy.data import Field, BucketIterator
from torchtext.legacy.datasets import Multi30k

by

from torchtext.data import Field, BucketIterator
from torchtext.datasets import Multi30k

if the data can't dowload, you can download them from

https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/training.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/validation.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/mmt16_task1_test.tar.gz'

and tar them in the .data/multi30k folder

from transformer.

LikeGiver avatar LikeGiver commented on May 16, 2024 1

i used conda to install torchtext, and it seems that it recommends torchtext==0.6.0,
Screenshot from 2023-05-06 20-22-20
then you actually don't need to change anything but the two lines in util/data_loader(line 6, 7)
Screenshot from 2023-05-06 20-18-41
and it works well!
Screenshot from 2023-05-06 20-20-37

from transformer.

lmw0320 avatar lmw0320 commented on May 16, 2024

i used conda to install torchtext, and it seems that it recommends torchtext==0.6.0, Screenshot from 2023-05-06 20-22-20 then you actually don't need to change anything but the two lines in util/data_loader(line 6, 7) Screenshot from 2023-05-06 20-18-41 and it works well! Screenshot from 2023-05-06 20-20-37

Hei, bro, could you pls tell me how to download the datasets, thanks in advance!

from transformer.

disdislike avatar disdislike commented on May 16, 2024

I‘m new to transformer rencently,too. My torchtext==0.15, the fuction Field and Bucketerator were removed . What are the alternatives to torchtext.field and Buckerator?

from transformer.

zengchen233 avatar zengchen233 commented on May 16, 2024

i used conda to install torchtext, and it seems that it recommends torchtext==0.6.0, Screenshot from 2023-05-06 20-22-20 then you actually don't need to change anything but the two lines in util/data_loader(line 6, 7) Screenshot from 2023-05-06 20-18-41 and it works well! Screenshot from 2023-05-06 20-20-37

Hello, my friend, can you give me a copy of your requirements.txt? I would be very grateful.

from transformer.

zengchen233 avatar zengchen233 commented on May 16, 2024

i used conda to install torchtext, and it seems that it recommends torchtext==0.6.0, Screenshot from 2023-05-06 20-22-20 then you actually don't need to change anything but the two lines in util/data_loader(line 6, 7) Screenshot from 2023-05-06 20-18-41 and it works well! Screenshot from 2023-05-06 20-20-37

Hello, my friend, can you give me a copy of your requirements.txt? I would be very grateful.

python3.8 torch==1.7 torchvison==0.8.1 torchtext==0.8.0

replace the

from torchtext.legacy.data import Field, BucketIterator
from torchtext.legacy.datasets import Multi30k

by

from torchtext.data import Field, BucketIterator
from torchtext.datasets import Multi30k

if the data can't dowload, you can download them from

https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/training.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/validation.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/mmt16_task1_test.tar.gz'

and tar them in the .data/multi30k folder

okay, thank u, my friends!

from transformer.

yyyyybb567 avatar yyyyybb567 commented on May 16, 2024

我使用 conda 安装 torchtext,似乎它推荐 torchtext==0.6.0,那么您实际上不需要更改任何东西,只需更改 util/data_loader(第 6、7 行)Screenshot from 2023-05-06 20-18-41中的两行,Screenshot from 2023-05-06 20-22-20效果很好!Screenshot from 2023-05-06 20-20-37

你好,我的朋友,你能给我一份你的要求.txt吗?我将不胜感激。

python3.8 火炬==1.7 火炬视子==0.8.1 火炬文本==0.8.0

from torchtext.legacy.data import Field, BucketIterator
from torchtext.legacy.datasets import Multi30k

from torchtext.data import Field, BucketIterator
from torchtext.datasets import Multi30k

如果数据无法下载,您可以从

https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/training.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/validation.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/mmt16_task1_test.tar.gz'

并将它们涂在 .data/multi30k 文件夹中

您好 我按照您后面的方法 将三个文件下载并放到文件夹.data/multi30k 中,但是依然提示缺少train.en文件 请问还有其他的办法下载数据或者有下载脚本吗

from transformer.

zhangjingxian1998 avatar zhangjingxian1998 commented on May 16, 2024

我使用 conda 安装 torchtext,似乎它推荐 torchtext==0.6.0,那么您实际上不需要更改任何东西,只需更改 util/data_loader(第 6、7 行)Screenshot from 2023-05-06 20-18-41中的两行,Screenshot from 2023-05-06 20-22-20效果很好!Screenshot from 2023-05-06 20-20-37

你好,我的朋友,你能给我一份你的要求.txt吗?我将不胜感激。

python3.8 火炬==1.7 火炬视子==0.8.1 火炬文本==0.8.0

from torchtext.legacy.data import Field, BucketIterator
from torchtext.legacy.datasets import Multi30k

from torchtext.data import Field, BucketIterator
from torchtext.datasets import Multi30k

如果数据无法下载,您可以从

https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/training.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/validation.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/mmt16_task1_test.tar.gz'

并将它们涂在 .data/multi30k 文件夹中

您好 我按照您后面的方法 将三个文件下载并放到文件夹.data/multi30k 中,但是依然提示缺少train.en文件 请问还有其他的办法下载数据或者有下载脚本吗

没解压吧,解压一下

from transformer.

yyyyybb567 avatar yyyyybb567 commented on May 16, 2024

我使用 conda 安装 torchtext,似乎它推荐 torchtext==0.6.0,那么您实际上不需要更改任何东西,只需更改 util/data_loader(第 6、7 行)Screenshot from 2023-05-06 20-18-41中的两行,Screenshot from 2023-05-06 20-22-20效果很好!Screenshot from 2023-05-06 20-20-37

你好,我的朋友,你能给我一份你的要求.txt吗?我将不胜感激。

python3.8 火炬==1.7 火炬视子==0.8.1 火炬文本==0.8.0

from torchtext.legacy.data import Field, BucketIterator
from torchtext.legacy.datasets import Multi30k

from torchtext.data import Field, BucketIterator
from torchtext.datasets import Multi30k

如果数据无法下载,您可以从

https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/training.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/validation.tar.gz'
https://raw.githubusercontent.com/neychev/small_DL_repo/master/datasets/Multi30k/mmt16_task1_test.tar.gz'

并将它们涂在 .data/multi30k 文件夹中

您好 我按照您后面的方法 将三个文件下载并放到文件夹.data/multi30k 中,但是依然提示缺少train.en文件 请问还有其他的办法下载数据或者有下载脚本吗

没解压吧,解压一下

解决了我的问题,非常感谢!!!

from transformer.

ZZH1010101010 avatar ZZH1010101010 commented on May 16, 2024

I‘m new to transformer rencently,too. My torchtext==0.15, the fuction Field and Bucketerator were removed . What are the alternatives to torchtext.field and Buckerator?我最近也是变压器新手。我的torchtext==0.15,功能Field和Bucketerator被删除了。 torchtext.field 和 Buckerator 的替代品有哪些?

I have this problem,too.Do you solve this problem?

from transformer.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.