Cloud Natural Language API v1beta1 弃用通知
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Cloud Natural Language API v1beta1 版本将于 2019 年 12 月 27 日关停。在此日期之后,尝试调用该 API 将失败。您必须在此日期之前升级到该 API 和客户端库的 v1 版本。
这两个版本之间显著的实现区别是情感类型的属性。
- 在 v1beta1 中,特性是
"polarity"
和 "magnitude"
,两者一起用于计算情感分数(情感的强烈程度)
- 在 v1 中,特性是
"magnitude"
和 "score"
,其中 "score"
的值对应于 v1beta1 的 "polarity"
和 "magnitude"
的乘积。
如果您的 v1beta1 应用使用 "polarity"
,请进行更新以使用 "score"
的符号:如果 score 为正,则 polarity 为正;如果 score 为负,则 polarity 为负。如果您的应用使用 "polarity" * "magnitude"
,请改为使用 "score"
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-28。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-28。"],[],[]]