Formula in Watson Conversation

十年热恋 提交于 2019-12-12 13:06:35

问题


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

How do I achieve it?

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


回答1:


@athif-shaffy's answer is basically correct-

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

You can put any text you want into the response, including 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.



来源:https://stackoverflow.com/questions/41458251/formula-in-watson-conversation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!