registry: get_phonemizer(G2PW, model=path) drops the path with no error
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read scriptconv/phonemizers/registry.py lines 140-148 first: get_phonemizer inspects which of model, engine or register a backend constructor declares before forwarding arguments. Then compare with G2PWPhonemizer.__init__ at scriptconv/phonemizers/g2pw.py line 232, which only accepts alphabet. Reproduce with the snippet in the issue to confirm the path is silently dropped. Done looks like an explicit error (or a warning) when model is passed to a backend that cannot take it, plus a test covering both the rejecting and the accepting case.
Written by the indexing model from the issue text.
Description
🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting.
Verified against source: the lines and outputs below were read and run on scriptconv origin/dev 03b4c08.
Observed
get_phonemizer(G2PW, model=path) drops the path with no error and no warning. G2PWPhonemizer.__init__ (scriptconv/phonemizers/g2pw.py line 232) takes only alphabet. get_phonemizer (scriptconv/phonemizers/registry.py lines 140 to 148) forwards model only to a constructor that declares model, engine or register, and else builds the backend without it.
Expected
A model that the backend cannot take raises an error, or at least logs a warning, so a caller does not get the default model when the caller asked for another one.
Reproduce
from scriptconv.phonemizers.registry import get_phonemizer
from scriptconv.phonemizers.enums import Phonemizer
get_phonemizer(Phonemizer.G2PW, model="/path/to/model.onnx") # no error; the path is not used
Where
scriptconv/phonemizers/registry.py lines 140 to 148, and scriptconv/phonemizers/g2pw.py line 232.
- Dominant language
- Python
- Stars
- 4
- Forks
- 1
- Avg merge
- 8h 57m
- Merged PRs (30d)
- 118
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TigreGotico/scriptconv
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TigreGotico/scriptconv#412 ·
Maintainers usually reply within 1 day
-
docs: the ByT5 docstring says it downloads, and the _stress docstring says stressonnx is not on PyPIOpen
Difficulty 1/5 Under an hour Newbie friendliness 88/100
TigreGotico/scriptconv#411 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
TigreGotico/scriptconv#410 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
TigreGotico/scriptconv#408 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
TigreGotico/scriptconv#394 ·
Maintainers usually reply within 1 day
All issues in TigreGotico/scriptconv
Similar issues
-
eegprep-lean: set channel types from the Zarr group's channel_typePossibly taken @claude claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sccn/eegprep#668 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blacklanternsecurity/bbot#3679 ·
Maintainers usually reply within 2 days
-
Link Checker ReportOpenBot Type: Bug Type: Documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day