mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
Add assertion to ensure number of words in sentence is positive
This commit is contained in:
parent
b96b672029
commit
d00856cab4
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class SentenceReorderingConfig:
|
|||
|
||||
def validate(self) -> None:
|
||||
"""Validate configuration parameters"""
|
||||
pass
|
||||
assert self.num_of_words_in_sentence > 0, "num_of_words_in_sentence must be positive"
|
||||
|
||||
|
||||
class SentenceReorderingDataset(ProceduralDataset):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue