Browse Source

把测试文件夹 test 改名为 tests

tags/v1.0.0alpha
willqvq 3 years ago
parent
commit
fc8f8f6913
100 changed files with 3 additions and 3 deletions
  1. +1
    -1
      .Jenkinsfile
  2. +1
    -1
      .travis.yml
  3. +1
    -1
      MANIFEST.in
  4. +0
    -0
      tests/__init__.py
  5. +0
    -0
      tests/core/__init__.py
  6. +0
    -0
      tests/core/test_batch.py
  7. +0
    -0
      tests/core/test_callbacks.py
  8. +0
    -0
      tests/core/test_dataset.py
  9. +0
    -0
      tests/core/test_dist_trainer.py
  10. +0
    -0
      tests/core/test_field.py
  11. +0
    -0
      tests/core/test_instance.py
  12. +0
    -0
      tests/core/test_logger.py
  13. +0
    -0
      tests/core/test_loss.py
  14. +0
    -0
      tests/core/test_metrics.py
  15. +0
    -0
      tests/core/test_optimizer.py
  16. +0
    -0
      tests/core/test_predictor.py
  17. +0
    -0
      tests/core/test_sampler.py
  18. +0
    -0
      tests/core/test_tester.py
  19. +0
    -0
      tests/core/test_trainer.py
  20. +0
    -0
      tests/core/test_utils.py
  21. +0
    -0
      tests/core/test_vocabulary.py
  22. +0
    -0
      tests/data_for_tests/config
  23. +0
    -0
      tests/data_for_tests/conll_2003_example.txt
  24. +0
    -0
      tests/data_for_tests/conll_example.txt
  25. +0
    -0
      tests/data_for_tests/cws_pku_utf_8
  26. +0
    -0
      tests/data_for_tests/cws_test
  27. +0
    -0
      tests/data_for_tests/cws_train
  28. +0
    -0
      tests/data_for_tests/embedding/small_bert/config.json
  29. +0
    -0
      tests/data_for_tests/embedding/small_bert/small_pytorch_model.bin
  30. +0
    -0
      tests/data_for_tests/embedding/small_bert/vocab.txt
  31. +0
    -0
      tests/data_for_tests/embedding/small_elmo/char.dic
  32. +0
    -0
      tests/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json
  33. +0
    -0
      tests/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl
  34. +0
    -0
      tests/data_for_tests/embedding/small_gpt2/config.json
  35. +0
    -0
      tests/data_for_tests/embedding/small_gpt2/merges.txt
  36. +0
    -0
      tests/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin
  37. +0
    -0
      tests/data_for_tests/embedding/small_gpt2/vocab.json
  38. +0
    -0
      tests/data_for_tests/embedding/small_roberta/config.json
  39. +0
    -0
      tests/data_for_tests/embedding/small_roberta/merges.txt
  40. +0
    -0
      tests/data_for_tests/embedding/small_roberta/small_pytorch_model.bin
  41. +0
    -0
      tests/data_for_tests/embedding/small_roberta/vocab.json
  42. +0
    -0
      tests/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt
  43. +0
    -0
      tests/data_for_tests/embedding/small_static_embedding/word2vec_test.txt
  44. +0
    -0
      tests/data_for_tests/io/BQCorpus/dev.txt
  45. +0
    -0
      tests/data_for_tests/io/BQCorpus/test.txt
  46. +0
    -0
      tests/data_for_tests/io/BQCorpus/train.txt
  47. +0
    -0
      tests/data_for_tests/io/ChnSentiCorp/dev.txt
  48. +0
    -0
      tests/data_for_tests/io/ChnSentiCorp/test.txt
  49. +0
    -0
      tests/data_for_tests/io/ChnSentiCorp/train.txt
  50. +0
    -0
      tests/data_for_tests/io/LCQMC/dev.txt
  51. +0
    -0
      tests/data_for_tests/io/LCQMC/test.txt
  52. +0
    -0
      tests/data_for_tests/io/LCQMC/train.txt
  53. +0
    -0
      tests/data_for_tests/io/MNLI/dev_matched.tsv
  54. +0
    -0
      tests/data_for_tests/io/MNLI/dev_mismatched.tsv
  55. +0
    -0
      tests/data_for_tests/io/MNLI/test_matched.tsv
  56. +0
    -0
      tests/data_for_tests/io/MNLI/test_mismatched.tsv
  57. +0
    -0
      tests/data_for_tests/io/MNLI/train.tsv
  58. +0
    -0
      tests/data_for_tests/io/MSRA_NER/dev.conll
  59. +0
    -0
      tests/data_for_tests/io/MSRA_NER/test.conll
  60. +0
    -0
      tests/data_for_tests/io/MSRA_NER/train.conll
  61. +0
    -0
      tests/data_for_tests/io/OntoNotes/dev.txt
  62. +0
    -0
      tests/data_for_tests/io/OntoNotes/test.txt
  63. +0
    -0
      tests/data_for_tests/io/OntoNotes/train.txt
  64. +0
    -0
      tests/data_for_tests/io/QNLI/dev.tsv
  65. +0
    -0
      tests/data_for_tests/io/QNLI/test.tsv
  66. +0
    -0
      tests/data_for_tests/io/QNLI/train.tsv
  67. +0
    -0
      tests/data_for_tests/io/Quora/dev.tsv
  68. +0
    -0
      tests/data_for_tests/io/Quora/test.tsv
  69. +0
    -0
      tests/data_for_tests/io/Quora/train.tsv
  70. +0
    -0
      tests/data_for_tests/io/RTE/dev.tsv
  71. +0
    -0
      tests/data_for_tests/io/RTE/test.tsv
  72. +0
    -0
      tests/data_for_tests/io/RTE/train.tsv
  73. +0
    -0
      tests/data_for_tests/io/SNLI/snli_1.0_dev.jsonl
  74. +0
    -0
      tests/data_for_tests/io/SNLI/snli_1.0_test.jsonl
  75. +0
    -0
      tests/data_for_tests/io/SNLI/snli_1.0_train.jsonl
  76. +0
    -0
      tests/data_for_tests/io/SST-2/dev.tsv
  77. +0
    -0
      tests/data_for_tests/io/SST-2/test.tsv
  78. +0
    -0
      tests/data_for_tests/io/SST-2/train.tsv
  79. +0
    -0
      tests/data_for_tests/io/SST/dev.txt
  80. +0
    -0
      tests/data_for_tests/io/SST/test.txt
  81. +0
    -0
      tests/data_for_tests/io/SST/train.txt
  82. +0
    -0
      tests/data_for_tests/io/THUCNews/dev.txt
  83. +0
    -0
      tests/data_for_tests/io/THUCNews/test.txt
  84. +0
    -0
      tests/data_for_tests/io/THUCNews/train.txt
  85. +0
    -0
      tests/data_for_tests/io/WeiboSenti100k/dev.txt
  86. +0
    -0
      tests/data_for_tests/io/WeiboSenti100k/test.txt
  87. +0
    -0
      tests/data_for_tests/io/WeiboSenti100k/train.txt
  88. +0
    -0
      tests/data_for_tests/io/XNLI/dev.txt
  89. +0
    -0
      tests/data_for_tests/io/XNLI/test.txt
  90. +0
    -0
      tests/data_for_tests/io/XNLI/train.txt
  91. +0
    -0
      tests/data_for_tests/io/ag/test.csv
  92. +0
    -0
      tests/data_for_tests/io/ag/train.csv
  93. +0
    -0
      tests/data_for_tests/io/cmrc/dev.json
  94. +0
    -0
      tests/data_for_tests/io/cmrc/train.json
  95. +0
    -0
      tests/data_for_tests/io/cnndm/dev.label.jsonl
  96. +0
    -0
      tests/data_for_tests/io/cnndm/test.label.jsonl
  97. +0
    -0
      tests/data_for_tests/io/cnndm/train.cnndm.jsonl
  98. +0
    -0
      tests/data_for_tests/io/cnndm/vocab
  99. +0
    -0
      tests/data_for_tests/io/conll2003/dev.txt
  100. +0
    -0
      tests/data_for_tests/io/conll2003/test.txt

+ 1
- 1
.Jenkinsfile View File

@@ -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'
}
}
}


+ 1
- 1
.travis.yml View File

@@ -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)


+ 1
- 1
MANIFEST.in View File

@@ -1,7 +1,7 @@
include requirements.txt
include LICENSE
include README.md
prune test/
prune tests/
prune reproduction/
prune fastNLP/api
prune fastNLP/automl

test/__init__.py → tests/__init__.py View File


test/core/__init__.py → tests/core/__init__.py View File


test/core/test_batch.py → tests/core/test_batch.py View File


test/core/test_callbacks.py → tests/core/test_callbacks.py View File


test/core/test_dataset.py → tests/core/test_dataset.py View File


test/core/test_dist_trainer.py → tests/core/test_dist_trainer.py View File


test/core/test_field.py → tests/core/test_field.py View File


test/core/test_instance.py → tests/core/test_instance.py View File


test/core/test_logger.py → tests/core/test_logger.py View File


test/core/test_loss.py → tests/core/test_loss.py View File


test/core/test_metrics.py → tests/core/test_metrics.py View File


test/core/test_optimizer.py → tests/core/test_optimizer.py View File


test/core/test_predictor.py → tests/core/test_predictor.py View File


test/core/test_sampler.py → tests/core/test_sampler.py View File


test/core/test_tester.py → tests/core/test_tester.py View File


test/core/test_trainer.py → tests/core/test_trainer.py View File


test/core/test_utils.py → tests/core/test_utils.py View File


test/core/test_vocabulary.py → tests/core/test_vocabulary.py View File


test/data_for_tests/config → tests/data_for_tests/config View File


test/data_for_tests/conll_2003_example.txt → tests/data_for_tests/conll_2003_example.txt View File


test/data_for_tests/conll_example.txt → tests/data_for_tests/conll_example.txt View File


test/data_for_tests/cws_pku_utf_8 → tests/data_for_tests/cws_pku_utf_8 View File


test/data_for_tests/cws_test → tests/data_for_tests/cws_test View File


test/data_for_tests/cws_train → tests/data_for_tests/cws_train View File


test/data_for_tests/embedding/small_bert/config.json → tests/data_for_tests/embedding/small_bert/config.json View File


test/data_for_tests/embedding/small_bert/small_pytorch_model.bin → tests/data_for_tests/embedding/small_bert/small_pytorch_model.bin View File


test/data_for_tests/embedding/small_bert/vocab.txt → tests/data_for_tests/embedding/small_bert/vocab.txt View File


test/data_for_tests/embedding/small_elmo/char.dic → tests/data_for_tests/embedding/small_elmo/char.dic View File


test/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json → tests/data_for_tests/embedding/small_elmo/elmo_1x16_16_32cnn_1xhighway_options.json View File


test/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl → tests/data_for_tests/embedding/small_elmo/elmo_mini_for_testing.pkl View File


test/data_for_tests/embedding/small_gpt2/config.json → tests/data_for_tests/embedding/small_gpt2/config.json View File


test/data_for_tests/embedding/small_gpt2/merges.txt → tests/data_for_tests/embedding/small_gpt2/merges.txt View File


test/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin → tests/data_for_tests/embedding/small_gpt2/small_pytorch_model.bin View File


test/data_for_tests/embedding/small_gpt2/vocab.json → tests/data_for_tests/embedding/small_gpt2/vocab.json View File


test/data_for_tests/embedding/small_roberta/config.json → tests/data_for_tests/embedding/small_roberta/config.json View File


