mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
Make more tiny correction
This commit is contained in:
parent
acc3f5269a
commit
03d4a5d8ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue