Hello guys, welcome to the 48 session of using Microsoft Bot Framework Louis and cognitive services tutorials for beginners. In this session the reason for this text analysis API and how to use it. x analysis API is very useful if you want to perform some operations or user generated content. Using it, we can detect sentiment, key phrases, and language from your text. Using Language API, we can detect which language is used in a given text. It may do multiple languages.
It also includes school so we can identify the domain language. The key phrase APA returns a list of strings denoting the key talking points in the input text. Currently, it supports only English, German, Spanish and Japanese. sentiment analysis is very important. If you're developing a system in which a large number of user will keep repeating And you don't have such a time to read those on using sentiment analysis, we can sentiment for given text. Its value will be between zero to one, zero represents negative and one represents positive response.
I have already installed language package from a new game and creating new dialogue in which just often text from the user and also create constant for key and Richard. Here is new helper class, in which I have just added required namespaces and updated message controllers. To create new text analysis API, click on new search for text select text analysis EPA click on Create for those required Click on Create button. I have already created one so open it click on overview. Here my region is inverse. click on copy any update both filings.
Now and starting with protecting language that is open helper Can you make a mean often language which takes the key, digit and tax from parameter. First of all we need to create an instance of text analytics To update key region, we need to use the tech language a sync method. It takes batch input as a parameter, we can pass multiple texts to this method to perform the operation. However, in this session, we are just passing one line type that user writes. Let us create instance of batch input which takes a list of inputs. It takes two parameters.
First is document ID, in which we can uniquely identify the result of this specific line when we are passing multiple items in the list. All results for the store and the documents property which contains a result for each document. So, that is often first and second languages property. This is also list. Now check that if it got any items then display its name. Otherwise return unable to detect language and call this method from the dialogue The stream I say that we got to all files and run it create a new conversation.
Hello How are you? Here we got English. I have opening to translate text in another language. French copy text and here we got French notice translated to Hindi find it we got him And also try for machine learning on proper language as per text that we are giving. Now, let us see what we have learned in this session. We saw what is text analysis and understood its various API's.
Here is an example to identify language from text. For this we need to use detect language a sync method and pass batch input as a parameter. In next session we will see how to detect key phrases and sentiment. Thanks for watching this video. If you have any doubts, please feel free to contact me. Have a nice day.