对于大多数用户而言,建议通过我们提供的客户端库使用 Cloud Natural Language API,这种方法最为简单。这些客户端库使用每种受支持语言的自然规范和样式,为开发者带来优化的体验。它们还可减少您必须编写的样板代码,因为它们在设计时考虑让您使用服务隐喻,而不是实现细节或服务 API 概念。如需详细了解 Cloud 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"]],[],[],[],null,["# APIs and Reference\n\nThe easiest and recommended way for most users to use the Cloud Natural Language API is with our provided [client libraries](/natural-language/docs/reference/libraries). They provide an optimized developer experience by using each supported language's natural conventions and styles. They also reduce the boilerplate code you have to write because they're designed to enable you to work with service metaphors in mind, rather than implementation details or service API concepts. You can find out more about client libraries for Cloud APIs in [Client Libraries Explained](/apis/docs/client-libraries-explained).\n\n\u003cbr /\u003e\n\n[Get Started](/natural-language/docs/sentiment-analysis-client-libraries)\n\nIf you are an advanced user and our client libraries don't meet your specific needs, you can also develop your own client libraries to directly access Cloud Natural Language's REST/HTTP and gRPC interfaces. You'll find all the relevant resources in the [Service APIs](/natural-language/docs/reference/service_apis_overview) section. \n\nLibraries and APIs\n------------------\n\n- [### Cloud Natural Language Client Libraries\n Start using the Cloud Natural Language API in your language of choice.](/natural-language/docs/reference/libraries)\n- [### Service APIs\nWrite your own client code for Cloud Natural Language API using its REST and RPC APIs.](/natural-language/docs/reference/service_apis_overview) \n\nOther Reference\n---------------\n\n- [### Command-Line Reference\n Use the Cloud Natural Language API with the Google Cloud CLI.](/sdk/gcloud/reference/ml/language)\n- [### Language Support\n Languages currently supported by the Cloud Natural Language API.](/natural-language/docs/languages)"]]