rangaraju963's picture
Waylingo parser data
9e4c2b9
|
Raw History Blame Contribute Delete
5.85 kB
---
license: apache-2.0
language:
- en
pretty_name: Waylingo trip-request parsing data
size_categories:
- 10K<n<100K
task_categories:
- text-generation
tags:
- structured-output
- json
- navigation
- routing
- synthetic
configs:
- config_name: generated
data_files:
- split: train
path: data/train_generated.jsonl
- split: validation
path: data/valid.jsonl
- split: test
path: data/test.jsonl
- config_name: paraphrased
data_files:
- split: train
path: data/train_paraphrased.jsonl
- config_name: natural_wording
data_files:
- split: dev
path: eval/natural_dev.jsonl
- split: test
path: eval/natural_test.jsonl
- config_name: unseen_places
data_files:
- split: test
path: eval/unseen_places.jsonl
- config_name: destination_only
data_files:
- split: test
path: eval/destination_only.jsonl
---
# Waylingo trip-request parsing data
Training and evaluation data for
[waylingo-parser-qwen3-0.6b](https://huggingface.co/rangaraju963/waylingo-parser-qwen3-0.6b),
a small model that turns one trip request ("drive to Utrecht, coffee halfway") into the
fixed JSON plan used by [Waylingo](https://github.com/Rohith295/waylingo).
The task is parsing only. The model never sees map data and is not meant to know where
places are: it copies place names and brands exactly as written, and the map provider
finds them. The data is built to teach exactly that.
This published copy contains no streets or street addresses: every row that named
one was removed, together with a few rewritten rows where the rewriting model left its
own notes in the text (about 37% of rows in all). The model was trained on the full
set.
## Format
Each row is one chat in the format the Waylingo engine sends:
```json
{
"messages": [
{"role": "system", "content": "Convert the trip request to Waylingo JSON."},
{"role": "user", "content": "Locale: en-GB\nSaved places: saved:home, saved:work\nRequest: Drive to Branmont, coffee halfway"},
{"role": "assistant", "content": "{\"destination\":\"Branmont\",\"stops\":[{\"what\":{\"category\":\"coffee\"},\"anchor\":{\"kind\":\"fraction\",\"value\":0.5}}]}"}
],
"meta": {"region": "europe", "active_route": false, "unseen": false},
"saved": ["home", "work"]
}
```
* The assistant turn is compact JSON with empty fields left out, or
`{"error":"not_understood","stops":[]}` for text that is not a trip request.
* `saved` lists the saved-place names given to the model; a destination may refer to
one as `saved:<name>`.
* `meta.region` is `europe`, `us`, `india`, `mixed`, or `none` for non-trip text.
* `meta.active_route` is true when the app already has a route, so a request may name
no destination ("coffee in 20 minutes").
* `meta.unseen` is true when the row was generated only from held-out places and
brands. Ignore it in `destination_only`, where a few names also occur in training.
* `meta.real_wording` and `meta.original` (the sentence before rewriting) appear only
in rewritten rows; `meta.hand_written` only in the hand-written set.
The JSON schema and its meaning are documented in the
[Waylingo book](https://rohith295.github.io/waylingo/plan.html).
## Configurations
| Config | Rows | What it is |
| :--- | ---: | :--- |
| `generated` | 22,638 / 1,242 / 1,281 | Template-generated requests (train / validation / test) |
| `paraphrased` | 2,539 | Separately generated requests rewritten into natural wording |
| `natural_wording` | 87 / 100 | Rows of `unseen_places` rewritten into natural wording (dev / test) |
| `unseen_places` | 643 | Requests that name only places and brands absent from training |
| `destination_only` | 20 | Hand-written requests that name places but no stops |
```python
from datasets import load_dataset
train = load_dataset("rangaraju963/waylingo-parser-data", "generated", split="train")
unseen = load_dataset("rangaraju963/waylingo-parser-data", "unseen_places", split="test")
```
The evaluation configurations were never used for training. `natural_wording/dev`, 300
rows of `unseen_places`, and `destination_only` were used to choose the checkpoint;
`natural_wording/test` was not, but its rows are rewrites of `unseen_places` rows
(`meta.original`), some of them from the selection rows, so the test sets are not
independent.
## How it was made
* **Templates, labels by construction.** A generator
([`make_dataset.rs`](https://github.com/Rohith295/waylingo/blob/main/crates/waylingo-parse/examples/make_dataset.rs))
builds each sentence and its label from the same random choices, so labels are
correct by construction. Every label must compile with Waylingo's real plan compiler,
or the row is dropped.
* **Invented names.** About half of the places and half of the brands are made up, so
a model can only get them right by copying, not by remembering.
* **Held-out names.** A share of places and brands is never used in training; the
`unseen_places` set uses only those, to show whether a model copies or memorises.
* **Noise.** Typos, chat shorthand, questions and lower case, applied outside names so
labels stay exact.
* **Paraphrases.** 4,000 requests from a separate run of the generator were rewritten
by Claude into more natural wording. A rewrite was kept only if every place, brand
and free-text name from the label is still in it character for character, and every
distance, time and count as digits.
* **Negatives.** About 1% non-trip text ("what's the weather in Pune"), labelled
`not_understood`.
* English only; places in Europe, the US and India. No map provider data is used
anywhere.
## Limitations
The data is synthetic. Real users phrase things in ways the templates and rewrites do
not cover, mix languages, and ask for things outside the schema. Treat the evaluation
numbers as an upper bound for real traffic.
## License
Apache 2.0.