text icon indicating copy to clipboard operation
text copied to clipboard

datasets.IMDB.splits

Open AlexanderTrg opened this issue 2 years ago • 3 comments

❓ 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:',...]

AlexanderTrg avatar Apr 18 '23 16:04 AlexanderTrg

there is no legacy in current vision

achilatiao avatar Apr 21 '23 08:04 achilatiao

that's not the answer)

AlexanderTrg avatar Apr 21 '23 11:04 AlexanderTrg

up

AlexanderTrg avatar Apr 26 '23 15:04 AlexanderTrg