Code Monkey home page Code Monkey logo

un-semun's Introduction

πŸ‡ΊπŸ‡³ SemUN repository

Repository for SemUN project. It is composed of a docker-compose stack, with:

Built with OrbStack Built with neo4j Packages Linter VersionBuilt with HuggingFace Built with spaCy

Table of Contents

Description & Paper

  • To have more information on the project, please refer to the project proposal
  • For more details about the final result, please refer to the paper

Running the project

Install requirements

You also need to have Docker installed, I'm using OrbStack as a Docker desktop client for macOS, but regular Docker installation works perfectly fine as well.

Run the project

When Docker is setup, you just have to run:

# Start the containers
docker-compose up -d

Open the frontend at http://localhost:8080/ if using Docker Desktop or http://un-semun-frontend.un-semun.orb.local/ if using OrbStack.

Stop the stack

To stop the stack, just run:

docker-compose down

You are all set! πŸŽ‰

Ingest documents using the ML pipeline API

To ingest documents, you can use the ML pipeline API. You can find more information about it in the README.md of the un-ml-pipeline folder.

You basically need to send a POST request to the /run endpoint at URL http://un-semun-api.un-semun.orb.local with a JSON body containing the following fields:

[
    {"recordId": "<record_id_0>"},
    {"recordId": "<record_id_1>"},
    {"recordId": "<record_id_2>"},
    ...
]

You can also send a POST request to the /run_search endpoint, at the same URL, with a natural language query to the UN Digital Library. The API will then scrape the results and ingest them in the database.

{
  "q": "<query>"
}

You can also include a limit number of results to scrape, by adding a field "n": <value> in the payload.

For instance:

{
  "q": "Women in peacekeeping",
  "n": 256
}

un-semun's People

Contributors

clementsicard avatar

Stargazers

 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.