pytorch / text

Models, data loaders and abstractions for language processing, powered by PyTorch
https://pytorch.org/text
BSD 3-Clause "New" or "Revised" License
3.49k stars 815 forks source link

datasets.IMDB.splits #2153

Open AlexanderTrg opened 1 year ago

AlexanderTrg commented 1 year ago

❓ Questions and Help

why am I getting different results in different cases (for example in jupyter and colab )? after the same code `import torchtext import torch from torchtext.legacy import data from torchtext.legacy import datasets

TEXT = data.Field() LABEL = data.LabelField(dtype = torch.long)

train, test = datasets.IMDB.splits(TEXT, LABEL) print(train[0].text)`

ps i'd installed before !pip install torch==1.8.0 torchtext==0.9.0

jupyter: ['Powers', 'Booth', 'is', 'hypnotic'...] colab : ['OK', 'heres', 'what', 'I', 'say:',...]

achilatiao commented 1 year ago

there is no legacy in current vision

AlexanderTrg commented 1 year ago

that's not the answer)

AlexanderTrg commented 1 year ago

up