石墨烯到音素启发式oov单词

发布于 2025-02-10 13:18:53 字数 287 浏览 2 评论 0原文

我需要在C ++中进行石墨烯至音素(G2P)转换,但是,大多数G2P库都在Python或Rust中(Pocketsphinx可能有效,但看起来像是头痛)​​。

G2P由以下方式完成:

  • 非共同载体的字典查找。
  • 计算pos的同音词的POS
  • 对OOV(词汇)单词进行深度学习

,但是,现在是否有元音替代词与同音词和OOV单词都没关系。

我只需要让其他代码启动并运行,然后我就可以忘记这场灾难,因此需要快速启发式。

我会尽快发布答案。

I need to do Graphene to phoneme (g2p) conversion in c++, however, most g2p libraries are in python or rust (pocketsphinx might work but seems like a headache).

G2P is done by:

  • Dictionary lookup for non-homophones.
  • calculates POS for homophones
  • deep learning for OOV (out of vocabulary) words

However, for now it doesn't matter if there's vowel substitution for homophones and OOV words.

I just need to get my other code up and running, and then I can forget about this disaster, so a quick heuristic is what's needed.

I'd post an answer soon.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み格子的夏天 2025-02-17 13:18:53

是一个尝试 https://godbolt.org/z/z6g4o6c4c4k

这 代码>为s-chul(在Arpabet s chuw l中)。但这足够好。

它首先尝试解析前两个字符,如果它们匹配常见的digram(ie chshth),然后返回相应的音位和通过其余的。否则将首字母转换为最接近的音素。

Here's an attempt https://godbolt.org/z/z6G4o6c4K

It pronounces school as s-chul (in arpabet S CH UW L). But that's good enough I suppose.

It first tries to parse the first two characters, if they match common digram (i.e. ch, sh, th) then return the corresponding phoneme and pass the remainder. Otherwise convert the first letter to the closest phoneme.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文