> From: Nathan Kurz <nate verse.com>
>
> > $similarity = $doc1->get_cosine($doc2);
> > $similarity = $doc1->get_similarity($doc2,
$my_similarity_fxn);
>
> I'm less happy with this approach. This relates to my
general feeling
> that the way to solve this problem is not by adding new
interfaces,
> but by generalizing the scoring mechanism to allow
alternative scorers
> like this one. The 'right' solution would be to create
a
> CosineScorer, and make it work with the existing
infrastructure.
> Adding convenience methods to score individual
documents would be
> great, but should be added to the Scorer (or
Similarity? or Weight?)
> rather than to the Doc.
I can dig that.
____________________________________________________________
________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9
tAcJ
_______________________________________________
KinoSearch mailing list
KinoSearch rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
|