简体   繁体   English

IBM Bluemix,nl_understanding-文档在哪里

[英]IBM Bluemix, nl_understanding - where is documentation

I am trying to gain better understanding how IBM Bluemix natural language understanding works. 我试图更好地了解IBM Bluemix自然语言理解的工作原理。 docs docs

I found the following example. 我找到了以下示例。

import sys
import os
sys.path.append(os.path.join(os.getcwd(),'..'))
import watson_developer_cloud
import watson_developer_cloud.natural_language_understanding.features.v1 as features

nlu = watson_developer_cloud.NaturalLanguageUnderstandingV1(version='2017-02-27',
                                                            username='some_username',
                                                            password='some_password')

nlu.analyze(text='this is my experimental text.  Bruce Banner is the Hulk and Bruce Wayne is BATMAN! Superman fears not Banner, but Wayne.',
            features=[features.Entities(), features.Keywords()])

It generates the following output: 它生成以下输出:

{'entities': [{'count': 3,
   'relevance': 0.915411,
   'text': 'Bruce Banner',
   'type': 'Person'},
  {'count': 1, 'relevance': 0.296395, 'text': 'Wayne', 'type': 'Person'}],
 'keywords': [{'relevance': 0.984789, 'text': 'Bruce Banner'},
  {'relevance': 0.958833, 'text': 'Bruce Wayne'},
  {'relevance': 0.853322, 'text': 'experimental text'},
  {'relevance': 0.627454, 'text': 'Hulk'},
  {'relevance': 0.619956, 'text': 'Superman'},
  {'relevance': 0.583188, 'text': 'BATMAN'}],
 'language': 'en'}

What is relevance in this output? 此输出有什么relevance How is it computed? 如何计算? I don't need detailed calculations, as it might be proprietary, but I would like to have basic understanding. 我不需要详细的计算,因为它可能是专有的,但是我想有基本的了解。 I also would like to know how keywords identified? 我也想知道如何识别keywords Is there particular corpus used for keywords identification? 是否有用于识别关键字的特定语料库?

Documentation on IBM website is limited. IBM网站上的文档是有限的。

You can always check out some of the links in our unofficial Watson Landing Page . 您可以随时在我们非官方的Watson Landing Page中查看一些链接。 It has links to the Rebook mentioned above, as well as a link to a nice chatbot implementation that uses NLU. 它具有指向上述Rebook的链接,以及具有使用NLU的不错的聊天机器人实现的链接。

Relevance: Entity relevance score in the range of 0 - 1. A score of 0 means it is not relevant; 相关性:实体相关性得分在0-1的范围内。得分为0表示不相关; 1 means it is highly relevant. 1表示高度相关。

More details in the IBM Redbooks https://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg248398.html?Open 在IBM红皮书中获得更多详细信息https://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg248398.html?Open

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

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