Datasets:
Tasks:
Translation
Modalities:
Text
Formats:
csv
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Commit ·
5c40c8f
1
Parent(s): 91f0ec2
added diagram
Browse files- README.md +26 -34
- diagram.png +3 -0
README.md
CHANGED
|
@@ -12,20 +12,19 @@ language:
|
|
| 12 |
size_categories:
|
| 13 |
- 10K<n<100K
|
| 14 |
---
|
|
|
|
| 15 |
# Dataset Card for NL2SH-ALFA
|
| 16 |
-
This dataset is a collection of natural language (English) instructions and corresponding Bash commands.
|
| 17 |
|
| 18 |
## Dataset Details
|
| 19 |
-
|
| 20 |
### Dataset Description
|
| 21 |
-
This dataset contains a test set of 600 manually verified instruction-command pairs, and a training set of 40,
|
| 22 |
-
|
| 23 |
-
- **Curated by:** ALFA Group at MIT-CSAIL
|
| 24 |
- **Language:** English
|
| 25 |
- **License:** MIT License
|
| 26 |
|
| 27 |
### Usage
|
| 28 |
-
Note, the config parameter, NOT the split parameter, selects the train/test data.
|
| 29 |
```bash
|
| 30 |
from datasets import load_dataset
|
| 31 |
train_dataset = load_dataset("westenfelder/NL2SH-ALFA", "train", split="train")
|
|
@@ -33,50 +32,43 @@ test_dataset = load_dataset("westenfelder/NL2SH-ALFA", "test", split="train")
|
|
| 33 |
```
|
| 34 |
|
| 35 |
### Dataset Sources
|
| 36 |
-
- **Repository:** [GitHub](https://github.com/westenfelder/NL2SH)
|
| 37 |
-
- **Paper:** [
|
| 38 |
|
| 39 |
## Uses
|
| 40 |
-
|
| 41 |
-
<!-- Address questions around how the dataset is intended to be used. -->
|
| 42 |
-
|
| 43 |
### Direct Use
|
| 44 |
-
|
| 45 |
-
<!-- This section describes suitable use cases for the dataset. -->
|
| 46 |
|
| 47 |
### Out-of-Scope Use
|
| 48 |
-
|
| 49 |
-
<!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
|
| 50 |
|
| 51 |
## Dataset Structure
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
## Dataset Creation
|
| 56 |
-
|
| 57 |
### Curation Rationale
|
| 58 |
-
|
| 59 |
-
<!-- Motivation for the creation of this dataset. -->
|
| 60 |
|
| 61 |
### Source Data
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
#### Data Collection and Processing
|
| 66 |
-
|
| 67 |
-
<!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
|
| 68 |
-
|
| 69 |
-
#### Who are the source data producers?
|
| 70 |
-
|
| 71 |
-
<!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
|
| 72 |
|
| 73 |
## Bias, Risks, and Limitations
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 76 |
|
| 77 |
### Recommendations
|
| 78 |
-
|
| 79 |
-
|
| 80 |
|
| 81 |
## Citation
|
| 82 |
**BibTeX:**
|
|
|
|
| 12 |
size_categories:
|
| 13 |
- 10K<n<100K
|
| 14 |
---
|
| 15 |
+
|
| 16 |
# Dataset Card for NL2SH-ALFA
|
| 17 |
+
This dataset is a collection of natural language (English) instructions and corresponding Bash commands for the task of natural language to Bash translation (NL2SH).
|
| 18 |
|
| 19 |
## Dataset Details
|
|
|
|
| 20 |
### Dataset Description
|
| 21 |
+
This dataset contains a test set of 600 manually verified instruction-command pairs, and a training set of 40,639 unverified pairs for the development and benchmarking of machine translation models. The creation of NL2SH-ALFA was motivated by the need for larger, more accurate NL2SH datasets. The associated [InterCode-ALFA](https://github.com/westenfelder/InterCode-ALFA) benchmark uses the NL2SH-ALFA test set. For more information, please refer to the paper linked below.
|
| 22 |
+
- **Curated by:** Anyscale Learning For All (ALFA) Group at MIT-CSAIL
|
|
|
|
| 23 |
- **Language:** English
|
| 24 |
- **License:** MIT License
|
| 25 |
|
| 26 |
### Usage
|
| 27 |
+
Note, the config parameter, **NOT** the split parameter, selects the train/test data.
|
| 28 |
```bash
|
| 29 |
from datasets import load_dataset
|
| 30 |
train_dataset = load_dataset("westenfelder/NL2SH-ALFA", "train", split="train")
|
|
|
|
| 32 |
```
|
| 33 |
|
| 34 |
### Dataset Sources
|
| 35 |
+
- **Repository:** [GitHub Repo](https://github.com/westenfelder/NL2SH)
|
| 36 |
+
- **Paper:** [LLM-Supported Natural Language to Bash Translation](https://arxiv.org/abs/2502.06858)
|
| 37 |
|
| 38 |
## Uses
|
|
|
|
|
|
|
|
|
|
| 39 |
### Direct Use
|
| 40 |
+
This dataset is intended for training and evaluating NL2SH models.
|
|
|
|
| 41 |
|
| 42 |
### Out-of-Scope Use
|
| 43 |
+
This dataset is not intended for natural languages other than English, scripting languages or than Bash, nor multi-line Bash scripts.
|
|
|
|
| 44 |
|
| 45 |
## Dataset Structure
|
| 46 |
+
The training set contains two columns:
|
| 47 |
+
- `nl`: string - natural language instruction
|
| 48 |
+
- `bash`: string - Bash command
|
| 49 |
+
The test set contains four columns:
|
| 50 |
+
- `nl`: string - natural language instruction
|
| 51 |
+
- `bash`: string - Bash command
|
| 52 |
+
- `bash2`: string - Bash command (alternative)
|
| 53 |
+
- `difficulty`: int - difficulty level (0, 1, 2) corresponding to (easy, medium, hard)
|
| 54 |
+
Both sets are unordered.
|
| 55 |
|
| 56 |
## Dataset Creation
|
|
|
|
| 57 |
### Curation Rationale
|
| 58 |
+
The NL2SH-ALFA dataset was created to increase the amount of NL2SH training data and to address errors in the test sets of previous datasets.
|
|
|
|
| 59 |
|
| 60 |
### Source Data
|
| 61 |
+
The dataset was produced by combining, deduplicating and filtering multiple datasets from previous work. Additionally, it includes instruction-command pairs scraped from the [tldr-pages](https://github.com/tldr-pages/tldr). Please refer to Section 4.1 of the paper for more information about data collection, processing and filtering.
|
| 62 |
+

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
## Bias, Risks, and Limitations
|
| 65 |
+
- The number of commands for different utilities is imbalanced, with the most common command being `find`.
|
| 66 |
+
- Since the training set is unverified, there is a risk it contains incorrect instruction-command pairs.
|
| 67 |
+
- This dataset is not intended for multi-line Bash scripts.
|
| 68 |
|
| 69 |
### Recommendations
|
| 70 |
+
- Users are encouraged to filter or balance the utilities in the dataset according to their use case.
|
| 71 |
+
- Models trained on this dataset may produce incorrect Bash commands, especially for uncommon utilities. Users are encouraged to verify translations.
|
| 72 |
|
| 73 |
## Citation
|
| 74 |
**BibTeX:**
|
diagram.png
ADDED
|
Git LFS Details
|