29.2 zynlp sentiment

20210421

$ ml sentiment zynlp [sentence]
     -i <file.txt> --input=<file.txt>   Input text file of sentences to be analysed.

Examples

$ ml sentiment zynlp The roll out of vaccinations has been rather slow.

The output is in a form that can be utilised within a pipeline. Using a comma to separate the fields (comma separated values) the output includes the supplied sentence and the determined sentiment.

"The roll out of vaccinations has been rather slow.",negative

A file can be provided using -i or --input=:

$ ml sentiment zynlp --input=examples.txt

The output from the command includes the input sentences and the sentiment.

"I really like the new content of your book.",positive
"Iā€™m not sure if I like the new design.",negative
"The new design is awful.",negative


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0