AI, Bots, NLP, Slack and Alexa

Post on 11-Apr-2017

92 views 0 download

transcript

confidential

confidential

Before we start …This talk • contains live samples• requires a working internet connection• requires an working audio connection• requires a working backend• … relies on a lot of stuff actually• uses non-deterministic algorithms

confidential

Talking BotsCinemaJS Barcelona, March 30th 2017@dkhan

confidential

confidential

Artificial Intelligence

confidential

confidential

confidential

confidential

Single Events

confidential

confidential

AI

Understand how parts of a system interactDetect anomalies and problems by learning from the history and past eventsIsolate the root cause of a problem by analyzing thousands of single events

confidential

confidential

confidential

“Tell me about user activity”

confidential

confidential

confidential

confidential

confidential

confidential

confidential

developer.amazon.com

confidential

confidential

confidential

ngrok ... ngrok is awesome

confidential

confidential

Live Demo!

confidential

intent: { name: 'DoCommand', slots: {

command: { name: 'command', value: 'what does the cat say'

} }

}

confidential

what does the cat saywhat do cats say

how do cats soundwhat does a dog say

confidential

what does the cat saysubject | predicate

SyntaxThe Structure

confidential

what does the cat sayintent: sayslot: animal, value: cat

SemanticsThe Meaning

confidential

Natural Language Processing (NLP)

confidential

confidential

Live Demo!

confidential

monkeys !== monkey && cat !== cats

confidential

Fuzzy & Phonetic Matching

confidential

MetaphoneTwo quick brown foxes jump over three lazy dogsTWKKBRNFKSSJMPFR0RLSTKS

Same key for similar sounding words

Two quick brown foxes jomp over three lazy dougsTWKKBRNFKSSJMPFR0RLSTKS

Amazon did this for us already!

confidential

Porter Stemmer

Two quick brown foxes jump over three lazy dogsTwo quick brown fox jump over three lazi dog

Normalizes terms by removing or harmonizing morphological and inflexional endings.

confidential

“cats” “cat”

confidential

Levenshtein Distancelv(monkey, monkeys) = 0lv(monkey, monkeys) = 1lv(monkey, dog) = 6

How similar are two strings or how many transformations does it take to get from string A to string B.

confidential

“doug” “dog”

confidential

Porter

Levenshtein

confidential

Live Demo!

confidential

alexaAnimalSounds:https://github.com/danielkhan/alexaAnimalSounds

Dynatrace Davis: https://github.com/Dynatrace/davis-server

Dynatrace Free Trial: https://dynatrace.com/free-trial

confidential

confidential

confidential

One Last Thing …

confidential

www.dynatrace.com

confidential

@dkhan

0NKY <3