gpt4 book ai didi

json - Watson Conversation 中的公式

转载 作者:行者123 更新时间:2023-12-01 11:21:48 25 4
gpt4 key购买 nike

我使用 Watson Conversation 已经有一段时间了。但最近我需要在我的 Watson Response 中添加公式。

如何实现?

有没有办法在我的对话流程中表示公式/方程式

最佳答案

@athif-shaffy 的回答基本正确-

I think you should try to include math formula in HTML,and add the HTML to the response.check this like for example to get to a new line I had to use <br> in the response.It didn't show the result in the conversation service try it out,but in the actual application it worked – Athif Shaffy Jan 5 at 11:58

您可以将任何您想要的文本放入响应中,包括 HTML。

此外,我会提到您可以选择在 Watson Response 和最终用户看到的内容之间放置一个“翻译”层。例如,翻译层可以将 MathML 转换为 HTML 或您想要的任何内容。

这实际上仅取决于您想要向用户显示的确切内容,以及哪个选项对您来说更方便 - 将其直接放入响应或使用一些中间代码“翻译”它。

关于json - Watson Conversation 中的公式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41458251/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com