Browse Source

删除对spacy的依赖

tags/v1.0.0alpha
yh_cc 3 years ago
parent
commit
dc280fa1cb
4 changed files with 2 additions and 3 deletions
  1. +0
    -1
      .Jenkinsfile
  2. +1
    -1
      .travis.yml
  3. +0
    -1
      requirements.txt
  4. +1
    -0
      tests/io/pipe/test_matching.py

+ 0
- 1
.Jenkinsfile View File

@@ -27,7 +27,6 @@ pipeline {
}
stage('Package Testing') {
steps {
sh 'python -m spacy download en'
sh 'pip install fitlog'
sh 'pytest ./tests --html=test_results.html --self-contained-html'
}


+ 1
- 1
.travis.yml View File

@@ -13,7 +13,7 @@ install:
- pip install pytest-cov
# command to run tests
script:
- python -m spacy download en
# - python -m spacy download en
- pytest --cov=fastNLP tests/

after_success:


+ 0
- 1
requirements.txt View File

@@ -3,6 +3,5 @@ torch>=1.0.0
tqdm>=4.28.1
prettytable>=0.7.2
requests
spacy
prettytable>=0.7.2
regex!=2019.12.17

+ 1
- 0
tests/io/pipe/test_matching.py View File

@@ -74,6 +74,7 @@ class TestRunMatchingPipe(unittest.TestCase):
name, vocabs = y
self.assertEqual(x + 1 if name == 'words' else x, len(vocabs))

@unittest.skipIf('TRAVIS' in os.environ, "Skip in travis")
def test_spacy(self):
data_set_dict = {
'Quora': ('tests/data_for_tests/io/Quora', QuoraPipe, QuoraBertPipe, (2, 2, 2), (93, 2)),


Loading…
Cancel
Save