AdolfVonKleist / Phonetisaurus

Phonetisaurus G2P
BSD 3-Clause "New" or "Revised" License
449 stars 122 forks source link

add constructor with arg type VectorFst<StdArc> for decoder in PhonetisaurusScript.h #63

Closed oplatek closed 3 years ago

oplatek commented 3 years ago

Hi, in this PR, I added a new constructor that is useful for a library-like use of the PhonetisaurusScript class. E.g. the model is stored in memory as VectorFst and cannot be easily loaded from a file.

I introduced also the private method normalizeModel() to avoid duplication of code between constructors.

Feedback is welcome!

Thank you for developing and maintaining Phonetisaurus!

AdolfVonKleist commented 3 years ago

Thanks for the pull request, glad to see you are still getting some use from it!