Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DSLTranslation-0.1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

DSLTranslation-0.1.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page