README-work
Recommenders Workflows
In brief
This Raku (Perl 6) package has grammar classes and action classes for the parsing and interpretation of natural Domain Specific Language (DSL) commands that specify recommendations workflows.
The interpreters (actions) target different programming languages: R, Mathematica, Python, Raku. Also, different natural languages.
The generated pipelines are for the software monads "SMRMon-R" and "SMRMon-WL" implemented in R and WL respectively, [AAp2, AAp3], and the object oriented Python and Raku implementations [AAp4, AAp5].
Remark: "SMR" stands for "Sparse Matrix Recommender". "SBR" stands for "Streams Blending Recommender".
Remark: "WL" stands for "Wolfram Language". "Mathematica" and "WL" are used as synonyms.
Installation
Zef ecosystem:
zef install DSL::English::RecommenderWorkflows
GitHub:
zef install https://github.com/antononcube/Raku-DSL-English-RecommenderWorkflows.git
Examples
Programming languages
Here is a simple invocation:
use DSL::English::RecommenderWorkflows;
ToRecommenderWorkflowCode('recommend by profile action->10, drama->7', 'R::SMRMon');
Here is a more complicated pipeline specification used to generate the code for recommender systems implemented in different languages:
my $command = q:to/END/;
create from dfTitanic;
apply the LSI functions inverse document frequency, term frequency, and cosine;
recommend by profile female->3, 30->0.1;
extend recommendations with dfTitanic;
show pipeline value
END
say $_.key, "\n", $_.value, "\n" for ($_ => ToRecommenderWorkflowCode($command, $_ ) for <R::SMRMon WL::SMRMon Python::SMRMon Raku>);
The command above should print out R code for the R package SMRMon-R
, [AAp1].
Natural languages
say $_.key, "\n", $_.value, "\n" for ($_ => ToRecommenderWorkflowCode($command, $_ ) for <Bulgarian English Russian>);
Versions
The original version of this Raku package was developed/hosted at [ AAp3 ].
A dedicated GitHub repository was made in order to make the installation with Raku's zef
more direct.
(As shown above.)
References
[AAp1] Anton Antonov, Recommender Workflows Raku Package, (2019), ConversationalAgents at GitHub.
[AAp2] Anton Antonov, Sparse Matrix Recommender Monad in R, (2019), R-packages at GitHub.
[AAp3] Anton Antonov, Monadic Sparse Matrix Recommender Mathematica package, (2018), MathematicaForPrediction at GitHub.
[AAp4] Anton Antonov, SparseMatrixRecommender Python package, (2021), Python-packages at GitHub.
[AAp5] Anton Antonov, ML::StreamsBlendingRecommender Raku package (2021), GitHub/antononcube.