SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
“Was mit Sprache” gelernt
- Linguistik und Philosophie @unihd
“Was mit Computern” gelernt
- Informatik @hska
Kombination
- Search Engineer @inovex
@findefain
2
A chatbot (also known as a smartbot, conversational bot,
chatterbot, interactive agent, conversational interface,
Conversational AI, or artificial conversational entity) is a
computer program or an artificial intelligence which
conducts a conversation via auditory or textual methods.
Such programs are often designed to convincingly simulate
how a human would behave as a conversational partner,
thereby passing the Turing test.
(Quelle: Internet, https://en.wikipedia.org/wiki/Chatbot)
3
Neither Aristotelian nor Russellian rules give
the exact logic of any expression of ordinary
language; for ordinary language has no exact
logic.
(P. F. Strawson, On Referring)
4
5
1950
Turing Test
1966
Eliza
1972
Parry
1988
Jabberwacky
1992
Dr. Sbaitso
1995
Alice
2001
Smarterchild
2006
Watson
(IBM)
2010
Siri
2012
Google Now
2015
Alexa,
Cortana
2016
Tay
https://chatbotsmagazine.com/a-visual-history-of-chatbots-8bf3b31dbfb2
6
natürliches Interface
Gespräche wie mit Menschen
persönlich
besserer Kundenservice
7
unstrukturierte Eingabe
Und dann würde mich halt auch noch interessieren, welche
Größen es gibt.
Die Sandalen “Mallorca” haben wir in den Größen 36 bis 47
vorrätig.
natürlichsprachige Antwort
Wie wird das Wetter am Samstag?
Für Karlsruhe ist am 30.3. sonniges Wetter bei Temperaturen
bis 16 Grad vorhergesagt.
Interpretieren
Absichten
Kontextinformationen
Anreichern
"Weltwissen"
bisheriger Kontext
Reagieren
ggf. Zustand
aktualisieren
Eliza: Pattern-Matching + Templates
8
key: computer 50
decomp: *
reasmb: Do computers worry you ?
reasmb: Why do you mention computers ?
reasmb: What do you think machines have to do with your problem ?
reasmb: Don't you think computers can help people ?
reasmb: What about machines worries you ?
reasmb: What do you think about machines ?
key: forget 5
decomp: * i forget *
reasmb: Can you think of why you might forget (2) ?
reasmb: Why can't you remember (2) ?
reasmb: How often do you think of (2) ?
reasmb: Does it bother you to forget that ?
reasmb: Could it be a mental block ?
reasmb: Are you generally forgetful ?
reasmb: Do you think you are suppressing (2) ?
decomp: * did you forget *
reasmb: Why do you ask ?
reasmb: Are you sure you told me ?
reasmb: Would it bother you if I forgot (2) ?
reasmb: Why should I recall (2) just now ?
reasmb: goto what
reasmb: Tell me more about (2).
A.L.I.C.E.: AIML
<category>
<pattern> TELL ME ABOUT *</pattern>
<template>
Here is some information about <star/>:
<url>https://en.wikipedia.org/wiki/<star/></url>
</template>
</category>
<?xml version = "1.0" encoding = "UTF-8"?>
<aiml version = "1.0.1" encoding = "UTF-8"?>
<category>
<pattern> HELLO ALICE </pattern>
<template>
Hello User
</template>
</category>
</aiml>
9
10
“The Rasa Stack is a set of
open source machine
learning tools for
developers to create
contextual text- and
voice-based chatbots and
assistants.”
https://rasa.com/
Versprechen: Weniger hartcodierte Regeln, mehr AI
11
Interpretieren: Rasa NLU Reagieren: Rasa Core
Input: Nutzereingabe Input: NLU-Output, Kontext
Output: Intents, Entities Output: Nächste Aktion
entities => Dinge, über die gesprochen wird
intents => Was will die Nutzerin?
actions => Was kann der Bot tun?
--------------
templates => Was kann der Bot sagen?
slots => Gedächtnisinhalt
12
https://github.com/RasaHQ/starter-pack-rasa-stack
13
Hey there! Tell me your
name.
Hello!
My name is Anna.
Nice to meet you, Anna.
How can I help?
Tell me a joke, please!
Chuck Norris can
instantiate an abstract
class.
intents:
- greet
- name
- joke
entities:
- name
slots:
name:
type: text
actions:
- utter_greet
- action_joke
- utter_name
templates:
utter_greet:
- text: Nice to you meet you {name}. How can I help?
utter_name:
- text: Hey there! Tell me your name.
14
language: "en"
pipeline:
- name: "nlp_spacy"
- name: "tokenizer_spacy"
- name: "intent_featurizer_spacy"
- name: "ner_crf"
- name: "intent_classifier_sklearn"
Tokenizer Featurizer NER Intents
My
name is
Anna
{
"intent": {
"name": "name",
"confidence": 0.859506104253725
},
"entities": [
{
"start": 11,
"end": 15,
"value": "anna",
"entity": "name",
"confidence": 0.9516187350992868,
"extractor": "ner_crf"
}
],
"intent_ranking": [
{
"name": "name",
"confidence": 0.859506104253725
},
{
"name": "greet",
"confidence": 0.07173887988512613
},
...
],
"text": "My name is Anna"
}
## intent:greet
- Hi
- Hey
- Hi bot
- Hey bot
## intent:name
- My name is [Juste](name)
- I am [Josh](name)
- I'm [Lucy](name)
- People call me [Greg](name)
15
{
"intent": "name",
"entities": [
{
"start": 15,
"end": 19,
"value": "Greg",
"entity": "name"
}
],
"text": "People call me Greg"
}
1) Preprocessing
- Tokenisierung: Satz => Token
- Features erzeugen: Token => Embeddings
2) NER: Trainiere CRF
- Features: Transformierte Trainingsdaten (berücksichtige Nachbarn)
3) Intents: Trainiere SVM
- Features: Word-Embeddings (gemittelt)
- Labels: Intent-Namen
16
17
Tokenizer Featurizer NER Intents
{
"intent": {
"name": "name",
"confidence": 0.9501842025598839
},
"entities": [
{
"start": 13,
"end": 17,
"value": "anna",
"entity": "name",
"confidence": 0.9771150313654133,
"extractor": "ner_crf"
}
],
"text": "They call me Anna"
}
18
19
https://rasa.com/docs/core/architecture/
20
Intent
Entities
Slots
Vergangenheit
Policy Aktion
## story_joke_02
* greet
- utter_name
* name{"name":"Anna"}
- utter_greet
* joke
- action_joke
* thanks
- utter_thanks
* goodbye
- utter_goodbye
21
Hey there! Tell me your name.
Hello!
My name is Anna.
Nice to meet you, Anna. How can I
help?
Tell me a joke, please!
Chuck Norris can instantiate an
abstract class.
Thanks bot!
My pleasure.
Goodbye!
Talk to you later!.
Stories => Vektordaten
- generiere Graph
- tracke Features: Intents, Entities,
Slotwerte, letzte Aktion
- erzeuge Featurevektoren:
One-Hot oder BoW (Labelnamen)
- berücksichtige Vergangenheit
22
Policies:
- Memoization:
- Exakter Match auf Trainingsdaten
- Keras: Neuronales Netz
- Default: LSTM
- Recurrent Embedding Dialogue
- Embeddings + Attention!
=> Grundidee: Typische Verläufe lernen, wichtige
Informationen "merken"
23
24
25
https://blog.rasa.com/attention-dialogue-and-learning-reusable-patterns/
26
+ Weniger explizites Pattern-Matching
+ Verstehen: Semantische Ebene
+ Reagieren: "Gedächtnis"
- Regelhunger => Datenhunger
- Supervised Learning: gelabelte Daten
- hohe Modellqualität nicht trivial
● Weltwissen/Kontextinformationen auch mit ML nicht gratis
● Gute Aktionen wollen implementiert werden
27
Anna Weißhaar
Search Engineer
inovex GmbH
Ludwig-Erhard-Allee 6
76131 Karlsruhe
anna.weisshaar@inovex.de
0173 3181 097

