Skip to content

Instantly share code, notes, and snippets.

@cathreya
Created March 13, 2018 18:55
Show Gist options
  • Save cathreya/9ef08bf291b8d1e4a4eb3a7e7e07a74a to your computer and use it in GitHub Desktop.
Save cathreya/9ef08bf291b8d1e4a4eb3a7e7e07a74a to your computer and use it in GitHub Desktop.
Installing Tweedr
bottle
colorama
mako
matplotlib
mrjob
mysql-python
pattern
pybloomfiltermmap>=0.3.11
pyper
python-hashes
requests
scikit-learn
scipy
sqlalchemy
ujson

Installing tweedr

All python commands are for python 2 only.

  1. Install libLBFGS
git clone https://github.com/chbrown/liblbfgs.git
cd liblbfgs
./configure
make
sudo make install
  1. Install crfsuite

./configure
make
sudo make install
  1. Install the Python wrapper for crfsuite
cd swig/python
./prepare --swig
python setup.py build_ext
python setup.py install
  1. Installing tweedr

make sure mySQL is installed

I will attach requirements.txt seperately

git clone https://github.com/dssg/tweedr.git
sudo pip install -r requirements.txt 

Edit the setup.py with your preferred text editor and change url = 'http://ark-tweet-nlp.googlecode.com/files/ark-tweet-nlp-0.3.2.tgz' to url = 'https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ark-tweet-nlp/ark-tweet-nlp-0.3.2.tgz'

python setup.py install
python setup.py download_ext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment