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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
language:
|
| 4 |
+
- fa
|
| 5 |
+
pretty_name: PerSHOP
|
| 6 |
+
size_categories:
|
| 7 |
+
- 10K<n<100K
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-classification
|
| 10 |
+
- token-classification
|
| 11 |
+
- text-generation
|
| 12 |
+
task_ids:
|
| 13 |
+
- intent-classification
|
| 14 |
+
- named-entity-recognition
|
| 15 |
+
- dialogue-modeling
|
| 16 |
+
tags:
|
| 17 |
+
- task-oriented-dialogue
|
| 18 |
+
- shopping
|
| 19 |
+
- persian
|
| 20 |
+
- dialogue-state-tracking
|
| 21 |
+
- slot-filling
|
| 22 |
+
configs:
|
| 23 |
+
- config_name: dialogues
|
| 24 |
+
default: true
|
| 25 |
+
data_files:
|
| 26 |
+
- split: train
|
| 27 |
+
path: data/dialogues/train.jsonl
|
| 28 |
+
- split: validation
|
| 29 |
+
path: data/dialogues/validation.jsonl
|
| 30 |
+
- split: test
|
| 31 |
+
path: data/dialogues/test.jsonl
|
| 32 |
+
- config_name: products
|
| 33 |
+
data_files:
|
| 34 |
+
- split: database
|
| 35 |
+
path: data/products/products.jsonl
|
| 36 |
+
- config_name: slots
|
| 37 |
+
data_files:
|
| 38 |
+
- split: descriptions
|
| 39 |
+
path: data/products/slots.jsonl
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
# PerSHOP: A Multi-Domain Persian Dataset for Shopping Dialogue Systems
|
| 43 |
+
|
| 44 |
+
PerSHOP is a Persian task-oriented dialogue dataset in the shopping domain. Each
|
| 45 |
+
dialogue is a conversation between a customer and a seller who fill a shopping
|
| 46 |
+
basket from a fixed product database. Utterances are annotated with domain,
|
| 47 |
+
intent/dialogue act, product category and inline slot spans.
|
| 48 |
+
|
| 49 |
+
This is the **official release** maintained by the authors, with fixed
|
| 50 |
+
dialogue-level train/validation/test splits and the product database used to
|
| 51 |
+
collect the dialogues.
|
| 52 |
+
|
| 53 |
+
| | |
|
| 54 |
+
|---|---|
|
| 55 |
+
| Dialogues | 1,061 |
|
| 56 |
+
| Utterances | 21,923 |
|
| 57 |
+
| Domains | 14 product domains + chit-chat |
|
| 58 |
+
| Intents / dialogue acts | 20 |
|
| 59 |
+
| Slot types | 27 |
|
| 60 |
+
| Products in the database | 750 |
|
| 61 |
+
| Mean utterances per dialogue | 20.7 |
|
| 62 |
+
|
| 63 |
+
## Collection
|
| 64 |
+
|
| 65 |
+
The dialogues were collected at the University of Tehran through a web platform
|
| 66 |
+
built for this purpose. About 120 volunteer students (out of roughly 340 enrolled
|
| 67 |
+
in the Data Structures and Natural Language Processing courses over three
|
| 68 |
+
semesters) took the customer and seller roles and conducted shopping
|
| 69 |
+
conversations over a shared product database, following a written guideline.
|
| 70 |
+
The dialogues were then annotated by the first author.
|
| 71 |
+
|
| 72 |
+
The conversations are role-played; the released data contains only the speaker
|
| 73 |
+
role (`user` or `system`) and no identifiers of the participants.
|
| 74 |
+
|
| 75 |
+
## Splits
|
| 76 |
+
|
| 77 |
+
| Split | Dialogues | Utterances |
|
| 78 |
+
|---|---|---|
|
| 79 |
+
| train | 849 | 17,482 |
|
| 80 |
+
| validation | 106 | 2,242 |
|
| 81 |
+
| test | 106 | 2,199 |
|
| 82 |
+
|
| 83 |
+
* The split is made at the **dialogue level**: all utterances of a dialogue are
|
| 84 |
+
in the same split, so no dialogue context leaks into evaluation data.
|
| 85 |
+
* 80/10/10, stratified by each dialogue's primary domain (its most frequent
|
| 86 |
+
product domain), with a fixed seed (42).
|
| 87 |
+
* The dialogue IDs of each split are listed in `splits/`, and
|
| 88 |
+
`scripts/make_splits.py` rebuilds the release exactly from the original
|
| 89 |
+
spreadsheets.
|
| 90 |
+
|
| 91 |
+
Please report results on the `test` split and use `validation` for model
|
| 92 |
+
selection.
|
| 93 |
+
|
| 94 |
+
## Data fields
|
| 95 |
+
|
| 96 |
+
### `dialogues` (one row per utterance)
|
| 97 |
+
|
| 98 |
+
| Field | Description |
|
| 99 |
+
|---|---|
|
| 100 |
+
| `utterance_id` | Utterance ID from the original release (unique; IDs are not contiguous) |
|
| 101 |
+
| `dialogue_id` | Dialogue ID (1–1061) |
|
| 102 |
+
| `turn_index` | Position of the utterance within its dialogue, from 0 |
|
| 103 |
+
| `speaker` | `user` (customer) or `system` (seller) |
|
| 104 |
+
| `domain` | Domain in Persian, as annotated (`Chats` for chit-chat turns) |
|
| 105 |
+
| `domain_en` | English name of the domain |
|
| 106 |
+
| `intent` | Intent or dialogue act, e.g. `Purchase`, `Inform`, `Ask_slot`, `Ask_product`, `Add_product` |
|
| 107 |
+
| `super_product` | Product category the turn is about, e.g. `milk`, `water` (null for chit-chat) |
|
| 108 |
+
| `text` | Utterance text with annotation markup removed |
|
| 109 |
+
| `annotated_text` | Annotated utterance; slots are marked inline as `[span](slot)` (see Corrections) |
|
| 110 |
+
| `raw_text` | `RawText` column of the original release, kept unchanged |
|
| 111 |
+
| `entities` | Slot spans parsed from `annotated_text`: `value`, `slot`, and `start`/`end` character offsets in `text` |
|
| 112 |
+
|
| 113 |
+
### `products`
|
| 114 |
+
|
| 115 |
+
The product database (750 items). Each record has `id`, `full_name`, `domain`,
|
| 116 |
+
`domain_en`, `super_product`, `product`, `price` and the attribute slots that
|
| 117 |
+
apply to that product (e.g. `brand`, `flavor`, `volume`, `weight`, `fat`).
|
| 118 |
+
|
| 119 |
+
### `slots`
|
| 120 |
+
|
| 121 |
+
Names and English descriptions of the product attribute slots.
|
| 122 |
+
|
| 123 |
+
## Usage
|
| 124 |
+
|
| 125 |
+
```python
|
| 126 |
+
from datasets import load_dataset
|
| 127 |
+
|
| 128 |
+
dialogues = load_dataset("KeyvanMahmoudi/PerSHOP", "dialogues")
|
| 129 |
+
products = load_dataset("KeyvanMahmoudi/PerSHOP", "products", split="database")
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
## Corrections
|
| 133 |
+
|
| 134 |
+
Compared with the original spreadsheet, this release applies a small set of
|
| 135 |
+
documented corrections, listed in `scripts/corrections.json`:
|
| 136 |
+
|
| 137 |
+
* 13 utterances had slot markup that could not be parsed (e.g. `(volume)[1.5]`,
|
| 138 |
+
a missing bracket, or a missing slot label). Their syntax was fixed so the
|
| 139 |
+
annotated spans are recoverable; in two of them (`utterance_id` 7835 and
|
| 140 |
+
7879) the `product` and `bag_number` labels had been attached to the wrong
|
| 141 |
+
spans and were swapped back.
|
| 142 |
+
* 2 empty user utterances (`utterance_id` 12536 and 13069) were removed.
|
| 143 |
+
* The slot `super-product` was renamed `super_product`, matching the naming of
|
| 144 |
+
all other slots.
|
| 145 |
+
|
| 146 |
+
`raw_text` is unchanged. In 242 cases an utterance follows another utterance by
|
| 147 |
+
the same speaker within a dialogue; these are kept as collected.
|
| 148 |
+
|
| 149 |
+
## License
|
| 150 |
+
|
| 151 |
+
The dataset (dialogues, annotations and product database) is released under the
|
| 152 |
+
[Creative Commons Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/)
|
| 153 |
+
license. Research and other non-commercial use is permitted with citation of the
|
| 154 |
+
paper below.
|
| 155 |
+
|
| 156 |
+
**Commercial use** — including training, fine-tuning or deploying models for
|
| 157 |
+
commercial products or services — is not covered by this license and requires a
|
| 158 |
+
separate written agreement with the authors.
|
| 159 |
+
|
| 160 |
+
Copies of PerSHOP published by third parties are not maintained by the authors;
|
| 161 |
+
this license applies to all copies.
|
| 162 |
+
|
| 163 |
+
## Citation
|
| 164 |
+
|
| 165 |
+
```bibtex
|
| 166 |
+
@inproceedings{mahmoudi2026pershop,
|
| 167 |
+
title = {PerSHOP: A Multi-Domain Persian Dataset for Shopping Dialogue Systems},
|
| 168 |
+
author = {Mahmoudi, Keyvan and Faili, Heshaam},
|
| 169 |
+
booktitle = {2026 International Interdisciplinary Conference on Artificial Intelligence: Engineering, Health, Finance and Humanities (IICAI)},
|
| 170 |
+
pages = {1--6},
|
| 171 |
+
year = {2026},
|
| 172 |
+
address = {Tehran, Iran},
|
| 173 |
+
doi = {10.1109/IICAI70155.2026.11620935}
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
@article{mahmoudi2024pershop,
|
| 177 |
+
title = {PerSHOP -- A Persian dataset for shopping dialogue systems modeling},
|
| 178 |
+
author = {Mahmoudi, Keyvan and Faili, Heshaam},
|
| 179 |
+
journal = {arXiv preprint arXiv:2401.00811},
|
| 180 |
+
year = {2024}
|
| 181 |
+
}
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
## Links
|
| 185 |
+
|
| 186 |
+
* Paper (IEEE): https://doi.org/10.1109/IICAI70155.2026.11620935
|
| 187 |
+
* Preprint: https://arxiv.org/abs/2401.00811
|
| 188 |
+
* Code and original files: https://github.com/keyvanmahmoudi/PerSHOP
|