Weitere ähnliche Inhalte

Ähnlich wie Talk to me – Chatbots und digitale Assistenten

The Hidden Empires of Malware with TLS Certified Hypotheses and Machine Learning
The Hidden Empires of Malware with TLS Certified Hypotheses and Machine LearningThe Hidden Empires of Malware with TLS Certified Hypotheses and Machine Learning
The Hidden Empires of Malware with TLS Certified Hypotheses and Machine LearningRyan Kovar
 
Questioning the status quo
Questioning the status quoQuestioning the status quo
Questioning the status quoIvano Pagano
 
CoderDojo: Intermediate Python programming course
CoderDojo: Intermediate Python programming courseCoderDojo: Intermediate Python programming course
CoderDojo: Intermediate Python programming courseAlexander Galkin
 
Rocky Nevin's presentation at eComm 2008
Rocky Nevin's presentation at eComm 2008Rocky Nevin's presentation at eComm 2008
Rocky Nevin's presentation at eComm 2008eComm2008
 
AstriCon 2017 - Machine Learning, AI & Asterisk
AstriCon 2017  - Machine Learning, AI & AsteriskAstriCon 2017  - Machine Learning, AI & Asterisk
AstriCon 2017 - Machine Learning, AI & AsteriskEvan McGee
 
Faster! Faster! Accelerate your business with blazing prototypes
Faster! Faster! Accelerate your business with blazing prototypesFaster! Faster! Accelerate your business with blazing prototypes
Faster! Faster! Accelerate your business with blazing prototypesOSCON Byrum
 
