Skip to content

Commit

Permalink
Fix spacy test. (#1008)
Browse files Browse the repository at this point in the history
spacy has been upgraded to 3.x (fastai had a 2.x requirement but now
support 3.x which upgraded spacy.)
  • Loading branch information
rosbo committed May 6, 2021
1 parent 8d00db0 commit 7f983e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ RUN pip install bleach && \
pip install allennlp && \
# https://b.corp.google.com/issues/184685619#comment9: 3.9.0 is causing a major performance degradation with spacy 2.3.5
pip install importlib-metadata==3.4.0 && \
python -m spacy download en && python -m spacy download en_core_web_lg && \
python -m spacy download en_core_web_sm && python -m spacy download en_core_web_lg && \
apt-get install -y ffmpeg && \
/tmp/clean-layer.sh

Expand Down
2 changes: 1 addition & 1 deletion tests/test_spacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

class TestSpacy(unittest.TestCase):
def test_model(self):
nlp = spacy.load('en')
nlp = spacy.load('en_core_web_sm')
doc = nlp('This is a sentence.')
self.assertEqual(5, len(doc))

0 comments on commit 7f983e2

Please sign in to comment.