LUIS.ai-First steps with Language Understanding Intelligent Sevice (beta)

LUIS is part of the suite of Microsoft Cognitive Services announced at build.  It allows you to process unstructured language queries and use them to interface with your applications.  It has particular relevance any business process which benefits from human interaction patterns (support, customer service etc.).  Having looked at LUIS from the point of absolute novice, I’ve put together a few points which may be useful to others.

I’ve broken this down into ‘things to do’ when getting started. To illustrate the steps, I’ll use the very simple example of ordering a sandwich.  A sandwich has a number of toppings and can also have sauce on it. 

The role of LUIS is to take plain English and parse it into a structure that my app can process.  When I say “can I order a bacon sandwich with brown sauce” I want LUIS to tell me that a) an order has been placed, b) the topping is bacon, c) the sauce is brown.  Once LUIS has provided that data then my app can act accordingly.

So for LUIS to understand the sandwich ordering language: You need to define entities, define intents and then train and test the model before using it.  Read on to understand what I mean by these high level statements. 

1. Define your ‘entities’

These are the ‘things’ you are talking about.  For me, my entities are ‘sauce’, and ‘topping’.  I also have ‘extra’ which is a generalisation of any other unstructured information the customer might want to provide – so things like Gluten free, no butter etc.

2. Define your ‘intents’

These are the context in which the entities are used.  For me, I only have one intent defined which is ‘order’.

3. Test/train the model – use ‘utterances’

After entities and intents have been defined you can begin to test the model. 

Initially, the untrained LUIS will be really bad at understanding you.  That’s the nature of machine learning. But as it is trained with more language patterns and told what these mean it will become increasingly accurate.

To begin the process LUIS needs to be interacted with.  LUIS calls interactions ‘utterances’.  An utterance is an unstructured sentence that hasn’t been processed in any way.

In the portal you can enter an utterance to train or test the model. 

Here, I am adding the utterance “can I order a sausage sandwich with tomato sauce”.  I’ll select the entities that are part of that utterance (sausage and tomato sauce) and tell LUIS what they are.

image

You can repeat this process with as many variations of language as possible, for example “give me a bacon sandwich”, and  “I want a sausage sandwich with brown sauce” etc. It’s recommended to try this exercise with different people as different people will say the same thing with unique speech patterns. The more trained variations the better, basically.  You can, and will come back to train it later though, so don’t feel it has to be 100% at this stage.

Once you go live with the model – LUIS will come across patterns that it cannot fully process, for this the feedback loop for training is very important.  LUIS will log all the interactions it has had, you can access them using the publish button.

imageimage

These logs are important as they give you insight into your customers language.  You should use this data to train LUIS and improve its future accuracy.

4. Use the model

Finally, and I guess most importantly you need to use the model. If you look in the screenshot above there is a box where you can type in a query, aka an utterance. The query string will look something like this:

https://api.projectoxford.ai/luis/v1/application?id=<appid>&subscription-key=<subscriptionkey>&q=can%20i%20order%20a%20bacon%20sandwich%20with%20brown%20sauce

This basically issues a HTTP GET against the LUIS API and returns the processed result in a JSON object. 

image

I’ve annotated the diagram so you can see:

A) the query supplied to LUIS.

B) the topping entity that it picked out.

C) the sauce entity that it picked out.

In addition to this, you will see other things such as the recognised intent, the confidence of the results, etc.  I encourage you to explore the structure of this data.  You can use this data in any application that can issue a HTTP get, and process them accordingly. 

I’ll write later on bot framework which has built in forms engine to interface with LUIS models, enhancing the language capabilities with structured processing.

This is a simple example but hopefully it shows the potential use cases for this, and gives you some pointers to get started.