Get connected with python
Get connected with pythonGet connected with python
Get connected with pythonJan Kroon
 
Theme Development and Customization
Theme Development and CustomizationTheme Development and Customization
Theme Development and CustomizationAniket Pant
 
Introduction to Elasticsearch
Introduction to ElasticsearchIntroduction to Elasticsearch
Introduction to ElasticsearchLuiz Messias
 
Code with Style - PyOhio
Code with Style - PyOhioCode with Style - PyOhio
Code with Style - PyOhioClayton Parker
 
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017Codemotion
 
Python for High School Programmers
Python for High School ProgrammersPython for High School Programmers
Python for High School ProgrammersSiva Arunachalam
 
Dialogare con agenti artificiali
Dialogare con agenti artificiali  Dialogare con agenti artificiali
Dialogare con agenti artificiali Agnese Augello
 
“Insulin” for Scala’s Syntactic Diabetes
“Insulin” for Scala’s Syntactic Diabetes“Insulin” for Scala’s Syntactic Diabetes
“Insulin” for Scala’s Syntactic DiabetesTzach Zohar
 
Python tutorial
Python tutorialPython tutorial
Python tutorialnazzf
 
Python tutorial
Python tutorialPython tutorial
Python tutorialShani729
 
Intuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyondIntuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyondC4Media
 

Ähnlich wie Talk to me – Chatbots und digitale Assistenten (20)

The Hidden Empires of Malware with TLS Certified Hypotheses and Machine Learning
The Hidden Empires of Malware with TLS Certified Hypotheses and Machine LearningThe Hidden Empires of Malware with TLS Certified Hypotheses and Machine Learning
The Hidden Empires of Malware with TLS Certified Hypotheses and Machine Learning
 
Questioning the status quo
Questioning the status quoQuestioning the status quo
Questioning the status quo
 
Python slide
Python slidePython slide
Python slide
 
CoderDojo: Intermediate Python programming course
CoderDojo: Intermediate Python programming courseCoderDojo: Intermediate Python programming course
CoderDojo: Intermediate Python programming course
 
Rocky Nevin's presentation at eComm 2008
Rocky Nevin's presentation at eComm 2008Rocky Nevin's presentation at eComm 2008
Rocky Nevin's presentation at eComm 2008
 
