TellinaTool/nl2bash
Generating bash command from natural language https://arxiv.org/abs/1802.08979
What it solves
It provides a way to translate natural language descriptions into executable Bash commands, making the Linux operating system more accessible to users who may not know the specific syntax or flags of various utilities.
How it works
The project implements several translation models using TensorFlow, including standard Seq2Seq and CopyNet models, as well as a stage-wise model that uses argument filling heuristics. It utilizes a custom Bash command parser (built on bashlex) to create abstract syntax trees and includes domain-specific NLP tools for sentence tokenization and named entity recognition.
Who it’s for
Developers, researchers, and Linux users who want to automate the command line or create natural language interfaces for the operating system.
Highlights
- A corpus of approximately 10,000 Bash one-liners paired with English descriptions.
- Support for 102 unique utilities and 206 unique flags.
- Includes a Bash command parser for abstractive syntax tree generation.
- Provides comprehensive evaluation scripts for both manual and automatic (BLEU and template matching) accuracy.
Related
- Project
- Project
- Project
- Project
- Project