mkqa_filtered / README.md
dkoterwa's picture
Upload README.md with huggingface_hub
87ed249 verified
|
raw
history blame
1.33 kB
metadata
dataset_info:
  features:
    - name: lang
      dtype: 'null'
    - name: example_id
      dtype: 'null'
    - name: query
      dtype: 'null'
    - name: answer
      dtype: 'null'
    - name: answer_len
      dtype: int64
  splits:
    - name: train
  download_size: 1337
  dataset_size: 0
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*

mkqa filtered version

For a better dataset description, please visit the official site of the source dataset: LINK

This dataset was prepared by converting mkqa dataset.

I additionaly share the code which I used to convert the original dataset to make everything more clear

mkqa = load_dataset("mkqa", split="train").to_pandas()
needed_langs = ["en", "ar", "de", "es", "vi", "zh_cn"]
rows = []
for i, row in tqdm(mkqa.iterrows(), total=mkqa.shape[0]):
    for lang in needed_langs:
        rows.append([lang, row["example_id"], row["queries"][lang], row["answers"][lang][0]["text"]])
        
filtered_dataset = pd.DataFrame(rows, columns=["lang", "example_id", "query", "answer"])
filtered_dataset.dropna(inplace=True)
filtered_dataset.reset_index(drop=True, inplace=True)

How to download

from datasets import load_dataset
data = load_dataset("dkoterwa/oasst1_filtered_retrieval")