Giter VIP home page Giter VIP logo

trec-browser's Introduction

Metadata Browser of the Text Retrieval Conference

This repository contains the resources of the TREC metadata browser available at https://pages.nist.gov/trec-browser and the source code of the REST API server that can be used for principled queries and systematic access to the metadata of TREC (this repository also contains a notebook that demonstrates and documents the use of the API).

โš ๏ธ Note for the reviewers: The database will be available under an academic, non-commercial license. During the reviewing phase, we share the database confidentially with the help of an anonymized link. Details can be found in the submitted paper draft. If this repository should receive any updates or new commits, we refer the reviewers to v0.1.0 that corresponds to the project status at submission time.

Overview

Directory / file Description
browser/ This directory contains all the resources required to build and run the TREC metadata browser.
browser/build.ipynb Use this notebook to (re)build the files that are required to run the browser (see instructions below).
api/ This directory contains the source code of the REST API server application.
api/demo.ipynb This notebook demonstrates and documents the use of the REST API by providing three use case examples.

Obtaining the database

The database will be available for research and non-commercial purposes. For the reviewers, we share the database confidentially with the help of an anonymized link. Details are given in the paper submission.

Running the demo of the REST API

Before running the demo notebook, please make sure to follow the setup instructions outlined below. Afterward, you can retrieve outputs from the REST API. Use the notebook for three possible use cases, including (1) a general introduction to the API invocations and retrieving metadata, (2) fetching resources of earlier TREC submissions, and (3) reproducing system comparisons of earlier tracks.

Setup

  1. Make sure you have Python, Docker, and docker-compose installed.
  2. Obtain the database file if you want to rebuild the browser files or run the REST API server.

Building the browser files

Note: Building the browser files is not mandatory if you just want to run the browser locally. They are located in the browser/src/ directory of this repository.

  1. Clone this repository
git clone https://github.com/usnistgov/trec-browser.git
  1. Obtain the database file and place it in the top level directory of this repository. You can choose any other directory but please make sure to adapt the file path in the notebook in that case.

  2. Run the noteboook browser/build.ipynb. It will install the required Python packages, generate the browser files and place them in the browser/src/ directory.

  3. Make sure to have the required Python packages installed when building the browser in a local Python environment (see also this requirements.txt file). Then, build the HTML files with the following command:

cd trec-browser/browser/src && mkdocs build

Running the browser

Note: The most recent version of the TREC browser is available at https://pages.nist.gov/trec-browser. If you want to run it locally, e.g., for development purposes, please follow the instructions outlined below.

  1. Clone this repository
git clone https://github.com/usnistgov/trec-browser.git
  1. Change into the browser/ directory and build/run the Docker container.
cd trec-browser/browser/ && docker compose up -d
  1. Open your web browser and navigate to http://localhost:8000/trec-browser.

Running the REST API

  1. Clone this repository
git clone https://github.com/usnistgov/trec-browser.git
  1. Obtain the database file and place it in the api/src/ directory.

  2. Change into the api/ directory and build/run the Docker container.

cd trec-browser/api/ && docker compose up -d
  1. The REST API is then available at http://localhost:5000/trec/api/v1/.

trec-browser's People

Contributors

pricelesskay avatar timo-nist avatar

Watchers

 avatar  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.