Closed dhdaines closed 3 months ago
In fact, I would argue the bug is of a different nature: generate-mapping should skip any rule whose output is empty, and not generate the ''->'' rule you're seeing warnings about.
In fact, I would argue the bug is of a different nature: generate-mapping should skip any rule whose output is empty, and not generate the ''->'' rule you're seeing warnings about.
Indeed, that is the right way to fix it, not just silencing the warning, oops!
I'll make a PR for generate-mapping
to fix #354 and fix this too
Create a mapping
foo_to_ipa.csv
with this:Running
g2p generate-mapping
(after runningg2p update
, etc) gives this error:But... the input isn't null! It's "foo"!
Oh, wait ... the output of that rule, which is the input for the generated IPA mapping, yes, that is actually null.
This warning should get silenced as it is quite confusing!