Lingua::EN::Opinion - Measure the positive/negative sentiment of text
version 0.01
use Lingua::EN::Opinion; my $opinion = Lingua::EN::Opinion->new( file => '/some/file.txt' ); $opinion->analyze(); my $sentences = $opinion->sentences; my $scores = $opinion->scores;
A Lingua::EN::Opinion measures the positive/negative sentiment of text.
Lingua::EN::Opinion
Please see the eg/ and t/ scripts for example usage.
The text file to analyze.
Computed result.
$opinion = Lingua::EN::Opinion->new(%arguments);
Create a new Lingua::EN::Opinion object.
$score = $opinion->analyze();
Measure the positive/negative sentiment of text.
Moo
File::Slurper
Lingua::EN::Sentence
https://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html#lexicon
Transform the scores into binned percentages.
Gene Boggs <gene@cpan.org>
This software is copyright (c) 2018 by Gene Boggs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Lingua::EN::Opinion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::EN::Opinion
CPAN shell
perl -MCPAN -e shell install Lingua::EN::Opinion
For more information on module installation, please visit the detailed CPAN module installation guide.