Skip to content

Commit

Permalink
fix split
Browse files Browse the repository at this point in the history
  • Loading branch information
markus583 committed Dec 27, 2023
1 parent e5251c2 commit 250a449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wtpsplit/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,12 @@ def maybe_pad(text):
split="valid",
)
logger.info(f"Valid dataset has {len(valid_dataset)} examples.")

train_dataset = prepare_dataset(
num_workers=args.preprocessing_num_workers,
include_languages=args.include_languages,
shuffle=args.shuffle,
split="valid",
split="train",
)
logger.info(f"Train dataset has {len(train_dataset)} examples.")

Expand Down

0 comments on commit 250a449

Please sign in to comment.