AU2010238568B2 - A development system for a dialog system - Google Patents

A development system for a dialog system Download PDF

Info

Publication number
AU2010238568B2
AU2010238568B2 AU2010238568A AU2010238568A AU2010238568B2 AU 2010238568 B2 AU2010238568 B2 AU 2010238568B2 AU 2010238568 A AU2010238568 A AU 2010238568A AU 2010238568 A AU2010238568 A AU 2010238568A AU 2010238568 B2 AU2010238568 B2 AU 2010238568B2
Authority
AU
Australia
Prior art keywords
application
dialog
prompts
prompt
grammars
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
AU2010238568A
Other versions
AU2010238568A1 (en
Inventor
Bradford Craig Starkie
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Telstra Corp Ltd
Original Assignee
Telstra Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from AU2003257266A external-priority patent/AU2003257266A1/en
Application filed by Telstra Corp Ltd filed Critical Telstra Corp Ltd
Priority to AU2010238568A priority Critical patent/AU2010238568B2/en
Publication of AU2010238568A1 publication Critical patent/AU2010238568A1/en
Application granted granted Critical
Publication of AU2010238568B2 publication Critical patent/AU2010238568B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • G10L15/1815Semantic context, e.g. disambiguation of the recognition hypotheses based on word meaning

Abstract

A development system, including a scenario generator for generating a plurality of sample interactions representative of interactions between a dialog system and a user of the dialog system on the basis of definition data for the dialog system. The definition data includes state machine code, prompt data, and recognition data. A simulator generates prompts of sample interactions on the basis of the prompt data, and the scenario generator generates responses to the prompts on the basis of the recognition data. A scenario editor allows a user to modify the sample interactions. A grammar learner then updates the prompt data and the recognition data on the basis of the modified sample interactions. An application builder generates the definition data from specification data provided by a developer, an application template, and/or an existing dialog application. C:\NRPortbl\DCC\MKA\3272329_1.DOC - I/1 1/10 start define application specification Application build application Application templates library application definition Simulate & refine application generate application application end Figure 3

Description

Australian Patents Act 1990 - Regulation 3.2A ORIGINAL COMPLETE SPECIFICATION STANDARD PATENT Invention Title "A development system for a dialog system" The following statement is a full description of this invention, including the best method of performing it known to me/us:- A DEVELOPMENT SYSTEM FOR A DIALOG SYSTEM FIELD OF THE INVENTION The present invention relates to a development system for a dialog system, and in 5 particular to a system and process for developing a natural language interactive dialog system. BACKGROUND A dialog system has a text or audio interface, allowing a human to interact with the system. 10 Particularly advantageous are 'natural language' dialog systems that interact using a language syntax that is 'natural' to a human. A dialog system is a computer or an Interactive Voice Response (IVR) system that operates under the control of a dialog application that defines the language syntax, and in particular the prompts and grammars of the syntax. For example, IVRs, such as Nortel's PeriphonicsTM IVR, are used in 15 communications networks to receive voice calls from parties. An IVR is able to generate and send voice prompts to a party and receive and interpret the party's voice responses made in reply. However, the development of a dialog system is cumbersome and typically requires expertise in both programming and the development, of grammars that provide language models. Consequently, the development process is often slower than desired. 20 One approach to reducing the time and expertise of developing natural language dialog systems is to use processes whereby a relatively small amount of data describing the task to be performed is provided to a development system. The development system can then transform this data into system code and configuration data that can be deployed on a 25 dialog system, as described in International Patent Publication number WO 00/78022, A Method of Developing An Interactive System ("Starkie"). However, one difficulty of this process is that the development system needs to make numerous assumptions, some of which may result in the creation of prompts that, while understandable to most humans, could be expressed in a manner more easily understood by humans. For example, a prompt -2 may be created that prompts a person to provide the name of company whose stocks they wish to purchase. The development system might create a prompt such as 'Please say the company", whereas the phrase "Please say the name of the company whose stocks you wish to purchase" may be more understandable to a human interacting with the dialog 5 system. Another approach, described in Starkie, for reducing the time and expertise requirements for developing a natural language dialog system is to use processes whereby developers provide examples of sentences that a human would use when interacting with the dialog 10 system. A development system can convert these example sentences into a grammar that can be deployed on a computer or IVR. This technique is known as grammatical inference. Successful grammatical inference results in the creation of grammars that: (i) cover a large proportion of the phrases that people will use when interacting with the dialog system; 15 (ii) attach the correct meaning to those phrases (iii) only cover a small number of phrases that people won't use when interacting with the dialog system; and (iv) require the developer to provide a minimal number of example phrases. 20 The use of grammatical inference to build a dialog system is an example of development by example, whereby a developer can specify a limited set of examples of how the dialog system should behave, rather than developing a system that defines the complete set of possible examples. 25 Thus a development system can be provided with a list of interactions between a human and a dialog system using a notation that lists the sentences in the order they are spoken or written, indicating whether it is either the dialog system or the human that is speaking (or writing). This is referred to as an example interaction. Similarly, an example interaction can be defined by recording or transcribing the interactions between two or more humans. 30 A benefit of this technique is that example interactions are understandable to anybody who understands the language contained within them. In addition, most people would be -3 capable of creating example interactions of desired behaviour. There is also the benefit that example interactions describe specific behaviours, given a set of inputs, and therefore provide test cases for the behaviour of the dialog system. As they document specific behaviour, there is also a reduced risk of errors being introduced in the specification of the 5 dialog system for the given behaviour listed in the example interactions. Example interactions are also ideal forms of documentation to describe the behaviour of the dialog system to others. Example interactions can be annotated to include high level descriptions of the meaning of 10 a sentence. This annotation might include the class of the sentence, and any key pieces of information contained in the phrase, known as slots. For example, the sentence "I want to buy three hundred acme bolt shares" might be annotated to signify that the class of the sentence is buystocks as opposed to sellstocks, and that the quantity slot of the sentence is 300, while the stockname slot is "acme bolt". 15 An example interaction can be converted into a model that describes a sequence of sentence classes. One example of such a model is a state machine. A state machine is a model that causes an action or output to take place, depending upon the input it receives. A state machine can react differently to the same input, depending upon its current state. The 20 state of a state machine can also change depending upon the input it receives. For example, a dialog system may respond differently to the sentence "yes i'm sure" depending upon whether it has just asked the question "are you sure you want to quit?" or the sentence "are you sure that you want to buy three hundred shares of acme bolt?". 25 Grammatical inference techniques can be used to create a state machine that can generate a sequence of symbols, using an example set- of sequences. These techniques are typically applied to the creation of a class of grammars known as regular grammars. As a result, a state machine that defines all of the valid sequences of sentence classes in a dialog system can be inferred from a limited set of example interactions. To do this with a minimal 30 number of training examples requires some assumptions to be made. In particular, this approach suffers from the following difficulties: C \NRPonbl\DCC\REC\37451(X)f DOC- BATE * 7ERGEFOR7AT -4 (i) The example dialogs need to be constrained in some way to allow easy generalisation. For instance, it is extremely difficult, if not impossible, for a current state of the art development system to automatically build a dialog system from a set of example interactions between two humans. 5 (ii) Specifying a dialog system using only a set of example interactions may require a large number of example interactions. The difficulty in doing this may outweigh any benefit of reduced speed of development. (iii) Sentences in the set of example interactions need to be annotated consistently. 10 (iv) A set of example interactions contains only information that is visible to someone interacting with the dialog system. Example interactions contain sentences created by the dialog system and the human interacting with it, but not the sequence of internal interactions required to make decisions as to what sentences should be spoken by the dialog system. 15 Thus a development system for dialog systems that uses only example interactions is unlikely to meet the objectives of reduced development time and expertise. It is desired to provide a system and process for developing a dialog application that alleviate one or more of the above difficulties, or at least provide a useful alternative to existing development 20 systems and processes. SUMMARY In accordance with the present invention, there is provided a process for developing a 25 dialog application and executed by a computer system, including: accessing application specification data for the dialog application, the application specification data defining tasks performed by the dialog application, items of information needed for the tasks, and information created by executing the tasks; processing the application specification data to generate application definition data 30 defining a dialog state machine, recognition grammars, and prompt grammars for the dialog application; C\NRPorbPDCC\REC,3745|IEI DOC- ATE 7ERGEFOR7AT -5 processing the application definition data to generate a plurality of example interactions representative of interactions between said dialog application and a user of said dialog application, wherein the plurality of the example interactions includes at least one example of a possible prompt corresponding to each rule of a plurality of rules of the 5 prompt grammars, and at least one example of a possible user response corresponding to each rule of a plurality of rules of the recognition grammars; providing the generated example interactions to a user for modification; receiving the modified example interactions from the user; processing the modified example interactions to update the recognition grammars, the 10 prompt grammars, and the state machine; and generating the dialog application from the updated state machine and the updated recognition grammars and the updated prompt grammars. The present invention also provides a development system for developing a dialog 15 application for an interactive voice response system, and comprising: an application builder configured to process application specification data defining tasks performed by the dialog application, items of information needed for the tasks, and information created by executing the tasks to generate application definition data defining a dialog state machine, recognition grammars, and prompt grammars for the dialog 20 application; a scenario generator configured to process the application definition data to generate a plurality of example interactions representative of interactions between said dialog application and a user of said dialog application, wherein the plurality of the example interactions includes at least one example of a possible prompt corresponding to 25 each rule of a plurality of rules of the prompt grammars, and at least one example of a possible user response corresponding to each rule of a plurality of rules of the recognition grammars; a scenario editor including graphical user interface components for modifying said example interactions; 30 one or more learning components configured to process the modified example interactions to update the recognition grammars, the prompt grammars, and the state machine; C:NRPorblDCC\REC\745I_ IDOC-SATE *7ERGEFOR7AT - 5A a code generator configured to generate the dialog application from the updated state machine, the updated recognition grammars, and the updated prompt grammars. BRIEF DESCRIPTION OF THE DRAWINGS 5 Preferred embodiments of the present invention are hereinafter described, by way of example only, with reference to the accompanying drawings, wherein: Figure 1 is a schematic diagram of a preferred embodiment of a natural language application development system connected to an IVR via a communications network, with the IVR connected to a telephone via a telecommunications network; 10 Figure 2 is a block diagram of the natural language application development system; Figure 3 is a flow diagram of an application development process of the natural language application development system; Figure 4 is a flow diagram of an simulate and refine application process of the 15 application development process; Figure 5 is a flow diagram of a scenario generation process of the simulate and refine application process; and Figures 6 to 8 are screenshots of windows generated by the natural language application development system. 20 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS As shown in Figure 1, a natural language application development system 100 can be connected to a VoiceXML-enabled interactive voice response system (IVR) 102 via a communications network 104. The development system 100 executes a natural language 25 application development process which allows an application developer to develop a -6 natural language dialog system using a graphical user interface of the development system 100. The development system 100 generates a dialog application that can be installed on the IVR 102 via the network 104 to create and configure the dialog system. A standard telephone 106 can be used to access the IVR 102 via the public switched telephone 5 network (PSTN) 108, allowing a user of the telephone 106 to interact with the natural language dialog system by speaking into the telephone 106 to provide speech input to the dialog system in response to voice prompts provided by the dialog system. Alternatively, the natural language application development system 100 can generate a natural language dialog application for execution by a standard computer system to provide a dialog system 10 that can accept speech (i.e., audio) input or text input. In the described embodiment, the natural language application development system 100 is a standard computer system, such as an IntelTm x86-based personal computer executing a Microsoft WindowsTM operating system, and the natural language application development 15 process is implemented by software modules, shown in Figure 2, stored on non-volatile memory of the development system 100. However, it will be apparent to those skilled in the art that at least parts of the natural language application development process or modules can be alternatively implemented by dedicated hardware components such as application-specific integrated circuits (ASICs). The IVR 102 may be a Nortel 20 PeriphonicsTm IVR. The IVR 102 executes a dialog application that includes VoiceXML language elements. However, the dialog application could include one or more components in any language that can be used to define a spoken dialog application, such as VOXML or a proprietary language. The network 104 can be any communications network that enables the dialog application to be loaded onto the IVR 102, such as an Ethernet LAN or WAN. 25 As shown in Figure 2, the application development system 100 includes an application wizard 202, an application builder 204, a scenario generator 206 with a simulator 208, a dialog learner 212, a grammar learner 214, a prompt learner 218, and a code generator 216. The development system 100 also includes an application library 222 and application 30 templates 220. The development system 100 constitutes an integrated development environment (IDE) for the development of natural language applications.
-7 The development system 100 executes an application development process, as shown in Figure 3, that begins at step 302 when the developer defines application specification data 203 describing the dialog application at a high level using the application wizard 202. 5 This includes defining operations or tasks that are to be performed by the dialog system being developed, by providing the name of each corresponding task, along with information that needs to be collected and the information that is created as a result of executing the operation, along with the type of each item of information. For example, the developer can specify that the dialog system is a stock or share system with a "buy" and a 10 "quote" operation. The "buy" operation requires a stock name, a stock quantity and a stock price. The quantity is of predefined type integer and the price is of predefmed type money. The values that the stock name can take are defined by providing a list of all available stock names. The developer can also specify a number of predefined options for the dialog system, for example, the developer can specify that the dialog system is not protected by a 15 personal identification number (PIN) and does not allow callers to leave messages or to transfer to an operator. At step 308, the application builder 204 generates an application definition 224, as described below, from the high level specification data 203 on the basis of rules defined by 20 application templates 220, as described in Starkie. Alternatively, the application definition 224 can be based on an existing dialog application selected by the developer from a list of predefined applications stored in the application library 222. For example, the application library 222 may define a telephone ordering system wherein a user can list products that can be purchased along with their prices and available quantities. The 25 application builder 204 can generate the application definition 224 by adding new code generated from the specification data 203 and an application template 220 to a copy of the selected application from the application library 222. If the selected telephone ordering system includes much of the required functionality of the desired stock application, this can reduce the development time considerably. 30 -8 As shown in Figure 2, the application definition 224 includes a description of a dialog state machine 226, recognition grammars 228, and prompt models 230. The dialog state machine 226 is represented in voice extensible markup language, also known as VoiceXML or VXML, as described at http://www.voicexml.org, whereas the recognition 5 grammars 228 and prompt models 230 are represented in a grammar notation, as described in Starkie. Hence the prompt models 230 are also referred to as prompt grammars 230. As described below, the prompt grammars 230 are subsequently converted into a part of the application 236 that converts variables, and a prompt name, into either a text string to be sent to a text-to-speech system of the IVR 102, or a list of pre-recorded audio files that are 10 concatenated together. The dialog state machine 226 defined in VXML can be extremely complex due to the inclusion of a general purpose programming language within the VXML standard. Once the initial application definition 224 has been generated, it can be simulated and 15 refined at step 306 until the developer is satisfied that it meets the desired requirements. As shown in Figures 2 and 4, the simulate and refine application process 306 begins when the application builder 204 generates a set of covering prompts 232 from the prompt grammars 230 at step 402. The covering prompts 232 are examples of prompting sentences for prompting a user of the dialog system to provide a response, and are such that for every 20 rule in the prompt grammars 230 there is at least one corresponding example prompting sentence, as described below. Alternatively, some rules in a prompt grammar extracted from the application library 222 can be annotated prior to their addition to the application library 222 to indicate that they are not to be modified by prompt leading, as described below, in which case no covering examples are required for these rules. 25 In addition to generating covering prompts 232, at step 404 the application builder 204 also generates a set of covering examples 242 of the recognition grammar 228 to be used for grammar learning, as described in Starkie. That is, the covering examples 242 include at least one example of a possible user response corresponding to each rule in the recognition 30 grammar 228.
-9 The application wizard 202 then invokes the scenario generator 206 to generate scenarios or example interactions 234 at step 406. The scenario generator 206 includes a simulator 208 which can interpret complex VXML scripts. The simulator 208 can operate in two modes. In a first mode, the simulator 208 interacts with the developer using text input and 5 stores the interaction in the form of an example interaction 234. In a second mode, the simulator 208 interacts with the scenario generator 206, so that the scenario generator 206, rather than the developer, provides the input to the simulator 208. The scenario generator 206 is closely coupled to the simulator 208 in order to determine which grammars are active at any point in a dialog. The scenario generator 206 can also determine the scope of 10 a grammar, which indicates whether the grammar is active all the time, or only when it is in a particular dialog state. The scenario generator 206 then attempts to provide enough input to the simulator 208 to create a set of example interactions 234 that are broad enough to give a good representation of the behaviour of the dialog system. 15 Although the natural language application development system 100 is used to develop dialog systems that are mixed initiative applications (i.e., applications capable of interpreting an input phrase containing multiple pieces of information, and/or accepting input phrases in any sequence, as provided by the speaker), example interactions that are computer directed (i.e., containing a single piece of information and only being provided 20 by the speaker when requested by the application) provide a greater coverage of the number of prompts than example interactions that are mixed initiative. Consequently, the scenario generator 206 first attempts to create example interactions that contain only computer directed dialogs. When executed a second time, the scenario generator 206 attempts to create mixed initiative examples. The scenario generator 206 generates a 25 similar number of mixed initiative examples as the number of computer directed examples. The aim of the scenario generator 206 is to generate the smallest number of example interactions 234 that cover the majority of -the application. The scenario generator 206 takes as its input complex VXML 226 and grammars 228, 230. In addition, the VXML 226 30 can make reference to logic stored elsewhere. For example, the VXML 226 can call common gateway interface (CGI) scripts, and it can access a database. Although the -10 VXML 226 can be extremely complex, simplifying assumptions can be made that result in a high probability of creating a good covering set of example interactions, even if the assumptions are not true. 5 Firstly it is assumed that the VXML 226 can be represented by a Markov model. A Markov model is a model that represents a sequence of events. After one particular event has occurred, only a finite number of other events can occur after it, with a given probability. Markov Models are useful for modelling systems in which the sequence of events is random, or when the sequence of events follows some patten, but where the 10 pattern is too difficult to model. Although Markov Models contain probabilities, the probabilities of the model are ignored by the scenario generator 206. In the model used by the scenario generator 206, an event is a line in an example transaction 234. Each line in an example interaction 234 represents an event: either the dialog system performing a task, or the speaker performing a task. An example interaction is given in appendix B using the 15 notation described in appendix A. Each line in the example interaction can be described by its event type. For speech recognition events, the name of the event is the same as the name of the corresponding grammar fragment, which comprises the name of the grammar being 20 activated, and the top level nonterminal within that grammar, for example: "@airline: :.Asktimetablesformdestinationcity", where "airline" is the name of the grammar and ".Asktimetablesform destination city" is the name of the top level nonterminal. 25 For prompt events, the name of the event is the name of the prompt. Where a prompt is also described by a prompt grammar, the name of the prompt event is the name of the prompt grammar fragment, for example: "@airline .prompts:: .Asktimetablesform city of_departure" 30 - 11 A number of names are reserved. For example, the name "@speaker::" is given to an event that represents the playing of prompts that are not represented by a prompt grammar. The names "@startcall : : ", "@endcall: : ", and "@hangup: : " are given to the events where the dialog system answers a call, the dialog system ends a call, and when 5 the speaker hangs up, respectively. Names of the form "@record: :NAME-OF VARIABLE" are given to events where a developer's response is recorded. Rather than storing a Markov model to describe the dialog, the scenario generator 206 includes the following three data structures or lists: 10 (i) a list of all valid speech recognition events (Grammar Fragments), including a flag indicating whether the response to that event is expected to be the same regardless of the prompt played before it, and a count of the number of times that response has been given to the dialog system (i.e., the simulator 208); (ii) a list of all valid speech recognition events (Grammar Fragments) that can be 15 spoken after each prompt is played; and (iii) a list of example interactions. The third structure provides the example interactions 234 that are subsequently output by the scenario generator 206, and is used to determine what responses the scenario generator 206 should give at particular points of the dialog. 20 When generating menu driven example interactions, the scenario generator 206 operates in one of two submodes: a random walk mode, and a playback mode. The scenario generator 206 initially starts in random walk mode, with all three data structures empty. The VXMIL state machine dialog 226 is executed by the simulator 208 and the output generated is 25 stored in the list of example interactions. The example interactions 234 are generated by a scenario generation process, as shown in Figure 5. At step 502, the simulator 208 provides a question of the dialog to the scenario generator 206, together with a list of allowable responses or grammar fragments, along 30 with the scopes (local or global) of those grammar fragments. The scenario generator 206 uses this information to update its lists of valid speech recognition events. A grammar -12 fragment is classified as global if it is always active and can be spoken at any point. The scenario generator 206 initially assumes that the dialog system responds to global events in the same way, regardless of the question being asked, whereas the dialog system is expected to respond to local events in a different way depending upon the question being 5 asked. At step 506, the scenario generator 206 randomly selects a grammar fragment that has not been considered in that dialog state, i.e., a fragment that is not represented in the first list with a non-zero count value. At step 508, a phrase is randomly generated using the selected 10 grammar fragment and is passed to the simulator 208. At step 510, the list of used grammar fragments is updated to reflect the use of the selected fragment. These steps are repeated until all of the grammar fragments have been included in a phrase. If, at step 504, the scenario generator 206 cannot select an unused grammar fragment 15 because all the available fragments have already been considered in that dialog state, the scenario generator 206 then examines the second list at step 518 to determine whether any dialog states exist in which not all available inputs have been considered. If no such states exist, then the third list is saved as example interactions 234 and the scenario generator 206 hangs up. Otherwise, if such states do exist, an unused state is selected at step 516 using 20 the procedure described below, and the scenario generator 206 generates a preamble at step 514. The preamble is a sequence of events that moves the dialog from the state in which all inputs have been considered into the selected state in which not all inputs have been considered. Once the preamble has been executed or played back (at step 512) and the dialog is in the new state, the scenario generator 206 can resume its random walk. 25 Rather than calculating a preamble from a Markov model, the scenario generator 206 uses a "lazy learning" technique to determine a preamble. A list of target states (TI) is determined from the scenario generator 206's two lists of valid speech recognition events. These states are states representing prompts in which not all inputs have been considered. 30 Then, a list of desirable next inputs (NI) is generated from the two lists of valid speech - 13 recognition events. These inputs are valid inputs in that state in which the response of the dialog system is expected to be the same regardless of the previous prompt played. The scenario starts with the assumption that the dialog system responds to all global 5 grammars the same way regardless of the dialog state. For instance, after the speaker says "quit", the dialog system may quit. The scenario generator can determine from an unsuccessful attempt at a preamble that the assumption is not always true. For instance, the dialog system's response to phrases such as "repeat" and "help" are highly local, despite the grammar fragments being global. Also, not all states have global fragments active: 10 some states are tagged as "Modal", and in such states global fragments are disabled. In addition, the response to some global events can depend on quite complicated preconditions. For instance, in a purchasing application, the dialog system may respond to a "quit" input by asking the speaker whether they want to pay for the goods they have ordered, or quit regardless. This response would only occur if the speaker has ordered 15 something without confirming the purchase prior to saying "quit". A sequence of previously executed events is then extracted from the list of example interactions, that either : (i) moves the dialog from the current state to a state in the list TI; 20 (ii) defines a sequence from an input contained in NI to a state in the list TI ; (iii) defmes a sequence from the current state to the end state, plus a sequence from the beginning of a call to a state in the list TI; or (iv) defines a sequence from an input contained in NI to the end state, plus a sequence from the beginning of a call to a state in the list T1. 25 This sequence of previously seen events is used as the preamble. Because the list of valid speech recognition events for each prompt is populated by experimentation on the part of the scenario generator 206, it only includes a reference to a state if it knows how to reach that state from the beginning of a call. In addition, by the 30 time the scenario generator 206 reaches a state in which all inputs have been considered, it is most likely to have identified a phrase that enables the speaker to end the call. As a -14 result, the list of example interactions is highly likely to contain enough information to determine at least a preamble of the fourth type listed above. The preamble is determined by searching through the list of example interactions from top to bottom, one event at a time, searching for possible preambles. A count is stored that lists the shortest preamble 5 calculated so far. If a preamble is partially identified that is already longer than the previously found preamble, that preamble is rejected. As a result, the time required for determining the shortest preamble is approximately proportional to the length of the data contained in the list of example interactions. 10 While a preamble is being played back at step 512, the scenario generator 206 checks that the sequence of events being observed is the same as that predicted for the preamble. However, only the event type is examined; the slots and actual text are ignored. When the preamble defines a spoken input, the scenario generator 206 replays them from the preamble. The scenario generator 206 records the actual sequence of events and adds them 15 to the list of example interactions, regardless of whether it is in random walk or playback mode. If a preamble fails to behave as predicted, it will usually be because the dialog does not respond to a speech event in the same way regardless of the previous prompt played. As a 20 result, the list of valid speech recognition events for each prompt can be updated, and a^ new preamble identified. If a preamble cannot be identified, the scenario generator 206 saves the list of example interactions 234 and the scenario generation process terminates. When generating mixed initiative example interactions, the scenario generator 206 25 randomly generates responses by selecting the least used response to any question and by selecting grammar rules that are likely to produce phrases that have the largest number of slots. The scenario generator 206 generates as many events in the mixed initiative input as there are events in the menu driven inputs. 30 One limitation of the process described above is that some states can be "hidden" from the scenario generator 206. For example, if the dialog requires a four digit PIN to be spoken, - 15 the scenario generator 206 will randomly generate a PIN, and is unlikely to generate the correct PIN. The existence of hidden states can be easily detected by determining the percentage of the total numbers of prompts and grammars used. The total number of prompts and grammar fragments contained within a VXML script can be extracted from 5 the script without requiring any understanding of how the VXML calls these fragments. One method of overcoming the hidden state problem is to select a larger number of representative examples of a particular event type. While this method is suitable for fragments in which the number of responses is small (such as "Yes" or "No"), it is likely to 10 create an inordinate number of events for fragments in which the number of responses can be large (for example, selecting 1000 different PIN numbers.). Instead, the simulator 208 records and saves the three data structures described above while the simulator 208 is interacting with a human. If the percentage of the application covered by the example interactions generated by the simulator 208 and the scenario generator 206 is too small, the 15 developer is asked to take over from the scenario generator 206 and interact with the simulator 208. Once the developer has reached a previously "hidden" state in the dialog, the scenario generator 206 takes over from the developer and creates additional example interactions. In an alternative embodiment, the developer is asked to interact with the simulator 208. When the developer has completed interacting with the simulator 208, the 20 scenario generator 206 is called again. If the scenario generator 206 determines tiiat ny previously hidden states are now visible, it can then determine a preamble to reach that state, and can continue to generate additional example interactions. Returning to Figure 4, after the example interactions 234 have been created, the developer 25 can view and modify them using the scenario editor 210 at step 408. As shown in Figure 6, the scenario editor 210 generates a graphical user interface window 600 displaying the example interactions in an editable table. Each row in the table corresponds to an action taken by either the dialog system or the speaker. The first column 602 indicates whether the action was taken by the dialog system ("MACHINE>") or the speaker interacting with 30 it humanMAN>". The second column 604 indicates either the action type or, in the case of -16 a verbal action, the words used in the action. The text of a verbal action can be modified by the developer. The third column 606 provides any annotations attached to verbal actions. The developer can edit the contents of the second column 14 to change the words used by a 5 human interacting with the dialog system, as listed in the table. In doing so, the developer specifies an alternative way in which the statement could be phrased by a human interacting with the dialog system. Similarly, the developer can change the words used by the dialog system when interacting with a human. Sentences that have been modified by the developer are annotated in the example interactions 234 as having been modified by 10 the developer. After the developer has completed editing the scenario, an "OK" button 608 is selected to close the window 600, exit the scenario editor 210, and execute the dialog learner 212 at step 412. The dialog learner 212 extracts all of the sentences in the example interactions 15 234 that define prompts that have been modified by the developer; these are selected as training sentences for prompt learning. Similarly, if the developer modified example phrases representing how speakers will interact with the dialog system, these example phrases are also added to the set of training phrases 244 for grammar learning. The number of covering prompts 232 is then determined. Every covering prompt 232 is then assigned a 20 count of 1. Every prompt that has been modified by the developer and has been exitiacted from the example interactions 234 is then given a count equal to the number of covering prompts 232. The dialog learner 212 then invokes the prompt learner 218 to apply prompt leading to update the prompt grammars 230 using grammatical inference, as described in Starkie. The result is an updated prompt grammar 230 that can generate the training 25 examples in the example interactions 234. After the prompt grammar 230 has been updated, the prompts in the example interactions 234 are updated at step 414. The dialog learner 212 processes the prompts in the example interactions 234, one prompt at a time. If the prompt text has been annotated 30 as having been modified by the developer, the prompt text is left unchanged. If the prompt is annotated as being generated by the scenario generator 206, then the prompt text can be -17 modified as follows. Firstly, the meaning of the prompt as listed in the annotation is used along with the prompt grammar 230 to generate a prompt. If the generated prompt is the same as that listed in the example interaction, no change is made. Alternatively, if the generated prompt differs from that in the example interactions 234, then the two prompts 5 are parsed using the prompt grammar 230, and the probabilities that the prompt grammar 230 would generate the two differing prompts are generated. (The probability that a sentence is generated by a grammar is the product of the probabilities that each rule used to generate the sentence is used to expand a non-terminal. Grammatical inference assigns a probability to newly created rules based upon the probabilities of the training 10 examples 244.) If the probability of the new prompt is greater than or equal to twice the probability of the existing prompt, then the old prompt is replaced by the new prompt. After the example interactions 234 have been modified, the covering prompts 232 are updated at step 416. Only covering prompts that do not contain slots, as indicated by the 15 prompt annotations, are candidates for updating. As above, using the slots and the prompt grammar 230, a prompt representing the annotations is generated. If the prompt that is generated using the prompt grammar 230 differs from the old prompt, then the respective probabilities of the prompt grammar 230 generating the new and old prompts are generated. If the probability of the new prompt is equal to or greater than the probability of 20 the prompt grammar 230 generating the old prompt, then the prompt is updAted.~Thi updating of the covering prompts 232 is undertaken to reduce the size of the prompt grammar 230 by removing entries for generating prompts that will never or rarely be generated in practice because a higher probability prompt will be generated instead. This removal of rules will only occur if the prompt learner 218 is subsequently re-executed. 25 Similarly, the dialog learner 212 invokes the grammar learner 214 to perform grammar learning on the recognition grammars 228. As shown in Figure 6, the scenario editor 210 also provides an "Add question and answer" 30 button 610 that enables the developer to add one or more questions and answers to the dialog at step 410. To add a question and answer, the developer first must select an entry - 18 in the example interaction 234 (as indicated by the shading in Figure 6) at which to insert an instance of the question being asked. When the "Add question and answer" button 610 is selected, a separate popup window 700, as shown in Figure 7, is generated, allowing the developer to type in a question and answer. The popup window 700 includes a question 5 text area 702 into which the developer can enter the question text. The developer can then select one of several predefined answers such as context sensitive help, "function not available" or "information not available" by selecting a radio button 704 and selecting a desired predefined answer from a pull-down answer menu 706. Alternatively, the developer can type in the answer to the question in an answer text area 708 and by 10 selecting a new answer radio button 710. A question, such as a Frequently Asked Question (FAQ), can be specified as being able to be asked at any point in the dialog by selecting a "Question can be asked at any time" checkbox 712. Alternatively, questions can be made specific to a particular point in the dialog by unselecting the checkbox 712. The scenario editor 210 determines and stores the name of the prompt that directly precedes the point at 15 which the question is inserted. If the name of this prompt cannot be determined, the question is considered to be able to be asked at any time. When converted to VXML, questions are implemented using links. Firstly, each question is given a name, based upon the text of the question. To do this, the question text is first 20 copied and then all words appearing in a stop list are removed. Stop lists are used in a number of information retrieval systems and contain the most commonly occurring words. Removal of stop words creates a short sentence that is likely to uniquely represent the question being asked. Whitespace in the name is then replaced with an underscore character. For example, the question "can i take my dog with me" results in a question 25 name of "dog_". If the question name is not unique, it has an integer appended to it to make it unique. A nonterminal of the form ".Question_" + question name is then created. Rather than creating any starting rules during the templating process, as described in Starkie, an example sentence is added to the grammar learning training set 244. After grammar learning is applied to the training set 244 at step 412, the example phrases 30 contained within the grammar learning training set 244 can be generalised to include many other phrases. For instance, if the single sentence "can i take my dog with me" is included - 19 in the training set 244 and the starting grammar contains the following rules from the grammar extracted from the application library 222: IGFIWantTo i was wondering if i could 1 1 IGFIWantTo i want to 1 1 5 !GFIWantTo can i 3 1 IGF_IWantTo i was hoping to 1 1 then the sentence is generalised to other sentences including: "i want to take my dog with me" and " i was wondering if i could take my dog with me." This generalisation occurs 10 using grammatical inference, as described in Starkie. Because the prompt played to answer a question is fixed, a single rule is added to the prompt grammar 230 by the dialog learner 214. The VXML is then extended by the dialog learner 212 as follows. Firstly, a link is added to 15 the top of the VXML, e.g., <link event="FAQNAME" > <grammar src="airline.rulelist#QuestionFAQNAME "/> </link> 20 For example, <link event="dog_" > <grammar arc="airline.rulelist#Question dog_"/> </link> 25 Code is then added to the VXML dialog code 226 to catch the event generated by the link, using the following template: <catch event="FAQNAME" > 30 <prompt> <value expr="PromptAnswerFAQNAMB() "/> </prompt> <reprompt/> </catch> 35 For example, <catch event="dog_" > <prompt> <value expr=" PromptAnswer-dog ()" /> -20 </prompt> <reprompt/> </catch> 5 If the question can be asked at any time, this code is added directly after the declaration of the link. Alternatively, if the question can only be asked at a specific time in the dialog (i.e., after a particular prompt has been played), the dialog learner 212 adds the event catch tag directly after the point at which that prompt is played. 10 The scenario editor 210 also enables the developer to disallow a person interacting with the dialog system to jump from one part of the dialog to another. To do this, the developer selects a row labelled "HUMAN>" in the scenario editor window 600 and selects a "Delete Bad Interaction" button 612. In response, the scenario editor 210 generates a "Deleting dialog transition" window 800, as shown in Figure 8. There are many reasons why a 15 transition from one part of a dialog to another may be unsatisfactory, most of them difficult to infer, and always requiring more than one example. In addition to correctly indicate the reason why a particular state transition is invalid, all example interactions need to be tagged consistently. To overcome these difficulties the "Deleting dialog transition" window 800 includes four radio buttons 802 to 808, allowing the developer to select one of 20 these buttons to indicate a reason why the state transition is considered invalid. Some of these reasons can be eliminated by the development system 106 in which case they are therefore not presented to the developer. For instance, the option "(X should not have a hot link)" is only presented to the developer if X has a hot link, and is not presented to the developer if "X" doesn't have a hot link. When an "OK" button 810 is selected, the 25 example interactions 234 and dialog state machine code 226 are modified by the dialog learner 212. Returning to Figure 3, after the dialog application has been simulated and refined to the developer's satisfaction, the application 236, including the application code 238 and 30 application grammars 240, is generated from the finalised state machine code 226 and grammars 228 and 230 by the code generator 216 at step 308. The application 236 is then installed on the IVR 102 to provide an executable dialog system.
-21 Many modifications will be apparent to those skilled in the art without departing from the scope of the present invention as herein described with reference to the accompanying drawings. 5 -22 APPENDIX A. Example Interaction Notation The following notation is described using Backus Naur Form ExampleInteraction : MenuDrivenCalls MixedInitiativeCalls; 5 MenuDrivenCalls: MenuDrivenMarker ListOfCalls MenuDrivenMarker; 10 MenuDrivenMarker '@startmenudriven:: l'; MixedlnitiativeCalls: EndMenuDrivenMarker ListOfCalls EndMenuDrivenMarker 15 EndMenuDrivenMarker : '@endmenudriven:: l'; ListOfCalls: ExampleCall . 20 ExampleCall ListOfCalls ExampleCall: EventList; 25 EventList: CallEvent | CallEvent EventList; CallEvent : 30 Eventld WordsSpoken Integer Tags - 23 EventId: '@' GrammarName '::' TopLeveName | '@' EventName '::' 5 WordsSpoken: Words| Words WordsSpoken; 10 Tags: KeyValuePair | KeyValuePair Tags; 15 KeyValuePair: Key '=' Value; GrammarNane : (any string of characters); TopLevelName : (any string of characters); 20 EventName : (any string of characters); Integer : (an integer); Words : (any string of characters); Key: (any string of characters); Value : (any string of characters); -24 Appendix B. Example Interaction @startmenudriven:: 1 @startcall:: 1 1 @airline.prompts::.SpeakerWELCOME welcome to the airline application. 1 5 @airline.prompts::.Menu main menu please say one of timetables or pricing 1 @airline::.Menu mainmenutimetables timetables 1 @airline.prompts::.Asktimetablesformdestinationcity please say the destination city 1 10 @airline::.Questiondog_ id like to take my dog with me 1 @airline.prompts::.Answer dog_ yes you can take your dog with you. 1 @airline.prompts::.Ask timetablesformdestinationcity please say the destination city 1 @airline::.Question_operator someone please 1 15 @airline.prompts::.Answer_operator i'm sorry but that functionality is not available in this service 1 @airline.prompts::.Asktimetablesformdestination city please say the destination city 1 @airline::.Help what can i say 1 20 @airline.prompts::.Help_Ask timetablesform _destinationcity please say the destination city. for example, aberdeen 1 @airline::.Asktimetablesformdestination city london 1 destinationcity="london" @airline.prompts::.Asktimetablesform_cityof departure please say the 25 city of departure 1 @airline::.Formpricingform pricing 1 @airline.prompts::.Ask_pricingformdestination_city please say the destination city 1 @airline::.Ask pricingform destination city narrabri 1 30 destinationcity="narrabri" @airline.prompts::.Askpricingformcityof departure please say the city of departure 1 @airline::.Questionhello hi there um 1 @airline.prompts::.Answerhello yes hello 1 35 @airline.prompts::.Askpricingform -city_of-departure please say the city of departure 1 @airline::.Quit bye 1 @airline.prompts::.Goodbye thank you for using this application, goodbye. 1 40 @endcall:: 1 1 @startcall:: 1 1 @airline.prompts::.SpeakerWELCOME welcome to the airline application. 1 @airline.prompts::.Menumainmenu please say one of timetables or pricing 1 45 @airline::.Menumain menu_pricing pricing 1 @airline.prompts::.Askpricingform destinationcity please say the destination city 1 @airline::.Formtimetablesform timetables 1 @airline.prompts::.Ask timetablesformdestination city please say the 50 destination city 1 @airline::.Repeat what did you say 1 @airline.prompts::.Asktimetablesformdestination city please say the destination city 1 @airline: .Asktimetablesformdestination city london 1 55 destination-city="london" -25 @airline.prompts::.Ask_timetablesform_cityof departure please say the city of departure 1 @airline::.Asktimetablesformcityof departure coolangatta 1 city of departure="coolangatta" 5 @airline.prompts::.Ask_timetablesformdate please say the date 1 @airline::.Ask_timetablesform _date last wednesday 1 date.day_ofweek="wednesday" date.modifier="last" @airline.prompts::.Ask_timetablesformtime please say the time 1 @airline::.Asktimetablesformtime half past twelve in the evening 1 10 time.hours-12 time.amLorpm=pm time.minutes=30 @airline.prompts::.ConfirmsayresUltstimetables the flight number is undefinedundefinedtwo oh oh the destination city is london the city of departure is coolangatta the date is last wednesday the time is twelve thirty in the afternoon 1 15 @airline.prompts::.Menumainmenu please say one of timetables or pricing 1 @airline;;.Questionhello hi there um 1 @airline.prompts::.Answerhello yes hello 1 @airline.prompts::.Menumainmenu please say one of timetables or pricing 20 1 @airline::.Questionhello yeah well then 1 @airline.prompts::.Answerhello yes hello 1 @airline.prompts::.Menumainmenu please say one of timetables or pricing 1 25 @airline::.Form_pricingform pricing 1 @airline.prompts::.Askpricingformdestinationcity please say the destination city 1 @airline::.Askpricingform -destination_city narrabri 1 destination city-"narrabri" 30 @airline.prompts::.Ask_pricingform-cityofdeparture please say the city of departure 1 @airline::.Ask_pricingform-city-ofdeparture nine hundred 1 city ofdeparture="900" @airline.prompts::.Ask_pricingformticketclass please say the ticket 35 class 1 @airline::.Questionhello okay hi uh 1 @airline.prompts::.Answerhello yes hello 1 @airline.prompts::.Askpricingformticketclass please say the ticket class 1 40 @airline::.Ask_pricingformticketclass economy 1 ticketclass="economy" @airline.prompts::.Confirm_sayresultspricing the destination city is narrabri the city of departure is nine oh oh the ticket class is economy the price is five hundred dollars 1 price.dollars=500 destinationcity="narrabri"l ticketclass="economy" price.cents=0 45 cityofdeparture=1"900" @airline.prompts::.Menu-main_menu please say one of timetables or pricing 1 @airline::.Formpricingform pricing 1 @airline.prompts::.Ask pricingformdestination_city please say the 50 destination city 1 @airline::.Askpricingform destination-city narrabri 1 destinationcity="narrabri" @airline.prompts::.Askpricingformcityof-departure please say the city of departure 1 55 @airline::.Questionhello hi 1 @airline.prompts::.Answerhello yes hello 1 -26 @airline.prompts::.Ask_pricingform city of departure please say the city of departure 1 @hangup:: 1 1 @endmenudriven:: 1 5 @startcall:: 1 @airline.prompts::.SpeakerWELCOME welcome to the airline application. 1 @airline.prompts::.Menumain menu please say one of timetables or pricing 1 @airline::.Formtimetablesform timetables 1 10 @airline.prompts::.Asktimetablesformdestination city please say the destination city 1 @airline::.Asktimetablesformdestination city portland oregon 1 destination_city."portland oregon" @airline.prompts::.Ask timetablesform_cityof departure please say the 15 city of departure 1 @airline::.Asktimetablesformcityof departure suva 1 cityof departure="suva" @airline.prompts::.Asktimetablesformdate please say the date 1 @airline::.Asktimetablesformdate the ninth of july 1 date.day=9 20 date.month="july" @airline.prompts::.Asktimetablesformtime please say the time 1 @airline::.Asktimetablesformtime thirteen twenty eight 1 time.hours=13 time.am_orpm=pm time.minutes=28 @airline.prompts::.Confirmsayresultstimetables the flight number is 25 undefinedundefinedtwo oh oh the destination city is portland oregon the city of departure is suva the date is ninth of july the time is thirteen twenty eight 1 @airline.prompts::.Menumainmenu please say one of timetables or pricing 1 30 @airline::.Form timetablesform timetables 1 @airline.prompts::.Asktimetablesformdestination city please say the destination city 1 @airline::.Formpricingform pricing 1 @airline.prompts::.Askpricingformdestination_city please say the 35 destination city 1 @airline::.Formtimetablesform timetables 1 @airline.prompts::.Ask timetablesformdestination city please say the destination city 1 @airline::.Asktimetablesformdestination city broome 1 40 destinationcity="broome" @airline.prompts::.Asktimetablesform cityofdeparture please say the city of departure 1 @airline::.Ask_t imetablesformcityof departure albury 1 cityofdeparture-"albury" 45 @airline.prompts::.Asktimetablesformdate please say the date 1 @airline::.Ask timetablesformdate twenty fifth of the month 1 date.day=25 @airline.prompts::.Asktimetablesformtime please say the time 1 @airline::.Asktimetablesformtime twelve fifty at night 1 time.hours=12 50 time.am_orpm=pm time.minutes=50 @airline.prompts::.Confirm-sayresultstimetables the flight number is undefinedundefinedtwo oh oh the destination city is broome the city of departure is albury the date is the twenty fifth day of the month the time is twelve fifty in the afternoon 1 55 @airline.prompts::.Menumainmenu please say one of timetables or pricing 1 @airline::.Formpricingform pricing 1 -27 @airline.prompts::.Ask_pricingformdestinationcity please say the destination city 1 @airline::.Askpricingform destinationcity dublin 1 destinationcity="dublin" 5 eairline.prompts::.Ask_pricingform-city_of_departure please say the city of departure 1 @airline::.Askpricingform cityofdeparture h seventeen three thousand 1 city of departure=1"h1730 00" @airline.prompts::.Askpricingformticketclass please say the ticket 10 class 1 @airline::.Ask_pricingform ticketclass economy 1 ticketclass="economy" @airline.prompts::.Confirmsayresultspricing the destination city is dublin the city of departure is h one seven three oh oh oh the ticket class is economy the price is five hundred dollars 1 price.dollars=500 15 destination city="dublin" ticketclass="economy" price.cents=0 cityof departure="h173000" @airline.prompts::.Menumainmenu please say one of timetables or pricing 1 @airline::.Form timetablesform timetables 1 20 @airline.prompts::.Ask_timetablesformdestination city please say the destination city 1 @airline::.Asktimetablesformdestinationcity tom price 1 destinationcity="tom price" @airline.prompts::.Asktimetablesformcityofdeparture please say the 25 city of departure 1 @airline::.Asktimetablesformcityof departure belfast 1 cityof departure="belfast" @airline.prompts::.Asktimetablesformdate please say the date 1 @airline::.Asktimetablesformdate this coming wednesday 1 30 date.day_of_week="wednesday" @airline.prompts::.Ask_timetablesformtime please say the time 1 @airline::.Asktimetablesformtime one oh one a m 1 time.hours=1 time.amorpm-am time.minutes=1 @airline.prompts::.Confirm sayresultstimetables the flight number is 35 undefinedundefinedtwo oh oh the destination city is tom price the _city of, departure is belfast the date is wednesday the time is one oh one in the morning 1 @airline.prompts::.Menumainmenu please say one of timetables or pricing 1 40 @airline::.Formpricingform pricing 1 @airline.prompts::.Askpricingformdestinationcity please say the destination city 1 @airline::.Askyricingform destination city detroit 1 destinationcity="detroit" 45 aairline.prompts::.Askpricingformcityof departure please say the city of departure 1 @airline::.Ask_pricingform cityofdeparture five hundred 1 cityof departure-"500" @airline.prompts::.Ask_pricingformticketclass please say the ticket 50 class 1 @airline::.Askpricingform ticketclass business 1 ticket class="business" @airline.prompts::.Confirm sayresultspricing the destination city is detroit the city of departure is five oh oh the ticket class is business 55 the price is five hundred dollars 1 price.dollars=500 destinationcity="detroit" ticketclass="business" price.cents=O cityofdeparture="500" -28 @airline.prompts::.Menumain_menu please say one of timetables or pricing 1 @airline::.Form timetablesform timetables 1 @airline.prompts::.Ask_timetablesformdestination_city please say the 5 destination city 1 @airline::.Asktimetablesformdestination city taree 1 destinationcity="taree" @airline.prompts::.Ask timetablesform_cityof departure please say the city of departure 1 10 @airline::.Asktimetablesformcityof departure paris 1 city of-departure="paris" @airline.prompts::.Ask__timetablesformdate please say the date 1 @airline::.Ask timetablesformdate friday 1 date.day_of week="friday" @airline.prompts::.Ask_timetablesformtime please say the time 1 15 @airline::.Ask timetablesformtime twenty two twenty four 1 time.hours=22 time.amorym=pm time.minutes=24 @airline.prompts::.Confirmsayresultstimetables the flight number is undefinedundefinedtwo oh oh the destination city is taree the city of departure is paris the date is friday the time is twenty two twenty four 20 1 oairline.prompts::.Menumainmenu please say one of timetables or pricing 1 @hangup:: 1

Claims (30)

1. A process for developing a dialog application and executed by a computer system, including: 5 accessing application specification data for the dialog application, the application specification data defining tasks performed by the dialog application, items of information needed for the tasks, and information created by executing the tasks; processing the application specification data to generate application definition data defining a dialog state machine, recognition grammars, and prompt grammars for the 10 dialog application; processing the application definition data to generate a plurality of example interactions representative of interactions between said dialog application and a user of said dialog application, wherein the plurality of the example interactions includes at least one example of a possible prompt corresponding to each rule of a plurality of rules of the 15 prompt grammars, and at least one example of a possible user response corresponding to each rule of a plurality of rules of the recognition grammars; providing the generated example interactions to a user for modification; receiving the modified example interactions from the user; processing the modified example interactions to update the recognition grammars, 20 the prompt grammars, and the state machine; and generating the dialog application from the updated state machine and the updated recognition grammars and the updated prompt grammars.
2. The process of claim 1, wherein said processing the application definition data to 25 generate includes automatically generating a plurality of prompts on the basis of said application definition data, providing said prompts to a user, and receiving responses to said prompts from said user.
3. The process of claim 1, wherein said processing the application definition data to 30 generate includes automatically generating a plurality of prompts on the basis of said application definition data, and automatically generating responses to said prompts on the C:\NRPortbl\DCC\REC\37451 I I.DOC -30 basis of said application definition data.
4. The process of any one of claims I to 3, wherein said example interactions include interaction text and application data. 5
5. The process of claim 3, wherein said processing the application definition data to generate a plurality of example interactions includes generating first example interactions, each of said first example interactions including interaction text and one item of application data; and subsequently generating second example interactions, each of said 10 second example interactions including interaction text and two or more items of application data.
6. The process of claim 3, wherein said processing the application definition data to generate a plurality of example interactions includes generating a plurality of prompts and 15 respective lists of possible responses to said prompts, and selecting responses from said lists.
7. The process of claim 6, wherein said selecting includes randomly selecting unselected responses from said lists. 20
8. The process of claim 6 or 7, including identifying a dialog state with at least one unselected response, and determining a sequence of events for entering said dialog state.
9. The process of claim 8, wherein said sequence of events is determined on the basis 25 of example interactions.
10. The process of claim 8, wherein said determining includes determining a first sequence of events for reaching an end dialog state and a second sequence of events for reaching said dialog state from an initial dialog state. 30
11. The process of claim 8, including determining two or more sequences of events for entering said dialog state and selecting from said two or more sequences to determine an C:\NRPortbl\DCC\REC\37451 IILDOC -31 event sequence with the least number of events.
12. The process of claim 8, wherein said determining a sequence of events for entering said dialog state includes providing one or more prompts to a user and receiving one or 5 more corresponding responses from said user.
13. The process of claim 8, including generating events on the basis of said sequence to enter said dialog state. 10
14. The process of claim 3, wherein said automatically generating a plurality of prompts includes selecting grammar rules of said prompt grammars to generate prompts that are likely to have responses having the largest numbers of items of information.
15. The process of any one of claims I to 14, wherein said recognition grammars and 15 prompt grammars are updated using grammar learning.
16. The process of any one of claims 1 to 15, including selecting prompts of said example interactions for updating only if said prompts have not been modified by a developer. 20
17. The process of any one of claims 1 to 16, wherein said application definition data is generated on the basis of said application specification data and at least one dialog application template. 25
18. A computer-readable non-transitory storage medium having stored thereon program instructions for executing the process of any one of claims 1 to 17.
19. A development system for developing a dialog application for an interactive voice response system, and comprising: 30 an application builder configured to process application specification data defining tasks performed by the dialog application, items of information needed for the tasks, and information created by executing the tasks to generate application definition data defining C:\NRPortbl\DCC\REC\37451 i _ I DOC - 32 a dialog state machine, recognition grammars, and prompt grammars for the dialog application; a scenario generator configured to process the application definition data to generate a plurality of example interactions representative of interactions between said 5 dialog application and a user of said dialog application, wherein the plurality of the example interactions includes at least one example of a possible prompt corresponding to each rule of a plurality of rules of the prompt grammars, and at least one example of a possible user response corresponding to each rule of a plurality of rules of the recognition grammars; 10 a scenario editor including graphical user interface components for modifying said example interactions; one or more learning components configured to process the modified example interactions to update the recognition grammars, the prompt grammars, and the state machine; 15 a code generator configured to generate the dialog application from the updated state machine, the updated recognition grammars, and the updated prompt grammars.
20. The development system of claim 19, including a simulator for generating prompts of said example interactions on the basis of said prompt grammars, and wherein said 20 scenario generator is configured to generate responses to said prompts on the basis of said recognition grammars.
21. The development system of claim 19 or 20, wherein said application builder is configured to selectably generate said application definition data from said application 25 specification data and an application template, or from an existing application.
22. The development system of any one of claims 19 to 21, wherein said graphical user interface components include a component for deleting a selected example interaction. 30
23. The development system of claim 22, wherein said graphical user interface components include a component for a developer to select a predetermined reason why said selected example interaction was deleted. C:\NRPonbl\DCC\REC\37451 II _I.DOC - 33
24. The development system of any one of claims 19 to 23, wherein said graphical user interface components include a component for defining a question and an answer to said question for display to a user of said dialog system. 5
25. The development system of claim 24, wherein said graphical user interface components include a question text component for defining question text and an answer text component for defining answer text. 10
26. The development system of claim 24 or 25, wherein said graphical user interface components include a component for selecting from a list of predetermined answers to said question.
27. The development system of any one of claims 24 to 26, wherein said graphical user 1 5 interface components include a component for specifying whether said question can be asked at any time.
28. The development system of any one of claims 24 to 27, wherein said graphical user interface components include a component for specifying that said question can be asked 20 during a selected example interaction.
29. A process for developing a dialog application and executed by a computer system, substantially as hereinbefore described with reference to the accompanying drawings. 25
30. A development system for developing a dialog application for an interactive voice response system, substantially as hereinbefore described with reference to the accompanying drawings. C:\NRPonbI\DCC\REC\374511 _1 DOC
AU2010238568A 2002-09-06 2010-11-01 A development system for a dialog system Ceased AU2010238568B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2010238568A AU2010238568B2 (en) 2002-09-06 2010-11-01 A development system for a dialog system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
AU2002951244 2002-09-06
AU2003257266A AU2003257266A1 (en) 2002-09-06 2003-09-05 A development system for a dialog system
AU2010238568A AU2010238568B2 (en) 2002-09-06 2010-11-01 A development system for a dialog system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
AU2003257266A Division AU2003257266A1 (en) 2002-09-06 2003-09-05 A development system for a dialog system

Publications (2)

Publication Number Publication Date
AU2010238568A1 AU2010238568A1 (en) 2010-11-18
AU2010238568B2 true AU2010238568B2 (en) 2011-08-11

Family

ID=43084516

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2010238568A Ceased AU2010238568B2 (en) 2002-09-06 2010-11-01 A development system for a dialog system

Country Status (1)

Country Link
AU (1) AU2010238568B2 (en)

Also Published As

Publication number Publication date
AU2010238568A1 (en) 2010-11-18

Similar Documents

Publication Publication Date Title
CA2497866C (en) A development system for a dialog system
US7143040B2 (en) Interactive dialogues
CA2441195C (en) Voice response system
EP1535453B1 (en) System and process for developing a voice application
US8355918B2 (en) Method and arrangement for managing grammar options in a graphical callflow builder
EP1380153B1 (en) Voice response system
US20050080628A1 (en) System, method, and programming language for developing and running dialogs between a user and a virtual agent
US7930182B2 (en) Computer-implemented tool for creation of speech application code and associated functional specification
US20060206299A1 (en) Dialogue flow interpreter development tool
US8862477B2 (en) Menu hierarchy skipping dialog for directed dialog speech recognition
JP2004513425A (en) Dialog flow interpreter development tool
US7797676B2 (en) Method and system for switching between prototype and real code production in a graphical call flow builder
AU2010238568B2 (en) A development system for a dialog system
AU2003257266A1 (en) A development system for a dialog system
EP1301921B1 (en) Interactive dialogues
WO2005038775A1 (en) System, method, and programming language for developing and running dialogs between a user and a virtual agent
Dybkjær et al. Modeling complex spoken dialog
KR20060120004A (en) A dialog control for dialog systems
NZ267700A (en) Generating down loadable instructions for a speech application
d’Haro et al. Design and evaluation of acceleration strategies for speeding up the development of dialog applications
AU711449B2 (en) System for generating instructions for speech application
McTear et al. Implementing Dialog Management
D’Haro et al. Application of backend database contents and structure to the design of spoken dialog services
Berman et al. Implemented SIRIDUS system architecture (Baseline)
Griol Barres et al. Giving voice to the Internet by means of conversational agents

Legal Events

Date Code Title Description
FGA Letters patent sealed or granted (standard patent)
MK14 Patent ceased section 143(a) (annual fees not paid) or expired