Skip to content

Commit

Permalink
Fix empty splitinfo json (#6211)
Browse files Browse the repository at this point in the history
* fix empty splitinfo json

* style
  • Loading branch information
lhoestq authored Sep 4, 2023
1 parent 2c4c2b5 commit 63114e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/datasets/splits.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

@dataclass
class SplitInfo:
name: str = ""
num_bytes: int = 0
num_examples: int = 0
name: str = dataclasses.field(default="", metadata={"include_in_asdict_even_if_is_default": True})
num_bytes: int = dataclasses.field(default=0, metadata={"include_in_asdict_even_if_is_default": True})
num_examples: int = dataclasses.field(default=0, metadata={"include_in_asdict_even_if_is_default": True})
shard_lengths: Optional[List[int]] = None

# Deprecated
Expand Down

0 comments on commit 63114e9

Please sign in to comment.