US20040220809A1 - System with composite statistical and rules-based grammar model for speech recognition and natural language understanding - Google Patents
System with composite statistical and rules-based grammar model for speech recognition and natural language understanding Download PDFInfo
- Publication number
- US20040220809A1 US20040220809A1 US10/718,138 US71813803A US2004220809A1 US 20040220809 A1 US20040220809 A1 US 20040220809A1 US 71813803 A US71813803 A US 71813803A US 2004220809 A1 US2004220809 A1 US 2004220809A1
- Authority
- US
- United States
- Prior art keywords
- model
- gram
- statistical
- word
- rules
- 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.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/08—Speech classification or search
- G10L15/18—Speech classification or search using natural language modelling
- G10L15/1822—Parsing for meaning understanding
-
- A—HUMAN NECESSITIES
- A23—FOODS OR FOODSTUFFS; TREATMENT THEREOF, NOT COVERED BY OTHER CLASSES
- A23P—SHAPING OR WORKING OF FOODSTUFFS, NOT FULLY COVERED BY A SINGLE OTHER SUBCLASS
- A23P30/00—Shaping or working of foodstuffs characterised by the process or apparatus
- A23P30/30—Puffing or expanding
-
- A—HUMAN NECESSITIES
- A23—FOODS OR FOODSTUFFS; TREATMENT THEREOF, NOT COVERED BY OTHER CLASSES
- A23L—FOODS, FOODSTUFFS OR NON-ALCOHOLIC BEVERAGES, NOT OTHERWISE PROVIDED FOR; PREPARATION OR TREATMENT THEREOF
- A23L7/00—Cereal-derived products; Malt products; Preparation or treatment thereof
- A23L7/10—Cereal-derived products
- A23L7/161—Puffed cereals, e.g. popcorn or puffed rice
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/211—Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/216—Parsing using statistical methods
Definitions
- the present invention relates to speech recognition and natural language understanding. More specifically, the present invention relates to using a composite model, formed of a statistical model portion and a rules-based grammar portion, as a language model in performing simultaneous speech recognition and natural language understanding.
- Recognizing and understanding spoken human speech is believed to be integral to future computing environments. To date, the tasks of recognizing and understanding spoken speech have been addressed by two different systems. The first is a speech recognition system, and the second is a natural language understanding system.
- Conventional speech recognition systems receive a speech signal indicative of a spoken language input. Acoustic features are identified in the speech signal and the speech signal is decoded, using both an acoustic model and a language model, to provide an output indicative of words represented by the input speech signal.
- the present invention thus uses a composite statistical model and rules-based grammar language model to perform both the speech recognition task and the natural language understanding task.
- One embodiment of the invention also includes structuring a state machine corresponding to the composite model in a compact manner by processing all unseen words for each n-gram by referring to a shared distribution over a back-off state, rather than including a loop for each unseen word in every n-gram.
- FIG. 1 is a block diagram of one exemplary environment in which the present invention can be used.
- FIG. 2A is a block diagram of one embodiment of a model-authoring component in accordance with one embodiment of the present invention.
- FIG. 2B illustrates an example schema
- FIG. 2C illustrates an example set of rules generated for the example schema.
- FIG. 2D illustrates an example of an annotated sentence.
- FIG. 2E illustrates an example parse tree.
- FIG. 2F illustrates a table of possible preterminals for words in examples.
- FIG. 2G is a table of re-write rules with associated counts and probabilities.
- FIG. 3A is a block diagram showing a grammar authoring component in greater detail.
- FIG. 3B is a flow diagram illustrating the operation of the grammar-authoring component shown in FIG. 3A.
- FIG. 4 illustrates a model-authoring component in accordance with another embodiment of the present invention.
- FIG. 5 shows an example of enumerated segmentations.
- FIG. 6 illustrates a statistical model in greater detail in accordance with one embodiment of the present invention.
- FIG. 7 is an example of a simplified schema.
- FIG. 8 is an example of a set of rules generated from the schema in FIG. 7.
- FIG. 9 is an example of an annotated sentence.
- FIG. 10 shows generated rules.
- FIG. 11 illustrates a state diagram for a composite model.
- FIG. 12 shows pseudo code describing a training technique.
- FIG. 13 is a block diagram illustrating a runtime system for using a model generated in accordance with the present invention.
- FIG. 14 illustrates an example of a decoder trellis.
- FIG. 15 is a simplified block diagram of a speech recognition system.
- FIG. 16 illustrates another simplified application schema which is used in the example shown in FIGS. 17A-18B.
- FIG. 17A illustrates a Hidden Markov Model (HMM) structure corresponding to a top-level grammar generated from the schema shown in FIG. 16.
- HMM Hidden Markov Model
- FIG. 17B illustrates the HMM structure for the “ShowFlight” model from FIG. 17A, in greater detail.
- 17 C illustrates use of the HMM structure shown in FIG. 17B.
- FIG. 18A illustrates a finite state representation of a bigram language model with two observed words (a, b).
- FIG. 18B illustrates a finite state representation of a model that models a uniform distribution over the back-off state shown in FIG. 18A.
- FIG. 18C shows a finite state representation of a bigram language model with two observed words (c, d).
- the present invention deals with a speech recognition and natural language understanding system. More specifically, the present invention deals with a composite rules-based grammar and statistical model used to perform both speech recognition and natural language understanding.
- a speech recognition and natural language understanding system More specifically, the present invention deals with a composite rules-based grammar and statistical model used to perform both speech recognition and natural language understanding.
- FIG. 1 illustrates an example of a suitable computing system environment 100 on which the invention may be implemented.
- the computing system environment 100 is only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the invention. Neither should the computing environment 100 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in the exemplary operating environment 100 .
- the invention is operational with numerous other general purpose or special purpose computing system environments or configurations.
- Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the invention include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
- the invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
- program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types.
- the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network.
- program modules may be located in both local and remote computer storage media including memory storage devices.
- an exemplary system for implementing the invention includes a general purpose computing device in the form of a computer 110 .
- Components of computer 110 may include, but are not limited to, a processing unit 120 , a system memory 130 , and a system bus 121 that couples various system components including the system memory to the processing unit 120 .
- the system bus 121 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures.
- such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as Mezzanine bus.
- ISA Industry Standard Architecture
- MCA Micro Channel Architecture
- EISA Enhanced ISA
- VESA Video Electronics Standards Association
- PCI Peripheral Component Interconnect
- Computer 110 typically includes a variety of computer readable media.
- Computer readable media can be any available media that can be accessed by computer 110 and includes both volatile and nonvolatile media, removable and non-removable media.
- Computer readable media may comprise computer storage media and communication media.
- Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data.
- Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 100 .
- Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier WAV or other transport mechanism and includes any information delivery media.
- modulated data signal means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
- communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, FR, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media.
- the system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132 .
- ROM read only memory
- RAM random access memory
- BIOS basic input/output system
- RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 120 .
- FIG. 1 illustrates operating system 134 , application programs 135 , other program modules 136 , and program data 137 .
- the computer 110 may also include other removable/non-removable volatile/nonvolatile computer storage media.
- FIG. 1 illustrates a hard disk drive 141 that reads from or writes to non-removable, nonvolatile magnetic media, a magnetic disk drive 151 that reads from or writes to a removable, nonvolatile magnetic disk 152 , and an optical disk drive 155 that reads from or writes to a removable, nonvolatile optical disk 156 such as a CD ROM or other optical media.
- removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like.
- the hard disk drive 141 is typically connected to the system bus 121 through a non-removable memory interface such as interface 140
- magnetic disk drive 151 and optical disk drive 155 are typically connected to the system bus 121 by a removable memory interface, such as interface 150 .
- the drives and their associated computer storage media discussed above and illustrated in FIG. 1, provide storage of computer readable instructions, data structures, program modules and other data for the computer 110 .
- hard disk drive 141 is illustrated as storing operating system 144 , application programs 145 , other program modules 146 , and program data 147 .
- operating system 144 application programs 145 , other program modules 146 , and program data 147 are given different numbers here to illustrate that, at a minimum, they are different copies.
- a user may enter commands and information into the computer 110 through input devices such as a keyboard 162 , a microphone 163 , and a pointing device 161 , such as a mouse, trackball or touch pad.
- Other input devices may include a joystick, game pad, satellite dish, scanner, or the like.
- These and other input devices are often connected to the processing unit 120 through a user input interface 160 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB).
- a monitor 191 or other type of display device is also connected to the system bus 121 via an interface, such as a video interface 190 .
- computers may also include other peripheral output devices such as speakers 197 and printer 196 , which may be connected through an output peripheral interface 190 .
- the computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 180 .
- the remote computer 180 may be a personal computer, a hand-held device, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 110 .
- the logical connections depicted in FIG. 1 include a local area network (LAN) 171 and a wide area network (WAN) 173 , but may also include other networks.
- LAN local area network
- WAN wide area network
- Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.
- the computer 110 When used in a LAN networking environment, the computer 110 is connected to the LAN 171 through a network interface or adapter 170 .
- the computer 110 When used in a WAN networking environment, the computer 110 typically includes a modem 172 or other means for establishing communications over the WAN 173 , such as the Internet.
- the modem 172 which may be internal or external, may be connected to the system bus 121 via the user-input interface 160 , or other appropriate mechanism.
- program modules depicted relative to the computer 110 may be stored in the remote memory storage device.
- FIG. 1 illustrates remote application programs 185 as residing on remote computer 180 . It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
- the present invention can be carried out on a computer system such as that described with respect to FIG. 1.
- the present invention can be carried out on a server, a computer devoted to message handling, or on a distributed system in which different portions of the present invention are carried out on different parts of the distributed computing system.
- FIG. 2A is a block diagram of a model authoring system 200 in accordance with one embodiment of the present invention.
- Model authoring system 200 includes model authoring component 202 and an optional user interface 204 .
- FIG. 2A also shows that model authoring component 202 receives, as an input, a schema 206 , a set of training example text strings 208 , an optional grammar library 209 , and outputs a rules-based grammar (such as a context free grammar or CFG) 210 .
- the optional grammar library 209 includes definitions for domain-independent concepts such as date and time as well as domain dependent concepts such as city names, airlines, etc. that can be obtained from an application database.
- Model authoring component 202 receives the inputs and generates a rules-based grammar 210 based on the inputs.
- a rules-based grammar is a context free grammar (or CFG) that allows a computer to map an input to a semantic representation of text.
- Schema 206 is illustratively a semantic description of the domain being modeled.
- FIG. 2B illustrates a greatly simplified schema 212 that can be input into system 200 , by a developer.
- Schema 212 is a schema that represents the meaning of various text strings for an input from a user to show flights departing from and arriving to different cities and having different departure and arrival times.
- Schema 212 indicates that the show flight command (ShowFlight) includes a semantic class for Flight as a slot.
- ShowFlight shows the semantic class for Flight in greater detail indicating that it has four slots that correspond to a departure time, an arrival time, a departure city and an arrival city.
- model authoring component 202 can generate a set of rules illustrated in FIG. 2C.
- Rule one shows that a ShowFlight sentence will always have a command portion ShowFlightCmd which will be followed by a properties portion ShowFlightProperties.
- Rule two indicates that the ShowFlightProperties portion can have one or more properties in it.
- rule two indicates that the ShowFlightProperties portion includes at least one ShowFlightProperty which can be followed by an optional ShowFlightProperties portion. This recursive definition of ShowFlightProperties simplifies its expression and allows it to have one or more properties.
- Rule three shows that the ShowFlightProperty portion includes a ShowFlightPreFlight portion, a Flight portion, and a ShowFlightPostFlight portion. This indicates that the slot Flight in the schema can have both a preamble and a postamble.
- the fourth rule indicates that the object Flight in the schema does not have a command portion, but only has a properties portion (FlightProperties), because Flight is an object in the schema while ShowFlight is a command.
- Rule five shows that the FlightProperties portion is again recursively defined to include at least one FlightProperty followed by an optional FlightProperties.
- Rules six-nine correspond to the four slots in schema 212 shown in FIG. 2B.
- Rule six defines the first property as having a departure city slot that is preceded by a preamble (FlightPreDepartureCity) and is followed by a postamble (FlightPostDepartureCity).
- Rule seven defines the arrival city in the same way, and rules eight and nine define the departure time and arrival time in a similar fashion, respectively.
- FIG. 2D illustrates one example of an example text string 213 “Flight from Seattle to Boston” along with a semantic annotation 214 that corresponds to text string 213 .
- Semantic annotation 214 is provided by the developer and indicates the semantic meaning of string 213 .
- Semantic annotation 214 shows that the input text string 213 corresponds to a ShowFlight command that has a slot Flight which itself has two slots, both of which are cities. The distinction between the two slots in the Flight slot is made only by the name of the slot. One is referred to as the “Arrival” city and the other is referred to as the “Departure” city.
- Semantic annotation 214 also maps the word “Boston” to the “Arrival” city slot and the word “Seattle” to the “Departure” city slot. Therefore, based on the annotation 214 , model authoring component 202 will know which slots map to the words “Seattle” and “Boston”.
- model authoring component 202 can generate a rules-based grammar (or CFG) parse tree, such as parse tree 216 illustrated in FIG. 2E.
- the first level 218 of parse tree 216 (the portion that shows that ShowFlight is formed of ShowFlightCmd followed by ShowFlightProperties) is formed from rule 1 in FIG. 2C.
- the second level 220 (the portion indicating that ShowFlightProperties is formed of ShowFlightProperty) is generated from rule 2 where the optional ShowFlightProperties protion is not used.
- next level 222 (the portion indicating that ShowFlightProperty is formed of ShowFlightPreFlight followed by Flight followed by ShowFlightPostFlight) is generated from rule 3 in FIG. 2C.
- next level 224 (indicating that the Flight object is formed of a FlightProperties section) is generated from rule 4 in FIG. 2C.
- next level 226 (the portion indicating that the FlightProperties portion is formed of a FlightProperty portion followed by a FlightProperties portion) is generated from rule 5 in FIG. 2C.
- next level 228 (the level indicating that the FlightProperty portion is formed of a FlightPreDepartureCity portion followed by a City slot followed by a FlightPostDepartureCity postamble) is generated from rule 6
- next level 230 (the level showing that FlightProperties is formed of a FlightPreArrivalCity preamble, a City slot and a FlightPostArrivalCity postamble) is generated from rule 7 .
- model authoring component 202 can learn how to map from the words “Seattle” and “Boston” in the input sentence into the CFG parse tree and into the rules generated in FIG. 2C. It should be noted that city rules can also be obtained from a library grammar (which in turn can be constructed by taking the data from the domain-specific database) instead of annotated data.
- the words “Flight” and “from” should reside in parse tree 216 .
- the particular segmentation for the two words is unknown.
- the word “Flight” can be mapped to ShowFlightCmd while the word “from” is mapped to ShowFlightPreFlight. In that case, the preterminal FlightPreDepatureCity is mapped to an empty set.
- both words “Flight” and “from” are mapped to ShowFlightCmd” while the other preterminals ShowFlightPreFlight and FlightPreDepartureCity are both mapped to empty sets.
- “Flight” is mapped to ShowFlightCmd and “from” is mapped to FlightPreDepartureCity, while the remaining preterminal ShowFlightPreFlight is mapped to an empty set.
- the expectation maximization (EM) algorithm is applied to segmentation ambiguities in model component 202 in order to disambiguate the segmentation choices.
- the EM algorithm in general, is an algorithm for estimating model parameters with maximum likelihood estimator when the model contains unobservable hidden variables.
- FIG. 3A shows a block diagram illustrating model authoring component 202 in greater detail.
- model authoring component 202 illustratively includes template grammar generator 300 , segmentation EM application component 302 and pruning component 304 .
- Template grammar generator 300 receives schema 206 and any rules in optional grammar library 209 referred to (through proper type unification) by semantic classes in schema 206 and generates a template grammar which includes all rules that can be learned or gleaned from schema 206 and optional grammar library 209 .
- the template grammar is then taken by the EM segmentation component as an input, together with the training examples (text strings and their annotations.)
- the EM segmentation component 302 uses the template grammar to find the segmentation ambiguities in the training examples.
- Component 302 then operates to disambiguate any segmentation ambiguities. Based on that disambiguation, rewrite rules can be pruned from the grammar using pruning component 304 to provide the rules-based grammar 210 .
- FIGS. 2F and 2G provide exemplary tables.
- FIG. 2F shows a table that includes a set of examples. The first of which shows that the word “from” can possibly map to either the preterminal ShowFlightCmd or the perterminal FlightPreDepartureCity.
- the example may be harvested by component 302 from an example sentence like “from Seattle to Boston”.
- the second example indicates that the words “Flight from” can be mapped to preterminals “ShowFlightCmd and FlightPreDepatureCity.
- the example may be harvested by component 302 from an example sentence like “Flight from Seattle to Boston”.
- the third example illustrates that the words “Flight to” can be mapped to the preterminals ShowFlightCmd and FlightPreArrivalCity, which can be similarly obtained by component 302 from an example like “Flight to Boston on Tuesday”.
- the segmentation of the examples is ambiguous. In other words, it is not yet known whether the word “from” in the first example is to be mapped to the preterminal ShowFlightCmd or to the preterminal FlightPreDepatureCity. Similarly, it is not known how the words “Flight from” are to be mapped between the preterminals ShowFlightCmd and FlightPreDepatureCity. Additionally, of course, it is not known how the words “Flight to” are to be mapped between the possible preterminals ShowFlightCmd and FlightPreArrivalCity.
- FIG. 2G is a table further illustrating the operation of the EM algorithm application component 203 .
- FIG. 3B is a flow diagram illustrating the operation of component 203 and will be described along with FIGS. 2F and 2G.
- component 302 enumerates all possible segmentations. This is shown in the left column of FIG. 2G labeled possible re-write rules.
- the re-write rules shown in FIG. 2G some of the words that form the preterminal names are abbreviated. Therefore, by way of example, the re-write rule SFCmd ⁇ indicates the segmentation in which the ShowFlightCmd (abbreviated SFCmd) preterminal is mapped to an empty set.
- the rewrite rules SFCmd ⁇ from represents the segmentation in which the word “from” is mapped to the preterminal ShowFlightCmd.
- FPDCity ⁇ represents the segmentation in which the preterminal FlightPreDepartureCity (abbreviated FPDCity) is mapped to the empty set
- FPACity ⁇ represents the segmentation in which the preterminal FlightPreArrivalCity (abbreviated FPACity) is mapped to the empty set.
- one segmentation indicates that the word “from” is mapped to ShowFlightCmd and another segmentation indicates that the word “from” is mapped to FlightPreDepatureCity.
- the second example in FIG. 2F supports a number of different segmentation alternatives as well.
- the words “Flight from” are both mapped to the perterminal ShowFlightCmd and the preterminal FlightPreDepatureCity is mapped to ⁇ .
- the words “Flight from” are both mapped to the preterminal FlightPreDepatureCity and the preterminal “ShowFlightCmd” is mapped to ⁇ .
- the words “Flight” and “from” are split such that the word “Flight” is mapped to the preterminal ShowFlightCmd and the word “from” is mapped to the preterminal FlightPreDepartureCity.
- Each of these segmentations is also shown in the rewrite rules enumerated in FIG. 2G.
- the third example can be segmented in a similar way to the second example in that the words “Flight to” can be mapped to either the preterminal ShowFlightCmd or the preterminal FlightPreArrivalCity while the other preterminal is mapped to ⁇ , or the words “Flight to” can be split between the preterminals ShowFlightCmd and FlightPreArrivalCity. Again, each of these segmentations is represented in the rewrite rules shown in FIG. 2G.
- component 302 assigns new expected counts to the enumerated rewrite rules, based upon the possible occurrences of those counts in the examples shown in FIG. 2F. This is indicated by block 310 .
- there are two possible segmentations one which maps the word “from” to ShowFlightCmd and maps the preterminal FlightPreDepartureCity to ⁇ , and the other of which maps ShowFlightCmd to ⁇ and maps the word “from” to the preterminal FlightPreDepartureCity.
- the first rewrite rule says that the ShowFlightCmd preterminal maps to ⁇ (the empty set). Therefore, half of the segmentations in example 1 support the first rewrite rule shown in the table of FIG. 2G.
- the first rewrite rule ShowFlightCmd ⁇
- the first rewrite rule ShowFlightCmd ⁇
- the second example supports three different segmentations, one of which assigns both words “Flight from” to the preterminal ShowFlightCmd and the preterminal FlightPreDepartureCity to ⁇ , another of which maps the word “Flight” to the preterminal ShowFlightCmd and the word “from” to the preterminal FlightPreDepartureCity, and the last of which maps the preterminal ShowFlightCmd to ⁇ and both words “Flight from” to the preterminal FlightPreDepartureCity.
- SFCmd ⁇ the first rewrite rule
- the third example has three possible segmentations, one of which maps the preterminal ShowFlightCmd to ⁇ . Therefore, from the third example, the first rewrite rule shown in FIG. 2G is again assigned a count of one third.
- the third rewrite rule (SFCmd ⁇ Flight) is supported by one of the segmentations from each of the second and third examples shown in FIG. 2F. Therefore, since each of those examples has three possible segmentations, the third rewrite rule (SFCmd ⁇ Flight) is assigned a count of one third from each example.
- Component 302 assigns counts to each of the enumerated rewrite rules in FIG. 2G in this way, and those counts are illustrated in the second column of the table shown in FIG. 2G.
- the counts are all converted such that they have a common denominator, and they are then normalized for each preterminal to get the probability. In other words, the total probability mass for the ShowFlightCmd terminal must add to one. Therefore, the counts for each rewrite rule are multiplied by a normalization factor in order to obtain a probability associated with that rewrite rule.
- the probability of the first rewrite rule (SFCmd ⁇ ) is ⁇ fraction (7/18) ⁇ .
- the probability for the second rewrite rule (SFCmd ⁇ from) is ⁇ fraction (3/18) ⁇ , etc.
- Component 302 processes the counts for each rewrite rule, and each preterminal, in order to obtain this probability.
- Component 302 iterates on this process (re-estimating the counts and obtaining new probabilities) until the counts and probabilities converge. This is indicated by block 314 .
- component 302 implements equation 1 that first find the total likelihood of observing the word “from” given the non-terminal sequence ShowFlightCmd and FPDCity as follows: P ⁇ ( from
- ShowFlightCmd ⁇ ⁇ FPDCity ) P ⁇ ( ⁇
- cmd ) ⁇ P ⁇ ( from
- component 302 will have computed a new count and new probability associated with each of the enumerated rewrite rules. While this, in and of itself, is very helpful, because it has assigned a probability to each of the segmentations to the rules corresponding to the different segmentations obtained during training, it may not be a desired final result. For example, some parsers are unable to take advantage of probabilities. Also, in some parsing components, a large number of rules render the parser less effective.
- component 302 provides the rules and associated probabilities to pruning component 304 where the rules can be pruned. This is indicated by blocks 316 and 318 in FIG. 3B. Pruning component 304 can prune the rules (as indicated by block 320 ) in one of a number of different ways. For example, pruning component 304 can simply prune out rules that have a probability below a desired threshold level. Component 304 then introduces the remaining rules into the rules-based grammar 210 .
- pruning component 304 eliminates all but a predetermined number of segmentations with high likelihood corresponding to each example, and only introduce rewrite rules to the grammar according to the remaining segmentations. For instances, component 304 may eliminate all the segmentations corresponding to each example but the one that has the highest probability. Thus, for example 1, assume that the segmentation that mapped the word “from” to the preterminal FlightPreDepartureCity had a higher probability than the segmentation which assigned the word “from” to the preterminal ShowFlightCmd. In that instance, the second segmentation (the one which mapped “from” to ShowFlightCmd) is eliminated. In that case, the two rewrite rules that support the chosen segmentation are added to the grammar. Therefore, the rewrite rule “SFCmd ⁇ ” and the rewrite rule “FPDCity ⁇ from” are both added to the grammar.
- a block may contain 0 or more words from w.
- the EM algorithm initially sets the parameters P ⁇ for the model, and then iteratively modifies the parameters to P ⁇ ′ , such that the likelihood of the observation D increases.
- FIG. 4 illustrates another embodiment of a model authoring component 350 in accordance with a different aspect of the invention.
- Rules-based grammar 210 can still be less robust and more brittle than desired. For example, assume, during training that the following rules are generated, to model the following pre-terminals:
- a CFG works well for high resolution understanding.
- High resolution understanding represents grammars which break down sentences into a large number of slots. The larger the number of slots, the higher the resolution understanding is exhibited by the grammar.
- CFGs generalize well in high resolution situations.
- command and control For example, in a command and control application, some commands which must be recognized include “ChangePassword”, “ChangeBackground”, and “ChangeLoginPicture”. In these instances, there are no slots to be filled, and entire sentences must be recognized as the commands. During training, this may well result in a rule such as:
- One embodiment of the invention is drawn to, instead of modeling preterminals (such as commands, preambles and postambles) with rules in the template grammar, a statistical model (such as an n-gram) is used to model the preterminals.
- a statistical model such as an n-gram
- the text generated for the enumerated segmentations corresponding to the preterminals in the template grammar is used as training data for the n-gram (or other statistical model). Therefore, in the example above, the text string corresponding to enumerated segmentations for the preterminals, together with its expected count collected in the expectation step of the EM algorithm, is used to train an n-gram for the preterminals.
- the text “Show me the flight” is used as training data to train an n-gram for modeling the ShowFlightCmd preterminals. Therefore, the probability that a sentence with “Show flight” in it will be recognized as a ShowFlightCmd can be calculated as follows: Pr ⁇ ( ⁇ s > showflight ⁇ / s >
- ShowFlightCmd ) Pr ⁇ ( show
- the backoff weight can be set empirically or otherwise, as desired, and the unigram probability Pr(flight
- FIG. 4 thus shows another embodiment of model authoring component 350 which authors a composite model 351 that includes a grammar portion 210 (such as a CFG) that includes rules for modeling the slots and statistical model portion 326 (such as an n-gram) for identifying preterminals (such as commands, preambles and postambles).
- a grammar portion 210 such as a CFG
- statistical model portion 326 such as an n-gram
- preterminals such as commands, preambles and postambles.
- Component 350 trains composite model 351 using, in part, the EM algorithm techniques discussed above. For example, assume that FIG. 5 shows all enumerated rules for the ShowFlightCmd according to different sample segmentations.
- the expected counts are collected for each of the enumerated rules shown in FIG. 5.
- the counts are normalized.
- the text strings on the right hand side of the enumerated rules and the associated expected counts corresponding to those rules are used as training data to train and smooth an n-gram for the ShowFlightCmd preterminal.
- Another difference from the embodiment described for segmentation disambiguation with respect to FIGS. 2-3B involves the E-step of the EM algorithm. Instead of associating a probability with each of the enumerated rules, the probability of a rule is the product of all the n-grams in the rule.
- Pr ⁇ ( ShowFlightCmd -> show ⁇ ⁇ me ⁇ ⁇ the ⁇ ⁇ flight ) Pr ⁇ ( show
- training the statistical model for the preterminals includes applying a smoothing algorithm.
- the training data for training the statistical model for preterminals may be relatively sparse, since it only includes the text strings enumerated for segmentation associated with the given preterminal. This would leave a relatively large amount of language expressions uncovered by the statistical model and would therefore render the statistical model relatively brittle.
- the model probabilities are smoothed using lower level n-grams and with a uniform distribution. In other words, if the statistical model comprises a bigram, it is smoothed with unigrams which provide probabilities for the words modeled, regardless of context.
- the statistical model is smoothed with a uniform distribution which assigns the same probability to each word in the vocabulary. Therefore, if the word is in the vocabulary, it will not be modeled with zero probability by the statistical model. Deleted interpolation is used to find the weight for each model in the smoothing operation and linearly interpolate the models of different orders.
- Component 350 can also train additional statistical model components in accordance with different embodiments of the present invention. This is illustrated in greater detail in the block diagram shown in FIG. 6. For instance, in that block diagram, statistical model portion 326 is shown as not only including a statistical model component for preterminals 340 , but also a plurality of other statistical models. For example, statistical model 326 can, in one embodiment, include components 342 and 344 which include statistical models modeling the prior probability of tasks, and a statistical model for slot transitions.
- a runtime input sentence is “Show flights to Boston arriving on Tuesday, 11:00 a.m.”
- the term “arriving on” will be analyzed as indicating that “Tuesday” corresponds to an arrival date. However, there are no words before “11:00 a.m.” to indicate whether it is a departure time or an arrival time.
- the probability of an “arrival time” slot following an “arrival date” slot will likely be higher than the probability of a “departure time” slot following an “arrival date” slot. If such slot transitions are modeled, the slot transition model will prefer that “11:00 a.m.” be matched to the “arrival time” slot.
- training a statistical model (such as an n-gram model) to model slot transitions is the same as training a statistical model (such as an n-gram model) to model the prior probability of slots, except that the order of n is different.
- a unigram model is trained, and to model slot transitions between two slots, a bigram model is trained, etc.
- FIG. 7 shows one exemplary simplified example of a semantic class in a schema that defines the semantics for an appointment scheduling command NewAppt.
- FIG. 8 illustrates template rules that can be automatically generated for the semantic class NewAppt, where symbols inside braces are optional.
- FIG. 9 illustrates one embodiment of an annotated sentence “New meeting with Peter at 5:00”.
- FIG. 10 illustrates two rules which can be added once segmentation disambiguation has been performed as discussed above.
- one aspect of the present invention replaces CFG rules with an n-gram to model each of the commands, preambles and post-ambles in the template grammar and to model slot transitions.
- the slot n-gram constrains the interpretation of slots lacking preambles and postambles.
- the resulting model is a composite of a statistical model (or HMM) and a CFG.
- the HMM models the template rules and the n-gram preterminals, and the CFG models library grammar.
- FIG. 11 One example of such a model is shown in FIG. 11.
- the term “Att” is an abbreviation for “Attendee”, and “ST” is an abbreviation for “StartTime”.
- the emission probabilities b are preterminal-dependent n-grams (in the figure they are depicted as a unigram, but high order emission distribution will result in a high order HMM) and the transition probabilities a are the slot transition bigrams.
- the emissions ⁇ from a slot node are library CFG non-terminals. Words are generated from them according to the CFG model P CFG .
- the new model overcomes the limitations of a CFG model. For low resolution understanding (task classification), no property preterminals are introduced into the template grammar. Therefore, all training data are used to train and smooth the n-gram for the command preterminals.
- the model scales down to an n-gram classifier represented by Equation 19.
- c ⁇ arg ⁇ ⁇ max c ⁇ P ⁇ ( c ) ⁇ P ⁇ ( s
- c ) ⁇ ⁇ arg ⁇ ⁇ max c ⁇ ⁇ P ⁇ ( c ) ⁇ ⁇ i ⁇ ⁇ P ⁇ ( w i
- the n-gram model does not require an exact rule match. Instead of making binary decisions about rule applicability, it compares the probability that the observed word sequence is generated from a state (preterminal) sequence to find the most likely interpretation. Therefore, the model itself is robust and there is no need for a robust parser.
- the EM algorithm automatically segments word sequences and aligns each segment ⁇ to the corresponding preterminal NT in the preterminal sequence of a corresponding pair.
- the EM algorithm builds a model P(NT ⁇ ) that assigns a probability for generating word string a from NT, and parameterizes it with an initial uniform distribution. It then iteratively refines the parameterization, as discussed above. In each iteration, it computes the expected count for the rule NT ⁇ according to the parameterization of the model in the previous iteration (the E step) and then re-estimates the probability P(NT ⁇ ) by normalizing the expected counts (the M step).
- the expected counts collected in the E-step are used to train and smooth the n-grams in the M-step; and the n-grams are used by the EM algorithm to collect the expected counts for the segmentations. This results in a training algorithm illustrated in FIG. 12.
- the threshold value illustrated in the last line of FIG. 12 is set to 0.01.
- other threshold values can be used as well.
- Optional grammar library 209 (shown in FIGS. 2A, 4 and 13 ) can be adapted to the training data 208 statistically.
- the grammar library 209 includes a relatively large city list that contains both large and small international and domestic cities.
- Component 202 or 350 learns the probabilities associated with the probabilistic context free grammar (PCFG) that can comprise grammar 209 , from the annotated training data 208 . It may be learned, for instance, that the probability for the rule Cityname ⁇ New York is greater than the probability for the rule Cityname ⁇ Tokyo. This can be done in the same way as the other probabilities discussed above are learned.
- PCFG probabilistic context free grammar
- FIG. 13 illustrates a runtime system using both the rules-based grammar portion for slots and the statistical model portion for preterminals.
- the system receives an input, and uses the grammar portion and n-gram portion and outputs an output 402 .
- FIG. 14 illustrates a dynamic programming trellis structure representing a dynamic programming decoder for an input “new meeting with Peter at five”.
- the dynamic programming decoder finds the Viterbi path represented by Equation 18 above. Upon receiving the input, the decoder first uses a bottom-up chart parser to find the library grammar non-terminals that cover some input spans. In this example, it identifies “Peter” as ⁇ Person> and “five” as either ⁇ time> or ⁇ num>. The decoder then searches through the trellis starting from the semantic class nodes at the first column (the example only shows the semantic class NewAppt). At each node, it makes transitions to other nodes in the same column (switching to a different non-terminal) or to the next node in the same row (consuming an input word by the non-terminal).
- the search continues from left to right until it reaches the right most column.
- a score is obtained by adding an appropriate log probability to the score of the starting node. The score is then compared with that of the destination node, and replaces it if the new score is higher.
- Below the trellis are the non-terminals identified by a chart parser.
- the thick path 410 represents the Viterbi interpretation.
- a higher thin path 412 identifies the correct tasks, but neither of the slots.
- a lower thin path 414 (which shares part of Viterbi path 410 ) identifies the attendee but not the start time slot. It treats “at five” as the postamble for the attendee.
- any desired pruning mechanism can be used.
- one pruning mechanism provides that at each column of the trellis, no transition is made out of a node if its score is smaller than a threshold (such as 5.0) less then the maximum score in the same column.
- a threshold such as 5.0
- a path is not extended if it is 10 5 times less likely than another that leads to a node in the same column.
- the decoder runs an order of magnitude faster than the robust parser after pruning.
- the composite model 351 is not only used in a natural language understanding system, but can also be used in a speech recognition system.
- the speech recognition system can perform both speech recognition and natural language understanding in a single pass.
- FIG. 15 illustrates a block diagram of one illustrative speech recognition system 500 in which composite model 351 is used.
- system 500 can also perform natural language understanding as well as speech recognition. Before describing this in greater detail, a brief discussion of the overall operation of system 500 is provided.
- a speaker 501 speaks into a microphone 504 .
- the audio signals detected by microphone 504 are converted into electrical signals that are provided to analog-to-digital (A-to-D) converter 506 .
- A-to-D analog-to-digital
- A-to-D converter 506 converts the analog signal from microphone 504 into a series of digital values. In several embodiments, A-to-D converter 506 samples the analog signal at 16 kHz and 16 bits per sample, thereby creating 32 kilobytes of speech data per second. These digital values are provided to a frame constructor 507 , which, in one embodiment, groups the values into 25 millisecond frames that start 10 milliseconds apart.
- the frames of data created by frame constructor 507 are provided to feature extractor 508 , which extracts a feature from each frame.
- feature extraction modules include modules for performing Linear Predictive Coding (LPC), LPC derived cepstrum, Perceptive Linear Prediction (PLP), Auditory model feature extraction, and Mel-Frequency Cepstrum Coefficients (MFCC) feature extraction. Note that the invention is not limited to these feature extraction modules and that other modules may be used within the context of the present invention.
- the feature extraction module 508 produces a stream of feature vectors that are each associated with a frame of the speech signal. This stream of feature vectors is provided to a decoder 512 , which identifies a most likely sequence of words based on the stream of feature vectors, a lexicon 514 , language model 351 , and the acoustic model 518 .
- the particular method used for decoding is not important to the present invention.
- the most probable sequence of hypothesis words can be provided to an optional confidence measure module 520 .
- Confidence measure module 520 identifies which words are most likely to have been improperly identified by the speech recognizer. This can be based in part on a secondary acoustic model (not shown). Confidence measure module 520 then provides the sequence of hypothesis words to an output module 522 along with identifiers indicating which words may have been improperly identified. Those skilled in the art will recognize that confidence measure module 520 is not necessary for the practice of the present invention.
- a speech signal corresponding to training text 526 is input to trainer 524 [YW1] , along with a lexical transcription of the training text 526 .
- Trainer 524 trains acoustic model 518 based on the training inputs. Training of composite language model 351 is discussed above.
- model 351 uses a statistical portion (implemented, for example, using Hidden Markov model technology) to encode the structural information of an application schema, and uses a rules-based portion (implemented using, for example, CFG technology) to model the emissions of some HMM states.
- FIGS. 16-17B illustrate the topology of a model in such a way as to facilitate a discussion of how the model can be represented in a finite state representation, in a compact manner, even though it accounts for unseen words.
- FIG. 16 is one illustrative embodiment of another application schema 600 .
- Schema 600 simply states that the application supports two types of information queries: those for flight information (the ShowFlight task) and those for ground transportation information (the GoundTransport task).
- the ShowFlight task the ShowFlight task
- the GoundTransport task the GoundTransport task
- a user In order to obtain flight information, a user must provide information about the arrival city (ACity) and/or the departure city (DCity) slots, so the system can search for the information according to the user's specification.
- the type of a slot specifies the requirement for its “fillers”. For both the ACity and DCity slots, the filler must be an expression modeled in the grammar library that refers to an object of the type “City”.
- FIGS. 17A and 17B show a statistical model portion (an HMM) that incorporates the semantic constraints of schema 600 into a natural language understanding rules-based grammar (such as a CFG).
- FIG. 17A illustrates a top-level structure 602 that has two branches, one leading to ShowFLight subnetwork 604 and the other leading to GroundTransport network 606 .
- the transition weights on each of the branches are the probabilities for the two tasks. Therefore, the transition weight from the S-node to the ShowFlight subnetwork 604 corresponds to the probability of a ShowFlight task (or command), while the transition probability to the GroundTransport subnetwork 606 corresponds to the probability of a GroundTransport task.
- FIG. 17B illustrates the ShowFlight subnetwork 604 model in greater detail, and use of the subnetwork model is illustrated by FIG. 17C.
- the ShowFlight subnetwork model shown in FIG. 17B models the linguistic expressions that users may use to issue a ShowFlight command.
- the subnetwork model starts with a command portion (such as “Show me the flight”), followed by the expressions for slots.
- Each slot is bracketed by a preamble and post-amble, which serve as the linguistic context for the slot.
- the word “from” is a preamble for the DCity slot. It signals that the City following it is likely a departure city.
- the slots are inter-connected, and the connections are weighted with the bigram probability for slot transitions, which is estimated from training data.
- the command, preambles and post-ambles are modeled with statistical n-gram models. These are illustrated by the oval portions in subnetwork model 604 .
- the slot fillers are modeled with probabilistic CFG rules from a grammar library. These are illustrated by the rectangles shown in subnetwork model 604 .
- the probabilities for the rules in the grammar library are illustratively tuned using domain specific data and are smoothed.
- the n-grams in the model 604 are trained with partially labeled training data. As discussed above, the EM algorithm can be used to train the n-grams in the network, where the alignments are treated as hidden variables.
- the model 351 in a speech recognition system (such as a language model shown in FIG. 15), the model is first converted into a format that decoder 512 can accept as its language model. Therefore, the statistical n-gram models used to model the command, preambles and post-ambles (i.e., those n-grams inside the CFG) are converted into probabilistic finite state automata. The converted n-grams and the top level HMM structure (such as 602 shown in FIG. 17A), together with the rules in the library grammar, form a probabilistic context-free grammar (PCFG) language model.
- PCFG probabilistic context-free grammar
- This conversion is based on a well-known conversion algorithm such as that set out in Riccardi, G., et al., STOCHASTIC AUTOMATA FOR LANGUAGE MODELING, Computer Speech and Language, 10:pages 265-293 (1996).
- FIGS. 18A, 18B and 18 C illustrate finite state representations of the bigram language models for two pre-terminals, each has been trained with two observed words (designated a,b and c, d, respectively).
- the label on each arc in the model illustrates the weight and output symbol.
- the letter I represents the initial state, while the letter O represents the back-off state, and the letter F represents the final state.
- FIG. 18B is a finite state representation of a shared uniform distribution which is used to assign a back-off probability to unseen words (i.e., those words that were not seen in the training data for the specific n-gram model as shown in FIG. 18A).
- the first probability is the n-gram probability of the word “a” following the beginning of sentence symbol. This corresponds to the transition from the initial state I to the state a.
- the second probability is the probability of the word “b” following the word “a”, which is labeled on the transition from state a to state b.
- the third probability is the probability of the end of sentence symbol following the word “b”, that is labeled on the transition from state b to the final state F.
- the sequential transitions form a path in the finite state machine that accepts the utterance “a b” and computes the probability of the utterance by multiplying the probabilities of the transitions in the path.
- the finite state machine will not assign probability of 0 to it. Instead, a path traverses through the back-off state, using the product of the back-off weight and the unigram probability as the bigram probability of the unseen event. For example, the probability of the utterance “a a” is calculated via the following path in FIG. 18A:
- model 351 will illustratively support a vocabulary having a large number of words (illustratively several hundred) and because the model will also have a large number of n-grams (also illustratively several hundred) the number of self-loops through the back-off state 0 in the entire composite model would be very large.
- the n-gram models in composite model 351 (such as that shown in FIG. 18A) include a single loop 620 [YW2] through the back-off state O.
- the single loop 620 refers to a shared uniform distribution model such as that shown in FIG. 18B.
- n refers the number of words in the vocabulary where w 1 refers the first word “a”; w 2 refers to the second word “b”, etc.
- w 1 refers the first word “a”
- w 2 refers to the second word “b”, etc.
- the uniform distribution model shown in FIG. 18B is shared for all of the n-grams in composite model 351 .
- Each of the n-grams simply has a loop, similar to loop 620 shown in FIG. 18A, which refers to the uniform distribution model shown in FIG. 18B. This is illustrated in FIG. 18C. This saves a substantial amount of space in the model 351 rendering it much more compact than prior systems.
- various embodiments of the present invention not only include a statistical model portion for pre-terminals, but also include a rules-based grammar portion to fill slots, and this composite model is used in speech recognition or combination speech recognition and natural language understanding systems.
- This substantially reduces inefficiencies associated with sub-optimal two-pass systems and also includes prior knowledge in the language model to compensate for the lack of language model training data (i.e., to address data sparseness).
- the combined approach also reduces overall understanding error rate.
- Another embodiment of the invention also includes smoothing the n-gram models by referring to a separate backoff model (such as a uniform distribution model), instead of using self-loops across the back-off state in the n-gram model. This reduces the size of the model rendering it more compact.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Chemical & Material Sciences (AREA)
- Food Science & Technology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Polymers & Plastics (AREA)
- Human Computer Interaction (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Probability & Statistics with Applications (AREA)
- Nutrition Science (AREA)
- Machine Translation (AREA)
- Electrically Operated Instructional Devices (AREA)
Abstract
Description
- The present application is a continuation-in-part of and claims priority of U.S. patent application Ser. No. 10/427,604, filed May 1, 2003, the content of which is hereby incorporated by reference in its entirety.
- The present invention relates to speech recognition and natural language understanding. More specifically, the present invention relates to using a composite model, formed of a statistical model portion and a rules-based grammar portion, as a language model in performing simultaneous speech recognition and natural language understanding.
- Recognizing and understanding spoken human speech is believed to be integral to future computing environments. To date, the tasks of recognizing and understanding spoken speech have been addressed by two different systems. The first is a speech recognition system, and the second is a natural language understanding system.
- Conventional speech recognition systems receive a speech signal indicative of a spoken language input. Acoustic features are identified in the speech signal and the speech signal is decoded, using both an acoustic model and a language model, to provide an output indicative of words represented by the input speech signal.
- Also, in order to facilitate the development of speech enabled applications and services, semantic-based robust understanding systems are currently under development. Such systems are widely used in conversational, research systems. However, they are not particularly practical for use by conventional developers in implementing a conversational system. To a large extent, such implementations have relied on manual development of domain-specific grammars. This task is time consuming, error prone, and requires a significant amount of expertise in the domain.
- In order to advance the development of speech enabled applications and services, an example-based grammar authoring tool has been introduced. The tool is known as SGStudio and is further discussed in Y. Wang and A. Acero, GRAMMAR LEARNING FOR SPOKEN LANGUAGE UNDERSTANDING, IEEE Workshop on Automatic Speech Recognition and Understanding, Madonna D. Campiglio Italy, 2001; and Y. Wang and A. Acero EVALUATION OF SPOKEN LANGUAGE GRAMMAR LEARNING IN ATIS DOMAIN, Proceedings of ICASSP, Orlando, Fla. 2002. This tool greatly eases grammar development by taking advantage of many different sources of prior information. It also allows a regular developer, with little linguistic knowledge, to build a semantic grammar for spoken language understanding. The system facilitates the semi-automatic generation of relatively high quality semantic grammars, with a small amount of data. Further, the tool not only significantly reduces the effort involved in developing a grammar, but also improves the understanding accuracy across different domains.
- However, a purely rules-based grammar in a NLU system can still lack robustness and exhibit brittleness.
- In addition, most, if not all, prior approaches treat understanding as a separate problem, independent of speech recognition. A two-pass approach is often adopted, in which a domain-specific n-gram language model is constructed and used for speech recognition in the first pass, and an understanding model obtained with various learning algorithms is applied in the second pass to “understand” the output from the speech recognizer.
- It is believed that prior systems which treated understanding and speech recognition as two separate, independent tasks, exhibit a number of disadvantages. First, the objective function being optimized when building an n-gram language model for a speech recognizer is the reduction of the test data perplexity, which is related to the reduction of the speech recognition word error rate. This does not necessarily lead to a reduction in overall understanding error rate. Second, a large amount of training data is rarely available for the development of many speech applications. An n-gram trained on a small amount of data often yields poor recognition accuracy.
- The present invention thus uses a composite statistical model and rules-based grammar language model to perform both the speech recognition task and the natural language understanding task.
- One embodiment of the invention also includes structuring a state machine corresponding to the composite model in a compact manner by processing all unseen words for each n-gram by referring to a shared distribution over a back-off state, rather than including a loop for each unseen word in every n-gram.
- FIG. 1 is a block diagram of one exemplary environment in which the present invention can be used.
- FIG. 2A is a block diagram of one embodiment of a model-authoring component in accordance with one embodiment of the present invention.
- FIG. 2B illustrates an example schema.
- FIG. 2C illustrates an example set of rules generated for the example schema.
- FIG. 2D illustrates an example of an annotated sentence.
- FIG. 2E illustrates an example parse tree.
- FIG. 2F illustrates a table of possible preterminals for words in examples.
- FIG. 2G is a table of re-write rules with associated counts and probabilities.
- FIG. 3A is a block diagram showing a grammar authoring component in greater detail.
- FIG. 3B is a flow diagram illustrating the operation of the grammar-authoring component shown in FIG. 3A.
- FIG. 4 illustrates a model-authoring component in accordance with another embodiment of the present invention.
- FIG. 5 shows an example of enumerated segmentations.
- FIG. 6 illustrates a statistical model in greater detail in accordance with one embodiment of the present invention.
- FIG. 7 is an example of a simplified schema.
- FIG. 8 is an example of a set of rules generated from the schema in FIG. 7.
- FIG. 9 is an example of an annotated sentence.
- FIG. 10 shows generated rules.
- FIG. 11 illustrates a state diagram for a composite model.
- FIG. 12 shows pseudo code describing a training technique.
- FIG. 13 is a block diagram illustrating a runtime system for using a model generated in accordance with the present invention.
- FIG. 14 illustrates an example of a decoder trellis.
- FIG. 15 is a simplified block diagram of a speech recognition system.
- FIG. 16 illustrates another simplified application schema which is used in the example shown in FIGS. 17A-18B.
- FIG. 17A illustrates a Hidden Markov Model (HMM) structure corresponding to a top-level grammar generated from the schema shown in FIG. 16.
- FIG. 17B illustrates the HMM structure for the “ShowFlight” model from FIG. 17A, in greater detail.
- 17C illustrates use of the HMM structure shown in FIG. 17B.
- FIG. 18A illustrates a finite state representation of a bigram language model with two observed words (a, b).
- FIG. 18B illustrates a finite state representation of a model that models a uniform distribution over the back-off state shown in FIG. 18A.
- FIG. 18C shows a finite state representation of a bigram language model with two observed words (c, d).
- The present invention deals with a speech recognition and natural language understanding system. More specifically, the present invention deals with a composite rules-based grammar and statistical model used to perform both speech recognition and natural language understanding. However, prior to discussing the present invention in greater detail, one exemplary environment in which the present invention can be us will be discussed.
- FIG. 1 illustrates an example of a suitable
computing system environment 100 on which the invention may be implemented. Thecomputing system environment 100 is only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the invention. Neither should thecomputing environment 100 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in theexemplary operating environment 100. - The invention is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the invention include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
- The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
- With reference to FIG. 1, an exemplary system for implementing the invention includes a general purpose computing device in the form of a
computer 110. Components ofcomputer 110 may include, but are not limited to, aprocessing unit 120, asystem memory 130, and asystem bus 121 that couples various system components including the system memory to theprocessing unit 120. Thesystem bus 121 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as Mezzanine bus. -
Computer 110 typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed bycomputer 110 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed bycomputer 100. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier WAV or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, FR, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media. - The
system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements withincomputer 110, such as during start-up, is typically stored inROM 131.RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processingunit 120. By way of example, and not limitation, FIG. 1 illustratesoperating system 134,application programs 135,other program modules 136, andprogram data 137. - The
computer 110 may also include other removable/non-removable volatile/nonvolatile computer storage media. By way of example only, FIG. 1 illustrates ahard disk drive 141 that reads from or writes to non-removable, nonvolatile magnetic media, amagnetic disk drive 151 that reads from or writes to a removable, nonvolatile magnetic disk 152, and anoptical disk drive 155 that reads from or writes to a removable, nonvolatileoptical disk 156 such as a CD ROM or other optical media. Other removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like. Thehard disk drive 141 is typically connected to thesystem bus 121 through a non-removable memory interface such asinterface 140, andmagnetic disk drive 151 andoptical disk drive 155 are typically connected to thesystem bus 121 by a removable memory interface, such as interface 150. - The drives and their associated computer storage media discussed above and illustrated in FIG. 1, provide storage of computer readable instructions, data structures, program modules and other data for the
computer 110. In FIG. 1, for example,hard disk drive 141 is illustrated as storingoperating system 144, application programs 145,other program modules 146, andprogram data 147. Note that these components can either be the same as or different fromoperating system 134,application programs 135,other program modules 136, andprogram data 137.Operating system 144, application programs 145,other program modules 146, andprogram data 147 are given different numbers here to illustrate that, at a minimum, they are different copies. - A user may enter commands and information into the
computer 110 through input devices such as akeyboard 162, amicrophone 163, and apointing device 161, such as a mouse, trackball or touch pad. Other input devices (not shown) may include a joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to theprocessing unit 120 through auser input interface 160 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). Amonitor 191 or other type of display device is also connected to thesystem bus 121 via an interface, such as a video interface 190. In addition to the monitor, computers may also include other peripheral output devices such asspeakers 197 andprinter 196, which may be connected through an output peripheral interface 190. - The
computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as aremote computer 180. Theremote computer 180 may be a personal computer, a hand-held device, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to thecomputer 110. The logical connections depicted in FIG. 1 include a local area network (LAN) 171 and a wide area network (WAN) 173, but may also include other networks. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet. - When used in a LAN networking environment, the
computer 110 is connected to theLAN 171 through a network interface oradapter 170. When used in a WAN networking environment, thecomputer 110 typically includes amodem 172 or other means for establishing communications over theWAN 173, such as the Internet. Themodem 172, which may be internal or external, may be connected to thesystem bus 121 via the user-input interface 160, or other appropriate mechanism. In a networked environment, program modules depicted relative to thecomputer 110, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation, FIG. 1 illustratesremote application programs 185 as residing onremote computer 180. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used. - It should be noted that the present invention can be carried out on a computer system such as that described with respect to FIG. 1. However, the present invention can be carried out on a server, a computer devoted to message handling, or on a distributed system in which different portions of the present invention are carried out on different parts of the distributed computing system.
- FIG. 2A is a block diagram of a
model authoring system 200 in accordance with one embodiment of the present invention.Model authoring system 200 includesmodel authoring component 202 and anoptional user interface 204. FIG. 2A also shows thatmodel authoring component 202 receives, as an input, aschema 206, a set of training example text strings 208, anoptional grammar library 209, and outputs a rules-based grammar (such as a context free grammar or CFG) 210. Theoptional grammar library 209 includes definitions for domain-independent concepts such as date and time as well as domain dependent concepts such as city names, airlines, etc. that can be obtained from an application database. - The detailed operation of
system 200 is described at greater length below. Briefly, however, a user providesmodel authoring component 202 withschema 206 and training example text strings 208. This can be done either throughoptional user interface 204, or through some other user input mechanism, or through automated means.Model authoring component 202 receives the inputs and generates a rules-basedgrammar 210 based on the inputs. One example of a rules-based grammar is a context free grammar (or CFG) that allows a computer to map an input to a semantic representation of text. -
Schema 206 is illustratively a semantic description of the domain being modeled. One illustration of a schema is shown in FIG. 2B. FIG. 2B illustrates a greatlysimplified schema 212 that can be input intosystem 200, by a developer.Schema 212 is a schema that represents the meaning of various text strings for an input from a user to show flights departing from and arriving to different cities and having different departure and arrival times.Schema 212 indicates that the show flight command (ShowFlight) includes a semantic class for Flight as a slot.Schema 212 also illustrates the semantic class for Flight in greater detail indicating that it has four slots that correspond to a departure time, an arrival time, a departure city and an arrival city. - From
schema 212,model authoring component 202 can generate a set of rules illustrated in FIG. 2C. Rule one shows that a ShowFlight sentence will always have a command portion ShowFlightCmd which will be followed by a properties portion ShowFlightProperties. - Rule two indicates that the ShowFlightProperties portion can have one or more properties in it. For example, rule two indicates that the ShowFlightProperties portion includes at least one ShowFlightProperty which can be followed by an optional ShowFlightProperties portion. This recursive definition of ShowFlightProperties simplifies its expression and allows it to have one or more properties.
- Rule three shows that the ShowFlightProperty portion includes a ShowFlightPreFlight portion, a Flight portion, and a ShowFlightPostFlight portion. This indicates that the slot Flight in the schema can have both a preamble and a postamble.
- The fourth rule indicates that the object Flight in the schema does not have a command portion, but only has a properties portion (FlightProperties), because Flight is an object in the schema while ShowFlight is a command. Rule five shows that the FlightProperties portion is again recursively defined to include at least one FlightProperty followed by an optional FlightProperties.
- Rules six-nine correspond to the four slots in
schema 212 shown in FIG. 2B. Rule six defines the first property as having a departure city slot that is preceded by a preamble (FlightPreDepartureCity) and is followed by a postamble (FlightPostDepartureCity). Rule seven defines the arrival city in the same way, and rules eight and nine define the departure time and arrival time in a similar fashion, respectively. - Even given the fact that all of the rules identified in FIG. 2C can be automatically generated from
schema 212 bymodel authoring component 202, there are still no rewrite rules that indicate what specific words are actually mapped to the specific pre-terminals (command for a command semantic class, as well as preambles and postambles for slots.) For example, there is no rule which would indicate that the phrase “please show me the flights . . . ” is mapped to the ShowFlightCmd. Similarly, there is no rewrite rule which indicates which words would specifically map to, for example, the FlightPreArrivalCity preamble, etc. Therefore, the developer also inputs training example text strings andannotations 208 such thatmodel authoring component 202 can learn these rewrite rules as well. - FIG. 2D illustrates one example of an
example text string 213 “Flight from Seattle to Boston” along with asemantic annotation 214 that corresponds to textstring 213.Semantic annotation 214 is provided by the developer and indicates the semantic meaning ofstring 213.Semantic annotation 214, for example, shows that theinput text string 213 corresponds to a ShowFlight command that has a slot Flight which itself has two slots, both of which are cities. The distinction between the two slots in the Flight slot is made only by the name of the slot. One is referred to as the “Arrival” city and the other is referred to as the “Departure” city.Semantic annotation 214 also maps the word “Boston” to the “Arrival” city slot and the word “Seattle” to the “Departure” city slot. Therefore, based on theannotation 214,model authoring component 202 will know which slots map to the words “Seattle” and “Boston”. - From the annotated example and the template grammar rules shown in FIG. 2C,
model authoring component 202 can generate a rules-based grammar (or CFG) parse tree, such as parsetree 216 illustrated in FIG. 2E. Thefirst level 218 of parse tree 216 (the portion that shows that ShowFlight is formed of ShowFlightCmd followed by ShowFlightProperties) is formed fromrule 1 in FIG. 2C. - The second level 220 (the portion indicating that ShowFlightProperties is formed of ShowFlightProperty) is generated from
rule 2 where the optional ShowFlightProperties protion is not used. - The next level 222 (the portion indicating that ShowFlightProperty is formed of ShowFlightPreFlight followed by Flight followed by ShowFlightPostFlight) is generated from
rule 3 in FIG. 2C. - The next level 224 (indicating that the Flight object is formed of a FlightProperties section) is generated from
rule 4 in FIG. 2C. - The next level 226 (the portion indicating that the FlightProperties portion is formed of a FlightProperty portion followed by a FlightProperties portion) is generated from
rule 5 in FIG. 2C. - The next level 228 (the level indicating that the FlightProperty portion is formed of a FlightPreDepartureCity portion followed by a City slot followed by a FlightPostDepartureCity postamble) is generated from
rule 6, and the next level 230 (the level showing that FlightProperties is formed of a FlightPreArrivalCity preamble, a City slot and a FlightPostArrivalCity postamble) is generated fromrule 7. - Finally, the level indicating that the word “Seattle” is mapped to the City slot under
level 228 and that the word “Boston” is mapped to the City slot underlevel 230 are generated from thesemantic annotation 214 which is also input by the user. Thus,model authoring component 202 can learn how to map from the words “Seattle” and “Boston” in the input sentence into the CFG parse tree and into the rules generated in FIG. 2C. It should be noted that city rules can also be obtained from a library grammar (which in turn can be constructed by taking the data from the domain-specific database) instead of annotated data. - However, there are still a number of words in the input sentence which are not yet mapped to the tree. Those words include “Flight”, “from”, and “to”. Since the words “Flight” and “from” precede the word “Seattle”, they can map to a variety of preterminals in parse
tree 216, including FlightCmd, ShowFlightPreFlight, and FlightPreDepartureCity. Similarly, since the word “to” resides between the words “Seattle” and “Boston” ininput text string 213, the word “to” can map to either FlighPostDepatureCity or FlightPreArrivalCity. - Since it is known that the word “to” is a preposition, it must modify what comes after it. Therefore, it can be determined that the word “to” maps to the FlightPreArrivalCity perterminal in parse
tree 216. - However, it is still unknown where the words “Flight” and “from” should reside in parse
tree 216. Also, the particular segmentation for the two words is unknown. For example, in one alternative, the word “Flight” can be mapped to ShowFlightCmd while the word “from” is mapped to ShowFlightPreFlight. In that case, the preterminal FlightPreDepatureCity is mapped to an empty set. - In accordance with another alternative, both words “Flight” and “from” are mapped to ShowFlightCmd” while the other preterminals ShowFlightPreFlight and FlightPreDepartureCity are both mapped to empty sets.
- In still another alternative, “Flight” is mapped to ShowFlightCmd and “from” is mapped to FlightPreDepartureCity, while the remaining preterminal ShowFlightPreFlight is mapped to an empty set.
- This represents a segmentation ambiguity which historically has not been resolved in the absence of additional information from the developer. In some prior systems, each of the possible segmentations was simply displayed to the user, and the user was allowed to choose one of those segmentations.
- However, this has resulted in a number of problems. First, this type of interaction with the user is intrusive and time consuming. Also, when there are more possible preterminals, and more unaligned words in the input text string, the number of possibilities which must be presented to the user rises dramatically. It is very difficult, if not impossible, to effectively display all such candidate segmentations for selection by the user. In addition, even when the segmentations were adequately displayed for selection by the user, user's often make errors in the segmentation or segment similar text strings inconsistently.
- In accordance with one embodiment the expectation maximization (EM) algorithm is applied to segmentation ambiguities in
model component 202 in order to disambiguate the segmentation choices. The EM algorithm, in general, is an algorithm for estimating model parameters with maximum likelihood estimator when the model contains unobservable hidden variables. - FIG. 3A shows a block diagram illustrating
model authoring component 202 in greater detail. FIG. 3A shows thatmodel authoring component 202 illustratively includestemplate grammar generator 300, segmentationEM application component 302 andpruning component 304.Template grammar generator 300 receivesschema 206 and any rules inoptional grammar library 209 referred to (through proper type unification) by semantic classes inschema 206 and generates a template grammar which includes all rules that can be learned or gleaned fromschema 206 andoptional grammar library 209. The template grammar is then taken by the EM segmentation component as an input, together with the training examples (text strings and their annotations.) TheEM segmentation component 302 uses the template grammar to find the segmentation ambiguities in the training examples.Component 302 then operates to disambiguate any segmentation ambiguities. Based on that disambiguation, rewrite rules can be pruned from the grammar usingpruning component 304 to provide the rules-basedgrammar 210. - To further illustrate the operation of
EM segmentation component 302, FIGS. 2F and 2G provide exemplary tables. FIG. 2F shows a table that includes a set of examples. The first of which shows that the word “from” can possibly map to either the preterminal ShowFlightCmd or the perterminal FlightPreDepartureCity. The example may be harvested bycomponent 302 from an example sentence like “from Seattle to Boston”. The second example indicates that the words “Flight from” can be mapped to preterminals “ShowFlightCmd and FlightPreDepatureCity. The example may be harvested bycomponent 302 from an example sentence like “Flight from Seattle to Boston”. The third example illustrates that the words “Flight to” can be mapped to the preterminals ShowFlightCmd and FlightPreArrivalCity, which can be similarly obtained bycomponent 302 from an example like “Flight to Boston on Tuesday”. However, the segmentation of the examples is ambiguous. In other words, it is not yet known whether the word “from” in the first example is to be mapped to the preterminal ShowFlightCmd or to the preterminal FlightPreDepatureCity. Similarly, it is not known how the words “Flight from” are to be mapped between the preterminals ShowFlightCmd and FlightPreDepatureCity. Additionally, of course, it is not known how the words “Flight to” are to be mapped between the possible preterminals ShowFlightCmd and FlightPreArrivalCity. - FIG. 2G is a table further illustrating the operation of the EM algorithm application component 203. FIG. 3B is a flow diagram illustrating the operation of component 203 and will be described along with FIGS. 2F and 2G.
- First,
component 302 enumerates all possible segmentations. This is shown in the left column of FIG. 2G labeled possible re-write rules. In the re-write rules shown in FIG. 2G, some of the words that form the preterminal names are abbreviated. Therefore, by way of example, the re-write rule SFCmd→ε indicates the segmentation in which the ShowFlightCmd (abbreviated SFCmd) preterminal is mapped to an empty set. Similarly, the rewrite rules SFCmd→from represents the segmentation in which the word “from” is mapped to the preterminal ShowFlightCmd. Further, FPDCity→ε represents the segmentation in which the preterminal FlightPreDepartureCity (abbreviated FPDCity) is mapped to the empty set, and FPACity→ε represents the segmentation in which the preterminal FlightPreArrivalCity (abbreviated FPACity) is mapped to the empty set. From these examples, the other notation in the re-write rule portion of the table shown in FIG. 2G is self explanatory. Suffice it to say that each possible segmentation for the examples shown in FIG. 2F is enumerated. - From the first example in FIG. 2F, one segmentation indicates that the word “from” is mapped to ShowFlightCmd and another segmentation indicates that the word “from” is mapped to FlightPreDepatureCity.
- The second example in FIG. 2F supports a number of different segmentation alternatives as well. For example, in , accordance with one segmentation alternative, the words “Flight from” are both mapped to the perterminal ShowFlightCmd and the preterminal FlightPreDepatureCity is mapped to ε. In another segmentation alternative, the words “Flight from” are both mapped to the preterminal FlightPreDepatureCity and the preterminal “ShowFlightCmd” is mapped to ε. In yet another alternative, the words “Flight” and “from” are split such that the word “Flight” is mapped to the preterminal ShowFlightCmd and the word “from” is mapped to the preterminal FlightPreDepartureCity. Each of these segmentations is also shown in the rewrite rules enumerated in FIG. 2G.
- The third example can be segmented in a similar way to the second example in that the words “Flight to” can be mapped to either the preterminal ShowFlightCmd or the preterminal FlightPreArrivalCity while the other preterminal is mapped to ε, or the words “Flight to” can be split between the preterminals ShowFlightCmd and FlightPreArrivalCity. Again, each of these segmentations is represented in the rewrite rules shown in FIG. 2G.
- Enumeration of all possible segmentations is indicated by
block 306 in the flow diagram of FIG. 3B. - Once the rewrite rules that support the segmentations are enumerated, they are each assigned a probability. Initially, all segmentations illustrated in FIG. 2G are assigned the same probability. This is indicated by
block 308 in FIG. 3B. - Next,
component 302 assigns new expected counts to the enumerated rewrite rules, based upon the possible occurrences of those counts in the examples shown in FIG. 2F. This is indicated byblock 310. For instance, from the first example, there are two possible segmentations, one which maps the word “from” to ShowFlightCmd and maps the preterminal FlightPreDepartureCity to ε, and the other of which maps ShowFlightCmd to ε and maps the word “from” to the preterminal FlightPreDepartureCity. The first rewrite rule says that the ShowFlightCmd preterminal maps to ε (the empty set). Therefore, half of the segmentations in example 1 support the first rewrite rule shown in the table of FIG. 2G. Thus, from the first example, the first rewrite rule (ShowFlightCmd→ε) is assigned a count of one half. - As discussed above, the second example supports three different segmentations, one of which assigns both words “Flight from” to the preterminal ShowFlightCmd and the preterminal FlightPreDepartureCity to ε, another of which maps the word “Flight” to the preterminal ShowFlightCmd and the word “from” to the preterminal FlightPreDepartureCity, and the last of which maps the preterminal ShowFlightCmd to ε and both words “Flight from” to the preterminal FlightPreDepartureCity. Of those three segmentations, one supports the first rewrite rule (SFCmd→ε). Therefore, from the second example, the first rewrite rule is assigned a count of one third.
- In the same way, the third example has three possible segmentations, one of which maps the preterminal ShowFlightCmd to ε. Therefore, from the third example, the first rewrite rule shown in FIG. 2G is again assigned a count of one third.
- Using this type of analysis, it can be seen that the second rewrite rule (SFCmd→from) is only supported by the first example. Therefore, since there are two possible segmentations for the first example, and one of them supports the second rewrite rule, the second rewrite rule (SFCmd→from) is assigned a count of one half.
- The third rewrite rule (SFCmd→Flight) is supported by one of the segmentations from each of the second and third examples shown in FIG. 2F. Therefore, since each of those examples has three possible segmentations, the third rewrite rule (SFCmd→Flight) is assigned a count of one third from each example.
-
Component 302 assigns counts to each of the enumerated rewrite rules in FIG. 2G in this way, and those counts are illustrated in the second column of the table shown in FIG. 2G. The counts are all converted such that they have a common denominator, and they are then normalized for each preterminal to get the probability. In other words, the total probability mass for the ShowFlightCmd terminal must add to one. Therefore, the counts for each rewrite rule are multiplied by a normalization factor in order to obtain a probability associated with that rewrite rule. - For example, it can be seen that the total number of counts for the preterminal ShowFlightCmd is 3. Therefore, the probability of the first rewrite rule (SFCmd→ε) is {fraction (7/18)}. Similarly, the probability for the second rewrite rule (SFCmd→from) is {fraction (3/18)}, etc.
Component 302 processes the counts for each rewrite rule, and each preterminal, in order to obtain this probability. - It can thus be seen that, for the preterminal FPDCity, the sum of the counts over all different rules is 2, therefore the normalization factor is ½. For the final preterminal FPACity, there is only one count (3*⅓=1), and therefore the normalization factor is one. It can thus be seen that
component 302 resets the probability associated with each rewrite rule to one which more accurately reflects the occurrences of the rewrite rule supported by the examples. Normalizing the counts to obtain the new probability is indicated byblock 312 in FIG. 3B. -
Component 302 iterates on this process (re-estimating the counts and obtaining new probabilities) until the counts and probabilities converge. This is indicated byblock 314. For instance, in order to obtain a new count {overscore (C)} for the first rewrite rule,component 302 implementsequation 1 that first find the total likelihood of observing the word “from” given the non-terminal sequence ShowFlightCmd and FPDCity as follows: -
-
- This process is continued for each of the rewrite rules to collect the counts {overscore (C)} from each example. Then, the new counts are multiplied by the normalization factor to obtain the new probabilities. As shown in FIG. 3B,
component 302 iterates on this process, re-estimating the new counts and the new probabilities until the probabilities converge. - Once the iteration is complete,
component 302 will have computed a new count and new probability associated with each of the enumerated rewrite rules. While this, in and of itself, is very helpful, because it has assigned a probability to each of the segmentations to the rules corresponding to the different segmentations obtained during training, it may not be a desired final result. For example, some parsers are unable to take advantage of probabilities. Also, in some parsing components, a large number of rules render the parser less effective. - Thus, in accordance with one illustrative embodiment,
component 302 provides the rules and associated probabilities topruning component 304 where the rules can be pruned. This is indicated by 316 and 318 in FIG. 3B. Pruningblocks component 304 can prune the rules (as indicated by block 320) in one of a number of different ways. For example,pruning component 304 can simply prune out rules that have a probability below a desired threshold level.Component 304 then introduces the remaining rules into the rules-basedgrammar 210. - In accordance with another illustrative embodiment,
pruning component 304 eliminates all but a predetermined number of segmentations with high likelihood corresponding to each example, and only introduce rewrite rules to the grammar according to the remaining segmentations. For instances,component 304 may eliminate all the segmentations corresponding to each example but the one that has the highest probability. Thus, for example 1, assume that the segmentation that mapped the word “from” to the preterminal FlightPreDepartureCity had a higher probability than the segmentation which assigned the word “from” to the preterminal ShowFlightCmd. In that instance, the second segmentation (the one which mapped “from” to ShowFlightCmd) is eliminated. In that case, the two rewrite rules that support the chosen segmentation are added to the grammar. Therefore, the rewrite rule “SFCmd→ε” and the rewrite rule “FPDCity→from” are both added to the grammar. - Similarly, rules which are no longer supported by the best segmentation of any examples can be removed from the enumerated rules shown in FIG. 2G. Thus, the rule “SFCmd→from” can be removed, since it was only supported by the segmentation for example 1 that has been eliminated.
- Application of the EM algorithm in this way is now described in more formal mathematical terms. Segmentation ambiguity resolution can be formalized as the problem of finding an m block partition π=α 1, α2, . . . , αm for the word sequence w=w1, w2, . . . , wn, such that each block aligns to a pre-terminal in the sequence N=NT1, NT2, . . . , NTm. A block may contain 0 or more words from w.
-
-
- Such a partition can be found with Viterbi search. Thus the only problem left is to estimate the model parameter P(NT→α) for every pre-terminal (or concept) NT and word sequence α. This could be done with maximum likelihood (ML) estimation if the training data is a list of pre-terminals paired with a word sequence for each pre-terminal. However, the training examples obtained form the user via the authoring tool are illustratively pairs of pre-terminal sequences and terminal sequences. The partition or segmentation is a hidden variable and unknown to the tool.
- The EM algorithm initially sets the parameters P φfor the model, and then iteratively modifies the parameters to Pφ′, such that the likelihood of the observation D increases.
-
- It is a lower bound of L(D|P φ′)−L(D|Pφ), the log-likelihood difference of the training data between the two model parameterizations. The EM algorithm resets the parameters Pφ′ greedily by maximizing Q to maximize the increase of training sample likelihood by the new parameterization, subject to the constraints that the probabilities of all possible rewrite rules for a pre-terminal must sum to 1. Therefore, for each rule NT α, its new probability can be obtained by solving the following equation:
-
-
- Let E ij k=(N→w1, . . . , wn) be the event that in the process of rewriting the pre-terminal sequence N to the word sequence w, the rule NT→α is used for the kth pre-terminal in N to generate the sub-sequence α=wi, . . . , wj, and let λs t(p,q) be the probability that the pre-terminals from position s to t in the sequence N cover the terminal words wp, . . . , wq=1. Then
-
- Note that P φ(N,w)=λl m(1,n+1) can be used in equation (11).
- FIG. 4 illustrates another embodiment of a
model authoring component 350 in accordance with a different aspect of the invention. Rules-basedgrammar 210 can still be less robust and more brittle than desired. For example, assume, during training that the following rules are generated, to model the following pre-terminals: - FlightPreArrivalCity→to
- ShowFlightCmd→Show me the flight
- Further assume that, during runtime, the sentence input is “Show flight to Boston.” The input sentence will not be understood because there is no rule that says that “Show flight” is a ShowFlightCmd.
- A CFG works well for high resolution understanding. High resolution understanding represents grammars which break down sentences into a large number of slots. The larger the number of slots, the higher the resolution understanding is exhibited by the grammar. CFGs generalize well in high resolution situations.
- However, many applications require low resolution understanding, in which there are not a large number of slots to be filled. One such application is command and control. For example, in a command and control application, some commands which must be recognized include “ChangePassword”, “ChangeBackground”, and “ChangeLoginPicture”. In these instances, there are no slots to be filled, and entire sentences must be recognized as the commands. During training, this may well result in a rule such as:
- ChangeLoginPictureCmd→Please change my login icon.
- Since “ChangeLoginPicture” is a command, there is not a property portion to the rule. Therefore, the grammar learner simply “remembers” the full sentence in the rule it acquired. In order to recognize and invoke a user issued command, the command must match a full sentence in the training data. There is no generalization at all.
- One embodiment of the invention is drawn to, instead of modeling preterminals (such as commands, preambles and postambles) with rules in the template grammar, a statistical model (such as an n-gram) is used to model the preterminals. In one embodiment, the text generated for the enumerated segmentations corresponding to the preterminals in the template grammar is used as training data for the n-gram (or other statistical model). Therefore, in the example above, the text string corresponding to enumerated segmentations for the preterminals, together with its expected count collected in the expectation step of the EM algorithm, is used to train an n-gram for the preterminals. Thus, the text “Show me the flight” is used as training data to train an n-gram for modeling the ShowFlightCmd preterminals. Therefore, the probability that a sentence with “Show flight” in it will be recognized as a ShowFlightCmd can be calculated as follows:
- While the rules would not have identified “show flight” as a ShowFlightCmd, the above n-gram probability in Eq. 15 will not be zero. The first factor and the third factor in equation 15 are nonzero because they correspond to bigrams that actually exist in the training data (i.e., [<s> show] and [flight </s>]). The second factor does not correspond to a bigram that showed up in the training data but, because of smoothing techniques like backoff (described below) it will also have a nonzero probability and can be represented as follows:
- Pr(flight|show;ShowFlightCmd)=backoff_weight*Pr(flight|ShowFlightCmd) Eq. 16
- The backoff weight can be set empirically or otherwise, as desired, and the unigram probability Pr(flight|ShowFlightCmd) is nonzero because “flight” is a word in the training data.
- Since Pr(show flight</s>|ShowFlightCmd)>0, the parser will consider the input sentence as a ShowFlight candidate. The ultimate interpretation of the input sentence will depend on a comparison with other interpretation candidates.
- FIG. 4 thus shows another embodiment of
model authoring component 350 which authors acomposite model 351 that includes a grammar portion 210 (such as a CFG) that includes rules for modeling the slots and statistical model portion 326 (such as an n-gram) for identifying preterminals (such as commands, preambles and postambles). Thus, during runtime, input sentences are evaluated with thestatistical model portion 326 to identify preterminals, and with the rules-basedgrammar portion 210 to fill slots. -
Component 350 trainscomposite model 351 using, in part, the EM algorithm techniques discussed above. For example, assume that FIG. 5 shows all enumerated rules for the ShowFlightCmd according to different sample segmentations. - For the model discussed above with respect to FIGS. 2-3B, during the E-step of the EM algorithm, the expected counts are collected for each of the enumerated rules shown in FIG. 5. During the M-step, the counts are normalized. However, for
composite model 351, instead of normalizing the counts during the M-step of the algorithm, the text strings on the right hand side of the enumerated rules and the associated expected counts corresponding to those rules are used as training data to train and smooth an n-gram for the ShowFlightCmd preterminal. - In other words, in training the n-gram, a full count need not be added for each occurrence of a word sequence. Instead, the fractional data corresponding to the expected count for the rule associated with the training sentences (generated by
EM application component 302 illustrated in FIG. 3A) is added for each occurrence of the word sequence. - Another difference from the embodiment described for segmentation disambiguation with respect to FIGS. 2-3B involves the E-step of the EM algorithm. Instead of associating a probability with each of the enumerated rules, the probability of a rule is the product of all the n-grams in the rule.
- For example, in the rules-based grammar discussed above, the rule:
- ShowFlightCmd→Show me the flight
-
- Also, in accordance with one embodiment of the present invention, training the statistical model for the preterminals includes applying a smoothing algorithm. For example, the training data for training the statistical model for preterminals may be relatively sparse, since it only includes the text strings enumerated for segmentation associated with the given preterminal. This would leave a relatively large amount of language expressions uncovered by the statistical model and would therefore render the statistical model relatively brittle. Thus, the model probabilities are smoothed using lower level n-grams and with a uniform distribution. In other words, if the statistical model comprises a bigram, it is smoothed with unigrams which provide probabilities for the words modeled, regardless of context. In addition, the statistical model is smoothed with a uniform distribution which assigns the same probability to each word in the vocabulary. Therefore, if the word is in the vocabulary, it will not be modeled with zero probability by the statistical model. Deleted interpolation is used to find the weight for each model in the smoothing operation and linearly interpolate the models of different orders.
-
Component 350 can also train additional statistical model components in accordance with different embodiments of the present invention. This is illustrated in greater detail in the block diagram shown in FIG. 6. For instance, in that block diagram,statistical model portion 326 is shown as not only including a statistical model component forpreterminals 340, but also a plurality of other statistical models. For example,statistical model 326 can, in one embodiment, include 342 and 344 which include statistical models modeling the prior probability of tasks, and a statistical model for slot transitions.components - For example, if a runtime input sentence is “Show flights to Boston arriving on Tuesday, 11:00 a.m.” The term “arriving on” will be analyzed as indicating that “Tuesday” corresponds to an arrival date. However, there are no words before “11:00 a.m.” to indicate whether it is a departure time or an arrival time. The probability of an “arrival time” slot following an “arrival date” slot will likely be higher than the probability of a “departure time” slot following an “arrival date” slot. If such slot transitions are modeled, the slot transition model will prefer that “11:00 a.m.” be matched to the “arrival time” slot. It will also be noted that training a statistical model (such as an n-gram model) to model slot transitions is the same as training a statistical model (such as an n-gram model) to model the prior probability of slots, except that the order of n is different. For the prior probability of slots, a unigram model is trained, and to model slot transitions between two slots, a bigram model is trained, etc.
- Further, some commands occur in the training data more frequently than others. Therefore, the prior probability of the commands is modeled in
model 342. - The present invention will now be described in greater detail with respect to another example. FIG. 7 shows one exemplary simplified example of a semantic class in a schema that defines the semantics for an appointment scheduling command NewAppt.
- FIG. 8 illustrates template rules that can be automatically generated for the semantic class NewAppt, where symbols inside braces are optional. FIG. 9 illustrates one embodiment of an annotated sentence “New meeting with Peter at 5:00”. FIG. 10 illustrates two rules which can be added once segmentation disambiguation has been performed as discussed above.
- However, as discussed, the purely rules-based grammar can lack robustness and exhibit brittleness. Therefore, one aspect of the present invention replaces CFG rules with an n-gram to model each of the commands, preambles and post-ambles in the template grammar and to model slot transitions. The slot n-gram constrains the interpretation of slots lacking preambles and postambles. The resulting model is a composite of a statistical model (or HMM) and a CFG. The HMM models the template rules and the n-gram preterminals, and the CFG models library grammar.
- One example of such a model is shown in FIG. 11. The term “Att” is an abbreviation for “Attendee”, and “ST” is an abbreviation for “StartTime”. The emission probabilities b are preterminal-dependent n-grams (in the figure they are depicted as a unigram, but high order emission distribution will result in a high order HMM) and the transition probabilities a are the slot transition bigrams. The emissions τ from a slot node are library CFG non-terminals. Words are generated from them according to the CFG model P CFG.
-
- The new model overcomes the limitations of a CFG model. For low resolution understanding (task classification), no property preterminals are introduced into the template grammar. Therefore, all training data are used to train and smooth the n-gram for the command preterminals. The model scales down to an n-gram classifier represented by Equation 19.
- The n-gram model does not require an exact rule match. Instead of making binary decisions about rule applicability, it compares the probability that the observed word sequence is generated from a state (preterminal) sequence to find the most likely interpretation. Therefore, the model itself is robust and there is no need for a robust parser.
- Training is now described in greater detail with respect to the example shown in FIGS. 7-11. To train the model, the EM algorithm automatically segments word sequences and aligns each segment α to the corresponding preterminal NT in the preterminal sequence of a corresponding pair. The EM algorithm builds a model P(NT→α) that assigns a probability for generating word string a from NT, and parameterizes it with an initial uniform distribution. It then iteratively refines the parameterization, as discussed above. In each iteration, it computes the expected count for the rule NT→α according to the parameterization of the model in the previous iteration (the E step) and then re-estimates the probability P(NT→α) by normalizing the expected counts (the M step). To train the new model that models the preterminals with n-grams, the expected counts collected in the E-step are used to train and smooth the n-grams in the M-step; and the n-grams are used by the EM algorithm to collect the expected counts for the segmentations. This results in a training algorithm illustrated in FIG. 12.
- In one illustrative embodiment, the threshold value illustrated in the last line of FIG. 12 is set to 0.01. Of course, other threshold values can be used as well.
- It is also worth noting another optional aspect of the invention. Optional grammar library 209 (shown in FIGS. 2A, 4 and 13) can be adapted to the
training data 208 statistically. For example, assume that thegrammar library 209 includes a relatively large city list that contains both large and small international and domestic cities. However, further assume that a specific application for which the models are being trained will only refer to domestic cities, and further that large domestic cities such as New York and Los Angles are more likely to be referred to than smaller cities. 202 or 350 learns the probabilities associated with the probabilistic context free grammar (PCFG) that can compriseComponent grammar 209, from the annotatedtraining data 208. It may be learned, for instance, that the probability for the rule Cityname→New York is greater than the probability for the rule Cityname→Tokyo. This can be done in the same way as the other probabilities discussed above are learned. - FIG. 13 illustrates a runtime system using both the rules-based grammar portion for slots and the statistical model portion for preterminals. The system receives an input, and uses the grammar portion and n-gram portion and outputs an
output 402. - Decoding is described in greater detail with respect to FIG. 14. FIG. 14 illustrates a dynamic programming trellis structure representing a dynamic programming decoder for an input “new meeting with Peter at five”.
- The dynamic programming decoder finds the Viterbi path represented by Equation 18 above. Upon receiving the input, the decoder first uses a bottom-up chart parser to find the library grammar non-terminals that cover some input spans. In this example, it identifies “Peter” as <Person> and “five” as either <time> or <num>. The decoder then searches through the trellis starting from the semantic class nodes at the first column (the example only shows the semantic class NewAppt). At each node, it makes transitions to other nodes in the same column (switching to a different non-terminal) or to the next node in the same row (consuming an input word by the non-terminal). The search continues from left to right until it reaches the right most column. When it makes a transition, a score is obtained by adding an appropriate log probability to the score of the starting node. The score is then compared with that of the destination node, and replaces it if the new score is higher. Below the trellis are the non-terminals identified by a chart parser. The
thick path 410 represents the Viterbi interpretation. A higherthin path 412, identifies the correct tasks, but neither of the slots. A lower thin path 414 (which shares part of Viterbi path 410) identifies the attendee but not the start time slot. It treats “at five” as the postamble for the attendee. The log probability for each of the first nine transitions shown in FIG. 14 are listed below for theViterbi path 410.1. log P(NewAppt) // Class Prior 2. log b(New | <s>; NewApptCmd) // Word bigram 3. log b(meeting | new; NewApptCmd) // Word bigram 4. log b(</s> | meeting; NewApptCmd) + // Word bigram log a(Attendee | <s>; NewAppt) // Slot bigram 5. log b(with | <s>; PreAttendee) // Word bigram 6. log b(</s> | with; PreAttendee) // Word bigram 7. log Pcfg(Peter | <Person>) // PCFG 8. 0 9. log b(</s> | <s>; PostAttendee) + // Word bigram log a( StartTime | Attendee; NewAppt) // Slot bigram - Any desired pruning mechanism can be used. For example, one pruning mechanism provides that at each column of the trellis, no transition is made out of a node if its score is smaller than a threshold (such as 5.0) less then the maximum score in the same column. In other words, a path is not extended if it is 10 5 times less likely than another that leads to a node in the same column. The decoder runs an order of magnitude faster than the robust parser after pruning.
- In accordance with one embodiment of the present invention, the
composite model 351 is not only used in a natural language understanding system, but can also be used in a speech recognition system. In such an embodiment, the speech recognition system can perform both speech recognition and natural language understanding in a single pass. - FIG. 15 illustrates a block diagram of one illustrative
speech recognition system 500 in whichcomposite model 351 is used. Of course, sincecomposite model 351 is implemented in the speech recognition system shown in FIG. 15,system 500 can also perform natural language understanding as well as speech recognition. Before describing this in greater detail, a brief discussion of the overall operation ofsystem 500 is provided. - In FIG. 15, a
speaker 501 speaks into amicrophone 504. The audio signals detected bymicrophone 504 are converted into electrical signals that are provided to analog-to-digital (A-to-D)converter 506. - A-to-
D converter 506 converts the analog signal frommicrophone 504 into a series of digital values. In several embodiments, A-to-D converter 506 samples the analog signal at 16 kHz and 16 bits per sample, thereby creating 32 kilobytes of speech data per second. These digital values are provided to aframe constructor 507, which, in one embodiment, groups the values into 25 millisecond frames that start 10 milliseconds apart. - The frames of data created by
frame constructor 507 are provided to featureextractor 508, which extracts a feature from each frame. Examples of feature extraction modules include modules for performing Linear Predictive Coding (LPC), LPC derived cepstrum, Perceptive Linear Prediction (PLP), Auditory model feature extraction, and Mel-Frequency Cepstrum Coefficients (MFCC) feature extraction. Note that the invention is not limited to these feature extraction modules and that other modules may be used within the context of the present invention. - The
feature extraction module 508 produces a stream of feature vectors that are each associated with a frame of the speech signal. This stream of feature vectors is provided to adecoder 512, which identifies a most likely sequence of words based on the stream of feature vectors, alexicon 514,language model 351, and theacoustic model 518. The particular method used for decoding is not important to the present invention. - The most probable sequence of hypothesis words can be provided to an optional
confidence measure module 520.Confidence measure module 520 identifies which words are most likely to have been improperly identified by the speech recognizer. This can be based in part on a secondary acoustic model (not shown).Confidence measure module 520 then provides the sequence of hypothesis words to anoutput module 522 along with identifiers indicating which words may have been improperly identified. Those skilled in the art will recognize thatconfidence measure module 520 is not necessary for the practice of the present invention. - During training, a speech signal corresponding to
training text 526 is input totrainer 524 [YW1], along with a lexical transcription of thetraining text 526.Trainer 524 trainsacoustic model 518 based on the training inputs. Training ofcomposite language model 351 is discussed above. - As also discussed above,
model 351 uses a statistical portion (implemented, for example, using Hidden Markov model technology) to encode the structural information of an application schema, and uses a rules-based portion (implemented using, for example, CFG technology) to model the emissions of some HMM states. FIGS. 16-17B illustrate the topology of a model in such a way as to facilitate a discussion of how the model can be represented in a finite state representation, in a compact manner, even though it accounts for unseen words. - FIG. 16 is one illustrative embodiment of another
application schema 600.Schema 600 simply states that the application supports two types of information queries: those for flight information (the ShowFlight task) and those for ground transportation information (the GoundTransport task). In order to obtain flight information, a user must provide information about the arrival city (ACity) and/or the departure city (DCity) slots, so the system can search for the information according to the user's specification. The type of a slot specifies the requirement for its “fillers”. For both the ACity and DCity slots, the filler must be an expression modeled in the grammar library that refers to an object of the type “City”. - FIGS. 17A and 17B show a statistical model portion (an HMM) that incorporates the semantic constraints of
schema 600 into a natural language understanding rules-based grammar (such as a CFG). FIG. 17A illustrates a top-level structure 602 that has two branches, one leading to ShowFLight subnetwork 604 and the other leading to GroundTransport network 606. The transition weights on each of the branches are the probabilities for the two tasks. Therefore, the transition weight from the S-node to the ShowFlight subnetwork 604 corresponds to the probability of a ShowFlight task (or command), while the transition probability to the GroundTransport subnetwork 606 corresponds to the probability of a GroundTransport task. - FIG. 17B illustrates the ShowFlight subnetwork 604 model in greater detail, and use of the subnetwork model is illustrated by FIG. 17C. The ShowFlight subnetwork model shown in FIG. 17B models the linguistic expressions that users may use to issue a ShowFlight command. The subnetwork model starts with a command portion (such as “Show me the flight”), followed by the expressions for slots. Each slot is bracketed by a preamble and post-amble, which serve as the linguistic context for the slot. For example, the word “from” is a preamble for the DCity slot. It signals that the City following it is likely a departure city. The slots are inter-connected, and the connections are weighted with the bigram probability for slot transitions, which is estimated from training data.
- In the subnetwork model 604, the command, preambles and post-ambles are modeled with statistical n-gram models. These are illustrated by the oval portions in subnetwork model 604. The slot fillers are modeled with probabilistic CFG rules from a grammar library. These are illustrated by the rectangles shown in subnetwork model 604. The probabilities for the rules in the grammar library are illustratively tuned using domain specific data and are smoothed. The n-grams in the model 604 are trained with partially labeled training data. As discussed above, the EM algorithm can be used to train the n-grams in the network, where the alignments are treated as hidden variables.
- Unlike previous robust understanding technology, which relied on a robust parser to skip the words not covered by a grammar, the use of n-gram models for the pre-terminals in a grammar makes the model robust in itself. This enables one feature of the present invention, which uses the composite model 351 (one embodiment which is shown in FIGS. 17A and 17B) not only in natural language understanding, but also in speech recognition. This overcomes the suboptimal two-pass approach used in prior systems to accomplish speech recognition and natural language understanding, and it uses prior knowledge so that it can illustratively generalize better than prior systems.
- However, to use the
model 351 in a speech recognition system (such as a language model shown in FIG. 15), the model is first converted into a format that decoder 512 can accept as its language model. Therefore, the statistical n-gram models used to model the command, preambles and post-ambles (i.e., those n-grams inside the CFG) are converted into probabilistic finite state automata. The converted n-grams and the top level HMM structure (such as 602 shown in FIG. 17A), together with the rules in the library grammar, form a probabilistic context-free grammar (PCFG) language model. This conversion is based on a well-known conversion algorithm such as that set out in Riccardi, G., et al., STOCHASTIC AUTOMATA FOR LANGUAGE MODELING, Computer Speech and Language, 10:pages 265-293 (1996). - However, one significant modification is made to the conventional algorithm in order to significantly reduce the size of the model. This is illustrated by FIGS. 18A, 18B and 18C. FIGS. 18A and 18C illustrate finite state representations of the bigram language models for two pre-terminals, each has been trained with two observed words (designated a,b and c, d, respectively). The label on each arc in the model illustrates the weight and output symbol. The letter I represents the initial state, while the letter O represents the back-off state, and the letter F represents the final state. FIG. 18B is a finite state representation of a shared uniform distribution which is used to assign a back-off probability to unseen words (i.e., those words that were not seen in the training data for the specific n-gram model as shown in FIG. 18A).
- To illustrate the operation of the model shown in FIG. 18A, consider the probabilities associated with an utterance of the word “a” followed by an utterance of the word “b”. This corresponds to a combination of the following probabilities:
- P(a|<s>):a
- P(b|a):b
- Pr(</s>|b)
- The first probability is the n-gram probability of the word “a” following the beginning of sentence symbol. This corresponds to the transition from the initial state I to the state a. The second probability is the probability of the word “b” following the word “a”, which is labeled on the transition from state a to state b. The third probability is the probability of the end of sentence symbol following the word “b”, that is labeled on the transition from state b to the final state F. The sequential transitions form a path in the finite state machine that accepts the utterance “a b” and computes the probability of the utterance by multiplying the probabilities of the transitions in the path.
- For an utterance of a word sequence that is not observed in the training data, the finite state machine will not assign probability of 0 to it. Instead, a path traverses through the back-off state, using the product of the back-off weight and the unigram probability as the bigram probability of the unseen event. For example, the probability of the utterance “a a” is calculated via the following path in FIG. 18A:
- I→a P(a|<s>):a
- a→O B(a):ε
- O→a P(a):a
- a→F P(</s>|a).
- Here P(a|a)=B(a)*P(a)>0 even though the bigram “a a” is not observed in the training data.
- For an utterance of a word that is unseen in the training data for the particular n-gram being modeled, if the word is in the vocabulary, it is assigned a probability backed-off to the
uniform probability 1/|V|, where |V| is the vocabulary size. In prior systems, this results in a self-loop over the back-off state O for every unseen word. Because the training data for each n-gram in the composite model may be relatively sparse, many words in the vocabulary associated with the model will be unseen in the training data for each n-gram. Becausemodel 351 will illustratively support a vocabulary having a large number of words (illustratively several hundred) and because the model will also have a large number of n-grams (also illustratively several hundred) the number of self-loops through the back-off state 0 in the entire composite model would be very large. - Therefore, in accordance with one illustrative embodiment of the present invention, instead of adding a loop for each unseen word, the n-gram models in composite model 351 (such as that shown in FIG. 18A) include a single loop 620 [YW2] through the back-off state O. The single loop 620 refers to a shared uniform distribution model such as that shown in FIG. 18B.
- In the uniform distribution model shown in FIG. 18B, the letter n refers the number of words in the vocabulary where w 1 refers the first word “a”; w2 refers to the second word “b”, etc. Thus, for each unseen word, instead of looping over the back-off state, the model is smoothed approximately with the self-loop labeled with the uniform distribution over the back-off state O. The uniform distribution model shown in FIG. 18B is shared for all of the n-grams in
composite model 351. Each of the n-grams simply has a loop, similar to loop 620 shown in FIG. 18A, which refers to the uniform distribution model shown in FIG. 18B. This is illustrated in FIG. 18C. This saves a substantial amount of space in themodel 351 rendering it much more compact than prior systems. - It can thus be seen that various embodiments of the present invention not only include a statistical model portion for pre-terminals, but also include a rules-based grammar portion to fill slots, and this composite model is used in speech recognition or combination speech recognition and natural language understanding systems. This substantially reduces inefficiencies associated with sub-optimal two-pass systems and also includes prior knowledge in the language model to compensate for the lack of language model training data (i.e., to address data sparseness). The combined approach also reduces overall understanding error rate. Another embodiment of the invention also includes smoothing the n-gram models by referring to a separate backoff model (such as a uniform distribution model), instead of using self-loops across the back-off state in the n-gram model. This reduces the size of the model rendering it more compact.
- Although the present invention has been described with reference to particular embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention.
Claims (21)
Priority Applications (7)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US10/718,138 US20040220809A1 (en) | 2003-05-01 | 2003-11-20 | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding |
| JP2004127286A JP2004334193A (en) | 2003-05-01 | 2004-04-22 | System with composite statistical and rule-based grammar model for speech recognition and natural language understanding |
| EP04010313A EP1475779B1 (en) | 2003-05-01 | 2004-04-30 | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding |
| AT04010313T ATE352086T1 (en) | 2003-05-01 | 2004-04-30 | SYSTEM WITH A COMBINED STATISTICAL AND RULE-BASED GRAMMAR MODEL FOR LANGUAGE RECOGNITION AND UNDERSTANDING |
| KR1020040030526A KR20040094642A (en) | 2003-05-01 | 2004-04-30 | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding |
| DE602004004310T DE602004004310T2 (en) | 2003-05-01 | 2004-04-30 | System with combined statistical and rule-based grammar model for speech recognition and understanding |
| CN2004100451835A CN1551103B (en) | 2003-05-01 | 2004-04-30 | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US10/427,604 US7603267B2 (en) | 2003-05-01 | 2003-05-01 | Rules-based grammar for slots and statistical model for preterminals in natural language understanding system |
| US10/718,138 US20040220809A1 (en) | 2003-05-01 | 2003-11-20 | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US10/427,604 Continuation-In-Part US7603267B2 (en) | 2003-05-01 | 2003-05-01 | Rules-based grammar for slots and statistical model for preterminals in natural language understanding system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| US20040220809A1 true US20040220809A1 (en) | 2004-11-04 |
Family
ID=32990449
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US10/427,604 Expired - Fee Related US7603267B2 (en) | 2003-05-01 | 2003-05-01 | Rules-based grammar for slots and statistical model for preterminals in natural language understanding system |
| US10/718,138 Abandoned US20040220809A1 (en) | 2003-05-01 | 2003-11-20 | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US10/427,604 Expired - Fee Related US7603267B2 (en) | 2003-05-01 | 2003-05-01 | Rules-based grammar for slots and statistical model for preterminals in natural language understanding system |
Country Status (7)
| Country | Link |
|---|---|
| US (2) | US7603267B2 (en) |
| EP (1) | EP1475778B1 (en) |
| JP (1) | JP4724377B2 (en) |
| KR (1) | KR101120858B1 (en) |
| CN (1) | CN1542736B (en) |
| AT (1) | ATE492876T1 (en) |
| DE (1) | DE602004030635D1 (en) |
Cited By (94)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060155530A1 (en) * | 2004-12-14 | 2006-07-13 | International Business Machines Corporation | Method and apparatus for generation of text documents |
| US20060173683A1 (en) * | 2005-02-03 | 2006-08-03 | Voice Signal Technologies, Inc. | Methods and apparatus for automatically extending the voice vocabulary of mobile communications devices |
| US20060277031A1 (en) * | 2005-06-02 | 2006-12-07 | Microsoft Corporation | Authoring speech grammars |
| US20060287846A1 (en) * | 2005-06-21 | 2006-12-21 | Microsoft Corporation | Generating grammar rules from prompt text |
| US20070129936A1 (en) * | 2005-12-02 | 2007-06-07 | Microsoft Corporation | Conditional model for natural language understanding |
| US20070179777A1 (en) * | 2005-12-22 | 2007-08-02 | Rakesh Gupta | Automatic Grammar Generation Using Distributedly Collected Knowledge |
| US20070219793A1 (en) * | 2006-03-14 | 2007-09-20 | Microsoft Corporation | Shareable filler model for grammar authoring |
| US20070233497A1 (en) * | 2006-03-30 | 2007-10-04 | Microsoft Corporation | Dialog repair based on discrepancies between user model predictions and speech recognition results |
| US20070239453A1 (en) * | 2006-04-06 | 2007-10-11 | Microsoft Corporation | Augmenting context-free grammars with back-off grammars for processing out-of-grammar utterances |
| US20070239454A1 (en) * | 2006-04-06 | 2007-10-11 | Microsoft Corporation | Personalizing a context-free grammar using a dictation language model |
| US20070288231A1 (en) * | 2006-06-08 | 2007-12-13 | Microsoft Corporation Microsoft Patent Group | Uncertainty interval content sensing |
| US20080071520A1 (en) * | 2006-09-14 | 2008-03-20 | David Lee Sanford | Method and system for improving the word-recognition rate of speech recognition software |
| US20080177545A1 (en) * | 2007-01-19 | 2008-07-24 | Microsoft Corporation | Automatic reading tutoring with parallel polarized language modeling |
| US20080243481A1 (en) * | 2007-03-26 | 2008-10-02 | Thorsten Brants | Large Language Models in Machine Translation |
| US20080270129A1 (en) * | 2005-02-17 | 2008-10-30 | Loquendo S.P.A. | Method and System for Automatically Providing Linguistic Formulations that are Outside a Recognition Domain of an Automatic Speech Recognition System |
| US20090070112A1 (en) * | 2007-09-11 | 2009-03-12 | Microsoft Corporation | Automatic reading tutoring |
| US20100076752A1 (en) * | 2008-09-19 | 2010-03-25 | Zweig Geoffrey G | Automated Data Cleanup |
| US20100114577A1 (en) * | 2006-06-27 | 2010-05-06 | Deutsche Telekom Ag | Method and device for the natural-language recognition of a vocal expression |
| US20100145680A1 (en) * | 2008-12-10 | 2010-06-10 | Electronics And Telecommunications Research Institute | Method and apparatus for speech recognition using domain ontology |
| US7856351B2 (en) | 2007-01-19 | 2010-12-21 | Microsoft Corporation | Integrated speech recognition and semantic classification |
| US20110010165A1 (en) * | 2009-07-13 | 2011-01-13 | Samsung Electronics Co., Ltd. | Apparatus and method for optimizing a concatenate recognition unit |
| US20110224971A1 (en) * | 2010-03-11 | 2011-09-15 | Microsoft Corporation | N-Gram Selection for Practical-Sized Language Models |
| US20110238407A1 (en) * | 2009-08-31 | 2011-09-29 | O3 Technologies, Llc | Systems and methods for speech-to-speech translation |
| US20120310866A1 (en) * | 2010-01-06 | 2012-12-06 | Nec Corporation | Data processing device, computer program therefor and data processing method |
| US20130144616A1 (en) * | 2011-12-06 | 2013-06-06 | At&T Intellectual Property I, L.P. | System and method for machine-mediated human-human conversation |
| US8566095B2 (en) * | 2008-04-16 | 2013-10-22 | Google Inc. | Segmenting words using scaled probabilities |
| US8700404B1 (en) * | 2005-08-27 | 2014-04-15 | At&T Intellectual Property Ii, L.P. | System and method for using semantic and syntactic graphs for utterance classification |
| US8768712B1 (en) * | 2013-12-04 | 2014-07-01 | Google Inc. | Initiating actions based on partial hotwords |
| US20150019202A1 (en) * | 2013-07-15 | 2015-01-15 | Nuance Communications, Inc. | Ontology and Annotation Driven Grammar Inference |
| US20150347383A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | Text prediction using combined word n-gram and unigram language models |
| US9208778B2 (en) * | 2011-10-25 | 2015-12-08 | At&T Intellectual Property I, L.P. | System and method for combining frame and segment level processing, via temporal pooling, for phonetic classification |
| US9449598B1 (en) * | 2013-09-26 | 2016-09-20 | Amazon Technologies, Inc. | Speech recognition with combined grammar and statistical language models |
| US9460088B1 (en) * | 2013-05-31 | 2016-10-04 | Google Inc. | Written-domain language modeling with decomposition |
| WO2017059500A1 (en) * | 2015-10-09 | 2017-04-13 | Sayity Pty Ltd | Frameworks and methodologies configured to enable streamlined integration of natural language processing functionality with one or more user interface environments, including assisted learning process |
| US9633660B2 (en) | 2010-02-25 | 2017-04-25 | Apple Inc. | User profiling for voice input processing |
| US9668024B2 (en) | 2014-06-30 | 2017-05-30 | Apple Inc. | Intelligent automated assistant for TV user interactions |
| US9767093B2 (en) | 2014-06-19 | 2017-09-19 | Nuance Communications, Inc. | Syntactic parser assisted semantic rule inference |
| US9865248B2 (en) | 2008-04-05 | 2018-01-09 | Apple Inc. | Intelligent text-to-speech conversion |
| US9934775B2 (en) | 2016-05-26 | 2018-04-03 | Apple Inc. | Unit-selection text-to-speech synthesis based on predicted concatenation parameters |
| US9953088B2 (en) | 2012-05-14 | 2018-04-24 | Apple Inc. | Crowd sourcing information to fulfill user requests |
| US9966060B2 (en) | 2013-06-07 | 2018-05-08 | Apple Inc. | System and method for user-specified pronunciation of words for speech synthesis and recognition |
| US9972304B2 (en) | 2016-06-03 | 2018-05-15 | Apple Inc. | Privacy preserving distributed evaluation framework for embedded personalized systems |
| US9971774B2 (en) | 2012-09-19 | 2018-05-15 | Apple Inc. | Voice-based media searching |
| US9986419B2 (en) | 2014-09-30 | 2018-05-29 | Apple Inc. | Social reminders |
| US10043516B2 (en) | 2016-09-23 | 2018-08-07 | Apple Inc. | Intelligent automated assistant |
| US10049668B2 (en) | 2015-12-02 | 2018-08-14 | Apple Inc. | Applying neural network language models to weighted finite state transducers for automatic speech recognition |
| US10049663B2 (en) | 2016-06-08 | 2018-08-14 | Apple, Inc. | Intelligent automated assistant for media exploration |
| US10067938B2 (en) | 2016-06-10 | 2018-09-04 | Apple Inc. | Multilingual word prediction |
| US10079014B2 (en) | 2012-06-08 | 2018-09-18 | Apple Inc. | Name recognition system |
| US10089072B2 (en) | 2016-06-11 | 2018-10-02 | Apple Inc. | Intelligent device arbitration and control |
| US10169329B2 (en) | 2014-05-30 | 2019-01-01 | Apple Inc. | Exemplar-based natural language processing |
| US10192552B2 (en) | 2016-06-10 | 2019-01-29 | Apple Inc. | Digital assistant providing whispered speech |
| US10223066B2 (en) | 2015-12-23 | 2019-03-05 | Apple Inc. | Proactive assistance based on dialog communication between devices |
| US10249300B2 (en) | 2016-06-06 | 2019-04-02 | Apple Inc. | Intelligent list reading |
| US10269345B2 (en) | 2016-06-11 | 2019-04-23 | Apple Inc. | Intelligent task discovery |
| US10283110B2 (en) | 2009-07-02 | 2019-05-07 | Apple Inc. | Methods and apparatuses for automatic speech recognition |
| US10297253B2 (en) | 2016-06-11 | 2019-05-21 | Apple Inc. | Application integration with a digital assistant |
| US10304465B2 (en) | 2012-10-30 | 2019-05-28 | Google Technology Holdings LLC | Voice control user interface for low power mode |
| US10318871B2 (en) | 2005-09-08 | 2019-06-11 | Apple Inc. | Method and apparatus for building an intelligent automated assistant |
| US10354677B2 (en) * | 2013-02-28 | 2019-07-16 | Nuance Communications, Inc. | System and method for identification of intent segment(s) in caller-agent conversations |
| US10356243B2 (en) | 2015-06-05 | 2019-07-16 | Apple Inc. | Virtual assistant aided communication with 3rd party service in a communication session |
| US10354011B2 (en) | 2016-06-09 | 2019-07-16 | Apple Inc. | Intelligent automated assistant in a home environment |
| US10360301B2 (en) * | 2016-10-10 | 2019-07-23 | International Business Machines Corporation | Personalized approach to handling hypotheticals in text |
| US10366688B2 (en) | 2012-10-30 | 2019-07-30 | Google Technology Holdings LLC | Voice control user interface with multiple voice processing modules |
| US10366158B2 (en) | 2015-09-29 | 2019-07-30 | Apple Inc. | Efficient word encoding for recurrent neural network language models |
| US10373615B2 (en) | 2012-10-30 | 2019-08-06 | Google Technology Holdings LLC | Voice control user interface during low power mode |
| US10381002B2 (en) | 2012-10-30 | 2019-08-13 | Google Technology Holdings LLC | Voice control user interface during low-power mode |
| US10410637B2 (en) | 2017-05-12 | 2019-09-10 | Apple Inc. | User-specific acoustic models |
| US10446143B2 (en) | 2016-03-14 | 2019-10-15 | Apple Inc. | Identification of voice inputs providing credentials |
| US10482874B2 (en) | 2017-05-15 | 2019-11-19 | Apple Inc. | Hierarchical belief states for digital assistants |
| US10490187B2 (en) | 2016-06-10 | 2019-11-26 | Apple Inc. | Digital assistant providing automated status report |
| US10509862B2 (en) | 2016-06-10 | 2019-12-17 | Apple Inc. | Dynamic phrase expansion of language input |
| US10521466B2 (en) | 2016-06-11 | 2019-12-31 | Apple Inc. | Data driven natural language event detection and classification |
| US10567477B2 (en) | 2015-03-08 | 2020-02-18 | Apple Inc. | Virtual assistant continuity |
| US10593346B2 (en) | 2016-12-22 | 2020-03-17 | Apple Inc. | Rank-reduced token representation for automatic speech recognition |
| US10671428B2 (en) | 2015-09-08 | 2020-06-02 | Apple Inc. | Distributed personal assistant |
| US10691473B2 (en) | 2015-11-06 | 2020-06-23 | Apple Inc. | Intelligent automated assistant in a messaging environment |
| US10706841B2 (en) | 2010-01-18 | 2020-07-07 | Apple Inc. | Task flow identification based on user intent |
| US10733993B2 (en) | 2016-06-10 | 2020-08-04 | Apple Inc. | Intelligent digital assistant in a multi-tasking environment |
| US10747498B2 (en) | 2015-09-08 | 2020-08-18 | Apple Inc. | Zero latency digital assistant |
| US10755703B2 (en) | 2017-05-11 | 2020-08-25 | Apple Inc. | Offline personal assistant |
| US10791176B2 (en) | 2017-05-12 | 2020-09-29 | Apple Inc. | Synchronization and task delegation of a digital assistant |
| US10796219B2 (en) * | 2016-10-31 | 2020-10-06 | Baidu Online Network Technology (Beijing) Co., Ltd. | Semantic analysis method and apparatus based on artificial intelligence |
| US10795541B2 (en) | 2009-06-05 | 2020-10-06 | Apple Inc. | Intelligent organization of tasks items |
| US10810274B2 (en) | 2017-05-15 | 2020-10-20 | Apple Inc. | Optimizing dialogue policy decisions for digital assistants using implicit feedback |
| CN112466291A (en) * | 2020-10-27 | 2021-03-09 | 北京百度网讯科技有限公司 | Language model training method and device and electronic equipment |
| US11010550B2 (en) | 2015-09-29 | 2021-05-18 | Apple Inc. | Unified language modeling framework for word prediction, auto-completion and auto-correction |
| US11080012B2 (en) | 2009-06-05 | 2021-08-03 | Apple Inc. | Interface for a virtual digital assistant |
| US11138374B1 (en) * | 2018-11-08 | 2021-10-05 | Amazon Technologies, Inc. | Slot type authoring |
| US11217255B2 (en) | 2017-05-16 | 2022-01-04 | Apple Inc. | Far-field extension for digital assistant services |
| US11281857B1 (en) * | 2018-11-08 | 2022-03-22 | Amazon Technologies, Inc. | Composite slot type resolution |
| US11308281B1 (en) * | 2018-11-08 | 2022-04-19 | Amazon Technologies, Inc. | Slot type resolution process |
| US11587559B2 (en) | 2015-09-30 | 2023-02-21 | Apple Inc. | Intelligent device identification |
| US11934794B1 (en) * | 2022-09-30 | 2024-03-19 | Knowbl Inc. | Systems and methods for algorithmically orchestrating conversational dialogue transitions within an automated conversational system |
Families Citing this family (48)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2544102A1 (en) | 2002-11-28 | 2013-01-09 | Nuance Communications Austria GmbH | Method to assign word class information |
| US20060009966A1 (en) * | 2004-07-12 | 2006-01-12 | International Business Machines Corporation | Method and system for extracting information from unstructured text using symbolic machine learning |
| JP4081056B2 (en) * | 2004-08-30 | 2008-04-23 | 株式会社東芝 | Information processing apparatus, information processing method, and program |
| KR100732167B1 (en) * | 2005-09-08 | 2007-06-27 | 엘지전자 주식회사 | Speaker assembly and video equipment |
| US7707027B2 (en) * | 2006-04-13 | 2010-04-27 | Nuance Communications, Inc. | Identification and rejection of meaningless input during natural language classification |
| CN101454826A (en) * | 2006-05-31 | 2009-06-10 | 日本电气株式会社 | Speech recognition word dictionary/language model making system, method, and program, and speech recognition system |
| JP5088701B2 (en) * | 2006-05-31 | 2012-12-05 | 日本電気株式会社 | Language model learning system, language model learning method, and language model learning program |
| US10796390B2 (en) * | 2006-07-03 | 2020-10-06 | 3M Innovative Properties Company | System and method for medical coding of vascular interventional radiology procedures |
| JP4640407B2 (en) | 2007-12-07 | 2011-03-02 | ソニー株式会社 | Signal processing apparatus, signal processing method, and program |
| US8990088B2 (en) * | 2009-01-28 | 2015-03-24 | Microsoft Corporation | Tool and framework for creating consistent normalization maps and grammars |
| JP5710317B2 (en) * | 2011-03-03 | 2015-04-30 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Information processing apparatus, natural language analysis method, program, and recording medium |
| US10642934B2 (en) | 2011-03-31 | 2020-05-05 | Microsoft Technology Licensing, Llc | Augmented conversational understanding architecture |
| US9858343B2 (en) | 2011-03-31 | 2018-01-02 | Microsoft Technology Licensing Llc | Personalization of queries, conversations, and searches |
| US9244984B2 (en) | 2011-03-31 | 2016-01-26 | Microsoft Technology Licensing, Llc | Location based conversational understanding |
| US9760566B2 (en) | 2011-03-31 | 2017-09-12 | Microsoft Technology Licensing, Llc | Augmented conversational understanding agent to identify conversation context between two humans and taking an agent action thereof |
| US9842168B2 (en) | 2011-03-31 | 2017-12-12 | Microsoft Technology Licensing, Llc | Task driven user intents |
| US9298287B2 (en) | 2011-03-31 | 2016-03-29 | Microsoft Technology Licensing, Llc | Combined activation for natural user interface systems |
| CN102147731A (en) * | 2011-04-20 | 2011-08-10 | 上海交通大学 | Automatic functional requirement extraction system based on extended functional requirement description framework |
| US9454962B2 (en) | 2011-05-12 | 2016-09-27 | Microsoft Technology Licensing, Llc | Sentence simplification for spoken language understanding |
| US9064006B2 (en) | 2012-08-23 | 2015-06-23 | Microsoft Technology Licensing, Llc | Translating natural language utterances to keyword search queries |
| JP5819261B2 (en) * | 2012-06-19 | 2015-11-18 | 株式会社Nttドコモ | Function execution instruction system, function execution instruction method, and function execution instruction program |
| CN109509483B (en) * | 2013-01-29 | 2023-11-14 | 弗劳恩霍夫应用研究促进协会 | A decoder that produces a frequency-enhanced audio signal and an encoder that produces an encoded signal |
| US9330659B2 (en) * | 2013-02-25 | 2016-05-03 | Microsoft Technology Licensing, Llc | Facilitating development of a spoken natural language interface |
| EP2851896A1 (en) | 2013-09-19 | 2015-03-25 | Maluuba Inc. | Speech recognition using phoneme matching |
| US9601108B2 (en) | 2014-01-17 | 2017-03-21 | Microsoft Technology Licensing, Llc | Incorporating an exogenous large-vocabulary model into rule-based speech recognition |
| US10749989B2 (en) | 2014-04-01 | 2020-08-18 | Microsoft Technology Licensing Llc | Hybrid client/server architecture for parallel processing |
| US20150379166A1 (en) * | 2014-06-25 | 2015-12-31 | Linkedin Corporation | Model compilation for feature selection in statistical models |
| WO2017094967A1 (en) * | 2015-12-03 | 2017-06-08 | 한국과학기술원 | Natural language processing schema and method and system for establishing knowledge database therefor |
| WO2018083670A1 (en) | 2016-11-04 | 2018-05-11 | Deepmind Technologies Limited | Sequence transduction neural networks |
| CN117112761A (en) * | 2017-09-05 | 2023-11-24 | 声音猎手公司 | Classification between domains via syntax slots |
| US10896297B1 (en) | 2017-12-13 | 2021-01-19 | Tableau Software, Inc. | Identifying intent in visual analytical conversations |
| CN108615526B (en) | 2018-05-08 | 2020-07-07 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for detecting keywords in voice signal |
| US11055489B2 (en) * | 2018-10-08 | 2021-07-06 | Tableau Software, Inc. | Determining levels of detail for data visualizations using natural language constructs |
| US11537276B2 (en) | 2018-10-22 | 2022-12-27 | Tableau Software, Inc. | Generating data visualizations according to an object model of selected data sources |
| CN111292751B (en) * | 2018-11-21 | 2023-02-28 | 北京嘀嘀无限科技发展有限公司 | Semantic analysis method and device, voice interaction method and device, and electronic equipment |
| US11314817B1 (en) | 2019-04-01 | 2022-04-26 | Tableau Software, LLC | Methods and systems for inferring intent and utilizing context for natural language expressions to modify data visualizations in a data visualization interface |
| CN113841198B (en) * | 2019-05-01 | 2023-07-14 | 伯斯有限公司 | Signal component estimation using coherence |
| US11042558B1 (en) | 2019-09-06 | 2021-06-22 | Tableau Software, Inc. | Determining ranges for vague modifiers in natural language commands |
| US11163954B2 (en) * | 2019-09-18 | 2021-11-02 | International Business Machines Corporation | Propagation of annotation metadata to overlapping annotations of synonymous type |
| US11030256B2 (en) | 2019-11-05 | 2021-06-08 | Tableau Software, Inc. | Methods and user interfaces for visually analyzing data visualizations with multi-row calculations |
| US11475052B1 (en) | 2019-11-08 | 2022-10-18 | Tableau Software, Inc. | Using visual cues to validate object models of database tables |
| US10997217B1 (en) | 2019-11-10 | 2021-05-04 | Tableau Software, Inc. | Systems and methods for visualizing object models of database tables |
| KR20220034488A (en) | 2020-09-11 | 2022-03-18 | 삼성전자주식회사 | An electronic apparatus and Method for controlling electronic apparatus thereof |
| CN112987940B (en) * | 2021-04-27 | 2021-08-27 | 广州智品网络科技有限公司 | Input method and device based on sample probability quantization and electronic equipment |
| US12499318B1 (en) | 2021-09-10 | 2025-12-16 | Tableau Software, LLC | Using messaging system threading for interpreting natural language analytical conversations |
| US12462171B2 (en) * | 2021-11-22 | 2025-11-04 | Tencent America LLC | Hierarchical context tagging for utterance rewriting |
| US20230401360A1 (en) * | 2022-06-08 | 2023-12-14 | Novity, Inc. | System design based on process flow diagram information extraction and generative models |
| US12524615B2 (en) | 2022-09-08 | 2026-01-13 | Tencent America LLC | Efficient hybrid text normalization |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6052483A (en) * | 1994-11-04 | 2000-04-18 | Lucent Technologies Inc. | Methods and apparatus for classification of images using distribution maps |
| US6230138B1 (en) * | 2000-06-28 | 2001-05-08 | Visteon Global Technologies, Inc. | Method and apparatus for controlling multiple speech engines in an in-vehicle speech recognition system |
| US6317708B1 (en) * | 1999-01-07 | 2001-11-13 | Justsystem Corporation | Method for producing summaries of text document |
| US20020040359A1 (en) * | 2000-06-26 | 2002-04-04 | Green Edward A. | Method and apparatus for normalizing and converting structured content |
| US6419431B1 (en) * | 2000-12-06 | 2002-07-16 | E-Z Trail, Inc. | Adjustable support for transport |
| US20030055623A1 (en) * | 2001-09-14 | 2003-03-20 | International Business Machines Corporation | Monte Carlo method for natural language understanding and speech recognition language models |
| US6629066B1 (en) * | 1995-07-18 | 2003-09-30 | Nuance Communications | Method and system for building and running natural language understanding systems |
| US20030216905A1 (en) * | 2002-05-20 | 2003-11-20 | Ciprian Chelba | Applying a structured language model to information extraction |
| US6952666B1 (en) * | 2000-07-20 | 2005-10-04 | Microsoft Corporation | Ranking parser for a natural language processing system |
| US7184950B2 (en) * | 2001-07-12 | 2007-02-27 | Microsoft Corporation | Method and apparatus for improved grammar checking using a stochastic parser |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2867695B2 (en) * | 1990-11-28 | 1999-03-08 | 日本電気株式会社 | Continuous speech recognition device |
| JP3265864B2 (en) * | 1994-10-28 | 2002-03-18 | 三菱電機株式会社 | Voice recognition device |
| JP3009636B2 (en) * | 1996-05-16 | 2000-02-14 | 株式会社エイ・ティ・アール音声翻訳通信研究所 | Spoken language analyzer |
| US5797123A (en) * | 1996-10-01 | 1998-08-18 | Lucent Technologies Inc. | Method of key-phase detection and verification for flexible speech understanding |
| US7031908B1 (en) | 2000-06-01 | 2006-04-18 | Microsoft Corporation | Creating a language model for a language processing system |
| US6865528B1 (en) | 2000-06-01 | 2005-03-08 | Microsoft Corporation | Use of a unified language model |
-
2003
- 2003-05-01 US US10/427,604 patent/US7603267B2/en not_active Expired - Fee Related
- 2003-11-20 US US10/718,138 patent/US20040220809A1/en not_active Abandoned
-
2004
- 2004-04-16 DE DE602004030635T patent/DE602004030635D1/en not_active Expired - Lifetime
- 2004-04-16 EP EP04009124A patent/EP1475778B1/en not_active Expired - Lifetime
- 2004-04-16 AT AT04009124T patent/ATE492876T1/en not_active IP Right Cessation
- 2004-04-26 JP JP2004130332A patent/JP4724377B2/en not_active Expired - Lifetime
- 2004-04-30 KR KR1020040030614A patent/KR101120858B1/en not_active Expired - Fee Related
- 2004-05-08 CN CN2004100435917A patent/CN1542736B/en not_active Expired - Fee Related
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6052483A (en) * | 1994-11-04 | 2000-04-18 | Lucent Technologies Inc. | Methods and apparatus for classification of images using distribution maps |
| US6629066B1 (en) * | 1995-07-18 | 2003-09-30 | Nuance Communications | Method and system for building and running natural language understanding systems |
| US6317708B1 (en) * | 1999-01-07 | 2001-11-13 | Justsystem Corporation | Method for producing summaries of text document |
| US20020040359A1 (en) * | 2000-06-26 | 2002-04-04 | Green Edward A. | Method and apparatus for normalizing and converting structured content |
| US6230138B1 (en) * | 2000-06-28 | 2001-05-08 | Visteon Global Technologies, Inc. | Method and apparatus for controlling multiple speech engines in an in-vehicle speech recognition system |
| US6952666B1 (en) * | 2000-07-20 | 2005-10-04 | Microsoft Corporation | Ranking parser for a natural language processing system |
| US6419431B1 (en) * | 2000-12-06 | 2002-07-16 | E-Z Trail, Inc. | Adjustable support for transport |
| US7184950B2 (en) * | 2001-07-12 | 2007-02-27 | Microsoft Corporation | Method and apparatus for improved grammar checking using a stochastic parser |
| US20030055623A1 (en) * | 2001-09-14 | 2003-03-20 | International Business Machines Corporation | Monte Carlo method for natural language understanding and speech recognition language models |
| US20030216905A1 (en) * | 2002-05-20 | 2003-11-20 | Ciprian Chelba | Applying a structured language model to information extraction |
Cited By (141)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060155530A1 (en) * | 2004-12-14 | 2006-07-13 | International Business Machines Corporation | Method and apparatus for generation of text documents |
| US20060173683A1 (en) * | 2005-02-03 | 2006-08-03 | Voice Signal Technologies, Inc. | Methods and apparatus for automatically extending the voice vocabulary of mobile communications devices |
| US8160884B2 (en) * | 2005-02-03 | 2012-04-17 | Voice Signal Technologies, Inc. | Methods and apparatus for automatically extending the voice vocabulary of mobile communications devices |
| US9224391B2 (en) * | 2005-02-17 | 2015-12-29 | Nuance Communications, Inc. | Method and system for automatically providing linguistic formulations that are outside a recognition domain of an automatic speech recognition system |
| US20080270129A1 (en) * | 2005-02-17 | 2008-10-30 | Loquendo S.P.A. | Method and System for Automatically Providing Linguistic Formulations that are Outside a Recognition Domain of an Automatic Speech Recognition System |
| US20060277031A1 (en) * | 2005-06-02 | 2006-12-07 | Microsoft Corporation | Authoring speech grammars |
| US7617093B2 (en) | 2005-06-02 | 2009-11-10 | Microsoft Corporation | Authoring speech grammars |
| US20060287846A1 (en) * | 2005-06-21 | 2006-12-21 | Microsoft Corporation | Generating grammar rules from prompt text |
| US8700404B1 (en) * | 2005-08-27 | 2014-04-15 | At&T Intellectual Property Ii, L.P. | System and method for using semantic and syntactic graphs for utterance classification |
| US9905223B2 (en) | 2005-08-27 | 2018-02-27 | Nuance Communications, Inc. | System and method for using semantic and syntactic graphs for utterance classification |
| US9218810B2 (en) | 2005-08-27 | 2015-12-22 | At&T Intellectual Property Ii, L.P. | System and method for using semantic and syntactic graphs for utterance classification |
| US10318871B2 (en) | 2005-09-08 | 2019-06-11 | Apple Inc. | Method and apparatus for building an intelligent automated assistant |
| US8442828B2 (en) * | 2005-12-02 | 2013-05-14 | Microsoft Corporation | Conditional model for natural language understanding |
| US20070129936A1 (en) * | 2005-12-02 | 2007-06-07 | Microsoft Corporation | Conditional model for natural language understanding |
| US20070179777A1 (en) * | 2005-12-22 | 2007-08-02 | Rakesh Gupta | Automatic Grammar Generation Using Distributedly Collected Knowledge |
| US7957968B2 (en) * | 2005-12-22 | 2011-06-07 | Honda Motor Co., Ltd. | Automatic grammar generation using distributedly collected knowledge |
| US20070219793A1 (en) * | 2006-03-14 | 2007-09-20 | Microsoft Corporation | Shareable filler model for grammar authoring |
| US7865357B2 (en) * | 2006-03-14 | 2011-01-04 | Microsoft Corporation | Shareable filler model for grammar authoring |
| US8244545B2 (en) | 2006-03-30 | 2012-08-14 | Microsoft Corporation | Dialog repair based on discrepancies between user model predictions and speech recognition results |
| US20070233497A1 (en) * | 2006-03-30 | 2007-10-04 | Microsoft Corporation | Dialog repair based on discrepancies between user model predictions and speech recognition results |
| US7689420B2 (en) | 2006-04-06 | 2010-03-30 | Microsoft Corporation | Personalizing a context-free grammar using a dictation language model |
| US20070239454A1 (en) * | 2006-04-06 | 2007-10-11 | Microsoft Corporation | Personalizing a context-free grammar using a dictation language model |
| US20070239453A1 (en) * | 2006-04-06 | 2007-10-11 | Microsoft Corporation | Augmenting context-free grammars with back-off grammars for processing out-of-grammar utterances |
| US20070288231A1 (en) * | 2006-06-08 | 2007-12-13 | Microsoft Corporation Microsoft Patent Group | Uncertainty interval content sensing |
| US8209175B2 (en) * | 2006-06-08 | 2012-06-26 | Microsoft Corporation | Uncertainty interval content sensing within communications |
| US20100114577A1 (en) * | 2006-06-27 | 2010-05-06 | Deutsche Telekom Ag | Method and device for the natural-language recognition of a vocal expression |
| US9208787B2 (en) * | 2006-06-27 | 2015-12-08 | Deutsche Telekom Ag | Method and device for the natural-language recognition of a vocal expression |
| US20080071520A1 (en) * | 2006-09-14 | 2008-03-20 | David Lee Sanford | Method and system for improving the word-recognition rate of speech recognition software |
| US20080177545A1 (en) * | 2007-01-19 | 2008-07-24 | Microsoft Corporation | Automatic reading tutoring with parallel polarized language modeling |
| US7856351B2 (en) | 2007-01-19 | 2010-12-21 | Microsoft Corporation | Integrated speech recognition and semantic classification |
| US8433576B2 (en) * | 2007-01-19 | 2013-04-30 | Microsoft Corporation | Automatic reading tutoring with parallel polarized language modeling |
| US8812291B2 (en) * | 2007-03-26 | 2014-08-19 | Google Inc. | Large language models in machine translation |
| US20130346059A1 (en) * | 2007-03-26 | 2013-12-26 | Google Inc. | Large language models in machine translation |
| US8332207B2 (en) * | 2007-03-26 | 2012-12-11 | Google Inc. | Large language models in machine translation |
| US20080243481A1 (en) * | 2007-03-26 | 2008-10-02 | Thorsten Brants | Large Language Models in Machine Translation |
| US20090070112A1 (en) * | 2007-09-11 | 2009-03-12 | Microsoft Corporation | Automatic reading tutoring |
| US8306822B2 (en) * | 2007-09-11 | 2012-11-06 | Microsoft Corporation | Automatic reading tutoring using dynamically built language model |
| US9865248B2 (en) | 2008-04-05 | 2018-01-09 | Apple Inc. | Intelligent text-to-speech conversion |
| US8566095B2 (en) * | 2008-04-16 | 2013-10-22 | Google Inc. | Segmenting words using scaled probabilities |
| US9460708B2 (en) | 2008-09-19 | 2016-10-04 | Microsoft Technology Licensing, Llc | Automated data cleanup by substitution of words of the same pronunciation and different spelling in speech recognition |
| US20100076752A1 (en) * | 2008-09-19 | 2010-03-25 | Zweig Geoffrey G | Automated Data Cleanup |
| US8504359B2 (en) * | 2008-12-10 | 2013-08-06 | Electronics And Telecommunications Research Institute | Method and apparatus for speech recognition using domain ontology |
| US20100145680A1 (en) * | 2008-12-10 | 2010-06-10 | Electronics And Telecommunications Research Institute | Method and apparatus for speech recognition using domain ontology |
| US10795541B2 (en) | 2009-06-05 | 2020-10-06 | Apple Inc. | Intelligent organization of tasks items |
| US11080012B2 (en) | 2009-06-05 | 2021-08-03 | Apple Inc. | Interface for a virtual digital assistant |
| US10283110B2 (en) | 2009-07-02 | 2019-05-07 | Apple Inc. | Methods and apparatuses for automatic speech recognition |
| US20110010165A1 (en) * | 2009-07-13 | 2011-01-13 | Samsung Electronics Co., Ltd. | Apparatus and method for optimizing a concatenate recognition unit |
| US20110238407A1 (en) * | 2009-08-31 | 2011-09-29 | O3 Technologies, Llc | Systems and methods for speech-to-speech translation |
| US20120310866A1 (en) * | 2010-01-06 | 2012-12-06 | Nec Corporation | Data processing device, computer program therefor and data processing method |
| US9047562B2 (en) * | 2010-01-06 | 2015-06-02 | Nec Corporation | Data processing device, information storage medium storing computer program therefor and data processing method |
| US11423886B2 (en) | 2010-01-18 | 2022-08-23 | Apple Inc. | Task flow identification based on user intent |
| US10706841B2 (en) | 2010-01-18 | 2020-07-07 | Apple Inc. | Task flow identification based on user intent |
| US9633660B2 (en) | 2010-02-25 | 2017-04-25 | Apple Inc. | User profiling for voice input processing |
| US10049675B2 (en) | 2010-02-25 | 2018-08-14 | Apple Inc. | User profiling for voice input processing |
| US20110224971A1 (en) * | 2010-03-11 | 2011-09-15 | Microsoft Corporation | N-Gram Selection for Practical-Sized Language Models |
| US8655647B2 (en) * | 2010-03-11 | 2014-02-18 | Microsoft Corporation | N-gram selection for practical-sized language models |
| US9208778B2 (en) * | 2011-10-25 | 2015-12-08 | At&T Intellectual Property I, L.P. | System and method for combining frame and segment level processing, via temporal pooling, for phonetic classification |
| US9728183B2 (en) | 2011-10-25 | 2017-08-08 | At&T Intellectual Property I, L.P. | System and method for combining frame and segment level processing, via temporal pooling, for phonetic classification |
| US20170345416A1 (en) * | 2011-12-06 | 2017-11-30 | Nuance Communications, Inc. | System and Method for Machine-Mediated Human-Human Conversation |
| US10403290B2 (en) * | 2011-12-06 | 2019-09-03 | Nuance Communications, Inc. | System and method for machine-mediated human-human conversation |
| US9214157B2 (en) * | 2011-12-06 | 2015-12-15 | At&T Intellectual Property I, L.P. | System and method for machine-mediated human-human conversation |
| US20130144616A1 (en) * | 2011-12-06 | 2013-06-06 | At&T Intellectual Property I, L.P. | System and method for machine-mediated human-human conversation |
| US20160093296A1 (en) * | 2011-12-06 | 2016-03-31 | At&T Intellectual Property I, L.P. | System and method for machine-mediated human-human conversation |
| US9741338B2 (en) * | 2011-12-06 | 2017-08-22 | Nuance Communications, Inc. | System and method for machine-mediated human-human conversation |
| US9953088B2 (en) | 2012-05-14 | 2018-04-24 | Apple Inc. | Crowd sourcing information to fulfill user requests |
| US10079014B2 (en) | 2012-06-08 | 2018-09-18 | Apple Inc. | Name recognition system |
| US9971774B2 (en) | 2012-09-19 | 2018-05-15 | Apple Inc. | Voice-based media searching |
| US10381001B2 (en) | 2012-10-30 | 2019-08-13 | Google Technology Holdings LLC | Voice control user interface during low-power mode |
| US10381002B2 (en) | 2012-10-30 | 2019-08-13 | Google Technology Holdings LLC | Voice control user interface during low-power mode |
| US10366688B2 (en) | 2012-10-30 | 2019-07-30 | Google Technology Holdings LLC | Voice control user interface with multiple voice processing modules |
| US10381010B2 (en) | 2012-10-30 | 2019-08-13 | Google Technology Holdings LLC | Voice control user interface during low power mode |
| US10304465B2 (en) | 2012-10-30 | 2019-05-28 | Google Technology Holdings LLC | Voice control user interface for low power mode |
| US10373615B2 (en) | 2012-10-30 | 2019-08-06 | Google Technology Holdings LLC | Voice control user interface during low power mode |
| US10354677B2 (en) * | 2013-02-28 | 2019-07-16 | Nuance Communications, Inc. | System and method for identification of intent segment(s) in caller-agent conversations |
| US9460088B1 (en) * | 2013-05-31 | 2016-10-04 | Google Inc. | Written-domain language modeling with decomposition |
| US9966060B2 (en) | 2013-06-07 | 2018-05-08 | Apple Inc. | System and method for user-specified pronunciation of words for speech synthesis and recognition |
| US10235359B2 (en) * | 2013-07-15 | 2019-03-19 | Nuance Communications, Inc. | Ontology and annotation driven grammar inference |
| US20150019202A1 (en) * | 2013-07-15 | 2015-01-15 | Nuance Communications, Inc. | Ontology and Annotation Driven Grammar Inference |
| US9449598B1 (en) * | 2013-09-26 | 2016-09-20 | Amazon Technologies, Inc. | Speech recognition with combined grammar and statistical language models |
| US9443512B2 (en) | 2013-12-04 | 2016-09-13 | Google Inc. | Initiating actions based on partial hotwords |
| US8768712B1 (en) * | 2013-12-04 | 2014-07-01 | Google Inc. | Initiating actions based on partial hotwords |
| US9508342B2 (en) | 2013-12-04 | 2016-11-29 | Google Inc. | Initiating actions based on partial hotwords |
| US9805719B2 (en) | 2013-12-04 | 2017-10-31 | Google Inc. | Initiating actions based on partial hotwords |
| US9620114B2 (en) | 2013-12-04 | 2017-04-11 | Google Inc. | Initiating actions based on partial hotwords |
| US9330663B2 (en) | 2013-12-04 | 2016-05-03 | Google Inc. | Initiating actions based on partial hotwords |
| US9502026B2 (en) | 2013-12-04 | 2016-11-22 | Google Inc. | Initiating actions based on partial hotwords |
| US20150347383A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | Text prediction using combined word n-gram and unigram language models |
| US10169329B2 (en) | 2014-05-30 | 2019-01-01 | Apple Inc. | Exemplar-based natural language processing |
| US9785630B2 (en) * | 2014-05-30 | 2017-10-10 | Apple Inc. | Text prediction using combined word N-gram and unigram language models |
| US9767093B2 (en) | 2014-06-19 | 2017-09-19 | Nuance Communications, Inc. | Syntactic parser assisted semantic rule inference |
| US9668024B2 (en) | 2014-06-30 | 2017-05-30 | Apple Inc. | Intelligent automated assistant for TV user interactions |
| US10904611B2 (en) | 2014-06-30 | 2021-01-26 | Apple Inc. | Intelligent automated assistant for TV user interactions |
| US9986419B2 (en) | 2014-09-30 | 2018-05-29 | Apple Inc. | Social reminders |
| US10567477B2 (en) | 2015-03-08 | 2020-02-18 | Apple Inc. | Virtual assistant continuity |
| US10356243B2 (en) | 2015-06-05 | 2019-07-16 | Apple Inc. | Virtual assistant aided communication with 3rd party service in a communication session |
| US10671428B2 (en) | 2015-09-08 | 2020-06-02 | Apple Inc. | Distributed personal assistant |
| US10747498B2 (en) | 2015-09-08 | 2020-08-18 | Apple Inc. | Zero latency digital assistant |
| US11500672B2 (en) | 2015-09-08 | 2022-11-15 | Apple Inc. | Distributed personal assistant |
| US11010550B2 (en) | 2015-09-29 | 2021-05-18 | Apple Inc. | Unified language modeling framework for word prediction, auto-completion and auto-correction |
| US10366158B2 (en) | 2015-09-29 | 2019-07-30 | Apple Inc. | Efficient word encoding for recurrent neural network language models |
| US11587559B2 (en) | 2015-09-30 | 2023-02-21 | Apple Inc. | Intelligent device identification |
| WO2017059500A1 (en) * | 2015-10-09 | 2017-04-13 | Sayity Pty Ltd | Frameworks and methodologies configured to enable streamlined integration of natural language processing functionality with one or more user interface environments, including assisted learning process |
| US10691473B2 (en) | 2015-11-06 | 2020-06-23 | Apple Inc. | Intelligent automated assistant in a messaging environment |
| US11526368B2 (en) | 2015-11-06 | 2022-12-13 | Apple Inc. | Intelligent automated assistant in a messaging environment |
| US10049668B2 (en) | 2015-12-02 | 2018-08-14 | Apple Inc. | Applying neural network language models to weighted finite state transducers for automatic speech recognition |
| US10223066B2 (en) | 2015-12-23 | 2019-03-05 | Apple Inc. | Proactive assistance based on dialog communication between devices |
| US10446143B2 (en) | 2016-03-14 | 2019-10-15 | Apple Inc. | Identification of voice inputs providing credentials |
| US9934775B2 (en) | 2016-05-26 | 2018-04-03 | Apple Inc. | Unit-selection text-to-speech synthesis based on predicted concatenation parameters |
| US9972304B2 (en) | 2016-06-03 | 2018-05-15 | Apple Inc. | Privacy preserving distributed evaluation framework for embedded personalized systems |
| US10249300B2 (en) | 2016-06-06 | 2019-04-02 | Apple Inc. | Intelligent list reading |
| US10049663B2 (en) | 2016-06-08 | 2018-08-14 | Apple, Inc. | Intelligent automated assistant for media exploration |
| US11069347B2 (en) | 2016-06-08 | 2021-07-20 | Apple Inc. | Intelligent automated assistant for media exploration |
| US10354011B2 (en) | 2016-06-09 | 2019-07-16 | Apple Inc. | Intelligent automated assistant in a home environment |
| US10509862B2 (en) | 2016-06-10 | 2019-12-17 | Apple Inc. | Dynamic phrase expansion of language input |
| US10067938B2 (en) | 2016-06-10 | 2018-09-04 | Apple Inc. | Multilingual word prediction |
| US10490187B2 (en) | 2016-06-10 | 2019-11-26 | Apple Inc. | Digital assistant providing automated status report |
| US11037565B2 (en) | 2016-06-10 | 2021-06-15 | Apple Inc. | Intelligent digital assistant in a multi-tasking environment |
| US10733993B2 (en) | 2016-06-10 | 2020-08-04 | Apple Inc. | Intelligent digital assistant in a multi-tasking environment |
| US10192552B2 (en) | 2016-06-10 | 2019-01-29 | Apple Inc. | Digital assistant providing whispered speech |
| US11152002B2 (en) | 2016-06-11 | 2021-10-19 | Apple Inc. | Application integration with a digital assistant |
| US10269345B2 (en) | 2016-06-11 | 2019-04-23 | Apple Inc. | Intelligent task discovery |
| US10089072B2 (en) | 2016-06-11 | 2018-10-02 | Apple Inc. | Intelligent device arbitration and control |
| US10521466B2 (en) | 2016-06-11 | 2019-12-31 | Apple Inc. | Data driven natural language event detection and classification |
| US10297253B2 (en) | 2016-06-11 | 2019-05-21 | Apple Inc. | Application integration with a digital assistant |
| US10043516B2 (en) | 2016-09-23 | 2018-08-07 | Apple Inc. | Intelligent automated assistant |
| US10553215B2 (en) | 2016-09-23 | 2020-02-04 | Apple Inc. | Intelligent automated assistant |
| US10360301B2 (en) * | 2016-10-10 | 2019-07-23 | International Business Machines Corporation | Personalized approach to handling hypotheticals in text |
| US10796219B2 (en) * | 2016-10-31 | 2020-10-06 | Baidu Online Network Technology (Beijing) Co., Ltd. | Semantic analysis method and apparatus based on artificial intelligence |
| US10593346B2 (en) | 2016-12-22 | 2020-03-17 | Apple Inc. | Rank-reduced token representation for automatic speech recognition |
| US10755703B2 (en) | 2017-05-11 | 2020-08-25 | Apple Inc. | Offline personal assistant |
| US10791176B2 (en) | 2017-05-12 | 2020-09-29 | Apple Inc. | Synchronization and task delegation of a digital assistant |
| US11405466B2 (en) | 2017-05-12 | 2022-08-02 | Apple Inc. | Synchronization and task delegation of a digital assistant |
| US10410637B2 (en) | 2017-05-12 | 2019-09-10 | Apple Inc. | User-specific acoustic models |
| US10810274B2 (en) | 2017-05-15 | 2020-10-20 | Apple Inc. | Optimizing dialogue policy decisions for digital assistants using implicit feedback |
| US10482874B2 (en) | 2017-05-15 | 2019-11-19 | Apple Inc. | Hierarchical belief states for digital assistants |
| US11217255B2 (en) | 2017-05-16 | 2022-01-04 | Apple Inc. | Far-field extension for digital assistant services |
| US11281857B1 (en) * | 2018-11-08 | 2022-03-22 | Amazon Technologies, Inc. | Composite slot type resolution |
| US11308281B1 (en) * | 2018-11-08 | 2022-04-19 | Amazon Technologies, Inc. | Slot type resolution process |
| US11138374B1 (en) * | 2018-11-08 | 2021-10-05 | Amazon Technologies, Inc. | Slot type authoring |
| CN112466291A (en) * | 2020-10-27 | 2021-03-09 | 北京百度网讯科技有限公司 | Language model training method and device and electronic equipment |
| US11934794B1 (en) * | 2022-09-30 | 2024-03-19 | Knowbl Inc. | Systems and methods for algorithmically orchestrating conversational dialogue transitions within an automated conversational system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4724377B2 (en) | 2011-07-13 |
| JP2005115328A (en) | 2005-04-28 |
| DE602004030635D1 (en) | 2011-02-03 |
| KR20040094645A (en) | 2004-11-10 |
| US7603267B2 (en) | 2009-10-13 |
| US20040220797A1 (en) | 2004-11-04 |
| ATE492876T1 (en) | 2011-01-15 |
| KR101120858B1 (en) | 2012-06-27 |
| CN1542736A (en) | 2004-11-03 |
| EP1475778A1 (en) | 2004-11-10 |
| CN1542736B (en) | 2011-08-03 |
| EP1475778B1 (en) | 2010-12-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20040220809A1 (en) | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding | |
| US6983239B1 (en) | Method and apparatus for embedding grammars in a natural language understanding (NLU) statistical parser | |
| EP1475779B1 (en) | System with composite statistical and rules-based grammar model for speech recognition and natural language understanding | |
| US7529657B2 (en) | Configurable parameters for grammar authoring for speech recognition and natural language understanding | |
| US7016830B2 (en) | Use of a unified language model | |
| US8442828B2 (en) | Conditional model for natural language understanding | |
| US8566076B2 (en) | System and method for applying bridging models for robust and efficient speech to speech translation | |
| JPH08278794A (en) | Speech recognition apparatus, speech recognition method, and speech translation apparatus | |
| WO2001093246A2 (en) | Creating a unified task dependent language models with information retrieval techniques | |
| US20050038647A1 (en) | Program product, method and system for detecting reduced speech | |
| EP1465155B1 (en) | Automatic resolution of segmentation ambiguities in grammar authoring | |
| Wang et al. | Combination of CFG and n-gram modeling in semantic grammar learning | |
| Schwartz et al. | Hidden understanding models for statistical sentence understanding | |
| JP3088364B2 (en) | Spoken language understanding device and spoken language understanding system | |
| Švec et al. | Semantic entity detection from multiple ASR hypotheses within the WFST framework | |
| JP3059413B2 (en) | Natural language understanding device and natural language understanding system | |
| Švec et al. | Word-semantic lattices for spoken language understanding | |
| Acero et al. | A semantically structured language model | |
| Smaïli et al. | An hybrid language model for a continuous dictation prototype. | |
| Bonafonte et al. | Sethos: the UPC speech understanding system | |
| Lin et al. | A hierarchical tag-graph search scheme with layered grammar rules for spontaneous speech understanding | |
| Jurafsky et al. | Integrating experimental models of syntax, phonology, and accent/dialect in a speech recognizer | |
| Kobayashi et al. | A sub-word level matching strategy in a speech understanding system | |
| Galescu | Hierarchical statistical language models for unlimited vocabularies | |
| Junqua et al. | Spontaneous Speech |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| AS | Assignment |
Owner name: MICROSOFT CORPORATION, WASHINGTON Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WANG, YE-YI;ACERO, ALEJANDRO;REEL/FRAME:014741/0905 Effective date: 20031119 |
|
| AS | Assignment |
Owner name: MICROSOFT CORPORATION, WASHINGTON Free format text: CORRECTIVE ASSIGNMENT TO ADD THIRD NAMED INVENTOR, PREVIOUSLY RECORDED ON REEL/FRAME 0147;ASSIGNORS:WANG, YE-YI;ACERO, ALEJANDRO;CHELBA, CIPRIAN;REEL/FRAME:015631/0149 Effective date: 20031119 |
|
| STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |
|
| AS | Assignment |
Owner name: MICROSOFT TECHNOLOGY LICENSING, LLC, WASHINGTON Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MICROSOFT CORPORATION;REEL/FRAME:034766/0001 Effective date: 20141014 |