In order to use any COG services API, you first need to register it in Azure. Walk through that process and extract the necessary keys.
- [Instructor] Next, let's talk about the Bing Spell Check API. Now, before I dive into the specifics of the Bing Spell Check API, let me introduce with the code I'll be working with. The code is very simple. Go into Exercise Files, Chapter One, folder four, and pick the end code, the baseproject.zip. Unzip it in a folder of your choice. I have unzipped it in a folder called Bing Spell Check. Go ahead and run npm install, and that should give you the node modules folder, And then I went ahead and made some very minor changes, like I imported star as request from request, removed the console log, and I added the text analytics API keys from the previous chapter.
For your convenience, I have placed the starter state of my project in chapter three, folder one, in the start folder. With your project setup, now let's focus on the Bing Spell Check API. Like most other APIs, I need to register this API in the Azure portal before I can use it. So go to azure.com, click on the portal link, go ahead and sign in, and click on the Create a Resource button.
Search for Bing Spell Check v7 API. Choose to create it. So I'm going to call it My Bing Spell Check API. Now note that there is no free tier. So please keep that in mind, it will cost you if you use it. I'll put it in the existing resource group, or you can create a new one. Read this text, make sure you agree with it, and click on the create button.
Now once this resource is created, go ahead and visit that resource. And from here, we'll need to grab a few things. So let me go back to my code for a second here, and go to config.ts. The structure of the information that I need for Bing Spell Check API is actually identical to the textAnalytics API. So I'm going to copy paste this node, and call it bingSpellCheck, and I'll simply update these values.
So let's go into My Bing Spell Check, copy this end point, and place it here. Go back to the Azure portal. Click on Show access keys. Then choose to copy the keys presented here. Remember, you need to copy your keys, my keys will not work for your tenancy, because by the time this code ships, I will have deleted these keys. My project structure is all set up now.
I can start using the Bing Spell Check API.
- Text Analytics API
- Detecting language using text analytics
- Detecting key phrases and sentiment
- Bing Spell Check API
- Translator Text API
- Writing code for translating between languages
- Performing text-to-speech
- Language Understanding (LUIS)
- Writing code to create a LUIS app
Skill Level Advanced
Creating Bots with the Microsoft Bot Framework, Part 1with Scott Peterson45m 41s Intermediate
Learning Microsoft Cognitive Services for Developerswith Sahil Malik1h 42m Intermediate
1. The Basics
2. Text Analytics API
3. Bing Spell Check API
4. Translator Text API
6. LUIS Authoring APIs
Next steps1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.