Question


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...

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top