Text::Similarity::Overlaps - module for computing the similarity of text documents using literal string (word token) overlaps
use Text::Similarity::Overlaps; my $module = Text::Similarity::Overlaps->new; my $score = $module->getSimilarity ($file1, $file2);
This module computes the similarity of two text documents by searching for literal word token overlaps in the two documents. The score is based on the F-measure and ranges between 0 and 1.
Text::Similarity, Text::OverlapFinder, text_compare.pl
Jason Michelizzi, <jmichelizzi at sourceforge.net>
Ted Pedersen, <tpederse at d.umn.edu>
Copyright (C) 2004 by Jason Michelizzi and Ted Pedersen
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License.
To install Text::Similarity, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Similarity
CPAN shell
perl -MCPAN -e shell install Text::Similarity
For more information on module installation, please visit the detailed CPAN module installation guide.