André Fernandes dos Santos > Text-Perfide-WordBags > Text::Perfide::WordBags

Download:
Text-Perfide-WordBags-0.01_02.tar.gz

Dependencies

Annotate this POD

Module Version: 0.01_02   Source  

NAME ^

Text::Perfide::WordBags - Create word bags from text, and operate over them.

VERSION ^

Version 0.01_02

SYNOPSIS ^

Quick summary of what the module does.

Perhaps a little code snippet.

    use Text::Perfide::WordBags;

    my $foo = Text::Perfide::WordBags->new();
    ...

EXPORT ^

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.

FUNCTIONS ^

pairability

        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.

file2bag

        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.

bagint

        Calculates the intersection between two wordbags.

baguni

        Calculates the union of two wordbags.

bagcard

        Calculates the cardinality of two wordbags.

AUTHOR ^

Andre Santos, <andrefs at cpan.org>

BUGS ^

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.

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

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.

syntax highlighting: