GithubHelp home page GithubHelp logo

reloadbrain / paper-qa-bert-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucasraggi/paper-qa-bert-api

0.0 0.0 0.0 295 KB

Api to send a pdf of a paper and use question answerer of bert from deeppavlov

Python 74.47% Dockerfile 25.53%

paper-qa-bert-api's Introduction

Paper Question Answerer with Bert - API

About

Upload the pdf of any article in english and ask her any questions about its content "where the dataset came from?", "what is the neural network architecture used?" then and the model will answer the question.

Some filters are applied to the article to remove the garbage and leave only the necessary information and the model used is Bert from the DeepPavlov library, which is a transformer that uses the seq2seq neural network architecture to model language, the model was trained in english with the Squad dataset to answer questions given a text.

Webapp

How to use the project? - Without docker

To configure the API for development use:

  • Have Java 8 installed

Run

  • Git Clone Repo
  • Run pip install -r requirements.txt
  • Run python -m deeppavlov install squad_bert
  • Run python3 paper-qa-api.py

How to use the project? - With docker

To configure the API for development use:

  • Have Docker Desktop installed
  • In the docker settings, check the 'Expose daemon ...' option and mark your disks as shared drives
  • Increase the docker ram limit to at least 4gb

Run

to start the API: Run docker-compose up

paper-qa-bert-api's People

Contributors

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