# Dataset Card for MCoNaLa

## Dataset Description

- **Homepage:** https://github.com/zorazrw/multilingual-conala
- **Repository:** https://github.com/zorazrw/multilingual-conala
- **Paper:** https://arxiv.org/pdf/2203.08388.pdf
- **Leaderboard:** https://explainaboard.inspiredco.ai/leaderboards?show_mine=false&sort_dir=desc&sort_field=created_at&dataset=mconala

### Dataset Summary

MCoNaLa is a Multilingual Code/Natural Language Challenge dataset with 896 NL-Code pairs in three languages: Spanish, Japanese, and Russian. 

### Languages

Spanish, Japanese, Russian; Python

## Dataset Structure

### How to Use

```bash
from datasets import load_dataset

# Spanish subset
load_dataset("neulab/mconala", "es")
DatasetDict({
    test: Dataset({
        features: ['question_id', 'intent', 'rewritten_intent', 'snippet'],
        num_rows: 341
    })
})

# Japanese subset
load_dataset("neulab/mconala", "ja")
DatasetDict({
    test: Dataset({
        features: ['question_id', 'intent', 'rewritten_intent', 'snippet'],
        num_rows: 210
    })
})

# Russian subset
load_dataset("neulab/mconala", "ru")
DatasetDict({
    test: Dataset({
        features: ['question_id', 'intent', 'rewritten_intent', 'snippet'],
        num_rows: 345
    })
})
```

### Data Fields

|Field|Type|Description|
|---|---|---|
|question_id|int|StackOverflow post id of the sample|
|intent|string|Title of the Stackoverflow post as the initial NL intent|
|rewritten_intent|string|nl intent rewritten by human annotators|
|snippet|string|Python code solution to the NL intent|


### Data Splits

The dataset contains  341, 210, and 345 samples in Spanish, Japanese, and Russian.


### Citation Information

```
@article{wang2022mconala,
  title={MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languages},
  author={Zhiruo Wang, Grace Cuenca, Shuyan Zhou, Frank F. Xu, Graham Neubig},
  journal={arXiv preprint arXiv:2203.08388},
  year={2022}
}
```
task_categories:text-generation task_categories:translation size_categories:n<1K language:es language:ja language:ru license:cc-by-sa-4.0 code generation arxiv:2203.08388 region:us
{"language": ["es", "ja", "ru"], "license": "cc-by-sa-4.0", "size_categories": ["n<1K"], "task_categories": ["text-generation", "translation"], "pretty_name": "mconala", "tags": ["code generation"]}
TAGS
#task_categories-text-generation #task_categories-translation #size_categories-n<1K #language-Spanish #language-Japanese #language-Russian #license-cc-by-sa-4.0 #code generation #arxiv-2203.08388 #region-us 

Dataset Card for MCoNaLa
========================


Dataset Description
-------------------


* Homepage: URL
* Repository: URL
* Paper: URL
* Leaderboard: URL


### Dataset Summary


MCoNaLa is a Multilingual Code/Natural Language Challenge dataset with 896 NL-Code pairs in three languages: Spanish, Japanese, and Russian.


### Languages


Spanish, Japanese, Russian; Python


Dataset Structure
-----------------


### How to Use


### Data Fields


Field: question\_id, Type: int, Description: StackOverflow post id of the sample
Field: intent, Type: string, Description: Title of the Stackoverflow post as the initial NL intent
Field: rewritten\_intent, Type: string, Description: nl intent rewritten by human annotators
Field: snippet, Type: string, Description: Python code solution to the NL intent


### Data Splits


The dataset contains 341, 210, and 345 samples in Spanish, Japanese, and Russian.



### Dataset Summary


MCoNaLa is a Multilingual Code/Natural Language Challenge dataset with 896 NL-Code pairs in three languages: Spanish, Japanese, and Russian. ### Languages


Spanish, Japanese, Russian; Python


Dataset Structure
----------------- ### How to Use ### Data Fields


Field: question\_id, Type: int, Description: StackOverflow post id of the sample
Field: intent, Type: string, Description: Title of the Stackoverflow post as the initial NL intent
Field: rewritten\_intent, Type: string, Description: nl intent rewritten by human annotators
Field: snippet, Type: string, Description: Python code solution to the NL intent ### Data Splits


The dataset contains 341, 210, and 345 samples in Spanish, Japanese, and Russian.
TAGS
#task_categories-text-generation #task_categories-translation #size_categories-n<1K #language-Spanish #language-Japanese #language-Russian #license-cc-by-sa-4.0 #code generation #arxiv-2203.08388 #region-us 
 ### Dataset Summary


MCoNaLa is a Multilingual Code/Natural Language Challenge dataset with 896 NL-Code pairs in three languages: Spanish, Japanese, and Russian. ### Languages


Spanish, Japanese, Russian; Python


Dataset Structure
----------------- ### How to Use ### Data Fields


Field: question\_id, Type: int, Description: StackOverflow post id of the sample
Field: intent, Type: string, Description: Title of the Stackoverflow post as the initial NL intent
Field: rewritten\_intent, Type: string, Description: nl intent rewritten by human annotators
Field: snippet, Type: string, Description: Python code solution to the NL intent ### Data Splits


The dataset contains 341, 210, and 345 samples in Spanish, Japanese, and Russian.
passage: TAGS
#task_categories-text-generation #task_categories-translation #size_categories-n<1K #language-Spanish #language-Japanese #language-Russian #license-cc-by-sa-4.0 #code generation #arxiv-2203.08388 #region-us 
### Dataset Summary


MCoNaLa is a Multilingual Code/Natural Language Challenge dataset with 896 NL-Code pairs in three languages: Spanish, Japanese, and Russian.### Languages


Spanish, Japanese, Russian; Python


Dataset Structure
-----------------### How to Use### Data Fields


Field: question\_id, Type: int, Description: StackOverflow post id of the sample
Field: intent, Type: string, Description: Title of the Stackoverflow post as the initial NL intent
Field: rewritten\_intent, Type: string, Description: nl intent rewritten by human annotators
Field: snippet, Type: string, Description: Python code solution to the NL intent### Data Splits


The dataset contains 341, 210, and 345 samples in Spanish, Japanese, and Russian.