1 applications in natural language processing natural language interfaces and dialogue systems
TRANSCRIPT
![Page 1: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/1.jpg)
1
APPLICATIONS IN NATURAL LANGUAGE PROCESSING
NATURAL LANGUAGE INTERFACES AND
DIALOGUE SYSTEMS
![Page 2: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/2.jpg)
2
Introduction Tasks of the dialogue systems
– Interpreting user intervention–Dialogue Management– Generating system's intervention
Architecture Development and evaluation
Natural Language Interfaces and Dialogue Systems
![Page 3: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/3.jpg)
3
Introduction
Main goal in humam/machine communication
Help users perform specific tasks according their objectives
Two metaphores - Human conversation question/answering, menu systems, forms, comand language dialogue
- World model Direct access to the domain objects ( the
icons representing them). WYSWYG
![Page 4: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/4.jpg)
4
Using the Natural Language Mode
Advantatges • Human Language (natural,friendly)• Complex ideas can be expressed • References to other entities are easy to express
Disadvantages • High cost• Ambiguity -- mistakes• Limitations for accessing several applications
(such as graphics) Appropriate for occasional access to
applications that need to express complex operations (especially when domain can be restricted)
![Page 5: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/5.jpg)
5
Using the Natural Language Mode
Advantages of the speech mode • Convenient • Typing is not needed
• Small devices • Hands cannot be used (i.e.: driving cars, airplanes)• Handicapped
Disadvantages of the speech mode• Technical limitations to recognize voice• Ambiguity, mistakes• High cost• Not appropriate for specific applications
Appropriate for expressing simple operations on restricted domains
![Page 6: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/6.jpg)
6
The Need for Dialogue Systems
User cannot express a requirement in only one intervention
User need the system intervention to make the communication friendlier
![Page 7: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/7.jpg)
7
An Example of Conversational System
System: Welcome to the informaton service, what do you want?
User: I want to go from Barcelona to ValenciaSystem: When do you want to go?User: Next TuesdaySystem: At what time, morning or afternoon?User: Morning, pleaseSystem: There are 3 Euromed trains on
Tuesday morning
![Page 8: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/8.jpg)
8
The Terms
• Human Computer Interfaces• Natural Language Interfaces• Speech Based Interfaces • Conversational Interfaces• Conversational Agents• Dialogue Systems• Spoken Dialogue Systems• Spoken Language Systems
![Page 9: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/9.jpg)
9
• Interpreting the user’s intervention
– Using dialog and domain knowledge
• Dialogue Management– Determine next system actions considering user's
intention
• Answer Generation– Generate the system's sentences most
appropriate at each state of the dialogue
Tasks of the Dialogue Systems
![Page 10: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/10.jpg)
10
Basic cycle in an interaction question/answering
ILN
Application user
Expression in NL
Expression in NL Generation
of the answer
Interface to application
Interpretation
![Page 11: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/11.jpg)
11
Main trends in Natural Language Interfaces
Evolution paralel to Language Engenieering Improving adaptability and friendliness Portable (or adaptable) interfaces.
They are usually developed for a specific domain or application. They use domain (or application)
restricted knowledge (domain model) Interfaces to specifc application
They are usually developed for one (or more) specific languages
![Page 12: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/12.jpg)
12
Main trends in Natural Language Interfaces
Improving portability: Reusability of basic components
- Speech recognizer - Language interpretation and
generation: lexicon, parsers, grammars Improving friendliness
Multimodality Friendly systems
![Page 13: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/13.jpg)
13
Improving friendliness
Quality of the interaction Supporting possible mistakes in the
user intervention•Spelling and grammar mistakes Short names, coloquial expressions,
other language words Mixed and user initiative User models
![Page 14: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/14.jpg)
14
Multimmodality
Intergration of graphics and language for input and output expressions.
Supporting complex reference across graphics and text.
Integration of gestures and text Considering the content, the context and
the user model to choose the best presentation of the output (and the best way to combine different modes of interaction)
![Page 15: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/15.jpg)
15
General Schema of a Natural Language Interface
Linguistic knowledge
Obtaining and organizing
Application NLIUser
DynamicInformation
![Page 16: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/16.jpg)
16
First Natural Language Interfaces NLI to Databases
• 70s : LUNAR (Woods), RENDEZVOUS (Codd, 1974)
• 80s: LADDER (Hendrix), TEAM (Grosz), CHAT-80 (Warren, Pereira) , DATALOG (Hafner)
Accessing other applications• Operating systems, experts systems, tutoring
systems, consulting systems, ...• Research systems
• LDC, TELI, XTRA, INKA, XCALIBUR, UC, GISE
• Comertial systems • INTELLECT, PARLANCE, HAL, Q&A, LOQUI, NAT, NL,
SESAME
![Page 17: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/17.jpg)
17
Today Natural Language Interfaces
Multimodal systems
•MMI2 (Multimodal Interface for Man Machine Interaction), MATIS (Multimodal Airline Travel
Information System), ALFRESCO
• Using voice• Dictation systems, telephone interfaces• VOYAGER (MIT), Office Manager (CMU), MASK
(Multimodal Multimedia Automated Service Kiosk), ATIS (MIT, CMU), Railtel, Sundial, Verbmobil
•VoiceXML
![Page 18: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/18.jpg)
18
Architecture of a Dialogue System
![Page 19: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/19.jpg)
19
Tasks of the Dialogue Systems
![Page 20: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/20.jpg)
20
• Goal: understanding user's intention Knowledge involved
• Phonetics and phonology
• Morphology
• Syntax
• Semantics (lexical and compositional)• Pragmatics• Discourse
Interpreting the user intervention
![Page 21: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/21.jpg)
21
Interpreting the user intervention
• Goal: understanding the user's intention• Precise information from the user is required• The complexity of this process depends on the
system– Complete (deep) syntactic and semantic analysis– Partial (shallow) syntactic and semantic analysis– Processing key words
• This process is restricted by considering limited applications tasks
![Page 22: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/22.jpg)
22
Interpreting the user intervention
Main tasks • Reference resolution• Intention recognition
The use of the context• Dialogue history• Domain knowledge
![Page 23: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/23.jpg)
23
Interpreting the user intervention
Main problems Establish syntactic relations Quantification. Coordination and subordination References Elipsis Ungrammatical expressions
![Page 24: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/24.jpg)
24
U: Where the movie Heroes is shown in Sant Cugat?S: Heroes is shown at Cinema Cinesa in Sant CugatU: At what time is it shown?S: It is shown at 8:30pm, 10pm and 11:30pm.U: I want 2 tickets for adults and 2 for children for first session How much is it?
Reference resolution
• Knowledge Sources:– Domain Knowledge– Dialogue Knowledge– Domain (world) knowledge
![Page 25: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/25.jpg)
25
Reference resolution (real systems)
There is no reference resolution Only simple references are processed
• A stack with entities focus is used• No discurse structure is used
![Page 26: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/26.jpg)
26
Reference resolution
• Central elements of the sentences have to be selected - They are grammatically related to the main verb
(subject, object,…)– They can connect a sentence with previous– They can connect a sentence with next
• When pronouns are found several rules are used to rang and filter the possible central elements
![Page 27: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/27.jpg)
27
Reference resolution
• Most references are solved using knowledge discourse
• Central elements (focus) are stored in a stack• Only lasts nominal groups are stored
• Objects satisfying syntactic, semantic and pragmatic restrictions are selected
– Starting by the stack top • “There ” is a place
– Considering discourse structure• Relating objects and subdialogs
![Page 28: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/28.jpg)
28
Intention Recognition• User's interventions are interpreted as one (or more)
dialogue act (speech act or dialogue move)• Examples of dialogue moves
– Switchboard DAMSL• Ini/final conventional• Opinion• Confirming/Accepting• Recognizance• Question/Answer/Yes-No• No-verbal• Quit
• Efforts for standard definition
VerbmobilGreet/Thank you/GoodbaySuggestionAccepting/Not acceptingConfirmationquestion/
clarification/AnswerGiving the reason Thinking
![Page 29: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/29.jpg)
29
Intention Recognition
Dialogue grammars (finite state machine)Greet Question – Answer Thankyou Goodbay
Plans• Receipts: General frames to perform
actions• Inference rules
• AI planification rules
![Page 30: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/30.jpg)
30
Intention Recognition (Real systems)
The system infers the application task the user is asking for • Application: Giving information on cultural events
• Time or place where a specific event takes place• Events that take place in a specific place
• Application: Giving information on trains• Schedule for a specific train
The system asks the user the information the application needs• The system ignores the information not useful for
the application
![Page 31: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/31.jpg)
31
Intention Recognition (Real systems)
S1: Which is your account number?U1: My account number in Online Bank?
S2: Would you want to transfer 1500 euros to your new account?U2: If I have this amount, ok
System initiative User initiative very limited
• Not allowed in complex acts such as confirmation, clarification and indirect answers
![Page 32: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/32.jpg)
32
Intention Recognition (Real systems)
Content obtained from the user's intervention• The application task that has to be performed
• Information on classical music concerts in Barcelona
• The information needed to perform the specific task
• The specific date and place• The next Saturday on the Auditori
![Page 33: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/33.jpg)
33
Intention Recognition (Real systems)
Several methods can be used• Frames representing the information
needed for each task• Trains schedule: departure and destination
• Similarity mesurement based on vectors
![Page 34: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/34.jpg)
34
Intention Recognition (Real systems)
Using frames Representing tasks as frames described by attributes
that correspond to input and output task parameters• Representing the tasks of giving information about
a specific train as a frame where • departure and destination station are
represented as attributes which value has to be provided by the user
• time and price are the attributes obtained from the application and presented to the user
![Page 35: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/35.jpg)
35
Representation of a user intervention asking for a ticket
Train ticket Date Type From To Hour Prize
What Quantity: 1
Reservation What Quantity ...
Type: EuromedFrom: BarcelonaTo: Valencia
![Page 36: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/36.jpg)
36
Semantic Grammar
Ticket_re ->initial, quantification, ticket,[mods]
initial -> “I want”| “I want to make”
quantification -> “one”|”two”|1
ticket -> “tickets”|”tickets”|”reservation”
mods -> mod,[mods]
mod -> “from”, city| “to”, city|”on”, typetrain
city -> barcelona|valencia
typetrain ->euromed
![Page 37: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/37.jpg)
37
U: At what time Madagascar is shown in Sant Cugat?
Intention Recognition (Real systems)
Intention: asking for information about a particular movie
Frame: Movie_informationFrame: Movie_informationAttributes which value is given by the userMovie:MadagascarPlace: Sant CugatAttributes which value is obtained by the
application: time
![Page 38: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/38.jpg)
38
Intention Recognition (Real systems)
Using keywords and mesures based on similarity vectors
Representing question and goal (answer) as vectors
Searching the goal vector most simlar to the question
Similarity metrics• cosinus of the angle between the two vectors
![Page 39: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/39.jpg)
39
Tasks of the Dialogue Systems
![Page 40: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/40.jpg)
40
Dialogue Management • Controlling dialog to help the user to achieve
his goals– At each step of the conversation
• Who can speak• What can be said
– Used information• Interpretation of the user intervention• Application (domain) knowledge
![Page 41: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/41.jpg)
41
• Determine the next system's action(s) – Answer user's questions– Ask the user for more information– Confirm/Clarify user's interventions– Notify problems when accessing the application– Suggest alternatives
• Generation of the system's messages– The content– The presentation
Dialogue Management
![Page 42: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/42.jpg)
42
Dialogue Management
Example: Application giving information on flights
Attribute Optional question
DepartureAirport “From which airport you leave?”
ArrivalAirport “Where do you want to flight?”
DepartureTime “At what time do you flight”
ArrivalTime “At what time it arrives?”
Class
Company
![Page 43: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/43.jpg)
43
Dialogue Management
At each turn, preparing next system’s interventionObtaining information from the user:
• Ambiguities because recognition problemsDid you said Barcelona o Badalona ?
• Uncompleted specificationOn which day do you want to travel ?
• Giving an answer to the user’s question • Asking the user to restrict the question when
many results are found : I found 10 flights, do you prefer any special flight?
• Asking the user to relax the question when no results are found
The are flight on the morning, would you mind flying at night?
![Page 44: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/44.jpg)
44
Dialogue Management
• Guiding the user about accessible information• Presenting new goals
Do you want to know the flight price?• Presenting alternatives
There is no information about Girona airport, only about Barcelona
• Guiding the user about system’s limitations:
• When there is more user’s initiative there are more problemes caused by the lack of information of:Application tasksDomain informationLanguage recognized by the system
• Helping guides : initial indications, system’s messages
![Page 45: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/45.jpg)
45
Dialogue Management
• Errors recovery
• Different causes: noise envoirment, accents, vocabulary
• Several strategies to deal with problematic inputDirected dialog Explicit confirmation: asking to confirm only
what has not been completly understoodUsing statisticsOthers
• Dealing with interruptions
![Page 46: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/46.jpg)
46
Dialogue Management
Main design decisions• Functionality: The tasks the system has to
perform• Processing: How these tasks have to be
performed
Considerations• Task complexity• Dialogue complexity : Which dialogue phenomena
will be allowed• User initiative ?
Results• Robustness• Natural
![Page 47: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/47.jpg)
47
Dialogue Management
Content of dialogues• Restricted to the information related to the
application• Subdialogs: clarification, confirmation• Meta-dialogs (about the dialog)
• Are you still here?
Who can initiate different types of dialogues• Only the system • Only the user• Both
![Page 48: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/48.jpg)
48
Funcionality of dialogue manager
Determine the set of possible goals the system can select at each turn
Conditioned• Task complexity• Dialogue complexity
Are subdialogues allowed? Who is allowed to use them?
Are meta-dialogues allowed? Who is allowed to use them?
![Page 49: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/49.jpg)
49
Funcionality of dialogue manager(Research)
Task complexity: from medium to complex• Travel planning
Dialogue complexity • Subdialogues supporting complex features
•Mixed initiative•Collaboration to solve tasks
• Meta-dialogues
![Page 50: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/50.jpg)
50
Funcionality of dialogue manager(Real systems)
Tasks complexity: from simple to moderate• Information about the weather• Information about train schedule
Dialogue complexity• Tasks restricted• System initiative
• Limited subdialogues
![Page 51: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/51.jpg)
51
Processing of dialogue manager
Initiative strategies• System• User• Mixed• Variable
Mechanisms for modeling initiative • System and mixed initiative: finite state machine• Variable initiative, depending on:
• Dialogue history Understanding errorsOthers
![Page 52: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/52.jpg)
52
Knowledge sources
Dialogue Manager can use• Dialogue models
• Define general dialogue phenomena• Tasks models
• Define specific application tasks • Frame based systems. Obtain parameter values
Flight information: departure, arrival, date•Domain models
• Concepts and relations in a specific domain• Apropriate for complex domain
• These models can be implicit• Finite state systems
![Page 53: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/53.jpg)
53
Dialogue Model
Dialogue model • Define the framework under which the user
interventions have to be interpreted
Dialogue state • Reference entities, relationship between
them
![Page 54: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/54.jpg)
54
Dialogue Management (Abstract)
Decide system’s respond to user's intervention
• Inferring user's needs• Dealing with ambiguity and not complete
information
• Accessing the application (or knowledge source)
• Presenting the answer to the user
![Page 55: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/55.jpg)
55
Dialogue Management (Abstract)
Research systems• Focused on the development of models
and algorithms for supporting several dialogue phenomena for complex tasks
Real systems• Focused on the development of robust
strategies, to deal efficiently with most common dialogue phenomena for simple applications
![Page 56: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/56.jpg)
56
• Interpreting user’s intervention
– Using dialog and domain knowledge
• Dialogue Management– Determine next system actions considering user's
intention
• Answer Generation– Generate the system's sentences most
appropriate at each state of the dialogue
Tasks of the Dialogue Systems
![Page 57: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/57.jpg)
57
Answer Generation
Generation of sentences to achieve the goals the dialogue manager has selected
Tasks• Content selection: what has to be said
• Belongs to the discourse plan
• Superficial realization: how has to be said• Presenting content correctly
![Page 58: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/58.jpg)
58
Content Selection
Determine the content of the system sentences in order to achieve the goals
Examples:• Madagascar is not shown in Sant Cugat
[Nucleus]•It is shown in Barcelona [Satellite]
• Would you like a suite? [Nucleus]•It is the same price than the doble room
[Satellite]• Magic Flaute is not shown this year at
Liceu [Nucleus]•But Figaro Wedding is [Satellite]
![Page 59: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/59.jpg)
59
Content selection (Research)
Knowledge Bases• Domain knowledge• User believes• User model: preferences, language.• Dialogue history
Mechanisms for content selection• Schemes - patterns
• First object name, then attributes• Rules • Plans• Reasoning
![Page 60: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/60.jpg)
60
Content selection (Real systems)
Knowledge sources• Domain knowledge• Dialogue history
Strategies pre-defined for content selection• Only nucleus, not satellite • Nucleus + satellite fixed
![Page 61: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/61.jpg)
61
Superficial realization
Goal: to determine how content selected is presented
Examples:Madagascar is shown at CINESA cinema
in Sant Cugat Tasks
• Construction of phrases • Lexical selection
![Page 62: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/62.jpg)
62
Superficial realization (Research)
The generator input is• Semantic representation • Phrase structures
The generator uses a grammar and a lexicon for generating the sentence
![Page 63: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/63.jpg)
63
Superficial realization (Real systems)
Predefined (canned) sentences• Sentences to achieve specific goals
• Initial and final sentences• Ask the user to repeat
• Specially appropriate for speech Patterns
• Patterns for goals• Notification: You have been assigned number
X.• Information: A,B,C,D, and E are shown at
cinema F.• Clarification: Did you said X or Y?
![Page 64: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/64.jpg)
64
Components of spoken dialogue systems
Voice input: From acustic signal to meaningConversion of the signal to a set of wordsObtention of meaning from words
Voice output: From content to acustic signal Conversion of content to text sentences Conversion from text to signal
Dialogue Manager
![Page 65: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/65.jpg)
65
Voice input: From acustic signal to meaning
Transforming the signal to a set of words
• Disfluences
• Pauses, expressions like: umm, aah
• Fragments of words
• Models using pauses
• Words that do not appear in the lexicon used• Models that can learn new words
• Mobile: more difficult
![Page 66: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/66.jpg)
66
Voice input: From acustic signal to meaning
Obtention of meaning from words
Probabilistic model (i.e. n-gram) it specifies the probability of a particular word once
previous word has been recognized
• It is not understanding
•Probability of previous word is not one : many
alternative hypothesis
Example: Euthanasia o youth in Asia
•Not gramaticaly correct, fragments, disfluencies
![Page 67: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/67.jpg)
67
Voice input: From acustic signal to meaning
Obtention of meaning from words
• NLP is based in a complete syntactic analysi
• The approach in voice is different
•Many recognition mistakes, unknown
words
• Semantic approach (in restricted domain
systems)
![Page 68: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/68.jpg)
68
VOICEXML: A VOICE STANDARD
System development easy and fast•Low level details are transparent
Internet access•Client/Server architecture
Multilinguality•More than a language Example:Català and Castellà can be
mixed “ Plaza Sants” “ Calle Manuel Girona”
![Page 69: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/69.jpg)
69
VOICEXML: A VOICE STANDARD
Limitations
Only voice • Touch-tone DTMF
The dialog has to be defined for each application
System initiative•No user initiative
![Page 70: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/70.jpg)
70
Design of dialogue systems
Gould and Lewis principles (1985) Study users and application tasks
• Interviews to users• Obtaining person-person dialogues
Development of a prototype• Using Wizard-of-Oz method. A person
substitutes the machine Interactive design
• Users have to prove the system. Incorporation of new information
![Page 71: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/71.jpg)
71
Evaluation
Goal: to determine how well the system is working
Difficulties• Determine correct and incorrect dialogues• Comparing strategies and dialogs• Metrics selection
• Efficiency versus correctness
• Determine the relationship between different metrics • Long or short dialogues?
• High cost
![Page 72: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/72.jpg)
72
Only system’s initiative• More successful dialogues• Less recognition errors
Only user’s initiative• More natural• Shorter (advantage?)• More subdialogs for detecting errors
Evaluation
![Page 73: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/73.jpg)
73
Evaluation
Evaluation paradigm• Evaluation of the final result success
• Evaluation of the final result success and also the process• Different metrics for different components• Only one function to evaluate the set
![Page 74: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/74.jpg)
74
Evaluation only of the success of final result
Appropriate for question/answering systems• Easy to define correct answers• For each question
• Obtaining the correct answer • Obtaining system’s answer• Comparing answers• Quantification of the processing of the system
Advantages: simple Disadvantages: ignore other important
aspects
Evaluation
![Page 75: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/75.jpg)
75
EvaluationEvaluation of the final result and the
processDifferent metrics for different components• Voice recognition
• errors in word recognition (WER)• Interpretation: attribute-value matrix• Dialogue Manager
• Quality of system’s responds• Strategies for recovery of errors
• Dialogue system • Success of final result• Number of turns• Time
![Page 76: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/76.jpg)
76
Evaluation
Different metrics for each component• Advantages:
• Considering all the process to complete the task
• Limitations:• The metrics may not be independent from each
other • Difficulties for comparing different dialogue
systems
![Page 77: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/77.jpg)
77
Evaluation
Only one function to evaluate all the process
PARADISE [Walker et al] Maximizes user’s satisfaction
• Maximizes task success• Minimizes cost
• Efficiency measurements - Number of interventions - Waiting time • Quality measurements - Ratio of errors recovery
![Page 78: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/78.jpg)
78
Evaluation
PARADISE Function of measurements
• Values on user satisfaction• Questionnaires
• Values of several metrics • Applying multiple linear regression to
obtain a function that relates user satisfaction and other metrics
![Page 79: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/79.jpg)
79
Evaluation
Advantages• It compares different systems • It specifies the contribution of each system
component to the global performance• It can be used for predicting future versions
Disadvantages• High cost for obtaining the function• High cost for adapting the function to other
systems.
![Page 80: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/80.jpg)
80
Formas lógicas utilizadas en SISCO
¿Cúal es el caudal del rio Ebro?
preg(Y, ex(rio1(X)&X=ebro,caudal(Y,X)))
¿Dónde desemboca el rio Ebro?
preg(X, ex(rio1(Y)&Y=ebro,desemboca(Y,X)&lugar(X)))
![Page 81: 1 APPLICATIONS IN NATURAL LANGUAGE PROCESSING NATURAL LANGUAGE INTERFACES AND DIALOGUE SYSTEMS](https://reader035.vdocuments.us/reader035/viewer/2022062320/56649cf35503460f949c1355/html5/thumbnails/81.jpg)
81
An example of conversation in a Dialogue System
C D {tema: bienvenida } Interc {objetivo: saludar} Interv
S> Welcome to the informaton service, what do you want
D {tema: viaje en tren de Barcelona a Valencia} Interc {objetivo: petición de una información} Interv U> Quisiera ir de Barcelona a Valencia Sub {tema: fecha del viaje} Interc {objetivo: precisión}
Interv S> ¿En qué fecha? Interv U> el martes que viene
Sub {tema: hora del viaje} Interc {objetivo: precisión}
Interv S> ¿qué horario, mañana o tarde? Interv U> a primera hora
Interv S> Hay 3 trenes, el Euromed .... Interc {objetivo: petición de una información} Interv U> ¿Cuánto vale el billete en segunda? Interv S> 8000 pesetas D {tema: despedida} Interc {objetivo: despedirse} Interv U> Gracias, buenas tardes Interv U> Gracias a Vd, buenas tardes