test/data_for_tests/embedding/small_roberta/merges.txt → tests/data_for_tests/embedding/small_roberta/merges.txt View File


test/data_for_tests/embedding/small_roberta/small_pytorch_model.bin → tests/data_for_tests/embedding/small_roberta/small_pytorch_model.bin View File


test/data_for_tests/embedding/small_roberta/vocab.json → tests/data_for_tests/embedding/small_roberta/vocab.json View File


test/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt → tests/data_for_tests/embedding/small_static_embedding/glove.6B.50d_test.txt View File


test/data_for_tests/embedding/small_static_embedding/word2vec_test.txt → tests/data_for_tests/embedding/small_static_embedding/word2vec_test.txt View File


test/data_for_tests/io/BQCorpus/dev.txt → tests/data_for_tests/io/BQCorpus/dev.txt View File


test/data_for_tests/io/BQCorpus/test.txt → tests/data_for_tests/io/BQCorpus/test.txt View File


test/data_for_tests/io/BQCorpus/train.txt → tests/data_for_tests/io/BQCorpus/train.txt View File


test/data_for_tests/io/ChnSentiCorp/dev.txt → tests/data_for_tests/io/ChnSentiCorp/dev.txt View File


test/data_for_tests/io/ChnSentiCorp/test.txt → tests/data_for_tests/io/ChnSentiCorp/test.txt View File


test/data_for_tests/io/ChnSentiCorp/train.txt → tests/data_for_tests/io/ChnSentiCorp/train.txt View File


test/data_for_tests/io/LCQMC/dev.txt → tests/data_for_tests/io/LCQMC/dev.txt View File


test/data_for_tests/io/LCQMC/test.txt → tests/data_for_tests/io/LCQMC/test.txt View File


test/data_for_tests/io/LCQMC/train.txt → tests/data_for_tests/io/LCQMC/train.txt View File


test/data_for_tests/io/MNLI/dev_matched.tsv → tests/data_for_tests/io/MNLI/dev_matched.tsv View File


test/data_for_tests/io/MNLI/dev_mismatched.tsv → tests/data_for_tests/io/MNLI/dev_mismatched.tsv View File


test/data_for_tests/io/MNLI/test_matched.tsv → tests/data_for_tests/io/MNLI/test_matched.tsv View File


test/data_for_tests/io/MNLI/test_mismatched.tsv → tests/data_for_tests/io/MNLI/test_mismatched.tsv View File


test/data_for_tests/io/MNLI/train.tsv → tests/data_for_tests/io/MNLI/train.tsv View File


test/data_for_tests/io/MSRA_NER/dev.conll → tests/data_for_tests/io/MSRA_NER/dev.conll View File


test/data_for_tests/io/MSRA_NER/test.conll → tests/data_for_tests/io/MSRA_NER/test.conll View File


test/data_for_tests/io/MSRA_NER/train.conll → tests/data_for_tests/io/MSRA_NER/train.conll View File


test/data_for_tests/io/OntoNotes/dev.txt → tests/data_for_tests/io/OntoNotes/dev.txt View File


test/data_for_tests/io/OntoNotes/test.txt → tests/data_for_tests/io/OntoNotes/test.txt View File


test/data_for_tests/io/OntoNotes/train.txt → tests/data_for_tests/io/OntoNotes/train.txt View File


test/data_for_tests/io/QNLI/dev.tsv → tests/data_for_tests/io/QNLI/dev.tsv View File


test/data_for_tests/io/QNLI/test.tsv → tests/data_for_tests/io/QNLI/test.tsv View File


test/data_for_tests/io/QNLI/train.tsv → tests/data_for_tests/io/QNLI/train.tsv View File


test/data_for_tests/io/Quora/dev.tsv → tests/data_for_tests/io/Quora/dev.tsv View File


test/data_for_tests/io/Quora/test.tsv → tests/data_for_tests/io/Quora/test.tsv View File


