Search code examples
pythontokenizetweets

unable to import tweetTokenizer


I tried to import TweetTokenizer but it didn't happen

I tried installing nltk.download(), but the list of packages didn't included any Tokenizer package.

I followed this which didn't help

>>> from nltk.tokenize import TweetTokenizer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name TweetTokenizer

Solution

  • Try updating your nltk model, and that should work fine