Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Text::Compare 1.03

    Download button

    No screenshots available
    Downloads: 581  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marcus Thiesen and Serguei Trouchelle | More programs
    Perl Artistic License / FREE
    July 23rd, 2008, 13:37 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::Compare description

    A Perl for language sensitive text comparison.

    Text::Compare is a Perl for language sensitive text comparison.

    SYNOPSIS

    use Text::Compare;
    # the instant way:
    my $tc = new Text::Compare( memoize => 1, strip_html => 0 );

    my $sim = $tc->similarity($text_a, $text_b);
    #$sim will be between 0 and 1

    # second way (cache lists):
    my $tc2 = new Text::Compare( strip_html => 1 );

    # make a language sensitive word hash:
    my %wordhash = $tc2->get_words($some_text);

    $tc2->first_list(%wordhash);

    foreach my $list (@wordlists) {
    #list is a hashref
    $tc2->second_list($list);

    print $tc2->similarity();
    }

    # third way (cache texts)
    my $tc3 = new Text::Compare();

    $tc3->first($some_text);
    $tc3->second($some_other_text);

    print $tc3->similarity;

    Text::Compare is an attempt to write a high speed text compare tool based on Vector comparision which uses language dependend stopwords.

    Text::Compare uses Lingua::Identify to find the language of the given texts, then uses Lingua::StopWords to get the stopwords for the given language and finally uses Linuga::Stem to find word stems.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    text comparison | compare text | Perl module | text | comparison | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM