简体   繁体   中英

Can I use a LaTex script in Watson Conversation service Dialog flow?

I am successfully using three Watson services: Conversation, TTS and STT in my application.

But I have a requirement on putting up equations in my conversation flow. Can I use LaTeX with JSON to write in my Conversation Dialog flow? Is there any other alternative for this?

The Watson Conversation service does not explicitly handle rendering of the textual response. This should be handled by the client part of the application that is using the service to show the textual answer to the user (usually through some web page).

Now you can return parts of latex script from dialog nodes defined in the Watson Conversation service, but the rendering of these scripts will need to be handled by eg the JavaScript code of the application that is communicating with the REST API of the Watson Conversation service.

As for using latex scripts in JSON you can use any syntax that is compatible with the JSON - in general, you need to escape quotes " and backlashes \\ in the String response that will be returned in JSON.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM