Natural Language API 提供了一套非结构化文本分析功能。您只需为自己使用的功能付费,而不需要预先作出承诺。此 API 支持以下功能:
功能类型
说明
实体分析
识别实体,并按类型(例如人物、组织、地点、事件、产品和媒体)添加标签。
情感分析
了解一段文本体现的总体情感。
实体情感分析
了解一段文本中识别出的实体所体现的情感。
语法分析
提取词条和句子、确定词性 (PoS) ,并为每个句子创建依存语法解析树。
内容分类
识别适用于一段文本的内容类别。
文本审核
识别适用于一段文本的有害和敏感类别。
价格单位
Natural Language API 价格取决于每个请求的 Unicode 字符数,以“单元”为单位计算。对于文本审核,每个请求的费用会向上舍入到最接近的 100 个 Unicode 字符的单位,而对于其他所有功能,则会向上舍入到最接近的 1,000 个 Unicode 字符的单位。Unicode 字符包括空格字符和任何标记字符,如 HTML 或 XML 标记。
如果您在 Google Cloud Storage 中存储要分析的文档,或者在使用 Natural Language 的同时还使用了其他 Google Cloud Platform 资源(例如 Google App Engine 实例),那么您还需要支付使用这些服务所产生的费用。请使用 Google Cloud Platform 价格计算器来确定当前费率下其他费用的情况。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],[],[],[],null,["# Pricing\n\nCloud Natural Language pricing\n==============================\n\nThe Natural Language API provides a set of features for analyzing\nunstructured text. You pay only for the features you use with no upfront\ncommitments. The API supports the following features:\n\nPricing units\n-------------\n\nThe Natural Language API pricing is based on the number of Unicode characters in each request, calculated in terms of \"units\". For Text Moderation, the cost per request is rounded up to the nearest unit of 100 Unicode characters and for every other feature, it's rounded to the nearest 1,000 Unicode characters. The Unicode characters include whitespace characters and any markup characters such as HTML or XML tags.\n\nFor example, if you send three requests for Sentiment Analysis that contain 800, 1,500, and 600 characters respectively, you are charged for four units: one for the first request (800), two for the second request (1,500), and one for the third request (600).\n\nPrices for usage of the Natural Language API are computed monthly based on the API feature. The table below provides the price per unit based on the total number of units processed during the billing month.\n\nMonthly prices\n--------------\n\nPrice per 1,000-character unit\n------------------------------\n\nPrice per 1,000-character unit\n------------------------------\n\nPrice per 100-character unit\n----------------------------\n\nIf you pay in a currency other than USD, the prices listed in your currency on [Cloud Platform SKUs](https://cloud.google.com/skus/) apply.\n| The [`annotateText`](/natural-language/docs/reference/rest/v1beta2/documents/annotateText) method enables you to request syntax, sentiment, entity extraction, classification, and moderation features in one call. For pricing purposes, an `annotateText` request is charged as if you had requested each feature separately. For example, an `annotateText` request that returns a syntactic analysis and a classification costs the same as separate syntax analysis and content classification requests.\n\nThis pricing is for applications on personal systems (e.g., phones, tablets,\nlaptops, desktops). Please\n[contact us](https://services.google.com/fb/forms/natural-language-pricing-request/)\nfor approval and pricing to use the Natural Language on embedded devices\n(e.g., cars, TVs, appliances, or speakers).\n\nFor more than 20 million units per month for a customer project (for\nContent Classification, this threshold is 5 million units per month),\nwe would like\nto understand more about your needs, and may be able to build custom solutions.\nTo request a limit above the maximum,\n[contact a sales representative](/contact) to discuss pricing.\n\nGoogle Cloud Platform costs\n---------------------------\n\nIf you store documents to be analyzed in Google Cloud Storage, or use other\nGoogle Cloud Platform resources in tandem with the Natural Language,\nsuch as Google App Engine instances, then\nyou will also be billed for the use of those services. See the\n[Google Cloud Platform Pricing Calculator](/products/calculator)\nto determine other costs based on current rates.\n\nTo view your current billing status in\nthe Cloud console, including usage and your current bill, see the\n[Billing page](https://console.cloud.google.com/billing).\nFor more details about managing your account, see the\n[Cloud Billing Documentation](/billing/docs) or\n[Billing and Payments Support](/support/billing).\n\nWhat's next\n-----------\n\n- Read the [Cloud Natural Language documentation](/natural-language/docs).\n- Get started with [Cloud Natural Language](/natural-language/docs/sentiment-analysis-gcloud).\n- Try the [Pricing calculator](/products/calculator).\n- Learn about [Cloud Natural Language solutions and use cases](/architecture?text=Cloud Natural Language).\n\n#### Request a custom quote\n\nWith Google Cloud's pay-as-you-go pricing, you only pay for the services you use. Connect with our sales team to get a custom quote for your organization.\n[Contact sales](/contact?direct=true)"]]