MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_model

Method test_model

tests/test_spacy.py:7–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5# please check with learn team before changing
6class TestSpacy(unittest.TestCase):
7 def test_model(self):
8 nlp = spacy.load('en_core_web_sm')
9 doc = nlp('This is a sentence.')
10 self.assertEqual(5, len(doc))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected