Make more tiny correction

This commit is contained in:
abdulhakeem 2025-01-25 23:25:55 -06:00
parent acc3f5269a
commit 03d4a5d8ac

View file

@ -72,7 +72,7 @@ class SentenceReorderingDataset(ProceduralDataset):
question = " ".join(input_words)
goal_words = sentence_dataset['goal'].split()
solved_sentence = " ".join(sorted(input_words, key=lambda word: goal_words.index(word)))
# Check for length alphanumeric characters in the solved sentence
# Check for length of alphanumeric characters in the solved sentence
num_of_words_in_sentence = len(re.findall(r"\b\w+\b", solved_sentence))