Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
arrow
Languages:
English
Size:
10K - 100K
License:
File size: 1,631 Bytes
2797769 efb358c 2797769 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
---
license: cc
language:
- en
tags:
- medical
- spelling
- counting
- qa
- grpo
task_categories:
- question-answering
pretty_name: MedSpellCount-QA
---
# MedSpellCount-QA
## Dataset Summary
**MedSpellCount-QA** is a lightweight dataset for **orthographic counting** framed as question-answering over medical terms.
Each `input` is a short natural-language question like:
> *“How many **r** are in **warfarine**?”*
The `output` is the **correct count** as an integer (e.g., `1`). This format is convenient for **GRPO** (Group Relative Policy Optimization) or other RL-style post-training, where a simple correctness reward compares multiple candidates per prompt.
*Why a distinct dataset?* Counting letters in real medical vocabulary is a simple, objective task that stresses **spelling attention** and **string reasoning** without requiring external knowledge.
## Use Cases
- **GRPO training**: generate K candidates per prompt and reward exact correctness.
- **Instruction/QA fine-tuning** for robustness to orthographic queries.
- **Eval** of character-level attention and tokenization effects on medical terms.
## Languages
- **English** prompts; terms are predominantly **medical**.
## Dataset Structure
### Data Fields
- **input** *(string, required)*: the question, e.g.,
`How many 'r' in 'warfarine'?`
- **output** *(integer, required)*: the correct count as text, e.g., `1`.
### Data Instances
```json
{
"input": "How many 'r' in 'warfarine'?",
"output": 1
}
```python
from datasets import load_dataset
ds = load_dataset("mkurman/MedSpellCount-QA", split='train')
print(ds)
print(ds[0])
```
|