Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))