diff --git a/.Jenkinsfile b/.Jenkinsfile index 7c0a64fd..87c286ee 100644 --- a/.Jenkinsfile +++ b/.Jenkinsfile @@ -29,7 +29,7 @@ pipeline { steps { sh 'python -m spacy download en' sh 'pip install fitlog' - sh 'pytest ./test --html=test_results.html --self-contained-html' + sh 'pytest ./tests --html=test_results.html --self-contained-html' } } } diff --git a/.travis.yml b/.travis.yml index 85bac41e..9c1ff4d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: # command to run tests script: - python -m spacy download en - - pytest --cov=fastNLP test/ + - pytest --cov=fastNLP tests/ after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/MANIFEST.in b/MANIFEST.in index d893b45a..61279be1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,7 +1,7 @@ include requirements.txt include LICENSE include README.md -prune test/ +prune tests/ prune reproduction/ prune fastNLP/api prune fastNLP/automl \ No newline at end of file diff --git a/test/__init__.py b/tests/__init__.py similarity index 100% rename from test/__init__.py rename to tests/__init__.py diff --git a/test/core/__init__.py b/tests/core/__init__.py similarity index 100% rename from test/core/__init__.py rename to tests/core/__init__.py diff --git a/test/core/test_batch.py b/tests/core/test_batch.py similarity index 100% rename from test/core/test_batch.py rename to tests/core/test_batch.py diff --git a/test/core/test_callbacks.py b/tests/core/test_callbacks.py similarity index 100% rename from test/core/test_callbacks.py rename to tests/core/test_callbacks.py diff --git a/test/core/test_dataset.py b/tests/core/test_dataset.py similarity index 100% rename from test/core/test_dataset.py rename to tests/core/test_dataset.py diff --git a/test/core/test_dist_trainer.py b/tests/core/test_dist_trainer.py similarity index 100% rename from test/core/test_dist_trainer.py rename to tests/core/test_dist_trainer.py diff --git a/test/core/test_field.py b/tests/core/test_field.py similarity index 100% rename from test/core/test_field.py rename to tests/core/test_field.py diff --git a/test/core/test_instance.py b/tests/core/test_instance.py similarity index 100% rename from test/core/test_instance.py rename to tests/core/test_instance.py diff --git a/test/core/test_logger.py b/tests/core/test_logger.py similarity index 100% rename from test/core/test_logger.py rename to tests/core/test_logger.py diff --git a/test/core/test_loss.py b/tests/core/test_loss.py similarity index 100% rename from test/core/test_loss.py rename to tests/core/test_loss.py diff --git a/test/core/test_metrics.py b/tests/core/test_metrics.py similarity index 100% rename from test/core/test_metrics.py rename to tests/core/test_metrics.py diff --git a/test/core/test_optimizer.py b/tests/core/test_optimizer.py similarity index 100% rename from test/core/test_optimizer.py rename to tests/core/test_optimizer.py diff --git a/test/core/test_predictor.py b/tests/core/test_predictor.py similarity index 100% rename from test/core/test_predictor.py rename to tests/core/test_predictor.py diff --git a/test/core/test_sampler.py b/tests/core/test_sampler.py similarity index 100% rename from test/core/test_sampler.py rename to tests/core/test_sampler.py diff --git a/test/core/test_tester.py b/tests/core/test_tester.py similarity index 100% rename from test/core/test_tester.py rename to tests/core/test_tester.py diff --git a/test/core/test_trainer.py b/tests/core/test_trainer.py similarity index 100% rename from test/core/test_trainer.py rename to tests/core/test_trainer.py diff --git a/test/core/test_utils.py b/tests/core/test_utils.py similarity index 100% rename from test/core/test_utils.py rename to tests/core/test_utils.py diff --git a/test/core/test_vocabulary.py b/tests/core/test_vocabulary.py similarity index 100% rename from test/core/test_vocabulary.py rename to tests/core/test_vocabulary.py diff --git a/test/data_for_tests/config b/tests/data_for_tests/config similarity index 100% rename from test/data_for_tests/config rename to tests/data_for_tests/config diff --git a/test/data_for_tests/conll_2003_example.txt b/tests/data_for_tests/conll_2003_example.txt similarity index 100% rename from test/data_for_tests/conll_2003_example.txt rename to tests/data_for_tests/conll_2003_example.txt diff --git a/test/data_for_tests/conll_example.txt b/tests/data_for_tests/conll_example.txt similarity index 100% rename from test/data_for_tests/conll_example.txt rename to tests/data_for_tests/conll_example.txt diff --git a/test/data_for_tests/cws_pku_utf_8 b/tests/data_for_tests/cws_pku_utf_8 similarity index 100% rename from test/data_for_tests/cws_pku_utf_8 rename to tests/data_for_tests/cws_pku_utf_8 diff --git a/test/data_for_tests/cws_test b/tests/data_for_tests/cws_test similarity index 100% rename from test/data_for_tests/cws_test rename to tests/data_for_tests/cws_test diff --git a/test/data_for_tests/cws_train b/tests/data_for_tests/cws_train similarity index 100% rename from test/data_for_tests/cws_train rename to tests/data_for_tests/cws_train diff --git a/test/data_for_tests/embedding/small_bert/config.json b/tests/data_for_tests/embedding/small_bert/config.json similarity index 100% rename from test/data_for_tests/embedding/small_bert/config.json rename to tests/data_for_tests/embedding/small_bert/config.json diff --git a/test/data_for_tests/embedding/small_bert/small_pytorch_model.bin b/tests/data_for_tests/embedding/small_bert/small_pytorch_model.bin similarity index 100% rename from test/data_for_tests/embedding/small_bert/small_pytorch_model.bin rename to tests/data_for_tests/embedding/small_bert/small_pytorch_model.bin diff --git a/test/data_for_tests/embedding/small_bert/vocab.txt b/tests/data_for_tests/embedding/small_bert/vocab.txt similarity index 100% rename from test/data_for_tests/embedding/small_bert/vocab.txt rename to tests/data_for_tests/embedding/small_bert/vocab.txt diff --git a/test/data_for_tests/embedding/small_elmo/char.dic b/tests/data_for_tests/embedding/small_elmo/char.dic similarity index 100% rename from test/data_for_tests/embedding/small_elmo/char.dic rename to tests/data_for_tests/embedding/small_elmo/char.dic diff --git a/test/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json b/tests/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json similarity index 100% rename from test/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json rename to tests/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json diff --git a/test/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl b/tests/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl similarity index 100% rename from test/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl rename to tests/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl diff --git a/test/data_for_tests/embedding/small_gpt2/config.json b/tests/data_for_tests/embedding/small_gpt2/config.json similarity index 100% rename from test/data_for_tests/embedding/small_gpt2/config.json rename to tests/data_for_tests/embedding/small_gpt2/config.json diff --git a/test/data_for_tests/embedding/small_gpt2/merges.txt b/tests/data_for_tests/embedding/small_gpt2/merges.txt similarity index 100% rename from test/data_for_tests/embedding/small_gpt2/merges.txt rename to tests/data_for_tests/embedding/small_gpt2/merges.txt diff --git a/test/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin b/tests/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin similarity index 100% rename from test/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin rename to tests/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin diff --git a/test/data_for_tests/embedding/small_gpt2/vocab.json b/tests/data_for_tests/embedding/small_gpt2/vocab.json similarity index 100% rename from test/data_for_tests/embedding/small_gpt2/vocab.json rename to tests/data_for_tests/embedding/small_gpt2/vocab.json diff --git a/test/data_for_tests/embedding/small_roberta/config.json b/tests/data_for_tests/embedding/small_roberta/config.json similarity index 100% rename from test/data_for_tests/embedding/small_roberta/config.json rename to tests/data_for_tests/embedding/small_roberta/config.json diff --git a/test/data_for_tests/embedding/small_roberta/merges.txt b/tests/data_for_tests/embedding/small_roberta/merges.txt similarity index 100% rename from test/data_for_tests/embedding/small_roberta/merges.txt rename to tests/data_for_tests/embedding/small_roberta/merges.txt diff --git a/test/data_for_tests/embedding/small_roberta/small_pytorch_model.bin b/tests/data_for_tests/embedding/small_roberta/small_pytorch_model.bin similarity index 100% rename from test/data_for_tests/embedding/small_roberta/small_pytorch_model.bin rename to tests/data_for_tests/embedding/small_roberta/small_pytorch_model.bin diff --git a/test/data_for_tests/embedding/small_roberta/vocab.json b/tests/data_for_tests/embedding/small_roberta/vocab.json similarity index 100% rename from test/data_for_tests/embedding/small_roberta/vocab.json rename to tests/data_for_tests/embedding/small_roberta/vocab.json diff --git a/test/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt b/tests/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt similarity index 100% rename from test/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt rename to tests/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt diff --git a/test/data_for_tests/embedding/small_static_embedding/word2vec_test.txt b/tests/data_for_tests/embedding/small_static_embedding/word2vec_test.txt similarity index 100% rename from test/data_for_tests/embedding/small_static_embedding/word2vec_test.txt rename to tests/data_for_tests/embedding/small_static_embedding/word2vec_test.txt diff --git a/test/data_for_tests/io/BQCorpus/dev.txt b/tests/data_for_tests/io/BQCorpus/dev.txt similarity index 100% rename from test/data_for_tests/io/BQCorpus/dev.txt rename to tests/data_for_tests/io/BQCorpus/dev.txt diff --git a/test/data_for_tests/io/BQCorpus/test.txt b/tests/data_for_tests/io/BQCorpus/test.txt similarity index 100% rename from test/data_for_tests/io/BQCorpus/test.txt rename to tests/data_for_tests/io/BQCorpus/test.txt diff --git a/test/data_for_tests/io/BQCorpus/train.txt b/tests/data_for_tests/io/BQCorpus/train.txt similarity index 100% rename from test/data_for_tests/io/BQCorpus/train.txt rename to tests/data_for_tests/io/BQCorpus/train.txt diff --git a/test/data_for_tests/io/ChnSentiCorp/dev.txt b/tests/data_for_tests/io/ChnSentiCorp/dev.txt similarity index 100% rename from test/data_for_tests/io/ChnSentiCorp/dev.txt rename to tests/data_for_tests/io/ChnSentiCorp/dev.txt diff --git a/test/data_for_tests/io/ChnSentiCorp/test.txt b/tests/data_for_tests/io/ChnSentiCorp/test.txt similarity index 100% rename from test/data_for_tests/io/ChnSentiCorp/test.txt rename to tests/data_for_tests/io/ChnSentiCorp/test.txt diff --git a/test/data_for_tests/io/ChnSentiCorp/train.txt b/tests/data_for_tests/io/ChnSentiCorp/train.txt similarity index 100% rename from test/data_for_tests/io/ChnSentiCorp/train.txt rename to tests/data_for_tests/io/ChnSentiCorp/train.txt diff --git a/test/data_for_tests/io/LCQMC/dev.txt b/tests/data_for_tests/io/LCQMC/dev.txt similarity index 100% rename from test/data_for_tests/io/LCQMC/dev.txt rename to tests/data_for_tests/io/LCQMC/dev.txt diff --git a/test/data_for_tests/io/LCQMC/test.txt b/tests/data_for_tests/io/LCQMC/test.txt similarity index 100% rename from test/data_for_tests/io/LCQMC/test.txt rename to tests/data_for_tests/io/LCQMC/test.txt diff --git a/test/data_for_tests/io/LCQMC/train.txt b/tests/data_for_tests/io/LCQMC/train.txt similarity index 100% rename from test/data_for_tests/io/LCQMC/train.txt rename to tests/data_for_tests/io/LCQMC/train.txt diff --git a/test/data_for_tests/io/MNLI/dev_matched.tsv b/tests/data_for_tests/io/MNLI/dev_matched.tsv similarity index 100% rename from test/data_for_tests/io/MNLI/dev_matched.tsv rename to tests/data_for_tests/io/MNLI/dev_matched.tsv diff --git a/test/data_for_tests/io/MNLI/dev_mismatched.tsv b/tests/data_for_tests/io/MNLI/dev_mismatched.tsv similarity index 100% rename from test/data_for_tests/io/MNLI/dev_mismatched.tsv rename to tests/data_for_tests/io/MNLI/dev_mismatched.tsv diff --git a/test/data_for_tests/io/MNLI/test_matched.tsv b/tests/data_for_tests/io/MNLI/test_matched.tsv similarity index 100% rename from test/data_for_tests/io/MNLI/test_matched.tsv rename to tests/data_for_tests/io/MNLI/test_matched.tsv diff --git a/test/data_for_tests/io/MNLI/test_mismatched.tsv b/tests/data_for_tests/io/MNLI/test_mismatched.tsv similarity index 100% rename from test/data_for_tests/io/MNLI/test_mismatched.tsv rename to tests/data_for_tests/io/MNLI/test_mismatched.tsv diff --git a/test/data_for_tests/io/MNLI/train.tsv b/tests/data_for_tests/io/MNLI/train.tsv similarity index 100% rename from test/data_for_tests/io/MNLI/train.tsv rename to tests/data_for_tests/io/MNLI/train.tsv diff --git a/test/data_for_tests/io/MSRA_NER/dev.conll b/tests/data_for_tests/io/MSRA_NER/dev.conll similarity index 100% rename from test/data_for_tests/io/MSRA_NER/dev.conll rename to tests/data_for_tests/io/MSRA_NER/dev.conll diff --git a/test/data_for_tests/io/MSRA_NER/test.conll b/tests/data_for_tests/io/MSRA_NER/test.conll similarity index 100% rename from test/data_for_tests/io/MSRA_NER/test.conll rename to tests/data_for_tests/io/MSRA_NER/test.conll diff --git a/test/data_for_tests/io/MSRA_NER/train.conll b/tests/data_for_tests/io/MSRA_NER/train.conll similarity index 100% rename from test/data_for_tests/io/MSRA_NER/train.conll rename to tests/data_for_tests/io/MSRA_NER/train.conll diff --git a/test/data_for_tests/io/OntoNotes/dev.txt b/tests/data_for_tests/io/OntoNotes/dev.txt similarity index 100% rename from test/data_for_tests/io/OntoNotes/dev.txt rename to tests/data_for_tests/io/OntoNotes/dev.txt diff --git a/test/data_for_tests/io/OntoNotes/test.txt b/tests/data_for_tests/io/OntoNotes/test.txt similarity index 100% rename from test/data_for_tests/io/OntoNotes/test.txt rename to tests/data_for_tests/io/OntoNotes/test.txt diff --git a/test/data_for_tests/io/OntoNotes/train.txt b/tests/data_for_tests/io/OntoNotes/train.txt similarity index 100% rename from test/data_for_tests/io/OntoNotes/train.txt rename to tests/data_for_tests/io/OntoNotes/train.txt diff --git a/test/data_for_tests/io/QNLI/dev.tsv b/tests/data_for_tests/io/QNLI/dev.tsv similarity index 100% rename from test/data_for_tests/io/QNLI/dev.tsv rename to tests/data_for_tests/io/QNLI/dev.tsv diff --git a/test/data_for_tests/io/QNLI/test.tsv b/tests/data_for_tests/io/QNLI/test.tsv similarity index 100% rename from test/data_for_tests/io/QNLI/test.tsv rename to tests/data_for_tests/io/QNLI/test.tsv diff --git a/test/data_for_tests/io/QNLI/train.tsv b/tests/data_for_tests/io/QNLI/train.tsv similarity index 100% rename from test/data_for_tests/io/QNLI/train.tsv rename to tests/data_for_tests/io/QNLI/train.tsv diff --git a/test/data_for_tests/io/Quora/dev.tsv b/tests/data_for_tests/io/Quora/dev.tsv similarity index 100% rename from test/data_for_tests/io/Quora/dev.tsv rename to tests/data_for_tests/io/Quora/dev.tsv diff --git a/test/data_for_tests/io/Quora/test.tsv b/tests/data_for_tests/io/Quora/test.tsv similarity index 100% rename from test/data_for_tests/io/Quora/test.tsv rename to tests/data_for_tests/io/Quora/test.tsv diff --git a/test/data_for_tests/io/Quora/train.tsv b/tests/data_for_tests/io/Quora/train.tsv similarity index 100% rename from test/data_for_tests/io/Quora/train.tsv rename to tests/data_for_tests/io/Quora/train.tsv diff --git a/test/data_for_tests/io/RTE/dev.tsv b/tests/data_for_tests/io/RTE/dev.tsv similarity index 100% rename from test/data_for_tests/io/RTE/dev.tsv rename to tests/data_for_tests/io/RTE/dev.tsv diff --git a/test/data_for_tests/io/RTE/test.tsv b/tests/data_for_tests/io/RTE/test.tsv similarity index 100% rename from test/data_for_tests/io/RTE/test.tsv rename to tests/data_for_tests/io/RTE/test.tsv diff --git a/test/data_for_tests/io/RTE/train.tsv b/tests/data_for_tests/io/RTE/train.tsv similarity index 100% rename from test/data_for_tests/io/RTE/train.tsv rename to tests/data_for_tests/io/RTE/train.tsv diff --git a/test/data_for_tests/io/SNLI/snli_1.0_dev.jsonl b/tests/data_for_tests/io/SNLI/snli_1.0_dev.jsonl similarity index 100% rename from test/data_for_tests/io/SNLI/snli_1.0_dev.jsonl rename to tests/data_for_tests/io/SNLI/snli_1.0_dev.jsonl diff --git a/test/data_for_tests/io/SNLI/snli_1.0_test.jsonl b/tests/data_for_tests/io/SNLI/snli_1.0_test.jsonl similarity index 100% rename from test/data_for_tests/io/SNLI/snli_1.0_test.jsonl rename to tests/data_for_tests/io/SNLI/snli_1.0_test.jsonl diff --git a/test/data_for_tests/io/SNLI/snli_1.0_train.jsonl b/tests/data_for_tests/io/SNLI/snli_1.0_train.jsonl similarity index 100% rename from test/data_for_tests/io/SNLI/snli_1.0_train.jsonl rename to tests/data_for_tests/io/SNLI/snli_1.0_train.jsonl diff --git a/test/data_for_tests/io/SST-2/dev.tsv b/tests/data_for_tests/io/SST-2/dev.tsv similarity index 100% rename from test/data_for_tests/io/SST-2/dev.tsv rename to tests/data_for_tests/io/SST-2/dev.tsv diff --git a/test/data_for_tests/io/SST-2/test.tsv b/tests/data_for_tests/io/SST-2/test.tsv similarity index 100% rename from test/data_for_tests/io/SST-2/test.tsv rename to tests/data_for_tests/io/SST-2/test.tsv diff --git a/test/data_for_tests/io/SST-2/train.tsv b/tests/data_for_tests/io/SST-2/train.tsv similarity index 100% rename from test/data_for_tests/io/SST-2/train.tsv rename to tests/data_for_tests/io/SST-2/train.tsv diff --git a/test/data_for_tests/io/SST/dev.txt b/tests/data_for_tests/io/SST/dev.txt similarity index 100% rename from test/data_for_tests/io/SST/dev.txt rename to tests/data_for_tests/io/SST/dev.txt diff --git a/test/data_for_tests/io/SST/test.txt b/tests/data_for_tests/io/SST/test.txt similarity index 100% rename from test/data_for_tests/io/SST/test.txt rename to tests/data_for_tests/io/SST/test.txt diff --git a/test/data_for_tests/io/SST/train.txt b/tests/data_for_tests/io/SST/train.txt similarity index 100% rename from test/data_for_tests/io/SST/train.txt rename to tests/data_for_tests/io/SST/train.txt diff --git a/test/data_for_tests/io/THUCNews/dev.txt b/tests/data_for_tests/io/THUCNews/dev.txt similarity index 100% rename from test/data_for_tests/io/THUCNews/dev.txt rename to tests/data_for_tests/io/THUCNews/dev.txt diff --git a/test/data_for_tests/io/THUCNews/test.txt b/tests/data_for_tests/io/THUCNews/test.txt similarity index 100% rename from test/data_for_tests/io/THUCNews/test.txt rename to tests/data_for_tests/io/THUCNews/test.txt diff --git a/test/data_for_tests/io/THUCNews/train.txt b/tests/data_for_tests/io/THUCNews/train.txt similarity index 100% rename from test/data_for_tests/io/THUCNews/train.txt rename to tests/data_for_tests/io/THUCNews/train.txt diff --git a/test/data_for_tests/io/WeiboSenti100k/dev.txt b/tests/data_for_tests/io/WeiboSenti100k/dev.txt similarity index 100% rename from test/data_for_tests/io/WeiboSenti100k/dev.txt rename to tests/data_for_tests/io/WeiboSenti100k/dev.txt diff --git a/test/data_for_tests/io/WeiboSenti100k/test.txt b/tests/data_for_tests/io/WeiboSenti100k/test.txt similarity index 100% rename from test/data_for_tests/io/WeiboSenti100k/test.txt rename to tests/data_for_tests/io/WeiboSenti100k/test.txt diff --git a/test/data_for_tests/io/WeiboSenti100k/train.txt b/tests/data_for_tests/io/WeiboSenti100k/train.txt similarity index 100% rename from test/data_for_tests/io/WeiboSenti100k/train.txt rename to tests/data_for_tests/io/WeiboSenti100k/train.txt diff --git a/test/data_for_tests/io/XNLI/dev.txt b/tests/data_for_tests/io/XNLI/dev.txt similarity index 100% rename from test/data_for_tests/io/XNLI/dev.txt rename to tests/data_for_tests/io/XNLI/dev.txt diff --git a/test/data_for_tests/io/XNLI/test.txt b/tests/data_for_tests/io/XNLI/test.txt similarity index 100% rename from test/data_for_tests/io/XNLI/test.txt rename to tests/data_for_tests/io/XNLI/test.txt diff --git a/test/data_for_tests/io/XNLI/train.txt b/tests/data_for_tests/io/XNLI/train.txt similarity index 100% rename from test/data_for_tests/io/XNLI/train.txt rename to tests/data_for_tests/io/XNLI/train.txt diff --git a/test/data_for_tests/io/ag/test.csv b/tests/data_for_tests/io/ag/test.csv similarity index 100% rename from test/data_for_tests/io/ag/test.csv rename to tests/data_for_tests/io/ag/test.csv diff --git a/test/data_for_tests/io/ag/train.csv b/tests/data_for_tests/io/ag/train.csv similarity index 100% rename from test/data_for_tests/io/ag/train.csv rename to tests/data_for_tests/io/ag/train.csv diff --git a/test/data_for_tests/io/cmrc/dev.json b/tests/data_for_tests/io/cmrc/dev.json similarity index 100% rename from test/data_for_tests/io/cmrc/dev.json rename to tests/data_for_tests/io/cmrc/dev.json diff --git a/test/data_for_tests/io/cmrc/train.json b/tests/data_for_tests/io/cmrc/train.json similarity index 100% rename from test/data_for_tests/io/cmrc/train.json rename to tests/data_for_tests/io/cmrc/train.json diff --git a/test/data_for_tests/io/cnndm/dev.label.jsonl b/tests/data_for_tests/io/cnndm/dev.label.jsonl similarity index 100% rename from test/data_for_tests/io/cnndm/dev.label.jsonl rename to tests/data_for_tests/io/cnndm/dev.label.jsonl diff --git a/test/data_for_tests/io/cnndm/test.label.jsonl b/tests/data_for_tests/io/cnndm/test.label.jsonl similarity index 100% rename from test/data_for_tests/io/cnndm/test.label.jsonl rename to tests/data_for_tests/io/cnndm/test.label.jsonl diff --git a/test/data_for_tests/io/cnndm/train.cnndm.jsonl b/tests/data_for_tests/io/cnndm/train.cnndm.jsonl similarity index 100% rename from test/data_for_tests/io/cnndm/train.cnndm.jsonl rename to tests/data_for_tests/io/cnndm/train.cnndm.jsonl diff --git a/test/data_for_tests/io/cnndm/vocab b/tests/data_for_tests/io/cnndm/vocab similarity index 100% rename from test/data_for_tests/io/cnndm/vocab rename to tests/data_for_tests/io/cnndm/vocab diff --git a/test/data_for_tests/io/conll2003/dev.txt b/tests/data_for_tests/io/conll2003/dev.txt similarity index 100% rename from test/data_for_tests/io/conll2003/dev.txt rename to tests/data_for_tests/io/conll2003/dev.txt diff --git a/test/data_for_tests/io/conll2003/test.txt b/tests/data_for_tests/io/conll2003/test.txt similarity index 100% rename from test/data_for_tests/io/conll2003/test.txt rename to tests/data_for_tests/io/conll2003/test.txt diff --git a/test/data_for_tests/io/conll2003/train.txt b/tests/data_for_tests/io/conll2003/train.txt similarity index 100% rename from test/data_for_tests/io/conll2003/train.txt rename to tests/data_for_tests/io/conll2003/train.txt diff --git a/test/data_for_tests/io/coreference/coreference_dev.json b/tests/data_for_tests/io/coreference/coreference_dev.json similarity index 100% rename from test/data_for_tests/io/coreference/coreference_dev.json rename to tests/data_for_tests/io/coreference/coreference_dev.json diff --git a/test/data_for_tests/io/coreference/coreference_test.json b/tests/data_for_tests/io/coreference/coreference_test.json similarity index 100% rename from test/data_for_tests/io/coreference/coreference_test.json rename to tests/data_for_tests/io/coreference/coreference_test.json diff --git a/test/data_for_tests/io/coreference/coreference_train.json b/tests/data_for_tests/io/coreference/coreference_train.json similarity index 100% rename from test/data_for_tests/io/coreference/coreference_train.json rename to tests/data_for_tests/io/coreference/coreference_train.json diff --git a/test/data_for_tests/io/cws_as/dev.txt b/tests/data_for_tests/io/cws_as/dev.txt similarity index 100% rename from test/data_for_tests/io/cws_as/dev.txt rename to tests/data_for_tests/io/cws_as/dev.txt diff --git a/test/data_for_tests/io/cws_as/test.txt b/tests/data_for_tests/io/cws_as/test.txt similarity index 100% rename from test/data_for_tests/io/cws_as/test.txt rename to tests/data_for_tests/io/cws_as/test.txt diff --git a/test/data_for_tests/io/cws_as/train.txt b/tests/data_for_tests/io/cws_as/train.txt similarity index 100% rename from test/data_for_tests/io/cws_as/train.txt rename to tests/data_for_tests/io/cws_as/train.txt diff --git a/test/data_for_tests/io/cws_cityu/dev.txt b/tests/data_for_tests/io/cws_cityu/dev.txt similarity index 100% rename from test/data_for_tests/io/cws_cityu/dev.txt rename to tests/data_for_tests/io/cws_cityu/dev.txt diff --git a/test/data_for_tests/io/cws_cityu/test.txt b/tests/data_for_tests/io/cws_cityu/test.txt similarity index 100% rename from test/data_for_tests/io/cws_cityu/test.txt rename to tests/data_for_tests/io/cws_cityu/test.txt diff --git a/test/data_for_tests/io/cws_cityu/train.txt b/tests/data_for_tests/io/cws_cityu/train.txt similarity index 100% rename from test/data_for_tests/io/cws_cityu/train.txt rename to tests/data_for_tests/io/cws_cityu/train.txt diff --git a/test/data_for_tests/io/cws_msra/dev.txt b/tests/data_for_tests/io/cws_msra/dev.txt similarity index 100% rename from test/data_for_tests/io/cws_msra/dev.txt rename to tests/data_for_tests/io/cws_msra/dev.txt diff --git a/test/data_for_tests/io/cws_msra/test.txt b/tests/data_for_tests/io/cws_msra/test.txt similarity index 100% rename from test/data_for_tests/io/cws_msra/test.txt rename to tests/data_for_tests/io/cws_msra/test.txt diff --git a/test/data_for_tests/io/cws_msra/train.txt b/tests/data_for_tests/io/cws_msra/train.txt similarity index 100% rename from test/data_for_tests/io/cws_msra/train.txt rename to tests/data_for_tests/io/cws_msra/train.txt diff --git a/test/data_for_tests/io/cws_pku/dev.txt b/tests/data_for_tests/io/cws_pku/dev.txt similarity index 100% rename from test/data_for_tests/io/cws_pku/dev.txt rename to tests/data_for_tests/io/cws_pku/dev.txt diff --git a/test/data_for_tests/io/cws_pku/test.txt b/tests/data_for_tests/io/cws_pku/test.txt similarity index 100% rename from test/data_for_tests/io/cws_pku/test.txt rename to tests/data_for_tests/io/cws_pku/test.txt diff --git a/test/data_for_tests/io/cws_pku/train.txt b/tests/data_for_tests/io/cws_pku/train.txt similarity index 100% rename from test/data_for_tests/io/cws_pku/train.txt rename to tests/data_for_tests/io/cws_pku/train.txt diff --git a/test/data_for_tests/io/dbpedia/test.csv b/tests/data_for_tests/io/dbpedia/test.csv similarity index 100% rename from test/data_for_tests/io/dbpedia/test.csv rename to tests/data_for_tests/io/dbpedia/test.csv diff --git a/test/data_for_tests/io/dbpedia/train.csv b/tests/data_for_tests/io/dbpedia/train.csv similarity index 100% rename from test/data_for_tests/io/dbpedia/train.csv rename to tests/data_for_tests/io/dbpedia/train.csv diff --git a/test/data_for_tests/io/imdb/dev.txt b/tests/data_for_tests/io/imdb/dev.txt similarity index 100% rename from test/data_for_tests/io/imdb/dev.txt rename to tests/data_for_tests/io/imdb/dev.txt diff --git a/test/data_for_tests/io/imdb/test.txt b/tests/data_for_tests/io/imdb/test.txt similarity index 100% rename from test/data_for_tests/io/imdb/test.txt rename to tests/data_for_tests/io/imdb/test.txt diff --git a/test/data_for_tests/io/imdb/train.txt b/tests/data_for_tests/io/imdb/train.txt similarity index 100% rename from test/data_for_tests/io/imdb/train.txt rename to tests/data_for_tests/io/imdb/train.txt diff --git a/test/data_for_tests/io/peopledaily/dev.txt b/tests/data_for_tests/io/peopledaily/dev.txt similarity index 100% rename from test/data_for_tests/io/peopledaily/dev.txt rename to tests/data_for_tests/io/peopledaily/dev.txt diff --git a/test/data_for_tests/io/peopledaily/test.txt b/tests/data_for_tests/io/peopledaily/test.txt similarity index 100% rename from test/data_for_tests/io/peopledaily/test.txt rename to tests/data_for_tests/io/peopledaily/test.txt diff --git a/test/data_for_tests/io/peopledaily/train.txt b/tests/data_for_tests/io/peopledaily/train.txt similarity index 100% rename from test/data_for_tests/io/peopledaily/train.txt rename to tests/data_for_tests/io/peopledaily/train.txt diff --git a/test/data_for_tests/io/weibo_NER/dev.conll b/tests/data_for_tests/io/weibo_NER/dev.conll similarity index 100% rename from test/data_for_tests/io/weibo_NER/dev.conll rename to tests/data_for_tests/io/weibo_NER/dev.conll diff --git a/test/data_for_tests/io/weibo_NER/test.conll b/tests/data_for_tests/io/weibo_NER/test.conll similarity index 100% rename from test/data_for_tests/io/weibo_NER/test.conll rename to tests/data_for_tests/io/weibo_NER/test.conll diff --git a/test/data_for_tests/io/weibo_NER/train.conll b/tests/data_for_tests/io/weibo_NER/train.conll similarity index 100% rename from test/data_for_tests/io/weibo_NER/train.conll rename to tests/data_for_tests/io/weibo_NER/train.conll diff --git a/test/data_for_tests/io/yelp_review_full/dev.csv b/tests/data_for_tests/io/yelp_review_full/dev.csv similarity index 100% rename from test/data_for_tests/io/yelp_review_full/dev.csv rename to tests/data_for_tests/io/yelp_review_full/dev.csv diff --git a/test/data_for_tests/io/yelp_review_full/test.csv b/tests/data_for_tests/io/yelp_review_full/test.csv similarity index 100% rename from test/data_for_tests/io/yelp_review_full/test.csv rename to tests/data_for_tests/io/yelp_review_full/test.csv diff --git a/test/data_for_tests/io/yelp_review_full/train.csv b/tests/data_for_tests/io/yelp_review_full/train.csv similarity index 100% rename from test/data_for_tests/io/yelp_review_full/train.csv rename to tests/data_for_tests/io/yelp_review_full/train.csv diff --git a/test/data_for_tests/io/yelp_review_polarity/dev.csv b/tests/data_for_tests/io/yelp_review_polarity/dev.csv similarity index 100% rename from test/data_for_tests/io/yelp_review_polarity/dev.csv rename to tests/data_for_tests/io/yelp_review_polarity/dev.csv diff --git a/test/data_for_tests/io/yelp_review_polarity/test.csv b/tests/data_for_tests/io/yelp_review_polarity/test.csv similarity index 100% rename from test/data_for_tests/io/yelp_review_polarity/test.csv rename to tests/data_for_tests/io/yelp_review_polarity/test.csv diff --git a/test/data_for_tests/io/yelp_review_polarity/train.csv b/tests/data_for_tests/io/yelp_review_polarity/train.csv similarity index 100% rename from test/data_for_tests/io/yelp_review_polarity/train.csv rename to tests/data_for_tests/io/yelp_review_polarity/train.csv diff --git a/test/data_for_tests/modules/decoder/crf.json b/tests/data_for_tests/modules/decoder/crf.json similarity index 100% rename from test/data_for_tests/modules/decoder/crf.json rename to tests/data_for_tests/modules/decoder/crf.json diff --git a/test/data_for_tests/people.txt b/tests/data_for_tests/people.txt similarity index 100% rename from test/data_for_tests/people.txt rename to tests/data_for_tests/people.txt diff --git a/test/data_for_tests/people_daily_raw.txt b/tests/data_for_tests/people_daily_raw.txt similarity index 100% rename from test/data_for_tests/people_daily_raw.txt rename to tests/data_for_tests/people_daily_raw.txt diff --git a/test/data_for_tests/sample_mnli.tsv b/tests/data_for_tests/sample_mnli.tsv similarity index 100% rename from test/data_for_tests/sample_mnli.tsv rename to tests/data_for_tests/sample_mnli.tsv diff --git a/test/data_for_tests/sample_snli.jsonl b/tests/data_for_tests/sample_snli.jsonl similarity index 100% rename from test/data_for_tests/sample_snli.jsonl rename to tests/data_for_tests/sample_snli.jsonl diff --git a/test/data_for_tests/text_classify.txt b/tests/data_for_tests/text_classify.txt similarity index 100% rename from test/data_for_tests/text_classify.txt rename to tests/data_for_tests/text_classify.txt diff --git a/test/data_for_tests/tutorial_sample_dataset.csv b/tests/data_for_tests/tutorial_sample_dataset.csv similarity index 100% rename from test/data_for_tests/tutorial_sample_dataset.csv rename to tests/data_for_tests/tutorial_sample_dataset.csv diff --git a/test/data_for_tests/zh_sample.conllx b/tests/data_for_tests/zh_sample.conllx similarity index 100% rename from test/data_for_tests/zh_sample.conllx rename to tests/data_for_tests/zh_sample.conllx diff --git a/test/embeddings/__init__.py b/tests/embeddings/__init__.py similarity index 100% rename from test/embeddings/__init__.py rename to tests/embeddings/__init__.py diff --git a/test/embeddings/test_bert_embedding.py b/tests/embeddings/test_bert_embedding.py similarity index 100% rename from test/embeddings/test_bert_embedding.py rename to tests/embeddings/test_bert_embedding.py diff --git a/test/embeddings/test_char_embedding.py b/tests/embeddings/test_char_embedding.py similarity index 100% rename from test/embeddings/test_char_embedding.py rename to tests/embeddings/test_char_embedding.py diff --git a/test/embeddings/test_elmo_embedding.py b/tests/embeddings/test_elmo_embedding.py similarity index 100% rename from test/embeddings/test_elmo_embedding.py rename to tests/embeddings/test_elmo_embedding.py diff --git a/test/embeddings/test_gpt2_embedding.py b/tests/embeddings/test_gpt2_embedding.py similarity index 100% rename from test/embeddings/test_gpt2_embedding.py rename to tests/embeddings/test_gpt2_embedding.py diff --git a/test/embeddings/test_roberta_embedding.py b/tests/embeddings/test_roberta_embedding.py similarity index 100% rename from test/embeddings/test_roberta_embedding.py rename to tests/embeddings/test_roberta_embedding.py diff --git a/test/embeddings/test_stack_embeddings.py b/tests/embeddings/test_stack_embeddings.py similarity index 100% rename from test/embeddings/test_stack_embeddings.py rename to tests/embeddings/test_stack_embeddings.py diff --git a/test/embeddings/test_static_embedding.py b/tests/embeddings/test_static_embedding.py similarity index 100% rename from test/embeddings/test_static_embedding.py rename to tests/embeddings/test_static_embedding.py diff --git a/test/embeddings/test_transformer_embedding.py b/tests/embeddings/test_transformer_embedding.py similarity index 100% rename from test/embeddings/test_transformer_embedding.py rename to tests/embeddings/test_transformer_embedding.py diff --git a/test/io/__init__.py b/tests/io/__init__.py similarity index 100% rename from test/io/__init__.py rename to tests/io/__init__.py diff --git a/test/io/loader/test_classification_loader.py b/tests/io/loader/test_classification_loader.py similarity index 100% rename from test/io/loader/test_classification_loader.py rename to tests/io/loader/test_classification_loader.py diff --git a/test/io/loader/test_conll_loader.py b/tests/io/loader/test_conll_loader.py similarity index 100% rename from test/io/loader/test_conll_loader.py rename to tests/io/loader/test_conll_loader.py diff --git a/test/io/loader/test_coreference_loader.py b/tests/io/loader/test_coreference_loader.py similarity index 100% rename from test/io/loader/test_coreference_loader.py rename to tests/io/loader/test_coreference_loader.py diff --git a/test/io/loader/test_cws_loader.py b/tests/io/loader/test_cws_loader.py similarity index 100% rename from test/io/loader/test_cws_loader.py rename to tests/io/loader/test_cws_loader.py diff --git a/test/io/loader/test_matching_loader.py b/tests/io/loader/test_matching_loader.py similarity index 100% rename from test/io/loader/test_matching_loader.py rename to tests/io/loader/test_matching_loader.py diff --git a/test/io/loader/test_qa_loader.py b/tests/io/loader/test_qa_loader.py similarity index 100% rename from test/io/loader/test_qa_loader.py rename to tests/io/loader/test_qa_loader.py diff --git a/test/io/pipe/test_classification.py b/tests/io/pipe/test_classification.py similarity index 100% rename from test/io/pipe/test_classification.py rename to tests/io/pipe/test_classification.py diff --git a/test/io/pipe/test_conll.py b/tests/io/pipe/test_conll.py similarity index 100% rename from test/io/pipe/test_conll.py rename to tests/io/pipe/test_conll.py diff --git a/test/io/pipe/test_coreference.py b/tests/io/pipe/test_coreference.py similarity index 100% rename from test/io/pipe/test_coreference.py rename to tests/io/pipe/test_coreference.py diff --git a/test/io/pipe/test_cws.py b/tests/io/pipe/test_cws.py similarity index 100% rename from test/io/pipe/test_cws.py rename to tests/io/pipe/test_cws.py diff --git a/test/io/pipe/test_matching.py b/tests/io/pipe/test_matching.py similarity index 100% rename from test/io/pipe/test_matching.py rename to tests/io/pipe/test_matching.py diff --git a/test/io/pipe/test_qa.py b/tests/io/pipe/test_qa.py similarity index 100% rename from test/io/pipe/test_qa.py rename to tests/io/pipe/test_qa.py diff --git a/test/io/pipe/test_summary.py b/tests/io/pipe/test_summary.py similarity index 100% rename from test/io/pipe/test_summary.py rename to tests/io/pipe/test_summary.py diff --git a/test/io/test_embed_loader.py b/tests/io/test_embed_loader.py similarity index 100% rename from test/io/test_embed_loader.py rename to tests/io/test_embed_loader.py diff --git a/test/io/test_model_io.py b/tests/io/test_model_io.py similarity index 100% rename from test/io/test_model_io.py rename to tests/io/test_model_io.py diff --git a/test/models/__init__.py b/tests/models/__init__.py similarity index 100% rename from test/models/__init__.py rename to tests/models/__init__.py diff --git a/test/models/model_runner.py b/tests/models/model_runner.py similarity index 100% rename from test/models/model_runner.py rename to tests/models/model_runner.py diff --git a/test/models/test_bert.py b/tests/models/test_bert.py similarity index 100% rename from test/models/test_bert.py rename to tests/models/test_bert.py diff --git a/test/models/test_biaffine_parser.py b/tests/models/test_biaffine_parser.py similarity index 100% rename from test/models/test_biaffine_parser.py rename to tests/models/test_biaffine_parser.py diff --git a/test/models/test_cnn_text_classification.py b/tests/models/test_cnn_text_classification.py similarity index 100% rename from test/models/test_cnn_text_classification.py rename to tests/models/test_cnn_text_classification.py diff --git a/test/models/test_seq2seq_generator.py b/tests/models/test_seq2seq_generator.py similarity index 100% rename from test/models/test_seq2seq_generator.py rename to tests/models/test_seq2seq_generator.py diff --git a/test/models/test_seq2seq_model.py b/tests/models/test_seq2seq_model.py similarity index 100% rename from test/models/test_seq2seq_model.py rename to tests/models/test_seq2seq_model.py diff --git a/test/models/test_sequence_labeling.py b/tests/models/test_sequence_labeling.py similarity index 100% rename from test/models/test_sequence_labeling.py rename to tests/models/test_sequence_labeling.py diff --git a/test/models/test_snli.py b/tests/models/test_snli.py similarity index 100% rename from test/models/test_snli.py rename to tests/models/test_snli.py diff --git a/test/models/test_star_trans.py b/tests/models/test_star_trans.py similarity index 100% rename from test/models/test_star_trans.py rename to tests/models/test_star_trans.py diff --git a/test/modules/__init__.py b/tests/modules/__init__.py similarity index 100% rename from test/modules/__init__.py rename to tests/modules/__init__.py diff --git a/test/modules/decoder/__init__.py b/tests/modules/decoder/__init__.py similarity index 100% rename from test/modules/decoder/__init__.py rename to tests/modules/decoder/__init__.py diff --git a/test/modules/decoder/test_CRF.py b/tests/modules/decoder/test_CRF.py similarity index 100% rename from test/modules/decoder/test_CRF.py rename to tests/modules/decoder/test_CRF.py diff --git a/test/modules/decoder/test_bert.py b/tests/modules/decoder/test_bert.py similarity index 100% rename from test/modules/decoder/test_bert.py rename to tests/modules/decoder/test_bert.py diff --git a/test/modules/decoder/test_seq2seq_decoder.py b/tests/modules/decoder/test_seq2seq_decoder.py similarity index 100% rename from test/modules/decoder/test_seq2seq_decoder.py rename to tests/modules/decoder/test_seq2seq_decoder.py diff --git a/test/modules/encoder/__init__.py b/tests/modules/encoder/__init__.py similarity index 100% rename from test/modules/encoder/__init__.py rename to tests/modules/encoder/__init__.py diff --git a/test/modules/encoder/test_pooling.py b/tests/modules/encoder/test_pooling.py similarity index 100% rename from test/modules/encoder/test_pooling.py rename to tests/modules/encoder/test_pooling.py diff --git a/test/modules/encoder/test_seq2seq_encoder.py b/tests/modules/encoder/test_seq2seq_encoder.py similarity index 100% rename from test/modules/encoder/test_seq2seq_encoder.py rename to tests/modules/encoder/test_seq2seq_encoder.py diff --git a/test/modules/generator/__init__.py b/tests/modules/generator/__init__.py similarity index 100% rename from test/modules/generator/__init__.py rename to tests/modules/generator/__init__.py diff --git a/test/modules/generator/test_seq2seq_generator.py b/tests/modules/generator/test_seq2seq_generator.py similarity index 100% rename from test/modules/generator/test_seq2seq_generator.py rename to tests/modules/generator/test_seq2seq_generator.py diff --git a/test/modules/test_char_encoder.py b/tests/modules/test_char_encoder.py similarity index 100% rename from test/modules/test_char_encoder.py rename to tests/modules/test_char_encoder.py diff --git a/test/modules/test_other_modules.py b/tests/modules/test_other_modules.py similarity index 100% rename from test/modules/test_other_modules.py rename to tests/modules/test_other_modules.py diff --git a/test/modules/test_utils.py b/tests/modules/test_utils.py similarity index 100% rename from test/modules/test_utils.py rename to tests/modules/test_utils.py diff --git a/test/modules/test_variational_rnn.py b/tests/modules/test_variational_rnn.py similarity index 100% rename from test/modules/test_variational_rnn.py rename to tests/modules/test_variational_rnn.py diff --git a/test/modules/tokenizer/test_bert_tokenizer.py b/tests/modules/tokenizer/test_bert_tokenizer.py similarity index 100% rename from test/modules/tokenizer/test_bert_tokenizer.py rename to tests/modules/tokenizer/test_bert_tokenizer.py diff --git a/test/test_tutorials.py b/tests/test_tutorials.py similarity index 100% rename from test/test_tutorials.py rename to tests/test_tutorials.py