terrier-org / terrier-core

Terrier IR Platform
http://terrier.org/
Other
250 stars 63 forks source link

Set the number of retrieved results #190

Open kite1988 opened 3 years ago

kite1988 commented 3 years ago

Hi,

I would like to output all retrieved results (instead of 1000 top results by default) in Terrier. Following the instruction, I add the following line in the terrier.properties.

matching.retrieved_set_size=0

However, this command seems not working, as the output still only contains 1000 results. I also tried to increase the number from "0" to "8000000", but the results are the same. I am using Terrier 5.4. May I know the correct way of setting this property?

Thanks!

cmacdonald commented 3 years ago

Looks like the correct property - see https://github.com/terrier-org/terrier-core/blob/5.x/modules/core/src/main/java/org/terrier/matching/BaseMatching.java#L190

Have you tried PyTerrier? - it makes changing these configurations a bit easier.

kite1988 commented 3 years ago

I tried to add the following in the terrier.properties. Now Terrier can output all results.

matching.retrieved_set_size=0 trec.output.format.length=0

cmacdonald commented 3 years ago

Well remembered. Could you make a PR to the documentation?