forked from rkadlec/ubuntu-ranking-dataset-creator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to download the nltk data before create dataset
- Loading branch information
1 parent
25af0c5
commit e800822
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import nltk | ||
|
||
|
||
nltk.download('punkt') | ||
nltk.download('wordnet') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |