Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'regex' has no attribute 'Pattern' #25

Open
yinxx opened this issue Oct 1, 2021 · 1 comment
Open

AttributeError: module 'regex' has no attribute 'Pattern' #25

yinxx opened this issue Oct 1, 2021 · 1 comment

Comments

@yinxx
Copy link

yinxx commented Oct 1, 2021

AttributeError Traceback (most recent call last)
in ()
----> 1 from espnet2.bin.tts_inference import Text2Speech
2 from espnet2.utils.types import str_or_none
3
4 text2speech = Text2Speech.from_pretrained(
5 model_tag=str_or_none(tag),

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'

@yinxx
Copy link
Author

yinxx commented Oct 1, 2021

espnet2_tts_realtime_demo.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant