How-to-use-in-a-Raku-session-work

How to use "DSL::Translations" in a Raku session

Introduction

Setup

use DSL::Translators;
use Data::Importers;
use Data::Reshapers;
use Data::Generators;

Data wrangling

Data wrangling command:

my $cmd = "DSL TARGET Raku::Reshapers;
use data dfMeals;
inner join with dfFinelyFoodName over FOODID;
group by 'Cuisine';
find counts";

text-stats($cmd)

Using ToDSLCode:

ToDSLCode($cmd);

Using the "web ready" dsl-translation:

$cmd ==> dsl-translation(language => 'English', :prepend-setup-code)

Latent Semantic Analysis

Latent Semantic Analysis (LSA) command:

my $cmd = q:to/END/;
create from aDocs;
create document term matrix with stemming;
show document term matrix statistics;
apply the term weight functions IDF, None, Cosine;
extract 60 topics with the method NNMF;
echo topics table;
show statistical thesaurus for interested, likely, want
END

text-stats($cmd)

Using ToDSLCode:

ToDSLCode($cmd);

Using the "web ready" dsl-translation:

$cmd ==> dsl-translation(lang => 'English', to => 'WL', :setup) ==> { $_<CODE> }()

Web service

dsl-web-translation($cmd, to => 'Python')

DSL::Translators v0.1.1

DSL-to-DSL translation with multiple DSLs.

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

Clipboard:ver<0.1.1+>JSON::Fast:ver<0.19+>HTTP::UserAgentCro::HTTPLingua::NumericWordForms:ver<0.6.2+>Chemistry::Stoichiometry:ver<0.1.10+>ML::TriesWithFrequencies:ver<0.6.7+>LLM::Functions:ver<0.1.24+>ML::FindTextualAnswer:ver<0.2.5+>ML::NLPTemplateEngine:ver<0.1.3+>DSL::Shared:ver<0.2.11+>DSL::English::ClassificationWorkflows:ver<0.1.5+>DSL::English::DataAcquisitionWorkflows:ver<0.1.0+>DSL::English::DataQueryWorkflows:ver<0.6.5+>DSL::English::EpidemiologyModelingWorkflowsDSL::English::FoodPreparationWorkflows:ver<0.1.0+>DSL::English::LatentSemanticAnalysisWorkflows:ver<0.8.3>DSL::English::QuantileRegressionWorkflows:ver<0.8.3+>DSL::English::RecommenderWorkflows:ver<0.6.4+>DSL::English::SearchEngineQueries:ver<0.5.0+>DSL::Bulgarian:ver<0.1.1+>Test::OutputURI::Encode

Test Dependencies

Provides

  • DSL::Translators

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.