Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: string similarity by using a function sort_by_similarity()

by shmem (Chancellor)
on Nov 08, 2009 at 12:20 UTC ( [id://805755]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Math::Combinatorics qw( combine);
    my @collection; # list of strings
    ...
        ...
        return $value;
    }
    
  2. or download this
    my @similarity = map { $_->[0] }
                     sort { $a->[1] <=> $b->[1] }
                     map { [ $_, similarity($_) ] } @tuples;
    

Log In?
Username:
Password:

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

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

    No recent polls found