1 00:00:01,670 --> 00:00:03,120 - [Instructor] Another service that we'll use 2 00:00:03,120 --> 00:00:05,200 in our translator app that we'll take 3 00:00:05,200 --> 00:00:06,670 a look at later in this lesson 4 00:00:06,670 --> 00:00:09,620 is the Watson Language Translator Service 5 00:00:09,620 --> 00:00:11,540 which not only gives us the ability 6 00:00:11,540 --> 00:00:14,700 to translate text between various languages. 7 00:00:14,700 --> 00:00:18,450 It also is capable of automatically detecting text 8 00:00:18,450 --> 00:00:20,660 as being written in one of over 9 00:00:20,660 --> 00:00:22,520 60 different languages as well 10 00:00:22,520 --> 00:00:24,430 and of course, other cloud vendors 11 00:00:24,430 --> 00:00:27,170 have similar translation capabilities. 12 00:00:27,170 --> 00:00:30,710 Google I believe supports over 100 languages for example 13 00:00:30,710 --> 00:00:33,160 in their translation capabilities, 14 00:00:33,160 --> 00:00:36,360 So not only are you able to translate 15 00:00:36,360 --> 00:00:38,730 to and from English and many other languages, 16 00:00:38,730 --> 00:00:40,490 there's also support for translating 17 00:00:40,490 --> 00:00:42,710 between other languages directly 18 00:00:42,710 --> 00:00:44,950 and you could always potentially go from 19 00:00:44,950 --> 00:00:48,090 English to another language to a third language 20 00:00:48,090 --> 00:00:50,100 and vice versa if in fact 21 00:00:50,100 --> 00:00:52,670 there's no direct translation capability 22 00:00:52,670 --> 00:00:53,800 and that doesn't guarantee 23 00:00:53,800 --> 00:00:55,810 that you'll get the best translation. 24 00:00:55,810 --> 00:00:59,610 In fact that's kind of a fun exercise to play around with 25 00:00:59,610 --> 00:01:02,840 to see as you go from one language to the next 26 00:01:02,840 --> 00:01:05,540 and eventually back to the language you started with 27 00:01:05,540 --> 00:01:06,760 to see whether or not you get 28 00:01:06,760 --> 00:01:08,910 the same text that you started with. 29 00:01:08,910 --> 00:01:10,810 You might experiment with that. 30 00:01:10,810 --> 00:01:12,710 So let's just take a quick look at this demo 31 00:01:12,710 --> 00:01:13,840 and of course we'll use 32 00:01:13,840 --> 00:01:17,300 the language translator service again later as well. 33 00:01:17,300 --> 00:01:19,250 When you go to this page, 34 00:01:19,250 --> 00:01:21,160 if you scroll down you'll see 35 00:01:21,160 --> 00:01:23,730 that you have the ability to choose the language 36 00:01:23,730 --> 00:01:25,880 from which you're going to translate 37 00:01:25,880 --> 00:01:27,870 into which you're going to translate 38 00:01:27,870 --> 00:01:30,050 and by default it's going to 39 00:01:30,050 --> 00:01:32,010 detect the language automatically. 40 00:01:32,010 --> 00:01:34,800 So if I go and say something like 41 00:01:34,800 --> 00:01:39,800 welcome to Python Programming exclamation point, 42 00:01:41,810 --> 00:01:45,270 it detected automatically that the language was in English 43 00:01:45,270 --> 00:01:47,240 and based on that it shows me 44 00:01:47,240 --> 00:01:50,010 what options I'm allowed to translate to 45 00:01:50,010 --> 00:01:51,490 and if you look through here 46 00:01:52,811 --> 00:01:54,137 you'll see that there's quite a different number 47 00:01:54,137 --> 00:01:54,970 of languages I can go to. 48 00:01:54,970 --> 00:01:57,000 So let's say we want to translate that into Spanish 49 00:01:57,000 --> 00:01:59,160 which we'll be doing later on today 50 00:01:59,160 --> 00:02:01,210 or in this lesson rather 51 00:02:01,210 --> 00:02:03,500 and you can see the Spanish translation. 52 00:02:03,500 --> 00:02:07,250 You can also look at the JavaScript object notation response 53 00:02:07,250 --> 00:02:09,910 that was sent back to the app. 54 00:02:09,910 --> 00:02:12,320 In this case in the context of the web browser. 55 00:02:12,320 --> 00:02:14,290 Later on when we use this service, 56 00:02:14,290 --> 00:02:17,860 we will be picking off this translation key 57 00:02:17,860 --> 00:02:20,170 in this dictionary here so that we can get 58 00:02:20,170 --> 00:02:25,170 our translated text for use in our app. 59 00:02:25,470 --> 00:02:28,970 I would recommend just playing around with this a little bit 60 00:02:28,970 --> 00:02:32,483 trying out different languages to have a little bit of fun.