Pregunta


I am new to lucene (using lucene jar with a java university project) and I wanted to know,
Does lucene supply out of the box mean average precision?
Assuming it does the indexing and do supply some other functionalities (which are sadly
poorley documented...).
Any help will be appreciated.


Just to be clear -
It is for a university project BUT I am allowed to use ANY functionality lucene
supplys...

¿Fue útil?

Solución

You do have org.apache.lucene.benchmark.quality.QualityStats.getAvp() to get average precision.

This returns the Average precision for a single query when running a quality benchmark.

Getting the mean from the set of query should be fairly easy from this point.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top