Help language development. Donate to The Perl Foundation

DSL::English::RecommenderWorkflows zef:antononcube last updated on 2023-08-28
# 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
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


zef install


## 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

say $_.key, "\n", $_.value, "\n"  for ($_ => ToRecommenderWorkflowCode($command, $_ ) for <R::SMRMon WL::SMRMon Python::SMRMon Raku>);

### 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](,
[ConversationalAgents at GitHub](

[AAp2] Anton Antonov,
[Sparse Matrix Recommender Monad in R](,
[R-packages at GitHub](

[AAp3] Anton Antonov,
[Monadic Sparse Matrix Recommender Mathematica package](,
[MathematicaForPrediction at GitHub](

[AAp4] Anton Antonov,
[SparseMatrixRecommender Python package](,
[Python-packages at GitHub](

[AAp5] Anton Antonov,
[ML::StreamsBlendingRecommender Raku package](