NLTK g2p Error: Missing averaged_perceptron_tagger_eng.weights.json (POS Tagger for "eng") #419
Replies: 1 comment 4 replies
-
Hi @Kush05Bhardwaj! I'm Dosu and I’m helping the OpenVoice team. The error happens because the code is trying to load the NLTK POS tagger with the language code "eng", but NLTK only provides the resource as "en" (i.e., You have two options:
This is a known issue with several user reports in the repo. Let me know if you need help finding the exact line to change. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I'm trying to run the OpenVoice (or Melo TTS) pipeline, but it crashes with this error:
FileNotFoundError: [Errno 2] No such file or directory:
'C:\Users\...\nltk_data\taggers\averaged_perceptron_tagger_eng\averaged_perceptron_tagger_eng.weights.json'
It seems to be coming from the G2P component that relies on NLTK’s POS tagger, but NLTK only provides the en (not eng) version of averaged_perceptron_tagger.
Would appreciate any fix or guidance. Thanks a lot for this amazing project!
— Kushagra Bhardwaj
Beta Was this translation helpful? Give feedback.
All reactions