Cloud Natural Language API 支持多种语言。
您可以在请求中使用可选的 language 参数指定这些语言。语言代码参数与 ISO-639-1 或 BCP-47 标识符一致。如果您未指定 language 参数,则 Natural Language API 将针对请求自动检测语言。
[[["易于理解","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-08-11。"],[],[],null,["# Language Support\n\nThe Cloud Natural Language API supports a variety of languages.\nThese languages are specified within a request using the optional [`language`](/natural-language/docs/reference/rest/v1/documents#Document.FIELDS.language)\nparameter. Language code parameters conform to\n[ISO-639-1](https://en.wikipedia.org/wiki/ISO_639-1) or\n[BCP-47](https://tools.ietf.org/html/bcp47) identifiers.\nIf you do not specify a `language` parameter, then the language for\nthe request is auto-detected by the Natural Language API.\n\nThe list of supported languages differs depending on the feature.\n\nContent classification\n----------------------\n\n### [V2 Model](/natural-language/docs/reference/rest/v1/ClassificationModelOptions)\n\n### [V1 Model](/natural-language/docs/reference/rest/v1/ClassificationModelOptions)\n\nSyntactic analysis\n------------------\n\nEntity analysis\n---------------\n\nSentiment analysis\n------------------\n\nEntity sentiment analysis\n-------------------------\n\nText moderation\n---------------\n\n\\*language support is limited based on the type of text (eg. webpage, chat message, etc) for some attributes. In any case, we recommend thorough evaluation for your use case."]]