Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: python
python:
# Only 2.7 to prevent having to install NumPy and SciPy from source.
- "2.7"
- "3.2"

services:
- elasticsearch
Expand All @@ -12,9 +13,11 @@ virtualenv:

install:
- sudo apt-get update
- sudo apt-get install python-numpy python-scipy
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then sudo apt-get install python-numpy python-scipy; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then sudo apt-get install python3-numpy python3-scipy; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install -r requirements.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install -r requirements3.txt; fi
- pip install .
- pip install -r requirements.txt
- wget http://nlp.stanford.edu/software/stanford-corenlp-full-2014-06-16.zip -O temp.zip
- unzip temp.zip
- export CORENLP_HOME=`pwd`/stanford-corenlp-full-2014-06-16
Expand Down
16 changes: 16 additions & 0 deletions requirements3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
celery>=3.0.0
chardet
cytoolz
elasticsearch
flask>=0.10.1
gensim
kombu
#langid>=1.1.4dev
#librabbitmq
nltk>=3.0.0
pyspotlight
scikit-learn>=0.15.2
setuptools>=1.3.2
six
unidecode
weighwords
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from distutils.core import setup
import os.path
import sys


# Get __version__ from xtas source
Expand All @@ -19,7 +20,8 @@ def readme():


def requirements():
with open(os.path.join(dist_dir, "requirements.txt")) as f:
fname = "requirements%s.txt" % ("" if sys.version_info.major == 2 else "3")
with open(os.path.join(dist_dir, fname)) as f:
return f.readlines()


Expand Down
2 changes: 1 addition & 1 deletion xtas/tasks/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import operator

import cytoolz
import cytoolz as toolz
from six import itervalues

from .es import fetch
Expand Down
4 changes: 2 additions & 2 deletions xtas/tests/test_corenlp.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CoreNLP-to-HTML.xsl" type="text/xsl"?>
<!--
Test file for CoreNLP XML output. Input:
<!--
Test file for CoreNLP XML output. Input:
John attacked me in London. I hit him back.
-->

Expand Down