Watson Conversation 中的公式

Formula in Watson Conversation

我使用 Watson Conversation 已经有一段时间了。但最近我需要在 Watson Response.

中输入公式

如何实现?

有没有办法在我的对话流程中表示 formula/equations

@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 和最终用户看到的内容之间放置一个 "translation" 层。例如,翻译层可以将 MathML 转换为 HTML 或您想要的任何内容。

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