Skip to content

Commit b420a7c

Browse files
Fix typo in documentation
The correct name seems to be PunktSentenceTokenizer, see https://www.nltk.org/api/nltk.tokenize.html#nltk.tokenize.punkt.PunktSentenceTokenizer
1 parent a388f8e commit b420a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textblob/tokenizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def tokenize(self, text, include_punc=True):
4545

4646

4747
class SentenceTokenizer(BaseTokenizer):
48-
"""NLTK's sentence tokenizer (currently PunkSentenceTokenizer).
48+
"""NLTK's sentence tokenizer (currently PunktSentenceTokenizer).
4949
Uses an unsupervised algorithm to build a model for abbreviation words,
5050
collocations, and words that start sentences,
5151
then uses that to find sentence boundaries.

0 commit comments

Comments
 (0)