Giter Club home page Giter Club logo

openhack2018's Introduction

Resi

Chosen case: Sida Open Aid Visualisation Challenge

The solution:

Categorize PDF documents with one-word tags and display the number of projects devoted to different causes via country-specific, weighted wordclouds.

Applied open source licenses:

  • libnabo (no license)
  • ocrmypdf (GNU general public license)
  • coreNLP (GNU general public license)
  • Swedish Python Routines (GNU general public license)

Getting started with your development-environment:

pip install virtualenv
virtualenv venv
osource venv/bin/activate (or venv/Scripts/activate.bat if on Windows)

Services used:

  • API calls from d-portal.org for SIDA's activities
  • Jupyter Lab and Jupyter Notebook (running scripts online)
  • ocrmypdf (running OCR on PDFs)
  • coreNLP (language processing for English documents)
  • Swedish Python Routines (language processing for Swedish documents)
  • libnado (running k-nearest neighbor algorithm)

Steps to carry out solution:

  1. Get IATI-identifiers of activities with known recipient country from d-portal.org
  2. Make API calls to get JSON file containing details tied with the activity
  3. Filter for completed activities using the activity status code
  4. Obtain and filter url to PDF results documents tied to the activities using the document format and report format code
  5. Determine if the language of the document is English or Swedish
  6. Run NLP on the document to do word stemming and remove stop words
  7. Filter for pre-defined keywords
  8. Use the k-nearest neighbor algorithm to calculate the weight of keywords
  9. Create a JSON file tying a country to its weighted key words
  10. Fetch JSON file on webpage to display results on webpage

Languages used:

  • Python3
  • Bash ShellScript
  • HTML
  • CSS
  • JavaScript

Team members:

  • Christoffer Klang
  • Eric Kuan
  • Mikael Zwahlen
  • Sharon Yeo

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.