Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Jul 24, 2018
1 parent 85ffec6 commit fb8f4fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_spacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


def test_spacy_nlp():
"""Load spaCy and run it on a sample sentence."""
nlp = spacy.load("en_core_web_sm")
doc = nlp(u"The quick brown fox jumped over the lazy dog")
assert len([n for n in doc.noun_chunks]) == 2
Expand Down

0 comments on commit fb8f4fa

Please sign in to comment.