Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ease
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ease
Commits
8e85a005
Commit
8e85a005
authored
May 31, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #56 from edx/will/minimal-nltk-data
Download only the NLTK data we actually use
parents
ea5770ea
e9eff7a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.travis.yml
+1
-1
download-nltk-corpus.sh
+2
-2
No files found.
.travis.yml
View file @
8e85a005
...
...
@@ -7,9 +7,9 @@ before_install:
-
sudo apt-get update
-
sudo xargs -a apt-packages.txt apt-get install --fix-missing
install
:
-
travis_retry ./download-nltk-corpus.sh
-
pip install -r base-requirements.txt
-
pip install -r dev-requirements.txt
-
sudo apt-get install python-matplotlib python-numpy python-scipy python-sklearn
-
pip install nltk==2.0.3 scikit-learn==0.12.1
-
travis_retry ./download-nltk-corpus.sh
script
:
nosetests
download-nltk-corpus.sh
View file @
8e85a005
#!/usr/bin/env bash
curl
-o
/tmp/nltk.tmp.tar.tz http://edx-static.s3.amazonaws.com/nltk/nltk-data-20131113.tar.gz
cd
/usr/share
&&
sudo tar
zxf /tmp/nltk.tmp.tar.tz
PYTHON
=
`
which python
`
sudo
$PYTHON
-m
nltk.downloader stopwords maxent_treebank_pos_tagger wordnet
-d
/usr/local/share/nltk_data
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment