Skip to content

Commit

Permalink
Merge pull request nltk#1684 from gmarmstrong/develop
Browse files Browse the repository at this point in the history
Fix typo in `tokenize.word_tokenize()` docstring
  • Loading branch information
stevenbird authored Apr 13, 2017
2 parents 472382b + aea7b84 commit 887af8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nltk/tokenize/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def word_tokenize(text, language='english'):
along with :class:`.PunktSentenceTokenizer`
for the specified language).
:param text: text to split into sentences
:param text: text to split into words
:param language: the model name in the Punkt corpus
"""
return [token for sent in sent_tokenize(text, language)
Expand Down

0 comments on commit 887af8f

Please sign in to comment.