Add assertion to ensure number of words in sentence is positive

This commit is contained in:
abdulhakeem 2025-01-25 23:02:17 -06:00
parent b96b672029
commit d00856cab4

View file

@ -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):