什麼是 Bing 拼字檢查 API?What is the Bing Spell Check API?

Bing 拼字檢查 API 可讓您對文字的內容執行文法與拼字檢查。The Bing Spell Check API enables you to perform contextual grammar and spell checking on text. 大部分的拼字檢查工具都依賴以字典為基礎的規則集,但 Bing 拼字檢查工具卻是利用機器學習和統計機器翻譯來對內容提供正確的校正。While most spell-checkers rely on dictionary-based rule sets, the Bing spell-checker leverages machine learning and statistical machine translation to provide accurate and contextual corrections.

特性Features

多個拼字檢查模式Multiple spell check modes 多個拼字檢查模式可讓您獲得專注於文法和/或拼字的校正。Multiple spell check modes enable you to get corrections focused on grammar and/or spelling.
辨識俚語與非正式用語Slang and informal language recognition 可辨識文字中所用的常用語和非正式用語。Recognize common expressions and informal terms used in text.
區分相似字組Differentiate between similar words 可在發音類似但意義不同的字組 (例如 "see" 和 "sea") 之間找到正確用法Find the correct usage between words that sound similar but differ in meaning (for example, "see" and "sea")
支援品牌、標題和熱門用法Brand, title, and popular usage support 可辨識新品牌、標題和其他新興的熱門用語Recognize new brands, titles, and other popular expressions as they emerge

工作流程Workflow

Bing 拼字檢查 API 可輕易地從任何可發出 HTTP 要求及剖析 JSON 回應的程式設計語言呼叫。The Bing Spell Check API is easy to call from any programming language that can make HTTP requests and parse JSON responses. 此服務可使用 REST API 或 Bing 拼字檢查 SDK 來存取。The service is accessible using the REST API or the Bing Spell Check SDKs.

  1. 建立具備 Bing 搜尋 API 存取權的認知服務 API 帳戶Create a Cognitive Services API account with access to the Bing Search APIs. 如果您沒有 Azure 訂用帳戶,您可以建立免費帳戶。If you don't have an Azure subscription, you can create a free account.
  2. 將要求傳送至 Bing Web 搜尋 API。Send a request to the Bing Web Search API.
  3. 剖析 JSON 回應Parse the JSON response

後續步驟Next steps

首先,請嘗試 Bing 拼字檢查搜尋 API 的互動式示範,以了解如何快速地檢查各種不同的文字。First, try the Bing Spell Check Search API interactive demo to see how you can quickly check a variety of texts.

當您準備好要呼叫 API 時,請建立認知服務 API 帳戶When you are ready to call the API, create a Cognitive services API account. 如果您沒有 Azure 訂用帳戶,可以建立免費帳戶If you don't have an Azure subscription, you can create an account for free.

您也可以瀏覽 Bing 搜尋 API 中樞頁面來探索其他可用的 API。You can also visit the Bing Search API hub page to explore the other available APIs.