Created
October 25, 2009 19:12
-
-
Save j2labs/218198 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import nltk.data | |
>>> splitter = nltk.data.load('tokenizers/punkt/english.pickle') | |
>>> splitter.tokenize('I think Washington D.C. is neato') | |
['I think Washington D.C.', 'is neato'] | |
>>> splitter.tokenize('I think Washington D. C. is neato') | |
['I think Washington D. C. is neato'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment