minds14_ru / README.md
voorhs's picture
Update README.md
7d8e096 verified
---
dataset_info:
features:
- name: utterance
dtype: string
- name: label
dtype: int64
splits:
- name: train
num_bytes: 91069
num_examples: 539
download_size: 32800
dataset_size: 91069
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
task_categories:
- text-classification
language:
- ru
---
# Russian minds14
This is a text classification dataset. It is intended for machine learning research and experimentation.
This dataset is obtained via formatting another publicly available data to be compatible with our [AutoIntent Library](https://deeppavlov.github.io/AutoIntent/index.html).
## Usage
It is intended to be used with our [AutoIntent Library](https://deeppavlov.github.io/AutoIntent/index.html):
```python
from autointent import Dataset
minds14_ru = Dataset.from_datasets("AutoIntent/minds14_ru")
```
## Source
This dataset is taken from `PolyAI/minds14` and formatted with our [AutoIntent Library](https://deeppavlov.github.io/AutoIntent/index.html):
```python
from datasets import load_dataset
from autointent import Dataset
def convert_ruminds14(minds14_train):
utterances = []
for batch in minds14_train.iter(batch_size=16, drop_last_batch=False):
for txt, intent_id in zip(batch["transcription"], batch["intent_class"], strict=False):
utterances.append({"utterance": txt, "label": intent_id})
return Dataset.from_dict({"train": utterances})
ruminds14 = load_dataset("PolyAI/minds14", "ru-RU", trust_remote_code=True)
ruminds14_converted = convert_ruminds14(ruminds14["train"])
```