Skip to content

Commit

Permalink
Remove split arg to support old hf datasets versions (#1288)
Browse files Browse the repository at this point in the history
Signed-off-by: elronbandel <[email protected]>
  • Loading branch information
elronbandel authored Oct 20, 2024
1 parent a7f7b9e commit b158426
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/unitxt/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ def to_dataset(
cache_dir=cache_dir,
gen_kwargs={"key": key},
features=features,
split=key,
)
for key in self.keys()
}
Expand All @@ -247,7 +246,6 @@ def to_iterable_dataset(self) -> IterableDatasetDict:
key: IterableDataset.from_generator(
self.get_generator,
gen_kwargs={"key": key},
split=key,
)
for key in self.keys()
}
Expand Down

0 comments on commit b158426

Please sign in to comment.