in reply to Compare text similarity

G'day liuweichuan,

"which modules or functions for comparing text similarity by perl"

That's extremely vague! What sort of text? What format? What type of comparison? What else can you tell us that will help us to help you?

There are operators, such as cmp: see perlop. There are regular expressions: see perlre. There are all sorts of string-related functions: see Perl functions A-Z. There are any number of builtin modules that might be useful: see the "Modules" section of http://perldoc.perl.org/perl.html.

Then there's CPAN. Try searching: http://search.cpan.org/. I found these fairly quickly: Text::Compare; Text::Similarity; Text::Soundex.

— Ken

Replies are listed 'Best First'.
Re^2: Compare text similarity
by liuweichuan (Acolyte) on Feb 08, 2017 at 02:37 UTC
    compare two texts/content is the similar or not, such as "i like this book" and "i like the book", they are same, and very similar.
Re^2: Compare text similarity
by liuweichuan (Acolyte) on Feb 08, 2017 at 03:03 UTC
    like text::compare , but no support jp and zh char-set.