GithubHelp home page GithubHelp logo

data.terrier.org's Introduction

data.terrier.org

This repository contains the source code for the (Py)Terrier Data Repository - http://data.terrier.org.

In particular, it contains the Python scripts to build indices for well-known test collections, as well as to create and execute notebooks to document the known performances of those indices.

Features

  • Builds Terrier indices (and those from other PyTerrier plugsin, such as pyterrier_colbert) available for standard corpora via PyTerrier, hosted on a publicly accessible website
  • Indices are versioned, and are verifiably correct, e.g. through md5sums
  • PyTerrier code snippets are provided for instantiating different PyTerrier retrieval pipelines
  • There are notebooks demonstrating retrieval effectiveness of using these pre-built indices can be made available, with pre-populated results. For many corpora, these indices are small enough to allow running on Google Colab.

Accessing a prebuilt index

Different PyTerrier retrieval transformers can intantiated via a from_dataset() function. If necsssary, this downloads and verifies the index from http://data.terrier.org.

name='msmarco-passage'
variant='stemmed'
br = pt.TerrierRetrieve.from_dataset(name, variant)
#or equivalently
br = pt.TerrierRetrieve(pt.get_dataset(name).get_index(variant=variant))

Building an Index

The Terrier Data Repository means that you should not required to build indices that are available through the repository.

However, should you wish to contribute an index, you can see how indices are built using the Makefile, and specifying the dataset name:

make vaswani

All vaswani indices are then built into indices/vaswani/:

$ ls indices/vaswani 
terrier_stemmed         terrier_stemmed_text    terrier_unstemmed

$ ls indices/vaswani/terrier_stemmed/latest
data.direct.bf                  data.lexicon.fsomapfile         data.meta.idx                   md5sums
data.document.fsarrayfile       data.lexicon.fsomaphash         data.meta.zdata                 files
data.inverted.bf                data.lexicon.fsomapid           data.properties

Credits

  • Craig Macdonald, University of Glasgow
  • Sean MacAvaney, University of Glasgow

data.terrier.org's People

Contributors

cmacdonald avatar seanmacavaney avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

data.terrier.org's Issues

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.