AstriCon 2017 - Machine Learning, AI & Asterisk
AstriCon 2017  - Machine Learning, AI & AsteriskAstriCon 2017  - Machine Learning, AI & Asterisk
AstriCon 2017 - Machine Learning, AI & Asterisk
 
Python: The Dynamic!
Python: The Dynamic!Python: The Dynamic!
Python: The Dynamic!
 
Faster! Faster! Accelerate your business with blazing prototypes
Faster! Faster! Accelerate your business with blazing prototypesFaster! Faster! Accelerate your business with blazing prototypes
Faster! Faster! Accelerate your business with blazing prototypes
 
Get connected with python
Get connected with pythonGet connected with python
Get connected with python
 
Theme Development and Customization
Theme Development and CustomizationTheme Development and Customization
Theme Development and Customization
 
Code with style
Code with styleCode with style
Code with style
 
Introduction to Elasticsearch
Introduction to ElasticsearchIntroduction to Elasticsearch
Introduction to Elasticsearch
 
Code with Style - PyOhio
Code with Style - PyOhioCode with Style - PyOhio
Code with Style - PyOhio
 
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
Full-Text Search Explained - Philipp Krenn - Codemotion Rome 2017
 
Python for High School Programmers
Python for High School ProgrammersPython for High School Programmers
Python for High School Programmers
 
Dialogare con agenti artificiali
Dialogare con agenti artificiali  Dialogare con agenti artificiali
Dialogare con agenti artificiali
 
“Insulin” for Scala’s Syntactic Diabetes
“Insulin” for Scala’s Syntactic Diabetes“Insulin” for Scala’s Syntactic Diabetes
“Insulin” for Scala’s Syntactic Diabetes
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 
Intuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyondIntuition & Use-Cases of Embeddings in NLP & beyond
Intuition & Use-Cases of Embeddings in NLP & beyond
 

Mehr von inovex GmbH

lldb – Debugger auf Abwegen
lldb – Debugger auf Abwegenlldb – Debugger auf Abwegen
lldb – Debugger auf Abwegeninovex GmbH
 
Are you sure about that?! Uncertainty Quantification in AI
Are you sure about that?! Uncertainty Quantification in AIAre you sure about that?! Uncertainty Quantification in AI
Are you sure about that?! Uncertainty Quantification in AIinovex GmbH
 
Why natural language is next step in the AI evolution
Why natural language is next step in the AI evolutionWhy natural language is next step in the AI evolution
Why natural language is next step in the AI evolutioninovex GmbH
 
Network Policies
Network PoliciesNetwork Policies
Network Policiesinovex GmbH
 
Interpretable Machine Learning
Interpretable Machine LearningInterpretable Machine Learning
Interpretable Machine Learninginovex GmbH
 
Jenkins X – CI/CD in wolkigen Umgebungen
Jenkins X – CI/CD in wolkigen UmgebungenJenkins X – CI/CD in wolkigen Umgebungen
Jenkins X – CI/CD in wolkigen Umgebungeninovex GmbH
 
AI auf Edge-Geraeten
AI auf Edge-GeraetenAI auf Edge-Geraeten
AI auf Edge-Geraeteninovex GmbH
 
Prometheus on Kubernetes
Prometheus on KubernetesPrometheus on Kubernetes
Prometheus on Kubernetesinovex GmbH
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender Systemsinovex GmbH
 
Representation Learning von Zeitreihen
Representation Learning von ZeitreihenRepresentation Learning von Zeitreihen
Representation Learning von Zeitreiheninovex GmbH
 
Künstlich intelligent?
Künstlich intelligent?Künstlich intelligent?
Künstlich intelligent?inovex GmbH
 
Das Android Open Source Project
Das Android Open Source ProjectDas Android Open Source Project
Das Android Open Source Projectinovex GmbH
 
Machine Learning Interpretability
Machine Learning InterpretabilityMachine Learning Interpretability
Machine Learning Interpretabilityinovex GmbH
 
Performance evaluation of GANs in a semisupervised OCR use case
Performance evaluation of GANs in a semisupervised OCR use casePerformance evaluation of GANs in a semisupervised OCR use case
Performance evaluation of GANs in a semisupervised OCR use caseinovex GmbH
 
