voorhs
commited on
Commit
·
d8ee5e3
1
Parent(s):
92f1b7c
add dataset card
Browse files
README.md
CHANGED
@@ -17,3 +17,40 @@ configs:
|
|
17 |
- split: train
|
18 |
path: data/train-*
|
19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
- split: train
|
18 |
path: data/train-*
|
19 |
---
|
20 |
+
|
21 |
+
# minds14
|
22 |
+
|
23 |
+
This is a text classification dataset. It is intended for machine learning research and experimentation.
|
24 |
+
|
25 |
+
This dataset is obtained via formatting another publicly available data to be compatible with our [AutoIntent Library](https://deeppavlov.github.io/AutoIntent/index.html).
|
26 |
+
|
27 |
+
## Usage
|
28 |
+
|
29 |
+
It is intended to be used with our [AutoIntent Library](https://deeppavlov.github.io/AutoIntent/index.html):
|
30 |
+
|
31 |
+
```python
|
32 |
+
from autointent import Dataset
|
33 |
+
|
34 |
+
dream = Dataset.from_datasets("AutoIntent/minds14")
|
35 |
+
```
|
36 |
+
|
37 |
+
## Source
|
38 |
+
|
39 |
+
This dataset is taken from `PolyAI/minds14` and formatted with our [AutoIntent Library](https://deeppavlov.github.io/AutoIntent/index.html):
|
40 |
+
|
41 |
+
```python
|
42 |
+
from datasets import load_dataset
|
43 |
+
from autointent import Dataset
|
44 |
+
|
45 |
+
def convert_minds14(minds14_train):
|
46 |
+
utterances = []
|
47 |
+
|
48 |
+
for batch in minds14_train.iter(batch_size=16, drop_last_batch=False):
|
49 |
+
for txt, intent_id in zip(batch["english_transcription"], batch["intent_class"], strict=False):
|
50 |
+
utterances.append({"utterance": txt, "label": intent_id})
|
51 |
+
|
52 |
+
return Dataset.from_dict({"train": utterances})
|
53 |
+
|
54 |
+
minds14 = load_dataset("PolyAI/minds14", "ru-RU", trust_remote_code=True)
|
55 |
+
minds14_converted = convert_minds14(minds14["train"])
|
56 |
+
```
|