简体   繁体   English

可以将IBM Watson Discovery替换为IBM Watson Explorer进行自然语言分析

[英]Can IBM Watson Discovery be replaced with IBM Watson Explorer for natural language analysis

A POC in our project uses IBM Watson Discovery services hosted in cloud for natural language analysis but our company wants an on premise solution for natural language analysis instead of cloud based one. 我们项目中的POC使用托管在云中的IBM Watson Discovery服务进行自然语言分析,但是我们公司希望使用一种内部解决方案来进行自然语言分析,而不是基于云的解决方案。

Is it possible to replace IBM Watson discovery API completely with IBM Watson Explorer. 是否可以将IBM Watson Discovery API完全替换为IBM Watson Explorer。

I did some research and found that Explorer does not have Node JS APIs. 我进行了一些研究,发现资源管理器没有Node JS API。

Also IBM Watson Explorer Rest API can be used for simpler use cases like searching. 此外,IBM Watson Explorer Rest API还可用于更简单的用例,例如搜索。

Please help me in this regard as my knowledge on these two tools is limited. 在这方面请帮助我,因为我对这两个工具的了解有限。

To answer your question in short, yes it can be done. 简而言之,要回答您的问题,可以的。

Watson Explorer does have an API interface and yes it can be integrated with Node JS as well, it does not have a native npm package...I personally have implemented a very complex solution for a very reputed an automotive client using WEX as the Backend and Data Ingestion engine and Node JS on top, acting as the orchestrator and the UI. Watson Explorer确实具有API接口,是的,它也可以与Node JS集成,它没有本机的npm包...我个人已经为使用WEX作为后端的知名汽车客户实现了非常复杂的解决方案以及Data Ingestion引擎和Node JS在最上方,充当协调器和UI。

You may want to see this post: https://developer.ibm.com/answers/questions/259089/rest-apis-for-wex-search/ 您可能想看一下这篇文章: https : //developer.ibm.com/answers/questions/259089/rest-apis-for-wex-search/

> On Linux: {hostname}/vivisimo/cgi-bin/velocity?v.app=api-run
> Windows : {Hostname }/vivisimo/cgi-bin/velocity.exe?v.app=api-run

The api-runner have all the api's listed and one can also test them against the search collections (search collections are the equivalent to a table where the data is ingested and there are a lot of custom configurations which can be applied to make use of, for advance use). 该api运行程序列出了所有api,并且还可以针对搜索集合进行测试(搜索集合等效于一个表,其中提取了数据,并且可以应用许多自定义配置,以便提前使用)。

So for using WEX with Node JS, you can make use of the api-runner url's and directly query WEX Engine. 因此,对于将WEX与Node JS一起使用,您可以利用api-runner网址并直接查询WEX Engine。

This is how a sample GET query url may look like: 这是示例GET查询网址的样子:

var link1 = 'http://' + WEX_IP + ':9080/vivisimo/cgi-bin/velocity?v.function=query-search&v.username='+username+'&v.password='+password+'&v.app=api-rest&v.indent=true&sources=' + WEX_col_name + '&start=0&num=15&v.app=api-rest&query=sortby:sort_severity%20AND%20sortby:Create_Date_desc%20AND%20Create_Date:>=03/30/2018%20AND%20case_flag:1%20AND%20NOT%20case_flag:0'

Hope this helps. 希望这可以帮助。

PS: The WEX API's return data in xml format, so if one is comfortable in xml parsing, one can use that or as in my case, I used xml2json package on node to covert xml to json object and then parse that to display the required fields on the UI. PS:WEX API以xml格式返回数据,因此,如果一个人可以进行xml解析,则可以使用它,或者像我这样,我在节点上使用xml2json包将xml转换为json对象,然后进行解析以显示所需的内容用户界面上的字段。

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

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