Giter Club home page Giter Club logo

dref-nlp's Introduction

Overview

Available apps:

  • Parsing PDFs (dref_parsing)
  • Tagging text (dref_tagging)
  • Parsing + Tagging

Installation of all packages needed to run all apps

conda create --name dref python=3.8
conda activate dref
python -m pip install -r requirements.txt
python -m spacy download en_core_web_md
python -m pip install -e ./dref_parsing
python -m pip install -e ./dref_tagging

Requirements

To run the dref_tagging app (or the joint app) you must download the file DREF_docBERT.pt and add it to the dref_tagging/dref_tagging/config file. Currently to download this file you must contact the IM team at IFRC

Running apps

The apps are made using fastapi and can be started by commands

uvicorn dref_parsing.main:app --reload
uvicorn dref_tagging.main:app --reload
uvicorn main:app --reload

and then opening in a browser the indicated web-page, usually http://127.0.0.1:8000/docs

Azure / Docker

The current version of the apps is available at: https://drefnlpdev.azurewebsites.net/docs

It contains the joint apps (for parsing the data and tagging it).

If the dref_tagging is needed (without parsing the data), it is available at: https://dreftagging.azurewebsites.net/docs

The docker images uploaded to Azure were created by running the following build command from the folders dref_tagging, dref_parsing or the root folder:

docker build -t myimage .

To run the docker locally, use

docker run -p 8000:8000 myimage

and open http://localhost:8000/docs

dref-nlp's People

Contributors

alexxxh avatar bethancropp avatar dshantsev avatar szabozoltan69 avatar ypyelab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

alexxxh

dref-nlp's Issues

DREF-NLP does not find related appeal PDF-s

On https://drefnlpdev.azurewebsites.net/docs#/default/parse_and_tag_parse_and_tag__output_format__post it is impossible to find existing appeal PDF-s, even with the built-in example string (MDRDO013): "PDF URL for Appeal code MDRDO013 was not found using IFRC GO API call appeal_document". I tried it with the newest ones (e.g. MDRAR020), but still does not work.

Some appeal/appealdocument coupling or other ID-links or other API search possibilities might have been changed in the past few months.

Maybe https://github.com/IFRCGo/DREF-NLP/blob/master/dref_parsing/dref_parsing/parser_utils.py#L20 or https://github.com/IFRCGo/DREF-NLP/blob/master/dref_parsing/dref_parsing/parser_utils.py#L230 is obsolate in some sense?

@thenav56 any ideas?

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.