in reply to Similarity matrix

For a similarity matrix, then Algorithm::NeedlemanWunsch is probably what you are looking for. See also:

Text::WagnerFischer
String::LCSS_XS

Replies are listed 'Best First'.
Re^2: Similarity matrix
by smilly (Novice) on Jan 31, 2008 at 11:10 UTC
    dear friend, Tx for ur reply, by similarity i mean semantic similarity, which i can use wordnet similarity of ted pederson..... im more specific how o use this into my scripts to build a matrix of similarities.....

        thanks for your oint, its exactly what i want to do. the algorithm of the solution is like this:

        read the corpus;
        for each word in the corpus
        measure the similarity using WordNet::Similarity with other words;
        store it in the sim matrix;
        end;
        write the sim matrix into simmat file

        the algorithm seems very easy but im not sure exactly how to write it in perl(admitting that im a beginner perl programmer). I used to work with wordnet::similarity but i never used it the codes for my programme so im not very sure how to make it.

        I'd appreciate your helpful tips.