Hello guys, welcome to the 14 nine session of using Microsoft both framework Luis and cognitive services tutorials for beginners. In this session, we will continue with the previous session using text analysis API often key phrases and sentiment. Let us start with the key phrase copy this method, change name and use key phrase a sync method. This method takes multi language batch input as a parameter instead of batch input changes. It takes a list of multi language input and we can pass text off multiple languages. So we need to specify which language is used in the text of the key phrases from the document.
If found, then return it with comma separated. Otherwise return not found any key phrases and make a call to this method from the dialog. Save all files and journeys. Create a new conversation. Here I'm using some quotes. Let's try these guys.
And for this we got snipers person and now I'm going to obtain sentiment. Let us copy this method change name to obtain sentiment in To use sentiment often score from each score is the type of doubles which represent sentiment and return that score for text is score. Let us see on the high end carny conversation. Here I am writing some text related to reviews of any hotel because Traffic Services needs to improve. Here we got zero point cleaning and sentiment means it's about a negative Customer service is great He got 0.1 rules it's positive. And let's try those services.
Me God 0.05, which means it's negative what we have done in this session. Here is a method to retrieve key phrase. We have used key phrases think method and declare key phrases from key phrases property. And here is a method for retrieving sentiment. We use sentiment a sync method and options code. Thanks for watching this video.
If you have any doubts, please feel free to contact me. Have a nice day.