test/data_for_tests/io/Quora/train.tsv → tests/data_for_tests/io/Quora/train.tsv View File


test/data_for_tests/io/RTE/dev.tsv → tests/data_for_tests/io/RTE/dev.tsv View File


test/data_for_tests/io/RTE/test.tsv → tests/data_for_tests/io/RTE/test.tsv View File


test/data_for_tests/io/RTE/train.tsv → tests/data_for_tests/io/RTE/train.tsv View File


test/data_for_tests/io/SNLI/snli_1.0_dev.jsonl → tests/data_for_tests/io/SNLI/snli_1.0_dev.jsonl View File


test/data_for_tests/io/SNLI/snli_1.0_test.jsonl → tests/data_for_tests/io/SNLI/snli_1.0_test.jsonl View File


test/data_for_tests/io/SNLI/snli_1.0_train.jsonl → tests/data_for_tests/io/SNLI/snli_1.0_train.jsonl View File


test/data_for_tests/io/SST-2/dev.tsv → tests/data_for_tests/io/SST-2/dev.tsv View File


test/data_for_tests/io/SST-2/test.tsv → tests/data_for_tests/io/SST-2/test.tsv View File


test/data_for_tests/io/SST-2/train.tsv → tests/data_for_tests/io/SST-2/train.tsv View File


test/data_for_tests/io/SST/dev.txt → tests/data_for_tests/io/SST/dev.txt View File


test/data_for_tests/io/SST/test.txt → tests/data_for_tests/io/SST/test.txt View File


test/data_for_tests/io/SST/train.txt → tests/data_for_tests/io/SST/train.txt View File


test/data_for_tests/io/THUCNews/dev.txt → tests/data_for_tests/io/THUCNews/dev.txt View File


test/data_for_tests/io/THUCNews/test.txt → tests/data_for_tests/io/THUCNews/test.txt View File


test/data_for_tests/io/THUCNews/train.txt → tests/data_for_tests/io/THUCNews/train.txt View File


test/data_for_tests/io/WeiboSenti100k/dev.txt → tests/data_for_tests/io/WeiboSenti100k/dev.txt View File


test/data_for_tests/io/WeiboSenti100k/test.txt → tests/data_for_tests/io/WeiboSenti100k/test.txt View File


test/data_for_tests/io/WeiboSenti100k/train.txt → tests/data_for_tests/io/WeiboSenti100k/train.txt View File


test/data_for_tests/io/XNLI/dev.txt → tests/data_for_tests/io/XNLI/dev.txt View File


test/data_for_tests/io/XNLI/test.txt → tests/data_for_tests/io/XNLI/test.txt View File


test/data_for_tests/io/XNLI/train.txt → tests/data_for_tests/io/XNLI/train.txt View File


test/data_for_tests/io/ag/test.csv → tests/data_for_tests/io/ag/test.csv View File


test/data_for_tests/io/ag/train.csv → tests/data_for_tests/io/ag/train.csv View File


test/data_for_tests/io/cmrc/dev.json → tests/data_for_tests/io/cmrc/dev.json View File


test/data_for_tests/io/cmrc/train.json → tests/data_for_tests/io/cmrc/train.json View File


test/data_for_tests/io/cnndm/dev.label.jsonl → tests/data_for_tests/io/cnndm/dev.label.jsonl View File


test/data_for_tests/io/cnndm/test.label.jsonl → tests/data_for_tests/io/cnndm/test.label.jsonl View File


test/data_for_tests/io/cnndm/train.cnndm.jsonl → tests/data_for_tests/io/cnndm/train.cnndm.jsonl View File


test/data_for_tests/io/cnndm/vocab → tests/data_for_tests/io/cnndm/vocab View File


test/data_for_tests/io/conll2003/dev.txt → tests/data_for_tests/io/conll2003/dev.txt View File


test/data_for_tests/io/conll2003/test.txt → tests/data_for_tests/io/conll2003/test.txt View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save