Text::Perfide::WordBags - Create word bags from text, and operate over them.
Version 0.01_02
Quick summary of what the module does.
Perhaps a little code snippet.
use Text::Perfide::WordBags; my $foo = Text::Perfide::WordBags->new(); ...
A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.
Calculates pairability of two wordbags. Pairibitily value is given by: $int/($uni || 1) where $int and $uni are the values given by, respectively, the intersection and the union of the two bags.
Create a word bag from a file. Receives as argument a function ref and a file path. Reads a file in slurp mode, passes the text to the function passed as argument, and returns the result.
Calculates the intersection between two wordbags.
Calculates the union of two wordbags.
Calculates the cardinality of two wordbags.
Andre Santos, <andrefs at cpan.org>
<andrefs at cpan.org>
Please report any bugs or feature requests to bug-text-wordbags at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-WordBags. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-text-wordbags at rt.cpan.org
Copyright 2011 Project Natura.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Text::Perfide::WordBags, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Perfide::WordBags
CPAN shell
perl -MCPAN -e shell install Text::Perfide::WordBags
For more information on module installation, please visit the detailed CPAN module installation guide.