Explore being able to translate larger documents using the TranslateArray method.
Now, breaking apart sentences is a useful function anyway.…Certainly you can use it with translations,…but you can use it in other scenarios as well.…But, let me show you another way of doing translations…when you have larger documents…that you want to translate in one go.…So not sentence by sentence, and not by…passing it as querystring as you saw up here,…but perhaps as the body of a post message.…Let's see how.…So that function is called translateArray…so translateArray lets the final function like that…and as usual, I'm going to create…const requestOptions, will be get requestOptions…but I'm going to add a header this time.…
requestOptions.header, headers, would be…content type shall be text / xml…and now is when the interesting part comes in…is where I get to specify wherever I wish…to have translated as the body of the message.…The body of the request has to follow…a certain format that looks like this.…Now again, I'm using that back techoperator to…easily able to write lots of xml within my code.…
But basically what I'm doing over here…
- 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 Intermediate
Learning Microsoft Cognitive Services for Developerswith Sahil Malik1h 42m Intermediate
Creating Bots with the Microsoft Bot Framework, Part 1with Scott Peterson45m 41s Intermediate
Microsoft Cognitive Services for Developers: 1 Visionwith Sahil Malik2h 35m 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.