NATURAL LANGUAGE UNDERSTANDINGNATURAL LANGUAGE UNDERSTANDING
PHP CENTRAL EUROPE - PRAGUE 2018PHP CENTRAL EUROPE - PRAGUE 2018
Maximilian BerghoffMaximilian Berghoff
Maximilian BerghoffMaximilian Berghoff
NLUNLU
NATURAL LANGUAGE UNDERSTANDINGNATURAL LANGUAGE UNDERSTANDING
NLPNLP
NATURAL LANGUAGE PROCESSINGNATURAL LANGUAGE PROCESSING
NLU != NLPNLU != NLP
NLUNLU
directly enables interaction of an human with an machine
brings structure into the spoken/written word
AI aggregates data
INTENTINTENT
what could be the pupose of the text
what the wants to tell us
depends on domain/model you are working
ENTITYENTITY
usefull data for the intent
i.e. when asking for a topic the topic itself can be the entity
NLU - EXAMPLENLU - EXAMPLE
I have to stay home until friday.
NLU - EXAMPLENLU - EXAMPLE
Intent: report illness at work
Entity: end_date=friday
I have to stay home until friday.
NLU - WHY?NLU - WHY?
Chat bot
Interface for our machine
Intent analysis
for fun
WHAT ABOUT?WHAT ABOUT?
ALEXAALEXA
SIRISIRI
GOOGLE HOMEGOOGLE HOME
DATA PRIVACY ?DATA PRIVACY ?
-
DIYDIY
WHAT TO USE?WHAT TO USE?
RASA NLURASA NLU
RASA NLURASA NLU
ready to use
recognize intents
extracts entity values
conversation
INSTALL & RUN RASA NLUINSTALL & RUN RASA NLU
pip install rasa_nlu
# OR
# git clone https://github.com/RasaHQ/rasa_nlu.git
cd rasa_nlu
pip install -r requirements.txt
pip install -e .
PYTHON ???PYTHON ???
IMPLEMENTATION IN PHPIMPLEMENTATION IN PHP
DECORATOR ON RASA NLU APIDECORATOR ON RASA NLU API
INTO CONSOLE/IDEINTO CONSOLE/IDE
QUESTIONSQUESTIONS
Ask Now!
Twitter: @ElectricMaxxx
Mail: Maximilian.Berghoff@mayflower.de
LINKSLINKS
Examples and Slides (md)
RASA Documentation
THANK YOU!THANK YOU!

NLU meets PHP