Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文字包含化学表达式时怎么处理呀 #1229

Open
liudiao1992 opened this issue Jun 25, 2024 · 4 comments
Open

文字包含化学表达式时怎么处理呀 #1229

liudiao1992 opened this issue Jun 25, 2024 · 4 comments

Comments

@liudiao1992
Copy link

比如硫酸的化学表达式是H₂SO₄

@XianYue0125
Copy link

我想这需要用代码做一些替换,比如{"H₂SO₄":"硫酸","HCL":"盐酸"}这样的,替换之后再去推理语音。

因为我在做数学推理的时候,也会有特殊符号,有时候加减乘除就读的很好,有时候上下文不一样,就读错了。

/ 左边这个符号有时候读“除”,有时候读“每”。这个可以理解,毕竟两个意思都对,得看上下文,但为了保证准确,一般会直接替换成对应的汉字。

H₂SO₄这种字符,模型可能比较难找到对应的发音。

@liudiao1992
Copy link
Author

@XianYue0125 这是一种办法,但是化学方式太多了,应该是列不全的。

@RVC-Boss
Copy link
Owner

有意思的问题

@KevinZhang19870314
Copy link

让GPT给你翻译一遍,然后再做tts推理。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants