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

Issues with Loading Punctuation Models (vosk-recasepunc-en-0.22) #1711

Open
Sarmingsteiner opened this issue Feb 22, 2025 · 1 comment
Open

Comments

@Sarmingsteiner
Copy link

Hi there,

I am facing some issues when trying to use the punctuation models for vosk-recasepunc-en-0.22 and vosk-recasepunc-de-0.21.

The model ZIP file contains another ZIP archive named checkpoint, but I am unsure what exactly this checkpoint file is and how to load it properly. When I attempt to load the model using:

from recasepunc import CasePuncPredictor
try:
    predictor = CasePuncPredictor('vosk-recasepunc-en-0.22/checkpoint')

I get the following error:

PermissionError: [Errno 13] Permission denied

Could anyone provide clarification on:

  1. What exactly the checkpoint file is and how it should be used to load the model?
  2. How to correctly work with the punctuation models in general?

Any guidance or suggestions to resolve this issue would be greatly appreciated!

Thank you in advance!

@nshmyrev
Copy link
Collaborator

Hi

Many other punctuation models on huggingface these days, some with better docs.

There is test script inside each model, you can run it.

For this problem, you need to provide more information about error and describe what you are doing, it is hard to guess but might be a simple thing.

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

No branches or pull requests

2 participants