minds14 / README.md
voorhs's picture
Update README.md
70ad028 verified
|
raw
history blame
1.59 kB
metadata
dataset_info:
  features:
    - name: utterance
      dtype: string
    - name: label
      dtype: int64
  splits:
    - name: train
      num_bytes: 50619
      num_examples: 539
  download_size: 21262
  dataset_size: 50619
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
task_categories:
  - text-classification
language:
  - en

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.

Usage

It is intended to be used with our AutoIntent Library:

from autointent import Dataset

minds14 = Dataset.from_datasets("AutoIntent/minds14")

Source

This dataset is taken from PolyAI/minds14 and formatted with our AutoIntent Library:

from datasets import load_dataset
from autointent import Dataset

def convert_minds14(minds14_train):
    utterances = []

    for batch in minds14_train.iter(batch_size=16, drop_last_batch=False):
        for txt, intent_id in zip(batch["english_transcription"], batch["intent_class"], strict=False):
            utterances.append({"utterance": txt, "label": intent_id})

    return Dataset.from_dict({"train": utterances})

minds14 = load_dataset("PolyAI/minds14", "ru-RU", trust_remote_code=True)
minds14_converted = convert_minds14(minds14["train"])