Giter Site home page Giter Site logo

freshy969 / primeqa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from primeqa/primeqa

0.0 1.0 0.0 19.23 MB

The prime repository for state-of-the-art Multilingual Question Answering research and development.

Home Page: https://primeqa.github.io/primeqa

License: Apache License 2.0

Shell 0.40% C++ 1.16% Python 56.94% Cuda 0.26% Jupyter Notebook 41.20% Dockerfile 0.03%

primeqa's Introduction

primeqa

The Prime Repository for State-of-the-Art Multilingual Question Answering Research and Development.

Build Status LICENSE|Apache2.0 sphinx-doc-build

PrimeQA is a public open source repository that enables researchers and developers to train state-of-the-art models for question answering (QA). By using PrimeQA, a researcher can replicate the experiments outlined in a paper published in the latest NLP conference while also enjoying the capability to download pre-trained models (from an online repository) and run them on their own custom data. PrimeQA is built on top of the Transformers toolkit and uses datasets and models that are directly downloadable.

The models within PrimeQA supports End-to-end Question Answering. PrimeQA answers questions via

Some examples of models (applicable on benchmark datasets) supported are :

๐Ÿ… Top of the Leaderboard

PrimeQA is at the top of several leaderboards: XOR-TyDi, TyDiQA-main, OTT-QA and HybridQA.

โœ”๏ธ Getting Started

Installation

Installation doc

# cd to project root

# If you want to run on GPU make sure to install torch appropriately

# E.g. for torch 1.11 + CUDA 11.3:
pip install 'torch~=1.11.0' --extra-index-url https://download.pytorch.org/whl/cu113

# Install as editable (-e) or non-editable using pip, with extras (e.g. tests) as desired
# Example installation commands:

# Minimal install (non-editable)
pip install .

# GPU support
pip install .[gpu]

# Full install (editable)
pip install -e .[all]

Please note that dependencies (specified in setup.py) are pinned to provide a stable experience. When installing from source these can be modified, however this is not officially supported.

Note: in many environments, conda-forge based faiss libraries perform substantially better than the default ones installed with pip. To install faiss libraries from conda-forge, use the following steps:

  • Create and activate a conda environment
  • Install faiss libraries, using a command

conda install -c conda-forge faiss=1.7.0 faiss-gpu=1.7.0

  • In setup.py, remove the faiss-related lines:
"faiss-cpu~=1.7.2": ["install", "gpu"],
"faiss-gpu~=1.7.2": ["gpu"],
  • Continue with the pip install commands as desctibed above.

JAVA requirements

Java 11 is required for BM25 retrieval.

Download Java 11 package from https://jdk.java.net/archive/ and uncompress

Set JAVA_HOME:

export JAVA_HOME=<jdk-dir>
export PATH=$JAVA_HOME/bin:$PATH

๐Ÿงช Unit Tests

Testing doc

To run the unit tests you first need to install PrimeQA. Make sure to install with the [tests] or [all] extras from pip.

From there you can run the tests via pytest, for example:

pytest --cov PrimeQA --cov-config .coveragerc tests/

For more information, see:

๐Ÿ”ญ Learn more

Section Description
๐Ÿ“’ Documentation Full API documentation and tutorials
๐Ÿ Quick tour: Entry Points for PrimeQA Different entry points for PrimeQA: Information Retrieval, Reading Comprehension, TableQA and Question Generation
๐Ÿ““ Tutorials: Jupyter Notebooks Notebooks to get started on QA tasks
๐Ÿ’ป Examples: Applying PrimeQA on various QA tasks Example scripts for fine-tuning PrimeQA models on a range of QA tasks
๐Ÿค— Model sharing and uploading Upload and share your fine-tuned models with the community
โœ… Pull Request PrimeQA Pull Request
๐Ÿ“„ Generate Documentation How Documentation works
๐Ÿ›  Orchestrator Service REST Microservice Proof-of-concept code for PrimeQA Orchestrator microservice
๐Ÿ“– Tooling UI Demo UI

โค๏ธ PrimeQA collaborators include

stanford Stanford NLP i University of Illinois
stuttgart University of Stuttgart notredame University of Notre Dame
ohio Ohio State University carnegie Carnegie Mellon University
massachusetts University of Massachusetts ibm IBM Research




primeqa

primeqa's People

Contributors

vishwajeetkumar93 avatar jdpsen avatar anthony-ferritto-work avatar franzmpub avatar bhavani105 avatar mihaela-bornea avatar rongzhangibm avatar seirasto avatar juanbrusco avatar jonsaadfalcon avatar avisil avatar jsmcibm avatar okhat avatar riyazbhat avatar kpfadnis avatar mxschmdt avatar santhnm2 avatar ma-sultan avatar cmacdonald avatar yulongl-ibm avatar issei-ibm avatar gkumbhat avatar siviltaram avatar jzbjyb avatar michaelrglass avatar hrojek avatar hansolosan avatar xiang-deng avatar seanmacavaney 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.