Skip to content

Instantly share code, notes, and snippets.

@halfak
Last active January 18, 2017 22:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save halfak/1a0a9e0c754e12f2686a2eaa8046667d to your computer and use it in GitHub Desktop.
Save halfak/1a0a9e0c754e12f2686a2eaa8046667d to your computer and use it in GitHub Desktop.
$ mkdir venv
$ cd venv
$ virtualenv 3.4 -p $(which python3) --system-site-packages
$ cd ~
$ source ~/venv/3.4/bin/activate
$ mkdir projects
$ cd projects
$ git clone https://jonasagx@github.com/wiki-ai/revscoring
$ cd revscoring
$ python -m nltk.downloader stopwords
$ pip install -r requirements.txt
$ pip install revscoring==1.3.4
$ cd ..
$ git clone https://jonasagx@github.com/wiki-ai/editquality
$ cd editquality
$ make datasets/enwiki.labeled_revisions.20k_2015.json
$ cat datasets/enwiki.labeled_revisions.20k_2015.json | shuf -n 1000 | revscoring extract editquality.feature_lists.enwiki.damaging --host https://en.wikipedia.org --profile enwiki.damaging.profile.md > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment