如何获得Watson NLU使用的API事务数? [英] How can I get number of API transactions used by Watson NLU?

查看:76
本文介绍了如何获得Watson NLU使用的API事务数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AlchemyLanguage用于返回任何调用期间发生的API事务的数量,这在进行组合调用时特别有用。

AlchemyLanguage used to return the number of API transactions that took place during any call, this was particularly useful when making a combined call.

我没有看到相同的结果每个REST调用获得这些结果的方法。

I do not see the equivalent way to get those results per REST call.

有没有办法跟踪或计算?我担心某些子请求之类的事情,例如当您对实体提出要求时,是否算为两个,或者每个识别的实体加上一个附加呼叫?

Is there any way to track or calculate this? I am concerned about things like some of the sub-requests like when you ask for sentiment on entities does that count as two, or one plus an additional call per recognized entity?

推荐答案

目前尚无法从API本身跟踪交易。要对此进行跟踪(尤其是成本估算),您必须转到Bluemix中的使用情况仪表板。要找到它:登录到Bluemix,单击Manage,然后选择Billing and Usage,最后选择Usage。在页面底部,您将找到所有认证服务的列表。扩展其中的任何一个将显示使用情况以及当月的总费用。

There's currently no way to track the transactions from the API itself. To track this (particularly for cost estimates), you'll have to go to the usage dashboard in Bluemix. To find it: sign in to Bluemix, click Manage, then select Billing and Usage, and finally select Usage. At the bottom of the page you'll se a list of all your credentialed services. Expanding any of those will show the usage plus total charges for the month.

就NLU服务的计费方式而言,不一定要像您一样针对每个API请求提到。服务以单位计费,并在定价页面中计费( https: //console.ng.bluemix.net/catalog/services/natural-language-understanding ):

As far as how the NLU service is billed, it's not necessarily on a per API request as you mentioned. The serivce is billed in "units" and from the pricing page (https://console.ng.bluemix.net/catalog/services/natural-language-understanding):


一个NLU项目基于丰富的数据单元的数量和应用的
丰富功能的数量。数据单位不超过10,000个
个字符。例如:从15,000个字符中提取实体和情感
是(2数据单位* 2丰富
特征)= 4个NLU项目。

A NLU item is based on the number of data units enriched and the number of enrichment features applied. A data unit is 10,000 characters or less. For example: extracting Entities and Sentiment from 15,000 characters of text is (2 Data Units * 2 Enrichment Features) = 4 NLU Items.

总的来说,了解您的交易使用情况的最佳方法是运行一些测试请求,然后检查Bluemix使用情况仪表板。

So overall, the best way to understand your transaction usage would be to run a few test requests and then check the Bluemix usage dashboard.

这篇关于如何获得Watson NLU使用的API事务数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