Author: Laura Dietz and John Foley
For complementary information, see article "Galago - the secret documentation"
You can use maven to automatically download necessary dependencies. (see below)
Alternatively you can download the galago JARs from here:
- http://scm-ciir.cs.umass.edu:8080/nexus/content/repositories/releases/org/lemurproject/galago/core/3.8/core-3.8.jar
- http://scm-ciir.cs.umass.edu:8080/nexus/content/repositories/releases/org/lemurproject/galago/utility/3.8/utility-3.8.jar
- http://scm-ciir.cs.umass.edu:8080/nexus/content/repositories/releases/org/lemurproject/galago/eval/3.8/eval-3.8.jar
cd into the directory
$ mvn -U clean compile assembly:single
This will create a jar file for this project in ./target/ Additionally, one JAR file that combines all necessary dependencies with this code into one big jar is created (...with-dependencies.jar)
You first need to create an index, see "Galago - the secret documentation" The running example assumes that you have access to the wiki-index created by Jeff Dalton, but it is straight-forward to adapt to any Galago index -- as long as it was built with a Galago version of 3.5 or above.
$ ./run.sh build galago.json
$ ./run.sh search --port=2507 --index=./index
$ ./run.sh batch-search --port=2507 --index=./index --requested=20 queries.json >| result.run
$ ./run.sh eval --judgments=data/robust04/qrels/robust04.qrels --baseline=result.run --metrics=MAP