People & Products – Lessons learned from the daily IT madness
People & Products – Lessons learned from the daily IT madnessPeople & Products – Lessons learned from the daily IT madness
People & Products – Lessons learned from the daily IT madnessinovex GmbH
 
Infrastructure as (real) Code – Manage your K8s resources with Pulumi
Infrastructure as (real) Code – Manage your K8s resources with PulumiInfrastructure as (real) Code – Manage your K8s resources with Pulumi
Infrastructure as (real) Code – Manage your K8s resources with Pulumiinovex GmbH
 
Remote First – Der Arbeitsplatz in der Cloud
Remote First – Der Arbeitsplatz in der CloudRemote First – Der Arbeitsplatz in der Cloud
Remote First – Der Arbeitsplatz in der Cloudinovex GmbH
 

Mehr von inovex GmbH (20)

lldb – Debugger auf Abwegen
lldb – Debugger auf Abwegenlldb – Debugger auf Abwegen
lldb – Debugger auf Abwegen
 
Are you sure about that?! Uncertainty Quantification in AI
Are you sure about that?! Uncertainty Quantification in AIAre you sure about that?! Uncertainty Quantification in AI
Are you sure about that?! Uncertainty Quantification in AI
 
Why natural language is next step in the AI evolution
Why natural language is next step in the AI evolutionWhy natural language is next step in the AI evolution
Why natural language is next step in the AI evolution
 
WWDC 2019 Recap
WWDC 2019 RecapWWDC 2019 Recap
WWDC 2019 Recap
 
Network Policies
Network PoliciesNetwork Policies
Network Policies
 
Interpretable Machine Learning
Interpretable Machine LearningInterpretable Machine Learning
Interpretable Machine Learning
 
Jenkins X – CI/CD in wolkigen Umgebungen
Jenkins X – CI/CD in wolkigen UmgebungenJenkins X – CI/CD in wolkigen Umgebungen
Jenkins X – CI/CD in wolkigen Umgebungen
 
AI auf Edge-Geraeten
AI auf Edge-GeraetenAI auf Edge-Geraeten
AI auf Edge-Geraeten
 
Prometheus on Kubernetes
Prometheus on KubernetesPrometheus on Kubernetes
Prometheus on Kubernetes
 
Deep Learning for Recommender Systems
Deep Learning for Recommender SystemsDeep Learning for Recommender Systems
Deep Learning for Recommender Systems
 
Azure IoT Edge
Azure IoT EdgeAzure IoT Edge
Azure IoT Edge
 
Representation Learning von Zeitreihen
Representation Learning von ZeitreihenRepresentation Learning von Zeitreihen
Representation Learning von Zeitreihen
 
Künstlich intelligent?
Künstlich intelligent?Künstlich intelligent?
Künstlich intelligent?
 
Dev + Ops = Go
Dev + Ops = GoDev + Ops = Go
Dev + Ops = Go
 
Das Android Open Source Project
Das Android Open Source ProjectDas Android Open Source Project
Das Android Open Source Project
 
Machine Learning Interpretability
Machine Learning InterpretabilityMachine Learning Interpretability
Machine Learning Interpretability
 
Performance evaluation of GANs in a semisupervised OCR use case
Performance evaluation of GANs in a semisupervised OCR use casePerformance evaluation of GANs in a semisupervised OCR use case
Performance evaluation of GANs in a semisupervised OCR use case
 
People & Products – Lessons learned from the daily IT madness
People & Products – Lessons learned from the daily IT madnessPeople & Products – Lessons learned from the daily IT madness
People & Products – Lessons learned from the daily IT madness
 
Infrastructure as (real) Code – Manage your K8s resources with Pulumi
Infrastructure as (real) Code – Manage your K8s resources with PulumiInfrastructure as (real) Code – Manage your K8s resources with Pulumi
Infrastructure as (real) Code – Manage your K8s resources with Pulumi
 
