Skip to content

Dataset Preparation Error #3

@Kojo7

Description

@Kojo7
  File "prepare_datasets.py", line 21, in <module>
    translation_dataset = TranslationDataset(args.save_data_dir, 'train')
  File "/home/transformer-pytorch/datasets.py", line 56, in __init__
    source, target = line.strip().split('\t')
ValueError: not enough values to unpack (expected 2, got 1)

I get this error above even though I have the datasets in the right formats;

  • src-train.txt
  • tgt-train.txt
  • src-val.txt
  • tgt-val.txt

Is there something I'm doing wrong, help please.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions