【发布时间】:2017-09-27 10:53:37
【问题描述】:
我正在构建一个 Web 应用程序,当我输入网页时,它会获取网页的文本内容,对其进行标记并将每一行提供给经过训练的分类器,我想要对那些行置信度参数 > 0.98。以下是取自 bluemix 网站的示例:
{
"classifier_id": "10D41B-nlc-1",
"url": "https://gateway.watsonplatform.net/natural-language-classifier /api/v1/classifiers/10D41B-nlc-1/classify?text=How%20hot%20wil/10D41B-nlc-1",
"text": "How hot will it be today?",
"top_class": "temperature",
"classes": [
{
"class_name": "temperature",
"confidence": 0.9998201258549781
},
{
"class_name": "conditions",
"confidence": 0.00017987414502176904
}
]
}
现在在上面的例子中,我想用 class_name: temperature where confidence > 0.95.
#if class.temperature.confidence > 0.98
#do something with it
有可能吗?
【问题讨论】:
标签: python nlp ibm-cloud classification ibm-watson