简体   繁体   English

api.ai和wit.ai的前端语言/平台是什么?

[英]What is the frontend language/platform of api.ai and wit.ai?

I am trying to develop a web application like wit.ai or api.ai. 我正在尝试开发wit.ai或api.ai之类的Web应用程序。 I am not sure what would be the best frontend language/platform/technology for such a web applications. 我不确定对于这样的Web应用程序,最好的前端语言/平台/技术是什么。 In api.ai and wit.ai you create chat robots. 在api.ai和wit.ai中,您可以创建聊天机器人。 For each robot the user define a bunch of keywords as entity. 用户为每个机器人定义了一堆关键字作为实体。 For example 例如

Entity: Pizza -> {Italian, French, Greek}

Then the user define templates for the input sentences and assign the keywords of the input sentence to the corresponding entities. 然后,用户为输入句子定义模板,并将输入句子的关键字分配给相应的实体。 For example: 例如:

I would like to order a Italian with two topping.

In the sentence above, the user assign the "Italian" keyword to the "Pizza" entity. 在上面的句子中,用户将“ Italian”关键字分配给“ Pizza”实体。 Then they just assign a output response for such a input. 然后,他们只是为这种输入分配输出响应。 The frontend should let the user performs these tasks such as highlighting a keyword, assigning to entities, showing lists of entities to the user. 前端应让用户执行这些任务,例如突出显示关键字,分配给实体,向用户显示实体列表。 Since the algorithms that I am developing are in Python, I was thinking about using Django. 由于我正在开发的算法是在Python中进行的,因此我在考虑使用Django。 Do you think it is the best platform for the such a task? 您认为这是执行此类任务的最佳平台吗?

I really appreciate your help. 非常感谢您的帮助。

Amir 阿米尔

While questions about technology are typically subjective and have no 'right' answer, a 'frontend' esque language will do you a lot of good here. 尽管有关技术的问题通常是主观的,没有“正确”的答案,但是“前端”风格的语言在这里会给您带来很多好处。

Something like JS, nodejs etc.. You need to be able to highlight the words on the client side and not make any request to the server yet until the user specifies what the highlighted text is. 诸如JS,nodejs之类的东西。您需要能够在客户端突出显示单词,并且直到用户指定突出显示的文本之前才向服务器发出任何请求。 Ofcourse the service that powers your API (to persist the selected entity information) can be powered by py or any language that makes you smile :) 当然,可以通过py或任何使您微笑的语言来支持为您的API提供支持的服务(以保留选定的实体信息):)

All the best 祝一切顺利

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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