Re: Scoring function in LMDirichletSimilarity Class

2013-04-04 Thread Peter Organisciak
I think this is the problem that you're running into, though maybe a person with more expertise can confirm... ZP, If you look at section 5.1 of the Zhai Lafferty paper ( http://www.cs.cmu.edu/~lafferty/pub/smooth-tois.ps), they note that the "term weight is log(1+(1-\lambda)p_ml(q_i|d) / \lamdba

Re: Scoring function in LMDirichletSimilarity Class

2013-04-02 Thread Zeynep P.
Hi, I have the same question related to LMJelinekMercerSimiliarity class. protected float score(BasicStats stats, float freq, float docLen) { return stats.getTotalBoost() * (float)Math.log(1 + ((1 - lambda) * freq / docLen) / (lambda * ((LMStats)stats).getCollectionProbability()));