GithubHelp home page GithubHelp logo

ddunne6 / lucene-cranfield-collection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25.3 MB

Assignment from my MAI module 'Information Retrieval and Web Search' where I index the Cranfield Collection

Java 91.59% Shell 8.41%
information-retrieval java cranfield-collection trec-eval lucene

lucene-cranfield-collection's Introduction

lucene-cranfield-collection

Assignment from my Master's module "Information Retrieval and Web Search" where I index the Cranfield Collection and evaluate different performance metrics with trec eval.

Prerequisites

Install and make trec_eval

RECOMMENDED: Run the Entire Thing

First navigate to the assignment-1/ directory. There is a run.sh file that will build and execute the program which will print out the trec eval results afterwards.

bash run.sh


Build

This will have the effect of installing all prerequisite packages e.g. lucene 8.6.2

mvn package

Create Index with Standard Analyzer and Vector Space Model Scoring

java -jar target/assignment-1-1.0-SNAPSHOT.jar <analyzer> <similarity>

analyzer: standard,english, or whitespace

similarity: 'vsm' with bm25

Example with StandardAnalyzer & Vector Space Model

java -jar target/assignment-1-1.0-SNAPSHOT.jar standard vsm

Trec Eval

trec_eval -m runid -m map -m gm_map -m P.5 ../corpus/QRelsCorrectedforTRECeval results/StandardAnalyzerVSM.test

We can replace the .test file with others from results/ directory

Additional Info

corpus/

  • cran.all - The documents
  • cran.qry - The queries
  • QRelsCorrectedforTRECeval - The relevance assesments (adjusted)

lucene-cranfield-collection's People

Contributors

ddunne6 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.