From fc8f8f69134bc8e52f4a4404e32903ccb55991ac Mon Sep 17 00:00:00 2001 From: willqvq Date: Mon, 23 Nov 2020 13:00:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=20test=20=E6=94=B9=E5=90=8D=E4=B8=BA=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .Jenkinsfile | 2 +- .travis.yml | 2 +- MANIFEST.in | 2 +- {test => tests}/__init__.py | 0 {test => tests}/core/__init__.py | 0 {test => tests}/core/test_batch.py | 0 {test => tests}/core/test_callbacks.py | 0 {test => tests}/core/test_dataset.py | 0 {test => tests}/core/test_dist_trainer.py | 0 {test => tests}/core/test_field.py | 0 {test => tests}/core/test_instance.py | 0 {test => tests}/core/test_logger.py | 0 {test => tests}/core/test_loss.py | 0 {test => tests}/core/test_metrics.py | 0 {test => tests}/core/test_optimizer.py | 0 {test => tests}/core/test_predictor.py | 0 {test => tests}/core/test_sampler.py | 0 {test => tests}/core/test_tester.py | 0 {test => tests}/core/test_trainer.py | 0 {test => tests}/core/test_utils.py | 0 {test => tests}/core/test_vocabulary.py | 0 {test => tests}/data_for_tests/config | 0 .../data_for_tests/conll_2003_example.txt | 0 {test => tests}/data_for_tests/conll_example.txt | 0 {test => tests}/data_for_tests/cws_pku_utf_8 | 0 {test => tests}/data_for_tests/cws_test | 0 {test => tests}/data_for_tests/cws_train | 0 .../data_for_tests/embedding/small_bert/config.json | 0 .../embedding/small_bert/small_pytorch_model.bin | Bin .../data_for_tests/embedding/small_bert/vocab.txt | 0 .../data_for_tests/embedding/small_elmo/char.dic | 0 .../elmo_1x16_16_32cnn_1xhighway_options.json | 0 .../embedding/small_elmo/elmo_mini_for_testing.pkl | Bin .../data_for_tests/embedding/small_gpt2/config.json | 0 .../data_for_tests/embedding/small_gpt2/merges.txt | 0 .../embedding/small_gpt2/small_pytorch_model.bin | Bin .../data_for_tests/embedding/small_gpt2/vocab.json | 0 .../embedding/small_roberta/config.json | 0 .../embedding/small_roberta/merges.txt | 0 .../embedding/small_roberta/small_pytorch_model.bin | Bin .../embedding/small_roberta/vocab.json | 0 .../small_static_embedding/glove.6B.50d_test.txt | 0 .../small_static_embedding/word2vec_test.txt | 0 {test => tests}/data_for_tests/io/BQCorpus/dev.txt | 0 {test => tests}/data_for_tests/io/BQCorpus/test.txt | 0 .../data_for_tests/io/BQCorpus/train.txt | 0 .../data_for_tests/io/ChnSentiCorp/dev.txt | 0 .../data_for_tests/io/ChnSentiCorp/test.txt | 0 .../data_for_tests/io/ChnSentiCorp/train.txt | 0 {test => tests}/data_for_tests/io/LCQMC/dev.txt | 0 {test => tests}/data_for_tests/io/LCQMC/test.txt | 0 {test => tests}/data_for_tests/io/LCQMC/train.txt | 0 .../data_for_tests/io/MNLI/dev_matched.tsv | 0 .../data_for_tests/io/MNLI/dev_mismatched.tsv | 0 .../data_for_tests/io/MNLI/test_matched.tsv | 0 .../data_for_tests/io/MNLI/test_mismatched.tsv | 0 {test => tests}/data_for_tests/io/MNLI/train.tsv | 0 .../data_for_tests/io/MSRA_NER/dev.conll | 0 .../data_for_tests/io/MSRA_NER/test.conll | 0 .../data_for_tests/io/MSRA_NER/train.conll | 0 {test => tests}/data_for_tests/io/OntoNotes/dev.txt | 0 .../data_for_tests/io/OntoNotes/test.txt | 0 .../data_for_tests/io/OntoNotes/train.txt | 0 {test => tests}/data_for_tests/io/QNLI/dev.tsv | 0 {test => tests}/data_for_tests/io/QNLI/test.tsv | 0 {test => tests}/data_for_tests/io/QNLI/train.tsv | 0 {test => tests}/data_for_tests/io/Quora/dev.tsv | 0 {test => tests}/data_for_tests/io/Quora/test.tsv | 0 {test => tests}/data_for_tests/io/Quora/train.tsv | 0 {test => tests}/data_for_tests/io/RTE/dev.tsv | 0 {test => tests}/data_for_tests/io/RTE/test.tsv | 0 {test => tests}/data_for_tests/io/RTE/train.tsv | 0 .../data_for_tests/io/SNLI/snli_1.0_dev.jsonl | 0 .../data_for_tests/io/SNLI/snli_1.0_test.jsonl | 0 .../data_for_tests/io/SNLI/snli_1.0_train.jsonl | 0 {test => tests}/data_for_tests/io/SST-2/dev.tsv | 0 {test => tests}/data_for_tests/io/SST-2/test.tsv | 0 {test => tests}/data_for_tests/io/SST-2/train.tsv | 0 {test => tests}/data_for_tests/io/SST/dev.txt | 0 {test => tests}/data_for_tests/io/SST/test.txt | 0 {test => tests}/data_for_tests/io/SST/train.txt | 0 {test => tests}/data_for_tests/io/THUCNews/dev.txt | 0 {test => tests}/data_for_tests/io/THUCNews/test.txt | 0 .../data_for_tests/io/THUCNews/train.txt | 0 .../data_for_tests/io/WeiboSenti100k/dev.txt | 0 .../data_for_tests/io/WeiboSenti100k/test.txt | 0 .../data_for_tests/io/WeiboSenti100k/train.txt | 0 {test => tests}/data_for_tests/io/XNLI/dev.txt | 0 {test => tests}/data_for_tests/io/XNLI/test.txt | 0 {test => tests}/data_for_tests/io/XNLI/train.txt | 0 {test => tests}/data_for_tests/io/ag/test.csv | 0 {test => tests}/data_for_tests/io/ag/train.csv | 0 {test => tests}/data_for_tests/io/cmrc/dev.json | 0 {test => tests}/data_for_tests/io/cmrc/train.json | 0 .../data_for_tests/io/cnndm/dev.label.jsonl | 0 .../data_for_tests/io/cnndm/test.label.jsonl | 0 .../data_for_tests/io/cnndm/train.cnndm.jsonl | 0 {test => tests}/data_for_tests/io/cnndm/vocab | 0 {test => tests}/data_for_tests/io/conll2003/dev.txt | 0 .../data_for_tests/io/conll2003/test.txt | 0 .../data_for_tests/io/conll2003/train.txt | 0 .../io/coreference/coreference_dev.json | 0 .../io/coreference/coreference_test.json | 0 .../io/coreference/coreference_train.json | 0 {test => tests}/data_for_tests/io/cws_as/dev.txt | 0 {test => tests}/data_for_tests/io/cws_as/test.txt | 0 {test => tests}/data_for_tests/io/cws_as/train.txt | 0 {test => tests}/data_for_tests/io/cws_cityu/dev.txt | 0 .../data_for_tests/io/cws_cityu/test.txt | 0 .../data_for_tests/io/cws_cityu/train.txt | 0 {test => tests}/data_for_tests/io/cws_msra/dev.txt | 0 {test => tests}/data_for_tests/io/cws_msra/test.txt | 0 .../data_for_tests/io/cws_msra/train.txt | 0 {test => tests}/data_for_tests/io/cws_pku/dev.txt | 0 {test => tests}/data_for_tests/io/cws_pku/test.txt | 0 {test => tests}/data_for_tests/io/cws_pku/train.txt | 0 {test => tests}/data_for_tests/io/dbpedia/test.csv | 0 {test => tests}/data_for_tests/io/dbpedia/train.csv | 0 {test => tests}/data_for_tests/io/imdb/dev.txt | 0 {test => tests}/data_for_tests/io/imdb/test.txt | 0 {test => tests}/data_for_tests/io/imdb/train.txt | 0 .../data_for_tests/io/peopledaily/dev.txt | 0 .../data_for_tests/io/peopledaily/test.txt | 0 .../data_for_tests/io/peopledaily/train.txt | 0 .../data_for_tests/io/weibo_NER/dev.conll | 0 .../data_for_tests/io/weibo_NER/test.conll | 0 .../data_for_tests/io/weibo_NER/train.conll | 0 .../data_for_tests/io/yelp_review_full/dev.csv | 0 .../data_for_tests/io/yelp_review_full/test.csv | 0 .../data_for_tests/io/yelp_review_full/train.csv | 0 .../data_for_tests/io/yelp_review_polarity/dev.csv | 0 .../data_for_tests/io/yelp_review_polarity/test.csv | 0 .../io/yelp_review_polarity/train.csv | 0 .../data_for_tests/modules/decoder/crf.json | 0 {test => tests}/data_for_tests/people.txt | 0 {test => tests}/data_for_tests/people_daily_raw.txt | 0 {test => tests}/data_for_tests/sample_mnli.tsv | 0 {test => tests}/data_for_tests/sample_snli.jsonl | 0 {test => tests}/data_for_tests/text_classify.txt | 0 .../data_for_tests/tutorial_sample_dataset.csv | 0 {test => tests}/data_for_tests/zh_sample.conllx | 0 {test => tests}/embeddings/__init__.py | 0 {test => tests}/embeddings/test_bert_embedding.py | 0 {test => tests}/embeddings/test_char_embedding.py | 0 {test => tests}/embeddings/test_elmo_embedding.py | 0 {test => tests}/embeddings/test_gpt2_embedding.py | 0 .../embeddings/test_roberta_embedding.py | 0 {test => tests}/embeddings/test_stack_embeddings.py | 0 {test => tests}/embeddings/test_static_embedding.py | 0 .../embeddings/test_transformer_embedding.py | 0 {test => tests}/io/__init__.py | 0 .../io/loader/test_classification_loader.py | 0 {test => tests}/io/loader/test_conll_loader.py | 0 .../io/loader/test_coreference_loader.py | 0 {test => tests}/io/loader/test_cws_loader.py | 0 {test => tests}/io/loader/test_matching_loader.py | 0 {test => tests}/io/loader/test_qa_loader.py | 0 {test => tests}/io/pipe/test_classification.py | 0 {test => tests}/io/pipe/test_conll.py | 0 {test => tests}/io/pipe/test_coreference.py | 0 {test => tests}/io/pipe/test_cws.py | 0 {test => tests}/io/pipe/test_matching.py | 0 {test => tests}/io/pipe/test_qa.py | 0 {test => tests}/io/pipe/test_summary.py | 0 {test => tests}/io/test_embed_loader.py | 0 {test => tests}/io/test_model_io.py | 0 {test => tests}/models/__init__.py | 0 {test => tests}/models/model_runner.py | 0 {test => tests}/models/test_bert.py | 0 {test => tests}/models/test_biaffine_parser.py | 0 .../models/test_cnn_text_classification.py | 0 {test => tests}/models/test_seq2seq_generator.py | 0 {test => tests}/models/test_seq2seq_model.py | 0 {test => tests}/models/test_sequence_labeling.py | 0 {test => tests}/models/test_snli.py | 0 {test => tests}/models/test_star_trans.py | 0 {test => tests}/modules/__init__.py | 0 {test => tests}/modules/decoder/__init__.py | 0 {test => tests}/modules/decoder/test_CRF.py | 0 {test => tests}/modules/decoder/test_bert.py | 0 .../modules/decoder/test_seq2seq_decoder.py | 0 {test => tests}/modules/encoder/__init__.py | 0 {test => tests}/modules/encoder/test_pooling.py | 0 .../modules/encoder/test_seq2seq_encoder.py | 0 {test => tests}/modules/generator/__init__.py | 0 .../modules/generator/test_seq2seq_generator.py | 0 {test => tests}/modules/test_char_encoder.py | 0 {test => tests}/modules/test_other_modules.py | 0 {test => tests}/modules/test_utils.py | 0 {test => tests}/modules/test_variational_rnn.py | 0 .../modules/tokenizer/test_bert_tokenizer.py | 0 {test => tests}/test_tutorials.py | 0 192 files changed, 3 insertions(+), 3 deletions(-) rename {test => tests}/__init__.py (100%) rename {test => tests}/core/__init__.py (100%) rename {test => tests}/core/test_batch.py (100%) rename {test => tests}/core/test_callbacks.py (100%) rename {test => tests}/core/test_dataset.py (100%) rename {test => tests}/core/test_dist_trainer.py (100%) rename {test => tests}/core/test_field.py (100%) rename {test => tests}/core/test_instance.py (100%) rename {test => tests}/core/test_logger.py (100%) rename {test => tests}/core/test_loss.py (100%) rename {test => tests}/core/test_metrics.py (100%) rename {test => tests}/core/test_optimizer.py (100%) rename {test => tests}/core/test_predictor.py (100%) rename {test => tests}/core/test_sampler.py (100%) rename {test => tests}/core/test_tester.py (100%) rename {test => tests}/core/test_trainer.py (100%) rename {test => tests}/core/test_utils.py (100%) rename {test => tests}/core/test_vocabulary.py (100%) rename {test => tests}/data_for_tests/config (100%) rename {test => tests}/data_for_tests/conll_2003_example.txt (100%) rename {test => tests}/data_for_tests/conll_example.txt (100%) rename {test => tests}/data_for_tests/cws_pku_utf_8 (100%) rename {test => tests}/data_for_tests/cws_test (100%) rename {test => tests}/data_for_tests/cws_train (100%) rename {test => tests}/data_for_tests/embedding/small_bert/config.json (100%) rename {test => tests}/data_for_tests/embedding/small_bert/small_pytorch_model.bin (100%) rename {test => tests}/data_for_tests/embedding/small_bert/vocab.txt (100%) rename {test => tests}/data_for_tests/embedding/small_elmo/char.dic (100%) rename {test => tests}/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json (100%) rename {test => tests}/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl (100%) rename {test => tests}/data_for_tests/embedding/small_gpt2/config.json (100%) rename {test => tests}/data_for_tests/embedding/small_gpt2/merges.txt (100%) rename {test => tests}/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin (100%) rename {test => tests}/data_for_tests/embedding/small_gpt2/vocab.json (100%) rename {test => tests}/data_for_tests/embedding/small_roberta/config.json (100%) rename {test => tests}/data_for_tests/embedding/small_roberta/merges.txt (100%) rename {test => tests}/data_for_tests/embedding/small_roberta/small_pytorch_model.bin (100%) rename {test => tests}/data_for_tests/embedding/small_roberta/vocab.json (100%) rename {test => tests}/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt (100%) rename {test => tests}/data_for_tests/embedding/small_static_embedding/word2vec_test.txt (100%) rename {test => tests}/data_for_tests/io/BQCorpus/dev.txt (100%) rename {test => tests}/data_for_tests/io/BQCorpus/test.txt (100%) rename {test => tests}/data_for_tests/io/BQCorpus/train.txt (100%) rename {test => tests}/data_for_tests/io/ChnSentiCorp/dev.txt (100%) rename {test => tests}/data_for_tests/io/ChnSentiCorp/test.txt (100%) rename {test => tests}/data_for_tests/io/ChnSentiCorp/train.txt (100%) rename {test => tests}/data_for_tests/io/LCQMC/dev.txt (100%) rename {test => tests}/data_for_tests/io/LCQMC/test.txt (100%) rename {test => tests}/data_for_tests/io/LCQMC/train.txt (100%) rename {test => tests}/data_for_tests/io/MNLI/dev_matched.tsv (100%) rename {test => tests}/data_for_tests/io/MNLI/dev_mismatched.tsv (100%) rename {test => tests}/data_for_tests/io/MNLI/test_matched.tsv (100%) rename {test => tests}/data_for_tests/io/MNLI/test_mismatched.tsv (100%) rename {test => tests}/data_for_tests/io/MNLI/train.tsv (100%) rename {test => tests}/data_for_tests/io/MSRA_NER/dev.conll (100%) rename {test => tests}/data_for_tests/io/MSRA_NER/test.conll (100%) rename {test => tests}/data_for_tests/io/MSRA_NER/train.conll (100%) rename {test => tests}/data_for_tests/io/OntoNotes/dev.txt (100%) rename {test => tests}/data_for_tests/io/OntoNotes/test.txt (100%) rename {test => tests}/data_for_tests/io/OntoNotes/train.txt (100%) rename {test => tests}/data_for_tests/io/QNLI/dev.tsv (100%) rename {test => tests}/data_for_tests/io/QNLI/test.tsv (100%) rename {test => tests}/data_for_tests/io/QNLI/train.tsv (100%) rename {test => tests}/data_for_tests/io/Quora/dev.tsv (100%) rename {test => tests}/data_for_tests/io/Quora/test.tsv (100%) rename {test => tests}/data_for_tests/io/Quora/train.tsv (100%) rename {test => tests}/data_for_tests/io/RTE/dev.tsv (100%) rename {test => tests}/data_for_tests/io/RTE/test.tsv (100%) rename {test => tests}/data_for_tests/io/RTE/train.tsv (100%) rename {test => tests}/data_for_tests/io/SNLI/snli_1.0_dev.jsonl (100%) rename {test => tests}/data_for_tests/io/SNLI/snli_1.0_test.jsonl (100%) rename {test => tests}/data_for_tests/io/SNLI/snli_1.0_train.jsonl (100%) rename {test => tests}/data_for_tests/io/SST-2/dev.tsv (100%) rename {test => tests}/data_for_tests/io/SST-2/test.tsv (100%) rename {test => tests}/data_for_tests/io/SST-2/train.tsv (100%) rename {test => tests}/data_for_tests/io/SST/dev.txt (100%) rename {test => tests}/data_for_tests/io/SST/test.txt (100%) rename {test => tests}/data_for_tests/io/SST/train.txt (100%) rename {test => tests}/data_for_tests/io/THUCNews/dev.txt (100%) rename {test => tests}/data_for_tests/io/THUCNews/test.txt (100%) rename {test => tests}/data_for_tests/io/THUCNews/train.txt (100%) rename {test => tests}/data_for_tests/io/WeiboSenti100k/dev.txt (100%) rename {test => tests}/data_for_tests/io/WeiboSenti100k/test.txt (100%) rename {test => tests}/data_for_tests/io/WeiboSenti100k/train.txt (100%) rename {test => tests}/data_for_tests/io/XNLI/dev.txt (100%) rename {test => tests}/data_for_tests/io/XNLI/test.txt (100%) rename {test => tests}/data_for_tests/io/XNLI/train.txt (100%) rename {test => tests}/data_for_tests/io/ag/test.csv (100%) rename {test => tests}/data_for_tests/io/ag/train.csv (100%) rename {test => tests}/data_for_tests/io/cmrc/dev.json (100%) rename {test => tests}/data_for_tests/io/cmrc/train.json (100%) rename {test => tests}/data_for_tests/io/cnndm/dev.label.jsonl (100%) rename {test => tests}/data_for_tests/io/cnndm/test.label.jsonl (100%) rename {test => tests}/data_for_tests/io/cnndm/train.cnndm.jsonl (100%) rename {test => tests}/data_for_tests/io/cnndm/vocab (100%) rename {test => tests}/data_for_tests/io/conll2003/dev.txt (100%) rename {test => tests}/data_for_tests/io/conll2003/test.txt (100%) rename {test => tests}/data_for_tests/io/conll2003/train.txt (100%) rename {test => tests}/data_for_tests/io/coreference/coreference_dev.json (100%) rename {test => tests}/data_for_tests/io/coreference/coreference_test.json (100%) rename {test => tests}/data_for_tests/io/coreference/coreference_train.json (100%) rename {test => tests}/data_for_tests/io/cws_as/dev.txt (100%) rename {test => tests}/data_for_tests/io/cws_as/test.txt (100%) rename {test => tests}/data_for_tests/io/cws_as/train.txt (100%) rename {test => tests}/data_for_tests/io/cws_cityu/dev.txt (100%) rename {test => tests}/data_for_tests/io/cws_cityu/test.txt (100%) rename {test => tests}/data_for_tests/io/cws_cityu/train.txt (100%) rename {test => tests}/data_for_tests/io/cws_msra/dev.txt (100%) rename {test => tests}/data_for_tests/io/cws_msra/test.txt (100%) rename {test => tests}/data_for_tests/io/cws_msra/train.txt (100%) rename {test => tests}/data_for_tests/io/cws_pku/dev.txt (100%) rename {test => tests}/data_for_tests/io/cws_pku/test.txt (100%) rename {test => tests}/data_for_tests/io/cws_pku/train.txt (100%) rename {test => tests}/data_for_tests/io/dbpedia/test.csv (100%) rename {test => tests}/data_for_tests/io/dbpedia/train.csv (100%) rename {test => tests}/data_for_tests/io/imdb/dev.txt (100%) rename {test => tests}/data_for_tests/io/imdb/test.txt (100%) rename {test => tests}/data_for_tests/io/imdb/train.txt (100%) rename {test => tests}/data_for_tests/io/peopledaily/dev.txt (100%) rename {test => tests}/data_for_tests/io/peopledaily/test.txt (100%) rename {test => tests}/data_for_tests/io/peopledaily/train.txt (100%) rename {test => tests}/data_for_tests/io/weibo_NER/dev.conll (100%) rename {test => tests}/data_for_tests/io/weibo_NER/test.conll (100%) rename {test => tests}/data_for_tests/io/weibo_NER/train.conll (100%) rename {test => tests}/data_for_tests/io/yelp_review_full/dev.csv (100%) rename {test => tests}/data_for_tests/io/yelp_review_full/test.csv (100%) rename {test => tests}/data_for_tests/io/yelp_review_full/train.csv (100%) rename {test => tests}/data_for_tests/io/yelp_review_polarity/dev.csv (100%) rename {test => tests}/data_for_tests/io/yelp_review_polarity/test.csv (100%) rename {test => tests}/data_for_tests/io/yelp_review_polarity/train.csv (100%) rename {test => tests}/data_for_tests/modules/decoder/crf.json (100%) rename {test => tests}/data_for_tests/people.txt (100%) rename {test => tests}/data_for_tests/people_daily_raw.txt (100%) rename {test => tests}/data_for_tests/sample_mnli.tsv (100%) rename {test => tests}/data_for_tests/sample_snli.jsonl (100%) rename {test => tests}/data_for_tests/text_classify.txt (100%) rename {test => tests}/data_for_tests/tutorial_sample_dataset.csv (100%) rename {test => tests}/data_for_tests/zh_sample.conllx (100%) rename {test => tests}/embeddings/__init__.py (100%) rename {test => tests}/embeddings/test_bert_embedding.py (100%) rename {test => tests}/embeddings/test_char_embedding.py (100%) rename {test => tests}/embeddings/test_elmo_embedding.py (100%) rename {test => tests}/embeddings/test_gpt2_embedding.py (100%) rename {test => tests}/embeddings/test_roberta_embedding.py (100%) rename {test => tests}/embeddings/test_stack_embeddings.py (100%) rename {test => tests}/embeddings/test_static_embedding.py (100%) rename {test => tests}/embeddings/test_transformer_embedding.py (100%) rename {test => tests}/io/__init__.py (100%) rename {test => tests}/io/loader/test_classification_loader.py (100%) rename {test => tests}/io/loader/test_conll_loader.py (100%) rename {test => tests}/io/loader/test_coreference_loader.py (100%) rename {test => tests}/io/loader/test_cws_loader.py (100%) rename {test => tests}/io/loader/test_matching_loader.py (100%) rename {test => tests}/io/loader/test_qa_loader.py (100%) rename {test => tests}/io/pipe/test_classification.py (100%) rename {test => tests}/io/pipe/test_conll.py (100%) rename {test => tests}/io/pipe/test_coreference.py (100%) rename {test => tests}/io/pipe/test_cws.py (100%) rename {test => tests}/io/pipe/test_matching.py (100%) rename {test => tests}/io/pipe/test_qa.py (100%) rename {test => tests}/io/pipe/test_summary.py (100%) rename {test => tests}/io/test_embed_loader.py (100%) rename {test => tests}/io/test_model_io.py (100%) rename {test => tests}/models/__init__.py (100%) rename {test => tests}/models/model_runner.py (100%) rename {test => tests}/models/test_bert.py (100%) rename {test => tests}/models/test_biaffine_parser.py (100%) rename {test => tests}/models/test_cnn_text_classification.py (100%) rename {test => tests}/models/test_seq2seq_generator.py (100%) rename {test => tests}/models/test_seq2seq_model.py (100%) rename {test => tests}/models/test_sequence_labeling.py (100%) rename {test => tests}/models/test_snli.py (100%) rename {test => tests}/models/test_star_trans.py (100%) rename {test => tests}/modules/__init__.py (100%) rename {test => tests}/modules/decoder/__init__.py (100%) rename {test => tests}/modules/decoder/test_CRF.py (100%) rename {test => tests}/modules/decoder/test_bert.py (100%) rename {test => tests}/modules/decoder/test_seq2seq_decoder.py (100%) rename {test => tests}/modules/encoder/__init__.py (100%) rename {test => tests}/modules/encoder/test_pooling.py (100%) rename {test => tests}/modules/encoder/test_seq2seq_encoder.py (100%) rename {test => tests}/modules/generator/__init__.py (100%) rename {test => tests}/modules/generator/test_seq2seq_generator.py (100%) rename {test => tests}/modules/test_char_encoder.py (100%) rename {test => tests}/modules/test_other_modules.py (100%) rename {test => tests}/modules/test_utils.py (100%) rename {test => tests}/modules/test_variational_rnn.py (100%) rename {test => tests}/modules/tokenizer/test_bert_tokenizer.py (100%) rename {test => tests}/test_tutorials.py (100%) 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