简体   繁体   English

在IBM Watson中训练自然语言分类器

[英]Training Natural language Classifier in IBM watson

I want to train nlc in such way that - If I give an input as - "Sharpies" or "Cakes" or "iPhone6" then it should result in order as intent. 我想以这样的方式训练nlc:-如果我输入为-“ Sharpies”,“ Cakes”或“ iPhone6”,则应按意图显示结果。

But it's not working for all the products, as intent should come for all the product names, where I would need to train NLC with few of product name and it will work for all the products (dynamically). 但这不适用于所有产品,因为应该针对所有产品名称,我需要用很少的产品名称来训练NLC,并且它会(动态地)适用于所有产品。

As we have thousands of products, how can get the intent as "order" for all products instead of adding all in ".csv" (Don't want to hard code all the product names)? 由于我们有成千上万的产品,如何才能获得所有产品的“订购”意图,而不是在“ .csv”中全部添加(不想对所有产品名称进行硬编码)?

Can you please help me with this to retrieve the exact intent for all dyanmical products name as input to NLC? 能否请您帮我找回所有带色产品名称的确切意图,作为NLC的输入?

What you are trying to do is not what NLC is intended for. 您要尝试的不是NLC的目的。

The purpose of intent is to understand what it is the end user is trying to achieve, not what products/keywords may appear in a sentence. 目的是要了解最终用户要实现的目标,而不是理解句子中可能出现的产品/关键字。

For example "I want to buy an iPhone" vs "I want to unlock my iPhone" . 例如, "I want to buy an iPhone""I want to unlock my iPhone" Both mention iPhone but have two very different intents. 两者都提到了iPhone,但有两个截然不同的意图。 In this case with training, you can distinguish between wanting to purchase, vs wanting to unlock. 在这种情况下,通过培训,您可以区分是想购买还是想解锁。

One option you can try is looking at the Alchemy API entity extraction . 您可以尝试的一种方法是查看Alchemy API实体提取

Another option is to use Watson Explorer Studio. 另一个选择是使用Watson Explorer Studio。 But you will need Watson explorer to get it. 但是您将需要Watson Explorer来获取它。 There is Watson Knowledge Studio coming soon, which like WEX-Studio allows you to build custom annotators. 即将推出Watson Knowledge Studio ,它像WEX-Studio一样允许您构建自定义注释器。 You can use these annotators with UIMA to parse your text. 您可以将这些注释器与UIMA一起使用来解析您的文本。

So you could easily build something to understand that "I don't want to buy an iPhone" is not the same as "I want to buy an iPhone" , and have it extract iPhone as a product. 因此,您可以轻松构建一些内容,以了解"I don't want to buy an iPhone""I want to buy an iPhone" ,并且可以将其提取为产品。

There is unsupported old free version of WEX-Studio called Languageware , if you want to see if that can help. 如果您希望查看WEX-Studio的旧免费版本不受支持,则称为Languageware ,它可以帮助您解决问题。 That site contains manual and videos. 该站点包含手册和视频。 Here is a video which I did that gives an example of how you would use it. 这是我做过的视频 ,提供了如何使用它的示例。

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

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