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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file DSLTranslation-0.1.1.tar.gz.

File metadata

  • Download URL: DSLTranslation-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for DSLTranslation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f32ab37ec6c95629b87b6df2079688aa05cb524549efc4043f78c734740d6fb3
MD5 399a1732e4b102976f4b69a80772a968
BLAKE2b-256 6400ba2f1250291d8077d97ae5fb8545986b82e5868dbc7358d5cb62ea52f08e

See more details on using hashes here.

File details

Details for the file DSLTranslation-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for DSLTranslation-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f18d4fefd947305bd5271cbe06673e1b58305832fe32ddb6406bba6fad0287
MD5 c76806b9f58570783d60e188a016727d
BLAKE2b-256 eb98b3817987a7ea275683f3c47d061faa4ee7b5ddf55edff7e077a5b6fc6f17

See more details on using hashes here.

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