Remote First – Der Arbeitsplatz in der Cloud
Remote First – Der Arbeitsplatz in der CloudRemote First – Der Arbeitsplatz in der Cloud
Remote First – Der Arbeitsplatz in der Cloud
 

Kürzlich hochgeladen

VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...masabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 

Kürzlich hochgeladen (20)

VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 

Talk to me – Chatbots und digitale Assistenten

  • 1.
  • 2. “Was mit Sprache” gelernt - Linguistik und Philosophie @unihd “Was mit Computern” gelernt - Informatik @hska Kombination - Search Engineer @inovex @findefain 2
  • 3. A chatbot (also known as a smartbot, conversational bot, chatterbot, interactive agent, conversational interface, Conversational AI, or artificial conversational entity) is a computer program or an artificial intelligence which conducts a conversation via auditory or textual methods. Such programs are often designed to convincingly simulate how a human would behave as a conversational partner, thereby passing the Turing test. (Quelle: Internet, https://en.wikipedia.org/wiki/Chatbot) 3
  • 4. Neither Aristotelian nor Russellian rules give the exact logic of any expression of ordinary language; for ordinary language has no exact logic. (P. F. Strawson, On Referring) 4
  • 5. 5 1950 Turing Test 1966 Eliza 1972 Parry 1988 Jabberwacky 1992 Dr. Sbaitso 1995 Alice 2001 Smarterchild 2006 Watson (IBM) 2010 Siri 2012 Google Now 2015 Alexa, Cortana 2016 Tay https://chatbotsmagazine.com/a-visual-history-of-chatbots-8bf3b31dbfb2
  • 6. 6 natürliches Interface Gespräche wie mit Menschen persönlich besserer Kundenservice
  • 7. 7 unstrukturierte Eingabe Und dann würde mich halt auch noch interessieren, welche Größen es gibt. Die Sandalen “Mallorca” haben wir in den Größen 36 bis 47 vorrätig. natürlichsprachige Antwort Wie wird das Wetter am Samstag? Für Karlsruhe ist am 30.3. sonniges Wetter bei Temperaturen bis 16 Grad vorhergesagt. Interpretieren Absichten Kontextinformationen Anreichern "Weltwissen" bisheriger Kontext Reagieren ggf. Zustand aktualisieren
  • 8. Eliza: Pattern-Matching + Templates 8 key: computer 50 decomp: * reasmb: Do computers worry you ? reasmb: Why do you mention computers ? reasmb: What do you think machines have to do with your problem ? reasmb: Don't you think computers can help people ? reasmb: What about machines worries you ? reasmb: What do you think about machines ? key: forget 5 decomp: * i forget * reasmb: Can you think of why you might forget (2) ? reasmb: Why can't you remember (2) ? reasmb: How often do you think of (2) ? reasmb: Does it bother you to forget that ? reasmb: Could it be a mental block ? reasmb: Are you generally forgetful ? reasmb: Do you think you are suppressing (2) ? decomp: * did you forget * reasmb: Why do you ask ? reasmb: Are you sure you told me ? reasmb: Would it bother you if I forgot (2) ? reasmb: Why should I recall (2) just now ? reasmb: goto what reasmb: Tell me more about (2). A.L.I.C.E.: AIML <category> <pattern> TELL ME ABOUT *</pattern> <template> Here is some information about <star/>: <url>https://en.wikipedia.org/wiki/<star/></url> </template> </category> <?xml version = "1.0" encoding = "UTF-8"?> <aiml version = "1.0.1" encoding = "UTF-8"?> <category> <pattern> HELLO ALICE </pattern> <template> Hello User </template> </category> </aiml>
  • 9. 9
  • 10. 10 “The Rasa Stack is a set of open source machine learning tools for developers to create contextual text- and voice-based chatbots and assistants.” https://rasa.com/ Versprechen: Weniger hartcodierte Regeln, mehr AI
  • 11. 11 Interpretieren: Rasa NLU Reagieren: Rasa Core Input: Nutzereingabe Input: NLU-Output, Kontext Output: Intents, Entities Output: Nächste Aktion
  • 12. entities => Dinge, über die gesprochen wird intents => Was will die Nutzerin? actions => Was kann der Bot tun? -------------- templates => Was kann der Bot sagen? slots => Gedächtnisinhalt 12
  • 13. https://github.com/RasaHQ/starter-pack-rasa-stack 13 Hey there! Tell me your name. Hello! My name is Anna. Nice to meet you, Anna. How can I help? Tell me a joke, please! Chuck Norris can instantiate an abstract class. intents: - greet - name - joke entities: - name slots: name: type: text actions: - utter_greet - action_joke - utter_name templates: utter_greet: - text: Nice to you meet you {name}. How can I help? utter_name: - text: Hey there! Tell me your name.
  • 14. 14 language: "en" pipeline: - name: "nlp_spacy" - name: "tokenizer_spacy" - name: "intent_featurizer_spacy" - name: "ner_crf" - name: "intent_classifier_sklearn" Tokenizer Featurizer NER Intents My name is Anna { "intent": { "name": "name", "confidence": 0.859506104253725 }, "entities": [ { "start": 11, "end": 15, "value": "anna", "entity": "name", "confidence": 0.9516187350992868, "extractor": "ner_crf" } ], "intent_ranking": [ { "name": "name", "confidence": 0.859506104253725 }, { "name": "greet", "confidence": 0.07173887988512613 }, ... ], "text": "My name is Anna" }
  • 15. ## intent:greet - Hi - Hey - Hi bot - Hey bot ## intent:name - My name is [Juste](name) - I am [Josh](name) - I'm [Lucy](name) - People call me [Greg](name) 15 { "intent": "name", "entities": [ { "start": 15, "end": 19, "value": "Greg", "entity": "name" } ], "text": "People call me Greg" }
  • 16. 1) Preprocessing - Tokenisierung: Satz => Token - Features erzeugen: Token => Embeddings 2) NER: Trainiere CRF - Features: Transformierte Trainingsdaten (berücksichtige Nachbarn) 3) Intents: Trainiere SVM - Features: Word-Embeddings (gemittelt) - Labels: Intent-Namen 16
  • 18. { "intent": { "name": "name", "confidence": 0.9501842025598839 }, "entities": [ { "start": 13, "end": 17, "value": "anna", "entity": "name", "confidence": 0.9771150313654133, "extractor": "ner_crf" } ], "text": "They call me Anna" } 18
  • 21. ## story_joke_02 * greet - utter_name * name{"name":"Anna"} - utter_greet * joke - action_joke * thanks - utter_thanks * goodbye - utter_goodbye 21 Hey there! Tell me your name. Hello! My name is Anna. Nice to meet you, Anna. How can I help? Tell me a joke, please! Chuck Norris can instantiate an abstract class. Thanks bot! My pleasure. Goodbye! Talk to you later!.
  • 22. Stories => Vektordaten - generiere Graph - tracke Features: Intents, Entities, Slotwerte, letzte Aktion - erzeuge Featurevektoren: One-Hot oder BoW (Labelnamen) - berücksichtige Vergangenheit 22
  • 23. Policies: - Memoization: - Exakter Match auf Trainingsdaten - Keras: Neuronales Netz - Default: LSTM - Recurrent Embedding Dialogue - Embeddings + Attention! => Grundidee: Typische Verläufe lernen, wichtige Informationen "merken" 23
  • 24. 24
  • 26. 26
  • 27. + Weniger explizites Pattern-Matching + Verstehen: Semantische Ebene + Reagieren: "Gedächtnis" - Regelhunger => Datenhunger - Supervised Learning: gelabelte Daten - hohe Modellqualität nicht trivial ● Weltwissen/Kontextinformationen auch mit ML nicht gratis ● Gute Aktionen wollen implementiert werden 27
  • 28. Anna Weißhaar Search Engineer inovex GmbH Ludwig-Erhard-Allee 6 76131 Karlsruhe anna.weisshaar@inovex.de 0173 3181 097