Translation of natural Domain Specific Language (DSL) commands into code.
Project description
DSL translation
Introduction
This Python package provides the function dsl_translation
that translated natural language commands
into executable code.
The translations are made via a dedicated Web service. Here is the corresponding interactive interface: https://antononcube.shinyapps.io/DSL-evaluations .
Usage examples
from DSLTranslation import *
print(dsl_translation("use dfTitanic; group by passengerSex; counts"))
print(dsl_translation("use dfTitanic; group by passengerSex; counts", fmt="json"))
Remark: By default the generated code is automatically copied to the clipboard. (Using the Python package "pyperclip".)
References
Articles
[AA1] Anton Antonov, "Introduction to data wrangling with Raku", (2021), RakuForPredicion at WordPress.
Packages
[AAp1] Anton Antonov, DSL::English::ClassificationWorkflows Raku package, (2020-2022), GitHub/antononcube.
Videos
[AAv1] Anton Antonov, "Raku for Prediction", (2021), The Raku Conference 2021.
[AAv2] Anton Antonov, "Doing it like a Cro (Raku data wrangling Shortcuts demo)", (2021), YouTube/Anton.Antonov.Antonov.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for DSLTranslation-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9f18d4fefd947305bd5271cbe06673e1b58305832fe32ddb6406bba6fad0287 |
|
MD5 | c76806b9f58570783d60e188a016727d |
|
BLAKE2b-256 | eb98b3817987a7ea275683f3c47d061faa4ee7b5ddf55edff7e077a5b6fc6f17 |