test_end_to_end now working, added instructions to README, sentencepiece dependency

This commit is contained in:
Tomasz Pietruszka
2019-01-22 20:10:38 +01:00
parent dd296f3088
commit 0e864fb291
4 changed files with 14 additions and 2 deletions
+10
View File
@@ -88,3 +88,13 @@ $ git push --set-upstream n-waves ulmfit_multilingual # to automatically push u
- `bilm` -- scripts to train biLM ELMo style, Bert style
- `class` -- scripts to test classifiers on multiple languages
- `xnli` -- scripts to test nli
## Running tests
To run the tests, the following data is necessary:
- wikitext-2 (prepared by `./prepare_wiki-en.sh`, along with wikitext-103)
- imdb (prepared by `./prepare_imdb.sh`)
then simply run tests, e.g. `pytest .`
Regular → Executable
View File
+2 -1
View File
@@ -1,4 +1,5 @@
fire>=0.1.3
cupy>=5.0.0
scikit-learn>=0.20
sacremoses>=0.0.5
sacremoses>=0.0.5
sentencepiece
+2 -1
View File
@@ -25,7 +25,8 @@ def get_test_data():
imdb = data / "imdb"
test_data = data / "test"
shutil.rmtree(test_data)
if test_data.exists():
shutil.rmtree(test_data)
test_wt = test_data / 'wikitext-s'
test_imdb = test_data / 'imdb'