13 Replies to “LUIS.ai-First steps with Language Understanding Intelligent Sevice (beta)”

  1. Packers and Movers Gurgaon – http://getpackers.com/packers-and-movers-gurgaon/ Packers and Movers Delhi – http://getpackers.com/packers-and-movers-delhi/ Movers and Packers Gurgaon – http://getpackers.com/packers-and-movers-gurgaon/ Movers and Packers Delhi – http://getpackers.com/packers-and-movers-delhi/ Packers and Movers in Gurgaon – http://getpackers.com/packers-and-movers-gurgaon/ Packers and Movers in Delhi – http://getpackers.com/packers-and-movers-delhi/ Movers and Packers in Gurgaon – http://getpackers.com/packers-and-movers-gurgaon/ Movers and Packers in Delhi – http://getpackers.com/packers-and-movers-delhi/

  2. Make a list of packers and movers agencies that are active in your region. Search for their reliability and reputation. You must hire a well established and reputed moving agency for your relocation. Let us understand what a reputed moving agency can do for you. A reputed moving agency has huge manpower who are very skillful and are expert in the job of relocation. You don’t need to worry about all your belongings during the process of relocation. Moving agencies take care of all your belongings while all the processes of relocation. Packers and movers in Hyderabad Movers and packers in Hyderabad Packers and movers Hyderabad Movers and Packers Hyderabad http://www.multipackersmovers.in/packers-and-movers-in-hyderabad/

  3. The lean belly breakthrough Review to find out why The lean belly breakthrough pdf is the Right Weight Loss Solution. https://twitter.com/leanbellybreak https://www.biostars.org/u/36535/ https://www.leeduser.com/user http://www.fontspace.com/profile/leanbellybreakthrough https://disqus.com/by/leanbellybreakthrough/ https://web.facebook.com/Lean-Belly-Breakthrough-1647279418908264/ https://philpapers.org/profile/412110 http://armorgames.com/user/leanbellybreakthroug https://www.wikidot.com/account/settings#/about https://h30434.www3.hp.com/t5/user/viewprofilepage/user-id/2883228 https://profiles.wordpress.org/leanbellybreak https://issuu.com/leanbellybreakthrough http://ttlink.com/leanbellybreakthrough http://www.kpbs.org/users/leanbellybreakthrough/#information https://vimeo.com/user62047075 https://audioboom.com/leanbelly http://tune.pk/user/leanbellybreakthrough http://lockerdome.com/leanbellybreakthrough/ https://forum.omeka.org/users/leanbellybreakthroug/preferences https://community.sony.com/t5/user/viewprofilepage/user-id/326385 https://www.mixcloud.com/leanbellybreakthrough/ https://www.codecademy.com/leanbellybreakthrough https://www.engagemedia.org/author/mcgregorvsalvarez http://www.mindmakers.org/users/2966 https://developer.jboss.org/people/leanbellybreakthrough https://www.createspace.com/pub/member.dashboard.do https://bitbucket.org/leanbellybreakthrough/ https://www.xmarks.com/profile/leanbellybreakthrough https://trello.com/leanbellybreakthrough http://www.bagtheweb.com/u/leanbelly/profile https://www.zomato.com/users/leanbellybreakthrough-37771618 http://www.awn.com/users/leanbellybreakthrough http://www.inaturalist.org/people/leanbellybreakthrough http://www.kongregate.com/accounts/leanbelly http://boards.lovelyish.com/profile/leanbellybreakthrough http://bridgewinners.com/profile/leanbelly-breakthrough/ http://www.blurtit.com/u/3137834 https://en.gravatar.com/leanbellybreakthroughbook http://support.zathyus.com/profile/4009390/ https://dribbble.com/leanbelly http://cowbird.com/njcqb6/profile/ https://food52.com/users/dashboard http://www.allnumis.com/user/profile/leanbellybreakthrough http://www.trover.com/u/leanbellybreakthrough http://www.dphotographer.co.uk/user/leanbellybreakthrough https://olioboard.com/users/leanbellybreakthrough http://profiles.tigweb.org/leanbellybreak https://www.intensedebate.com/people/leanbelly https://getsatisfaction.com/people/leanbellybreakthrough https://www.goodreads.com/user/show/64316639-leanbellybreakthrough https://musicbrainz.org/user/leanbellybreakthrough https://www.ted.com/profiles/7109111 http://lhcathomeclassic.cern.ch/sixtrack/view_profile.php?userid=455183 http://en.community.dell.com/members/leanbellybreakthrough https://myspace.com/leanbellybreak https://www.scribd.com/user/346233598/leanbellybreakthrough http://www.wikidot.com/user:info/leanbelly http://leanbellybreakthrough.full-design.com/ http://leanbellybreakthrough.blogkoo.com/ http://leanbellybreakthrough.blogdigy.com/ http://leanbellybreakthrough.blogdon.net/ http://leanbellybreakthrough.bloguetechno.com/ http://leanbellybreakthrough.mybjjblog.com/ http://leanbellybreakthrough.tinyblogging.com/ http://leanbellybreakthroughpdf.tribunablog.com/ http://leanbellybreakthrough.tblogz.com/ http://leanbellybreakthrough.canariblogs.com/ http://leanbellybreakthrough.suomiblog.com/ http://www.pearltrees.com/leanbellybreakthrough https://www.vbprofiles.com/topics/lean-belly-breakthrough-review-worth-it-588dc45730731b44db00001a https://storify.com/leanbelly http://www.slideshare.net/stevenjobs2/lean-belly-breakthrough-review-worth-it http://leanbelly.canalblog.com/ http://leanbellybreakthrough.webgarden.com/ http://leanbellybreakthrough.angelfire.com/ http://leanbellybreakthrough.pointblog.net/ http://weblog.com/lean-belly-breakthrough-review.html http://leanbellybreakthroughsystem.blogspot.com/ https://leanbellybreakthroughpdf.tumblr.com/ https://leanbellybreakthroughpdfblog.wordpress.com/ https://leanbellybreakthroughpdf.jimdo.com/ http://leanbellybreakthroughpdf.virb.com/ http://leanbellybreakthroughreview.snack.ws/ http://leanbelly.livejournal.com/570.html http://leanbellybreakthroughreviews.yolasite.com/ http://leanbellybreakthroughreview.yolasite.com/ http://leanbellybreakthroughreview.portfolik.com/ http://leanbellybreakthroughpdf.nation2.com/ leanbellybreakthroughpdfreview.simplesite.com http://leanbellybreakthrough.1msite.com http://leanbellybreakthrough.total-blog.com/ http://leanbellybreakthrough.blogocial.com http://leanbellybreakthrough.onesmablog.com http://leanbellybreakthrough.thezenweb.com http://leanbellybreakthrough.alltdesign.com/ http://leanbellybreakthroug.hazblog.com/ http://leanbellypdf.sosblogs.com http://leanbellybreakthroughpdf.bravesites.com/ https://leanbellybreakthroughpdf.wikispaces.com http://leanbellybreakthrough.postbit.com http://leanbellybreakthrough.webspawner.com/ http://leanbellybreakthrough.jigsy.com/ http://leanbellybreakthrough.greatwebsitebuilder.com/ http://leanbellybreakthrough.emyspot.com/ http://leanbellybreakthroughreview.beep.com/ http://leanbellybreakthroughreview.weebly.com/ http://leanbellybreakthrough.kinja.com/lean-belly-breakthrough-review-does-it-work-1791753087 https://www.linkedin.com/pulse/lean-belly-breakthrough-pdf-reviews-mezbaul-islam-shohel

  4. Top Packers and Movers in India An ISO 9001 – 2008 certified Most Trusted Best Movers and Packers Company in India, We providing A complete solution of household goods shifting and car transport services. http://www.packers-and-movers-indore.in/ http://packers-and-movers-indore.in/blog/ http://www.manishpackersmoversindore.in/ http://www.manishpackersmoversindore.in/blog/ http://www.manishpackersmoversindore.in/packers-movers-bangalore.html http://www.manishpackersmoversindore.in/packers-movers-chennai.html http://www.manishpackersmoversindore.in/packers-movers-chandigarh.html http://www.manishpackersmoversindore.in/packers-movers-delhi.html http://www.manishpackersmoversindore.in/packers-movers-gurgaon.html http://www.manishpackersmoversindore.in/packers-movers-hyderabad.html http://www.manishpackersmoversindore.in/packers-movers-indore.html http://www.manishpackersmoversindore.in/packers-movers-jaipur.html http://www.manishpackersmoversindore.in/packers-movers-jabalpur.html http://www.manishpackersmoversindore.in/packers-movers-kolkata.html http://www.manishpackersmoversindore.in/packers-movers-mumbai.html http://www.manishpackersmoversindore.in/packers-movers-nagpur.html http://www.manishpackersmoversindore.in/packers-movers-raipur.html http://www.manishpackersmoversindore.in/packers-movers-surat.html http://www.manishpackersmoversindore.in/packers-movers-pune.html http://www.manishpackersmoversindore.in/packers-movers-ahmedabad.html http://www.manishpackersmoversindore.in/packers-movers-ghaziabad.html http://www.manishpackersmoversindore.in/packers-movers-noida.html http://www.manishpackersmoversindore.in/packers-movers-lucknow.html http://www.manishpackersmoversindore.in/packers-movers-kanpur.html http://www.manishpackersmoversindore.in/packers-movers-vadodara.html

  5. Nice blog ,thank you for sharing this valuable information .keep blogging.And please provide some more information please visit our website you get more information regarding Packers and Movers Services.

Leave a Reply

Your email address will not be published. Required fields are marked *