>> Do you know there's a pizza place, totally serious.
There is a pizza place my kids like called
Papa Johns or you have no idea?
>> Hi, my name is John Papa.
>> I'm Brian Clark.
>> Today we're going to learn five things about
NLP, Natural Language Processing.
>> Well, now you just ruined
my answer for the first question.
>> Thing one. What is NLP?
>> NLP stands for Natural Language Processing.
It's about helping improve the human interaction,
human language interaction with the computer. That's it.
>> So, talking to your device.
>> Yeah.
>> Do you often talk to your device?
>> Many times a day actually.
>> Does it an answer back?
>> It does.
>> Is it your friend?
>> Yes. We're quite close now.
>> Really?
>> Yeah.
>> I got to try that.
Thing two. What can you do with it,
and why would I use this?
>> Well, if you think about like
Amazon Alexa, Google Home, Siri,
you can talk to it and then
the AI will try to understand that language that you're
providing to it and break it down or you can even
send like messages and you know
break down text messages as well.
Not text messages in the form of
a mobile device but like strings.
>> Strings?
>> Strings, yes, like that one.
>> All right. You like to break down strings?
>> Yes.
>> Break it down.
>> Yes. So, it will parse
out the string to figure out what words,
what's the grammar being used.
Things like that and there you go.
>> All right. Thing three.
Training. I assume that
we're talking about training of the device here.
How do we train AI to do this for us?
>> Yes. So, to train the AI you need
to provide it some sample data to learn from.
>> Okay.
>> Just like you're training an animal.
The more repetitions that you provide it,
the better it will be at
understanding what you're trying to do.
>> Sit.
>> I already I'm sitting actually.
What am I doing? I don't know what that was about.
>> What was that?
>> But I was trying to get extra sit.
>> Does your dog do that?
>> I was sitting really well.
>> So, we train these devices through
the AI to recognize words and speech patterns.
>> Yes. So, you can have it recognize things like colors,
locations when people try to
speak about a location to understand that better,
and so many different options that are available to you.
>> That's pretty lit.
>> Yeah.
>> Thing four. What are some practical examples that
you've worked with for natural language processing.
>> Well, so I use LUIS which is
Microsoft's language understanding service
and I use that in a way so that I
can send messages to it from a bot
actually to turn my light on or off or
change the state of it in terms of color or to try and
trigger effects like blinking
the light different colors or party mode.
>> To do all sorts of things I imagine like you
could speak into a device and then
maybe get directions on a map.
>> Yes.
>> Or you could turn on Brian's lights at his house.
>> Right. Other practical examples would be
question and answer talking and understanding that.
>> You mean FAQ while you're traveling?
>> Yes.
>> That's pretty neat. We should build that.
>> We should actually.
>> Alright. Thing five.
How do people get started with LUIS?
>> Well, I got started by going to luis.ai and there they
had a UI that allowed me to learn more about.
I have no background whatsoever in this type of stuff
before and I was able to get started with
it very quickly through there.
>> Yeah. I went through that UI
with you and some of the things that really stood out to
me was how easy it is to use and they
teach you things like intense and entities.
So, what are intents and entities?
>> Yeah. So, intense is about what the message intended.
Like the person saying it or sending
that message intended to do
and LUIS will try to break that down and understand it.
>> That the processing part right?
Where we're translate into what did you intend this for?
>> Yes. So, we can train
LUIS by giving it what's called utterances.
So, what are natural ways from our example the light,
we'd say, "Turn the light off."
Or in your case, "Turn dad's office screen or something."
So, those are utterances that we would
pass into there and the intent is
LUIS will break that down through its training to
understand that the thing that
you want to change a state of is dad's office and
you want to change it to the color of green.
So, it can break down that utterance that way.
>> Then the entities are the things
inside of those sentences, right?
>> Yes. So, we can train it so that it can do
a certain set of colors only you want limit it
to or a certain set
of devices that you want to control in
the house not the whole house just dad's office.
Things like that.
>> Inside the UI there's a nice training button.
So, we type these things in then we can press train
it and it can learn more
about how we're intending it to work.
>> Yes and on top of that,
you can test it directly in the UI
so you can try new like maybe you didn't
send in an utterance to train
it with and you try one that
wasn't used before and see if it
actually learns on the fly.
You can use the little test UI to send that message in
and see how it goes and and how LUIS breaks it down.
>> So, what's the URL you'd
ask people to start out to learn more?
>> Luis.ai and Microsoft Docs.
>> Awesome. Thanks for coming on Brian.
>> Thanks for having me John.
>>> I'm John Papa.
>> I'm Brian Clark.
>> We just learned five things about
Natural Language Processing. Just bump.