Giter Site home page Giter Site logo

visualizing-impact-ml's Introduction

visualizing-impact-ml

Installing required packages

apt-get install -y postgresql python3-pip python3-venv

Setting up the venv

python3 -m venv wikivi_venv
source wikivi_venv/bin/activate
pip install -r requirements.txt

Setting up Postgres

sudo su postgres
psql

(The following commands will be in the postgresql shell, you can use whatever username/password you want when creating a user. I recommend using your shell username as postgresql checks for it by default)

create user username with password 'password';

create database wikivi;

grant all privileges on database wikivi to username;

\c wikivi

grant all on schema public to username;

exit

Creating tables inside of the wikivi database

Make sure to use "su" to go back to your original user then run the following command:

psql -d wikivi -a -f firstcommand.sql

Executing the program

First, create a new directory called "xml_articles". Go to the Wikimedia dumps website in order to download any wikipedia xml dump of your choice and place it inside the newly-created directory. Then run the use_mwxml.py script.

After the program is done executing, run the parse_content_to_readabletext.py script.

Finally, run the embedding_mini.py script (make sure you have specified a valid path for both the embeddings and the model)

visualizing-impact-ml's People

Contributors

wikimegan avatar aminehassou avatar drmegannewsome avatar

Watchers

Sage Ross avatar  avatar

Forkers

aminehassou

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.