

文档 AWS SDK 示例 GitHub 存储库中还有更多 [S AWS DK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 Amazon Comprehend 的代码示例 AWS SDKs
<a name="comprehend_code_examples"></a>

以下代码示例向您展示了如何将 Amazon Comprehend 与软件开发套件 (SDK) AWS 配合使用。

*操作*是大型程序的代码摘录，必须在上下文中运行。您可以通过操作了解如何调用单个服务函数，还可以通过函数相关场景的上下文查看操作。

*场景*是向您展示如何通过在一个服务中调用多个函数或与其他 AWS 服务服务结合来完成特定任务的代码示例。

**更多资源**
+  **[Amazon Comprehend 开发人员指南](https://docs.aws.amazon.com/comprehend/latest/dg/what-is.html)**——有关 Amazon Comprehend 的更多信息。
+ **[Amazon Comprehend API 参考](https://docs.aws.amazon.com/comprehend/latest/APIReference/welcome.html)**——有关所有可用的 Amazon Comprehend 操作的详细信息。
+ **[AWS 开发者中心](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23comprehend)** — 您可以按类别或全文搜索筛选的代码示例。
+ **[AWS SDK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)** — 包含首选语言完整代码的 GitHub 存储库。包括有关设置和运行代码的说明。

**Contents**
+ [基本功能](comprehend_code_examples_basics.md)
  + [操作](comprehend_code_examples_actions.md)
    + [`CreateDocumentClassifier`](comprehend_example_comprehend_CreateDocumentClassifier_section.md)
    + [`DeleteDocumentClassifier`](comprehend_example_comprehend_DeleteDocumentClassifier_section.md)
    + [`DescribeDocumentClassificationJob`](comprehend_example_comprehend_DescribeDocumentClassificationJob_section.md)
    + [`DescribeDocumentClassifier`](comprehend_example_comprehend_DescribeDocumentClassifier_section.md)
    + [`DescribeTopicsDetectionJob`](comprehend_example_comprehend_DescribeTopicsDetectionJob_section.md)
    + [`DetectDominantLanguage`](comprehend_example_comprehend_DetectDominantLanguage_section.md)
    + [`DetectEntities`](comprehend_example_comprehend_DetectEntities_section.md)
    + [`DetectKeyPhrases`](comprehend_example_comprehend_DetectKeyPhrases_section.md)
    + [`DetectPiiEntities`](comprehend_example_comprehend_DetectPiiEntities_section.md)
    + [`DetectSentiment`](comprehend_example_comprehend_DetectSentiment_section.md)
    + [`DetectSyntax`](comprehend_example_comprehend_DetectSyntax_section.md)
    + [`ListDocumentClassificationJobs`](comprehend_example_comprehend_ListDocumentClassificationJobs_section.md)
    + [`ListDocumentClassifiers`](comprehend_example_comprehend_ListDocumentClassifiers_section.md)
    + [`ListTopicsDetectionJobs`](comprehend_example_comprehend_ListTopicsDetectionJobs_section.md)
    + [`StartDocumentClassificationJob`](comprehend_example_comprehend_StartDocumentClassificationJob_section.md)
    + [`StartTopicsDetectionJob`](comprehend_example_comprehend_StartTopicsDetectionJob_section.md)
+ [场景](comprehend_code_examples_scenarios.md)
  + [构建 Amazon Transcribe 流式传输应用程序](comprehend_example_cross_TranscriptionStreamingApp_section.md)
  + [构建 Amazon Lex 聊天机器人](comprehend_example_cross_LexChatbotLanguages_section.md)
  + [创建消息应用程序](comprehend_example_cross_SQSMessageApp_section.md)
  + [创建用于分析客户反馈的应用程序](comprehend_example_cross_FSA_section.md)
  + [检测文档元素](comprehend_example_comprehend_Usage_DetectApis_section.md)
  + [检测从图像中提取的文本中的实体](comprehend_example_cross_TextractComprehendDetectEntities_section.md)
  + [对示例数据运行主题建模任务](comprehend_example_comprehend_Usage_TopicModeler_section.md)
  + [训练自定义分类器并对文档进行分类](comprehend_example_comprehend_Usage_ComprehendClassifier_section.md)