Closed dhdaines closed 3 months ago
This one is weird. I have use generate-mapping many times and gotten correct results, I wonder why it's different now. Must be a recently introduced bug!
Interesting, g2p generate-mapping --from myh --to eng
works correctly, but g2p generate-mapping --ipa myh
does not. I'd really like to strip --ipa
out of that CLI, to be honest, but unless (or until) we do that it should work correctly.
I'd really like to strip
--ipa
out of that CLI, to be honest, but unless (or until) we do that it should work correctly.
Wow, yes, the CLI for generate-mapping
is excessively confusing!
It is also pretty frustrating that you basically always have to run g2p update
before and after running it, and yet it doesn't make any effort to warn you about this. Is there a good reason why it shouldn't just do this for you? (with an option to not run update, say, an option called --no-update
)
When running
g2p generate-mapping
for the first time, the filename ing2p/mappings/langs/generated/config-g2p.yaml
is incorrect. For instance when I createg2p/mappings/langs/myh/config-g2p.yaml
:And
myh_to_ipa.csv
(omitted, but you can see it in #355 ), when runningg2p generate-mapping --ipa myh
(after runningg2p update
, etc, sigh), I get this entry (trimmed slightly) ing2p/mappings/langs/generated/config-g2p.yaml
:But the actual file that it generated is called
myh-ipa_to_eng-ipa.json
. It's not even a CSV ;-)