notebook
notebook copied to clipboard
AttributeError: module 'regex' has no attribute 'Pattern'
AttributeError Traceback (most recent call last)
9 frames /usr/local/lib/python3.7/dist-packages/nltk/tokenize/casual.py in TweetTokenizer() 366 367 @property --> 368 def PHONE_WORD_RE(self) -> regex.Pattern: 369 """Secondary core TweetTokenizer regex""" 370 # Compiles the regex for this and all future instantiations of TweetTokenizer.
AttributeError: module 'regex' has no attribute 'Pattern'