Skip to content

Commit

Permalink
Add word ladder dataset to GALLERY.md
Browse files Browse the repository at this point in the history
- Documented word ladder dataset configuration and generation details
- Included three example tasks demonstrating word transformation scenarios
- Updated table of contents with new dataset entry
  • Loading branch information
cavit99 committed Feb 3, 2025
1 parent 4355d5a commit 15f5c81
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions GALLERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ This gallery shows examples from all available datasets using their default conf
- [spell_backward](#spell-backward)
- [sudoku](#sudoku)
- [syllogism](#syllogism)
- [word_ladder](#word-ladder)
- [word_sequence_reversal](#word-sequence-reversal)
- [word_sorting](#word-sorting)

Expand Down Expand Up @@ -1242,6 +1243,38 @@ Metadata: {'premise1': 'No whales are birds', 'premise2': 'Some birds are teache
```

### word_ladder {word-ladder}
Generates word ladder transformation tasks

Default configuration:
```python
min_word_length = 4
max_word_length = 4
min_chain_length = -1
max_chain_length = -1
seed = None
size = 500
```

Example tasks:
```
Example 1:
Question: Transform the word ladder 'COLD' to 'WARM' by changing one letter at a time.
Answer: COLD,CORD,CARD,WARD,WARM
Metadata: {'start_word': 'COLD', 'end_word': 'WARM', 'word_length': 4, 'chain_length': 5}
Example 2:
Question: Transform the word ladder 'DARK' to 'LIGHT' by changing one letter at a time.
Answer: DARK,DARE,DATE,LATE,LITE,LIGHT
Metadata: {'start_word': 'DARK', 'end_word': 'LIGHT', 'word_length': 4, 'chain_length': 6}
Example 3:
Question: Transform the word ladder 'HEAD' to 'TAIL' by changing one letter at a time.
Answer: HEAD,HEAL,TEAL,TAIL
Metadata: {'start_word': 'HEAD', 'end_word': 'TAIL', 'word_length': 4, 'chain_length': 4}
```

### word_sequence_reversal {word-sequence-reversal}
Generates word sequence reversal tasks from text spans

Expand Down

0 comments on commit 15f5c81

Please sign in to comment.