

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用自訂詞彙篩選刪除、遮蔽或標記單字
<a name="vocabulary-filtering"></a>

自訂詞彙篩選是文字檔案，其中包含您要在轉錄輸出中修改的個別單字的自訂清單。

常見的使用案例是移除攻擊性或褻瀆的詞彙；不過，自訂詞彙篩選是完全自訂功能，因此您可以選擇任何您想要的單字。例如，如果您有即將推出的新產品，您可以在會議記錄中遮蔽產品名稱。在這種情況下，您可以讓利益相關者隨時了解最新狀態，同時維持產品名稱機密，直到發布。

詞彙篩選有三種顯示方法：`mask`、`remove` 和 `tag`。請參閱下列範例，了解每個運作方式。
+ **遮蔽**：以三個星號 (\*\*\*) 取代指定的文字。

  ```
  "transcript": "You can specify a list of *** or *** words, and *** *** removes them from transcripts automatically."
  ```
+ **刪除**：刪除指定的單字，在原來位置不留下任何內容。

  ```
  "transcript": "You can specify a list of or words, and removes them from transcripts automatically."
  ```
+ **標籤**：為每個指定的單字增加標籤 (`"vocabularyFilterMatch": true`)，但不會改變單字本身。標記允許快速的文字記錄替換和編輯。

  ```
  "transcript": "You can specify a list of profane or offensive words, and amazon transcribe removes them from transcripts automatically."
  {{...}}
      "alternatives": [
          {
              "confidence": "1.0",
              "content": "profane"
          }
      ],
      "type": "pronunciation",
      "vocabularyFilterMatch": true
  ```

當您提交轉錄請求時，您可以指定自訂詞彙篩選條件和您要套用的篩選方法。 Amazon Transcribe 然後， 會根據您指定的篩選方法，在文字記錄中顯示確切的字詞相符項目時對其進行修改。

自訂詞彙篩選可以套用於批次和串流轉錄請求。若要了解如何建立自訂詞彙篩選，請參閱 [建立詞彙篩選條件](vocabulary-filter-create.md)。若要了解如何套用自訂詞彙篩選，請參閱 [使用自訂詞彙篩選](vocabulary-filter-using.md)。

**注意**  
Amazon Transcribe 會自動遮罩種族敏感術語，但您可以透過聯絡[AWS 技術支援](https://aws.amazon.com/contact-us/)來選擇退出此預設篩選條件。

如需詞彙篩選的影片說明，請參閱：

[![AWS Videos](http://img.youtube.com/vi/TcpSqbr0FnI/0.jpg)](http://www.youtube.com/watch?v=TcpSqbr0FnI)


**詞彙篩選特定的 API 操作**  
 [https://docs.aws.amazon.com/transcribe/latest/APIReference/API_CreateVocabularyFilter.html](https://docs.aws.amazon.com/transcribe/latest/APIReference/API_CreateVocabularyFilter.html), [https://docs.aws.amazon.com/transcribe/latest/APIReference/API_DeleteVocabularyFilter.html](https://docs.aws.amazon.com/transcribe/latest/APIReference/API_DeleteVocabularyFilter.html), [https://docs.aws.amazon.com/transcribe/latest/APIReference/API_GetVocabularyFilter.html](https://docs.aws.amazon.com/transcribe/latest/APIReference/API_GetVocabularyFilter.html), [https://docs.aws.amazon.com/transcribe/latest/APIReference/API_ListVocabularyFilters.html](https://docs.aws.amazon.com/transcribe/latest/APIReference/API_ListVocabularyFilters.html), [https://docs.aws.amazon.com/transcribe/latest/APIReference/API_UpdateVocabularyFilter.html](https://docs.aws.amazon.com/transcribe/latest/APIReference/API_UpdateVocabularyFilter.html) 