Git Product home page Git Product logo

rank_biased_precision_implementation's Introduction

rank_biased_precision_implementation

It is used to evaluate Information Retrieval System on RBP (Rank Biased Precision) metric.

Parameters: --p pValue (required) ranges from 0 to 1

--qrel qrel file (required) similar to sample.qrels

--trecFile file in TREC Format(required)simliar to sample.txt

--gmax (default=1) Highest judged relevance label

--save (optional) will save the output to file

How to Run:

  1. When range=1 and output isn’t saved

python3.5 RBP.py RBP_eval --p 0.50 --qrel sample.qrels --trecFile sample.txt

2)Output will be saved in RBP_eval_sample.txt

python3.5 RBP.py RBP_eval --p 0.50 --qrel sample.qrels --trecFile sample.txt --save RBP_eval_sample.txt --gmax 3

File Formats:

.qrels file:

   1   0   100       1
Query-Id 0 DocumentID Relevence

TREC File:

   1   Q0   100       -1  4.20    vatsal
Query-Id Q0 DocumentID rank  sim     run_id

Sim is assumed to be higher for the docs to be retrieved first. File may contain no NULL characters. Lines may contain fields after the run_id; they are ignored. This file should be sorted by sim in descending order

Output file:

 Query-Id RBP-Score .

Reference: Alistair Moffat, Justin Zobel. Rank-Biased Precision for Measurement of Retrieval Effectiveness, ACM Transactions on Information Systems Vol. 27 Issue 1, December 2008.

rank_biased_precision_implementation's People

Contributors

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