Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
GenerateParsersFromEBNF |
ParseToTokens |
ParsingTestTable |
1 | command: | i love milk |
parsed: | LoveFood[{Who[i],LoveType[love],LoveObjects[{milk}]}] | |
residual: | {} | |
2 | command: | we demand 2 ice creams |
parsed: | LoveFood[{Who[we],LoveType[demand],LoveObjects[{Mult[{2,{ice,creams}}]}]}] | |
residual: | {} | |
3 | command: | i crave 2 ice creams and 5 chocolates |
parsed: | LoveFood[{Who[i],LoveType[crave],LoveObjects[{Mult[{2,{ice,creams}}],Mult[{5,chocolates}]}]}] | |
residual: | {} | |
4 | command: | you crave chocolate and milk |
parsed: | LoveFood[{Who[you],LoveType[crave],LoveObjects[{chocolate,milk}]}] | |
residual: | {} |
GrammarRandomSentences |
GrammarNormalize |
i crave 59 milks |
i demand 73 sushi and 43 tangerines and 77 ice creams and ice creams and 32 sushi and tangerines |
i demand sushi |
we crave ice-creams and 53 sushi and milk and 9 milks and sushi |
we demand chocolates |
we demand milks and 65 ice-creams and ice-creams |
we love 14 ice-creams and tangerines and 47 milks |
we love ice creams |
we love milks and 31 ice creams and milks and cream |
you demand milks |
you love milk and 32 milks and a tangerine |
you love tangerines |
ParsingTestTable |
1 | command: | i love milk |
parsed: | you gain 3469.02 Cal | |
residual: | {} | |
2 | command: | we demand 2 ice creams |
parsed: | you will gain 469 Cal | |
residual: | {} | |
3 | command: | i crave 2 ice creams and 5 chocolates |
parsed: | you will gain 1171 Cal | |
residual: | {} | |
4 | command: | you crave chocolate and milk |
parsed: | No, I do not. I am a machine. | |
residual: | {} |
|