Skip to content

Commit

Permalink
Add script to download the nltk data before create dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
howl-anderson committed Oct 18, 2017
1 parent 25af0c5 commit e800822
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/download_punkt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import nltk


nltk.download('punkt')
nltk.download('wordnet')
5 changes: 5 additions & 0 deletions src/generate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/usr/bin/env bash

# download punkt first
python download_punkt.py

python create_ubuntu_dataset.py "$@" --output 'train.csv' 'train'
python create_ubuntu_dataset.py "$@" --output 'test.csv' 'test'
python create_ubuntu_dataset.py "$@" --output 'valid.csv' 'valid'

0 comments on commit e800822

Please sign in to comment.