Skip to content

Is the .data directory supposed to be auto-created when using the experimental datasets? #760

Closed
@thvasilo

Description

@thvasilo

I just tried running the following on a fresh instance:

import torch
import torchtext

# import datasets
from torchtext.experimental.datasets import IMDB

SEED = 11

torch.manual_seed(SEED)
torch.backends.cudnn.deterministic = True

# use the default tokenizer
train_dataset, test_dataset = IMDB()
vocab = train_dataset.get_vocab()

and got the error RuntimeError: Download directory .data does not exist. Did you create it?

I expected that the library would create the directory on its own, like it does for the .vector_cache directory. Is that not the case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions