In this video, learn about the ability of Translate Text API to break apart longer paragraphs into smaller sentences.
- [Instructor] Now, while we're doing all this translations,…you may have noticed that we're…passing them as a get request.…And, there is a finite length…to how big this request can be,…certainly it's not suitable for extremely large documents.…So, you probably want to break this sentence by sentence.…That's one way of solving this,…and another way of solving this…is being able to send a whole paragraph at once.…So, first let's see the ability for the translate text API…to break a longer text into smaller sentences.…
Let's see how that works.…So let's go down here and create a new function called…break sentences long text,string.…Const request options is equal to get request options,…and now I'll simply say request.get to…the config.speech.translateTextAPI.endPoint…break sentences, question mark,…text equals, I'll put a quote there.…
And I'll say encode URI component, because we are passing it…as a URL, so whatever input text was given to us,…plus what language are we working in?…Language, and I'll just go with English,…
Author
Released
4/10/2018- Using the Translate Text API
- Getting supported languages
- Writing code to translate between languages
- Performing text to speech
- Setting up speech to text
- Writing code for speaker identification
Skill Level Advanced
Duration
Views
Related Courses
-
Creating Bots with the Microsoft Bot Framework, Part 1
with Scott Peterson45m 41s Intermediate -
Learning Microsoft Cognitive Services for Developers
with Sahil Malik1h 42m Intermediate
-
Introduction
-
Welcome57s
-
What you should know1m 37s
-
-
1. The Basics
-
Introduction2m 56s
-
Set up a Node.js project4m 34s
-
-
2. Translation Text API
-
Set up a project1m 39s
-
Get language names5m 7s
-
Break apart longer sentences3m 23s
-
Get languages for Speak1m 53s
-
Performing Text-to-Speech3m 46s
-
-
3. Bing Speech API
-
Speech to Text5m 5s
-
Bing Speech Text-to-Speech3m 59s
-
4. Speaker Recognition API
-
Write business objects1m 41s
-
Enrolling the first user6m 3s
-
Enrolling the second user2m 14s
-
Identifying speakers4m 53s
-
Conclusion
-
Next steps1m 9s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Break apart longer sentences