沃森对话中的公式 [英] Formula in Watson Conversation

查看:103
本文介绍了沃森对话中的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Watson对话很长时间了.但是最近我需要在我的 Watson响应中提出公式.

I have been using Watson Conversation for quite some time. But recently I needed to put up formulas in my Watson Response.

我该如何实现?

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

Is there a way to represent formula/equations in my Dialog flow?

推荐答案

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

@athif-shaffy's answer is basically correct-

我认为您应该尝试将数学公式包含在HTML中,并将HTML添加到响应中.对话服务中的结果尝试一下,但在实际的应用程序中却起作用了– Athif Shaffy 1月5日在11 :58

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)放入响应中.

You can put any text you want into the response, including HTML.

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

Additionally, I will mention that you can optionally put a "translation" layer in between the Watson Response and what your end user sees. The translation layer could, for example, convert MathML into HTML or whatever you would like.

这实际上取决于您要向用户确切显示什么,以及哪个选项对您来说更方便-将其直接放入响应中或使用一些中间代码翻译".

It really just depends on what exactly you want to display to your users, and which option is more convenient for you - putting it directly into the response or "translating" it with some intermediate code.

这篇关于沃森对话中的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