Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Compare text similarity

by kcott (Archbishop)
on Feb 07, 2017 at 08:23 UTC ( [id://1181264]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1181264]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found