Cross-domain personalized vocabulary learning method and electronic device
By detecting skill words in natural language input and generating structural change interpretations, it solves the problem of intelligent personal assistants in processing cross-domain personalized vocabulary and discourse structure changes, achieving a more accurate understanding of user intentions and effective training of NLU engines. , improving natural language understanding capabilities.
Patent Information
- Application Number
- CN201980025873.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-05-22
- Filing Date
- 2019-02-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-02-28
AI Technical Summary
When existing intelligent personal assistants process user natural language input, it is difficult to effectively support changes in discourse structure and cross-domain personalized vocabulary, resulting in limited understanding capabilities and the inability to correctly parse user intentions, and existing tools cannot generate sufficient training data sets. To support good training of NLU engines.
By detecting skill words in natural language input, deciding whether to send them to a custom skill parser or a general parser, generate structural change interpretations, and use these interpretations to train the NLU engine to support cross-domain personalized vocabulary understanding and intent analysis .
It enables intelligent personal assistants to learn cross-domain personalized vocabulary and generate interpretations of structural changes, enriches the variability of training data sets, reduces skill development costs, and improves natural language understanding capabilities.
Smart Images

Figure CN111989685B_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments relate generally to personal assistants, and in particular, to learning cross-domain personalized vocabularies and automatically generating structure-varying paraphrases in intelligent personal assistants. Background Art
[0002] Natural Language Understanding (NLU) is crucial for personal assistants. NLU helps understand the user's utterances and implement the user's intent. Each intent can be expressed in many different ways using very different utterances. An important variability is caused by the fact that some content (e.g., additional adverbials, noun phrases, etc.) appears in different parts of the utterance and the different expressions of such content. For example, for the utterance "get me a pizza to home by this evening", it can also be expressed as: "by this evening get me a pizza to", "get me a pizza for home before this evening", "to home, buy me a pizza in this evening", etc. This variability in utterances is crucial for training NLU engines. Otherwise, NLU engines can only understand a limited number of fixed formats and fail to implement the user's intent in many cases.
[0003] However, for each specific content, it cannot be arbitrarily put into the sentence. The result of doing so will change the semantics of the entire utterance, or make the new utterance completely meaningless. For example, consider the example: "get me a pizza to homeby this evening". There may be many invalid utterances "get to home me a pizza by thisevening", "get to home by this evening a pizza", etc. Therefore, it is important to generate paraphrases that make the parts of the content appear in the right place.
[0004] State-of-the-art methods / tools (e.g., API.ai, etc.) or state-of-the-art digital assistant products rely heavily on manual user input of utterances to cover structural variation paraphrases for each intent. Existing paraphrase generation tools may use a few simple grammar-based sentence fragment rearrangement algorithms, resulting in incorrect paraphrases. Unfortunately, these methods cannot scalably support a large number of correct variations of utterances to generate good training datasets for NLU engines.
[0005] Intelligent personal assistants (PAs) are automated artificial intelligence (AI) systems that can take natural language input from users and perform actions desired by the user. In order to enable PAs to perform more actions in a variety of domains, some PAs also provide developers with a special "skill framework". Using this framework, developers can add specific skills for any domain to the PA, enabling it to understand natural language instructions and perform useful actions in that domain. However, the extent to which the PA can understand domain-specific utterances is limited by the example utterances provided by skill developers to the skill framework. Such examples provided by developers are usually limited and do not cover the wide range of natural language utterances and paraphrases that users can provide to the PA, which typically use some preferred personal vocabulary. More importantly, the skill frameworks in current systems cannot leverage the examples provided for one specific skill to enhance the PA's ability to understand the vocabulary or natural language of some other skills. Summary of the invention
[0006] Technical issues
[0007] One or more embodiments generally relate to learning cross-domain personalized vocabularies and generating structurally varying paraphrases in an intelligent personal assistant.
[0008] Solutions to technical problems
[0009] In one embodiment, a method for operating an electronic device includes: detecting a first natural language (NL) input; if the NL input includes at least one unique skill word, determining a skill from the first NL input; sending the first NL input to a customized skill parser to determine the skill intent, wherein the customized skill parser is trained based on data including at least a customized training data set, and if the NL input does not include at least one unique skill word, sending the first NL input to a general parser for determining a general intent of the first NL input.
[0010] In one embodiment, a method of operating an electronic device includes: based on a first skill, detecting a first utterance including a first word that cannot be parsed; detecting a second utterance including a second word instead of the first word; identifying an intention corresponding to the second utterance by parsing the second utterance based on the first skill; and Figure 1 adding the training data to the training data associated with the first skill; and training the first skill by using the training data.
[0011] In one embodiment, a method includes an electronic device determining a skill based on a first natural language (NL) input. Upon successful determination of the skill, the first NL input is sent to a customized skill parser to determine the skill intent. The customized skill parser is trained based on data including at least a customized training data set. In the event that the skill is not successfully determined, the first NL input is sent to a general parser to determine the general intent of the first NL input.
[0012] In one embodiment, an electronic device includes a memory storing instructions. At least one processor executes instructions including a process configured to: determine a skill from a first NL input; after successfully determining the skill, send the first NL input to a customized skill parser to determine the skill intent, wherein the customized skill parser is trained based on data including at least a customized training data set, and after unsuccessfully determining the skill, send the first NL input to a general parser to determine a general intent of the first NL input.
[0013] In one embodiment, a non-transitory processor-readable medium includes a program that, when executed by a processor, performs a method, the method comprising an electronic device determining a skill based on a first NL input. After successfully determining the skill, the first NL input is sent to a customized skill parser to determine the skill intent. The customized skill parser is trained based on data including at least a customized training data set. In the event that the skill is not successfully determined, the first NL input is sent to a general parser to determine the general intent of the first NL input.
[0014] In yet another embodiment, a method for intelligent assistance includes: generating one or more segments for an NL input, wherein each segment is based on its dependency on an action term of the NL input. A primary segment is identified from the one or more segments. A first replacement phrase is generated based on a connection of the primary segment with each non-primary segment of the one or more segments. An output including at least a portion of the input and the first replacement phrase is provided.
[0015] These and other aspects and advantages of one or more embodiments will become apparent from the following detailed description, which, when taken in conjunction with the accompanying drawings, illustrates, by way of example, the principles of one or more embodiments.
[0016] Beneficial effects of the present invention
[0017] Various embodiments of the present disclosure provide a cross-domain personalized vocabulary learning solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] For a more complete understanding of the nature and advantages of the embodiments and the preferred mode of use, reference should be made to the following detailed description set forth in conjunction with the accompanying drawings, in which:
[0019] Figure 1 A block diagram illustrating the architecture of a system including an electronic device having a personal assistant application according to some embodiments;
[0020] Figure 2 illustrates example vocabulary and paraphrase transfer learning according to some embodiments;
[0021] Figure 3 A block diagram of a process for personalized skill intent parsing according to some embodiments is shown;
[0022] Figure 4 A block diagram illustrating a process for updating a personalized skills parser according to some embodiments;
[0023] Figure 5A A block diagram illustrating a process for migrating a personalized vocabulary according to some embodiments;
[0024] Figure 5B Another block diagram illustrating a process for migrating personalized vocabulary according to some embodiments;
[0025] Figure 6 shows a block diagram for segment restatement and exchange according to some embodiments;
[0026] Figure 7 shows a block diagram for speech segmentation processing according to some embodiments;
[0027] Figure 8 shows an example of utterance segmentation according to some embodiments;
[0028] Fig. 9 shows a block diagram of a process for segment restatement and exchange according to some embodiments;
[0029] Fig.10 shows an example of a recap segment according to some embodiments;
[0030] Fig.11 shows examples of restated segments and combined paraphrases from the restated segments according to some embodiments;
[0031] Fig.12 A block diagram illustrating paraphrase ranking for exchange according to some embodiments is shown;
[0032] Fig.13 shows examples of ranked paraphrases according to some embodiments;
[0033] Fig.14A and Fig. 14B shows an example of restated and exchanged utterances and output of ranked paraphrases according to some embodiments;
[0034] Fig.15 A block diagram illustrating a process for generating structural variation interpretations according to some embodiments; and
[0035] Fig.16 is a high-level block diagram illustrating an information processing system including a computing system that implements one or more embodiments. DETAILED DESCRIPTION
[0036] The following description is intended to illustrate the general principles of one or more embodiments and is not intended to limit the inventive concepts claimed herein. In addition, the specific features described herein may be used in combination with other described features in each of various possible combinations and arrangements. Unless otherwise expressly defined herein, all terms should be given the broadest possible interpretation, including the meaning implied from the specification and the meaning understood by those skilled in the art and / or the meaning defined in dictionaries, papers, etc.
[0037] It should be noted that the term "at least one" refers to one or more of the following elements. For example, "at least one of a, b, c or a combination thereof" can be interpreted as: "a", "b" or "c" alone; or "a" and "b" in combination; or "b" and "c" in combination; "a" and "c" in combination; or "a", "b" and "c" in combination.
[0038] A portion of the disclosure of this patent document may contain material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
[0039] One or more embodiments provide methods for learning cross-domain personalized vocabulary and generating structural variation interpretations in an intelligent personal assistant. Some embodiments include a method comprising an electronic device determining a skill based on a first NL input. After successfully determining the skill, the first NL input is sent to a customized skill parser to determine the skill intent. The customized skill parser is trained based on data including at least a customized training data set. In the event that the skill is not successfully determined, the first NL input is sent to a general parser to determine the general intent of the first NL input.
[0040] In some embodiments, to enable a personal assistant (PA) (e.g., Figure 1 PA 129) learns the personalized vocabulary used by the end users of PA, and can implement a "personalized skill parser" 360 for each user ( Figure 3 and Figure 6), which can parse the functionality of skill-specific utterances for the skill set that the user is using. Some embodiments automatically generate structural variation paraphrases and use them to train the NLU engine. The generated structural variation paraphrases can greatly enrich the variability of the training set in order to train an improved NLU engine for PA129.
[0041] In some embodiments, the generated structural variation interpretation allows the partial content to appear in different correct positions in the discourse or sentence. One or more embodiments automate the user's manual generation of such structural variation discourse for each intent, thereby reducing the skill development cost of the personal assistant. Some embodiments provide an interface for inputting user-specified partial content in a discourse for which the user wishes to generate expression variability. In one embodiment, a new structure of the discourse interpretation is generated by exchanging a portion of the content with other portions of the discourse. Different expressions of each portion of the content can be generated, and restatements of the detailed content in the discourse are provided to generate more interpretations. In one embodiment, a ranking of the generated structural variation interpretations is also provided. The output from the processing can be used directly to train an existing NLU engine.
[0042] Figure 1 A functional block diagram of an architecture system 100 is shown, which can be used for PA using an electronic device 120 (e.g., a mobile phone device, a television (TV) system, a camera, a camcorder, a device with audio and video functions, a tablet computer, a tablet device, a wearable device, a smart appliance, a smart photo frame, smart lighting, etc.), for example In one embodiment, the electronic device 120 may include a display 121, a microphone 122, an audio output 123, an input mechanism 124, a communication circuit 125, a control circuit 126, a camera 128, a personal assistant (or PA) 129 (including at least Figure 3 Processing for personalized skill intent analysis 300, personal skill parser 360 ( Figure 3 and Figure 6 ) and / or Figure 7 The segmented recapitulation and exchange 700 process of the present invention, and / or communicate with the communication circuit 125 to obtain or provide its information through the cloud or server 130, and may include any process of the examples and embodiments described below, but is not limited to the process of these examples and embodiments), and / or any other suitable component. In one embodiment, applications 1-N 127 are provided and can be obtained from the cloud or server 130, the communication network 110, etc., where N is a positive integer equal to or greater than 1.
[0043] In one embodiment, all applications employed by audio output 123, display 121, input mechanism 124, communication circuit 125, and microphone 122 may be interconnected and managed by control circuit 126. In one example, a handheld music player capable of streaming music to other tuning devices may be integrated into electronic device 120.
[0044] In one embodiment, the audio output 123 may include any suitable audio components for providing audio to a user of the electronic device 120. For example, the audio output 123 may include one or more speakers (e.g., mono or stereo speakers) built into the electronic device 120. In some embodiments, the audio output 123 may include an audio component that is remotely connected to the electronic device 120. For example, the audio output 123 may include an audio component that can be connected to the electronic device 120 via a wire (e.g., via a jack) or wirelessly (e.g., Headphones or A headset, headphones, or earphones connected to a communication device.
[0045] In one embodiment, display 121 may include any suitable screen or projection system for providing a display visible to a user. For example, display 121 may include a screen integrated into electronic device 120 (e.g., a liquid crystal display (LCD) screen, a light emitting diode (LED) screen, an organic LED (OLED) screen, etc.). As another example, display 121 may include a removable display or projection system for providing a display of content on a surface remote from electronic device 120 (e.g., a video projector). Display 121 may be operable to display content (e.g., information about communication operations or information about available media selections) under the direction of control circuitry 126.
[0046] In one embodiment, input mechanism 124 may be any suitable mechanism or user interface for providing user input or instructions to electronic device 120. Input mechanism 124 may take a variety of forms, such as buttons, a keyboard, a tuning knob, a click wheel, a mouse, a visual indicator, a remote control, one or more sensors (e.g., a camera or visual sensor, an optical sensor, a proximity sensor, etc.), or a touch screen. Input mechanism 124 may include a multi-touch screen.
[0047] In one embodiment, the communication circuit 125 can be any suitable communication circuit that is operative to connect to a communication network and transmit communication operations and media from the electronic device 120 to other devices within the communication network. The communication circuit 125 can be operative to integrate with the communication network using any suitable communication protocol, such as Wi-Fi (e.g., IEEE 802.11 protocol), High frequency systems (e.g., 900 MHz, 2.4 GHz, and 5.6 GHz communication systems), infrared, Global System for Mobile Communications (GSM), GSM plus Enhanced Data GSM Environment (EDGE), Code Division Multiple Access (CDMA), quad-band and other cellular protocols, Voice over Internet Protocol (VOIP), Transmission Control Protocol (TCP)-IP, or any other suitable protocol.
[0048] In some embodiments, the communication circuit 125 may be operable to create a communication network using any suitable communication protocol. For example, the communication circuit 125 may use a short-range communication protocol to create a short-range communication network to connect to other communication devices. For example, the communication circuit 125 may be operable to use a short-range communication protocol. protocol to create a local communication network to connect the electronic device 120 and Headset.
[0049] In one embodiment, the control circuit 126 can be operated to control the operation and performance of the electronic device 120. The control circuit 126 may include, for example, a processor, a bus (e.g., for sending instructions to other components of the electronic device 120), a memory, a storage device, or any other suitable component for controlling the operation of the electronic device 120. In some embodiments, the processor can drive the display and process inputs received from the user interface. The memory and storage device may include, for example, cache, flash memory, read-only memory (ROM) and / or random access memory (RAM) / DRAM. In some embodiments, the memory may be dedicated to storing firmware (e.g., for device applications such as operating systems, user interface functions, and processor functions). In some embodiments, the memory may be operated to store information related to other devices with which the electronic device 120 performs communication operations (e.g., saving contact information related to communication operations or storing information related to different media types and media items selected by the user).
[0050] In one embodiment, the control circuit 126 may be operable to perform operations of one or more applications implemented on the electronic device 120. Any suitable number or type of applications may be implemented. Although the following discussion will list different applications, it should be understood that some or all of these applications may be combined into one or more applications. For example, the electronic device 120 may include applications 1-N 127, which include, but are not limited to: automatic speech recognition (ASR) applications, optical character reader (OCR) applications, conversation applications, map applications, media applications (such as QuickTime, MobileMusic applications, or MobileVideo applications), social networking applications (such as The electronic device 120 may include a calendar application (e.g., a calendar for managing events, appointments, etc.), a web browsing application, etc. In some embodiments, the electronic device 120 may include one or more applications that operate to perform communication operations. For example, the electronic device 120 may include a messaging application, an email application, a voicemail application, an instant messaging application (e.g., for chatting), a video conferencing application, a fax application, or any other suitable application for performing any suitable communication operation.
[0051] In some embodiments, the electronic device 120 may include a microphone 122. For example, the electronic device 120 may include a microphone 122 to allow a user to send audio (e.g., voice audio) for voice control and navigation of the applications 1-N 127 during a communication operation or as a means of establishing a communication operation or as an alternative to using a physical user interface. The microphone 122 may be integrated into the electronic device 120, or may be remotely connected to the electronic device 120. For example, the microphone 122 may be integrated into a wired headset, the microphone 122 may be integrated into a wireless headphone, the microphone 122 may be integrated into a remote control, and the like.
[0052] In one embodiment, camera module 128 includes one or more camera devices that include functionality for capturing still and video images, editing functionality, communication interoperability for sending, sharing photos / videos, etc., etc.
[0053] In one embodiment, the electronic device 120 may include any other components suitable for performing communication operations. For example, the electronic device 120 may include a power supply, a port or interface for connecting to a host device, an auxiliary input mechanism (e.g., an ON / OFF switch), or any other suitable component.
[0054] In the present disclosure, "skill" refers to a specialized domain in which the PA can understand / interpret / parse commands related to the specialized domain. For example, in the "Photo Gallery Skill", the PA can understand commands such as "show my latest travel photos". The skill may also be referred to as a "domain", "domain", "category" and other terms with equivalent technical meanings. In some embodiments, a skill may correspond to an application. "Intent" refers to a specific goal that a user wants to achieve within a domain or skill. For example, in the "Photo Gallery Skill", the command "show my latest travel photos" refers to the intent of "show pictures", while the command "send my latest travel photos to my mom" may correspond to a different intent of "share pictures". The PA may determine the skill being used by a special skill invocation command, such as "open Samsung Shopping" before the main command; or determine the skill being used by a special skill invocation command by string matching when a unique "skill invocation phrase / identifier" is mentioned in the command itself, such as the phrase "Samsung Shopping" in the utterance "open Samsung Shopping and search for Galaxy S8". In some cases, the "skill" may also be determined by a special parser called a "domain classifier" trained using a machine learning algorithm.
[0055] Figure 2 Example vocabulary and paraphrase transfer learning according to some embodiments is shown. In some embodiments, for PA (e.g., Figure 1 The PA 129 in the smart home skill domain 210 may exist in different domains, such as the smart home skill 210, the music skill 220, the photo gallery skill 230, the shopping skill 240, the restaurant skill 250, and the airline skill 260. In one example, a user says "Set the brightness of the TV to medium". The PA (using the smart home skill domain 210) may not understand the utterance and reply "Sorry, I didn't understand". The user then restates the utterance as "Set the brightness of the TV to 50%". The PA then learns this new vocabulary, i.e., "medium" equals "50%", so that the next time the user re-issues the same command "Set the brightness of the TV to medium", the PA directly understands its intention. In some embodiments, transfer learning 205 shares or transfers the learned interpretation of "medium" "50%" from the smart home skill domain 210 to the music skill domain 220. Thus, when the user says "Set the volume to medium", the PA (using the music skill domain 220) changes the volume setting to 50% and replies "Change volume setting". That is, in the case of parsing the utterance “set the volume to medium” in the music skill domain 220 , the word “medium” is interpreted as meaning the word “50%” or is replaced by the word “50%”.
[0056] In another example, a PA (using the photo gallery skill domain 230) may not understand the input "Send my travel photos to my mom" and respond "Sorry, I don't understand". The input is then restated as "Send travel pictures to my mom" that the PA can understand. In some embodiments, transfer learning 206 shares or transfers the learned interpretation of "photo" as "picture" from the photo gallery skill domain 230 to the shopping skill domain 240. When the user says "Show photos of the new Galaxy Note 8", the PA (using the shopping skill domain 240) displays the photos and responds "Here you go" according to the transferred learning 206. In yet another example, a PA (using the restaurant skill domain 250) may not understand the input "Pick up some pizza to take home in the early afternoon" and respond "Sorry, I don't understand". The input is then restated as "Pick up some pizza to take home at 2pm" that the PA can understand. In some embodiments, transfer learning 207 shares or transfers the learned interpretation of "early afternoon" as "2pm" from the restaurant skill domain 250 to the route skill domain 260.
[0057] A creative PA can understand utterances in a fixed set of domains / skills (called “default / generic skills”) added by the manufacturer. In addition, after deployment, users can add many new skills (usually developed by third parties) to the PA on the fly. These third-party skills are called “special skills”. Figure 3 A block diagram of a process for personalized skill intent parsing 300 according to some embodiments is shown. It is understood that the operations described below can be performed by the electronic device 120 or at least one processor of the electronic device 120 (e.g., control circuit 126, PA 129, etc.). The process for personalized skill intent parsing 300 includes the following.
[0058] Reference Figure 3 In block 310, natural language input is received, such as utterance / input X' (e.g., using a Figure 1 In box 320, it is determined whether the utterance X' corresponds to a "special skill" (e.g., by string matching with a skill invocation phrase stored within the device or cloud server). If it is determined that the utterance X' corresponds to a special skill (i.e., if the utterance X' includes at least one unique skill word associated with the special skill), the process for personalized skill intent parsing 300 proceeds to box 335. In box 335, it is determined whether the skill for the utterance X' has been added to the user's personalized parser for the PA. That is, the electronic device 120 determines whether the personalized parser can be used to determine the intent and perform the action corresponding to the skill.
[0059] If it is determined that the skill corresponding to utterance X' has been added to the personalized parser of the user of PA, the processing for personalized skill intent resolution 300 proceeds to box 360 (of the personal skill processing box 350), in which the personalized skill parser is invoked. If it is determined that the skill corresponding to utterance X' has not been added to the personalized parser of PA, the processing for personalized skill intent resolution 300 proceeds to box 355 (of the personal skill processing box 350), in which the new skill invocation keyword is added using the update personal skill parser algorithm, and then the processing proceeds to box 360.
[0060] In some embodiments, the process for personalized skill intent parsing 300 proceeds from block 360 to block 365 (in block 365, it is determined whether a skill intent is found from the personal skill parser 360). If it is determined that a skill intent is found from the personal skill parser 360, the process for personalized skill intent parsing 300 proceeds to block 380 (in block 380, the electronic device (e.g., Figure 1 The electronic device 120 performs an action corresponding to the determined skill intent), and then the processing stops at box 390. If it is determined that the skill intent is not found from the personal skill parser 360, the processing for personalized skill intent parsing 300 proceeds to box 370 (in box 370, a migration vocabulary process is performed by calling a learning personalized vocabulary algorithm to add new user-specific vocabulary / training data to the personalized skill parser). Therefore, the electronic device can define a mapping between new user-specific vocabulary and skill intent based on subsequent natural language input. Then, the processing stops at box 390.
[0061] In some embodiments, if it is determined that utterance X' does not include a special skill invocation phrase, the process for personalized skill intent parsing 300 proceeds to box 325 (in box 325, the intent (general skills not related to any single user) parser is invoked). Then, the process for personalized skill intent parsing 300 proceeds to box 330 (in box 330, it is determined whether the intent is found). If the intent is found, the process for personalized skill intent parsing 300 proceeds to box 340 (in box 340, the electronic device (e.g., Figure 1 The electronic device 120 of the embodiment performs corresponding actions). If the intent is not found in box 330, the processing for personalized skill intent parsing 300 stops at box 390.
[0062] Each “skill” in PA has an associated training dataset, which we call “skill training data”. Figure 4A block diagram of a process for updating a personalized skill parser box 355 according to some embodiments is shown. It will be appreciated that the operations described below may be performed by the electronic device 120 or at least one processor of the electronic device 120 (e.g., the control circuit 126, the PA 129, etc.). In box 410, a new customized skill (the special skill determined in 320) is input into box 420 and added to the skill set S that the user is using. In box 430, the process for updating the personalized skill parser constructs a "combined skill training set" T by merging (merging simply refers to constructing a combined training data set containing utterances from the skill training set for each skill in the set S) the "skill training sets" for each skill in the set S. In box 440, "user-specific training data" U (added by the user using the learned personalized vocabulary algorithm) is constructed. For example, in Figure 2 In the example, when the user provides the paraphrased utterance “Set the brightness of the TV to 50%” 205, the utterance is added to the “user-specific training data” U. In box 450, the “personalized skill parser” is trained using the “combined skill training data” T and the “user-specific training data” U.
[0063] Figure 5A 1 shows a block diagram of a personalized vocabulary processing block 370 for migrating according to some embodiments. It is understood that the operations described below may be performed by the electronic device 120 or at least one processor of the electronic device 120 (e.g., the control circuit 126, the PA 129, etc.). In block 510, the intent parsing of the utterance X in the personal skill parser 360 fails ( Figure 3 ) (i.e., the personal skill parser 360 was unable to parse utterance X). In box 520, a determination is made as to whether new vocabulary is to be learned (e.g., the user is prompted / asked whether he / she would like the PA to learn new personal vocabulary). If it is determined that new vocabulary is not to be learned, the migration personalized vocabulary process box 370 proceeds to box 570 and stops (e.g., the user answers "no" to the prompt / query). If it is determined that new vocabulary is to be learned (e.g., the user answers "yes" to the prompt / query), the migration personalized vocabulary process box 370 proceeds to box 530 (in box 530, an utterance Y of X is received as a paraphrase). For example, in Figure 2, the transfer learning 205 displays the original utterance X as "Set the brightness of the TV to medium", and the paraphrase Y provided by the user is "Set the brightness of the TV to 50%". The user is prompted to provide a paraphrase utterance Y for any identified out-of-vocabulary words (e.g., unknown words) in X. For example, when the user is prompted to enter a paraphrase, the word "medium" is highlighted as an out-of-vocabulary word. In box 535, the process checks whether Y can be correctly parsed into the intent I(Y) using the personal skills parser 360. If not, the process declares failure and proceeds to box 570 and stops. Otherwise, the process proceeds to the personal skills parser retraining process 540 to proceed to box 550 and add X and the intent I(Y) to the "user-specific training data" U. In box 560, the personal skills parser 360 is retrained using the "combined skills training data" T and the "user-specific training data" U. The transfer personalized vocabulary process in box 560 continues to transfer learn new personalized vocabulary in all personalized skills S that the user is using. That is, the new personalized vocabulary is applied to all personalized skills S. In an embodiment, all personalized skills S may be trained using the new personalized vocabulary. In another embodiment, information about the new personalized vocabulary is added to all personalized skills S. The process then proceeds to block 570 and stops.
[0064] Figure 5B Another block diagram for migrating personalized vocabulary processing block 370 according to some embodiments is shown. It will be appreciated that the operations described below may be performed by the electronic device 120 or at least one processor of the electronic device 120 (e.g., control circuit 126, PA 129, etc.). In block 545, the process determines the skill s corresponding to the utterance Y. In block 546, an extended set P(X) of interpretations of X within the skill s that also includes the user-provided interpretation Y is generated. In block 551, for each interpretation Z in P(X), the process adds {Z, intent (Y)} to the user-specific training set U. The migrating personalized vocabulary processing block 370 proceeds to block 560 (in block 560, the personal skill parser is retrained, and a new personalized vocabulary is migrated for all personalized skills S used by the user). Then, the process proceeds to block 570 and stops.
[0065] Figure 6 A block diagram for a segmented restatement and exchange process 600 is shown according to some embodiments. Some embodiments generate structure-variant paraphrases, meaning that the generated paraphrases have different variability in terms of the detailed structure of the input utterance. A natural language utterance 610 is obtained / received (e.g., via a processor such as Figure 1129) and input it into box 620 for utterance segmentation. In box 620, the utterance segmentation generates segments of the input utterance 610 and identifies the dependencies of each segment in the utterance. The dependencies here represent the relationship between the main segment and the subordinate segments, where the main segment of a component is the central organizing word of the larger component (e.g., the main noun in a noun phrase or the verb in a verb phrase), and the remaining words in the component are either directly or indirectly dependent on its main segment. In box 630, the segment restatement and exchange includes generating a restatement of each segment and exchanging the segments based on their dependencies. In box 640, the generated interpretation ranking includes the ranking of the interpretations after restatement and exchange based on the language model. The results of box 640 are output as ranked interpretations in box 650. These ranked interpretations can then be added to the user-specific training set during the migration personalized vocabulary process, as shown in box 551.
[0066] Figure 7 The utterance segmentation processing block 620 ( Figure 6 ). In some embodiments, the speech segmentation process of box 620 has the following inputs: user speech 610 and a probabilistic context-free grammar (PCFG) parser 710. In one embodiment, the PCFG parser 710 calculates the grammatical structure of the sentence, including which phrases are fragments and the dependencies between the fragments. The speech segmentation process of box 620 uses the PCFG parser 710 to generate a parse tree of the input speech 610 and identify the dependencies between the various parts of the speech 610. For example, it identifies verbs 720, objects 730, and additional adverbials 740. Based on the identified verbs 720 and objects 730, the speech 610 is segmented to generate main fragments (including verb phrases) 750 of the input speech 610; and the additional adverbials 740 are segmented to generate interpretations 760 (interpretations 1-N) of the input speech 610.
[0067] Figure 8 An example of utterance segmentation 800 according to some embodiments is shown. In this example, there are three segments, including a main segment 810 ("deliver some pizza") and two additional adverbials 820 ("to my home" 840 and "bynoon" 850). The utterance 800 includes a verb 835 ("deliver" 830) and an object 836 "some pizza". The utterance 800 is used to describe how some embodiments provide for example Fig.10 and Fig.11 Use of paragraphing and restatements as shown.
[0068] Fig. 9 FIG. 6 shows a block 630 for segment restatement and exchange according to some embodiments. Figure 6) is a block diagram of a process of segmentation, restatement and exchange. In some embodiments, the segmentation, restatement and exchange process includes the generation of segment connection of frame 910 and the interpretation of the connected segment of frame 920. For the segment connection of frame 910, a segment of the input speech including one or more verb phrases and additional adverbials is input. The segment connection of frame 910 generates a restatement form, i.e., a non-main segment, by connecting each verb phrase with an additional adverbial. For the generation of the interpretation of the connected segment of frame 920, some embodiments can use any interpretation generation algorithm to restate the non-main segment, and use any interpretation generation algorithm to restate the main segment. For the additional adverbial exchange, some embodiments permute the segments generated in frame 910 to generate a list of exchanged interpretations. If a group of segments depend on the same segment, they will be exchanged between each other to generate a list of exchanged interpretations.
[0069] Fig.10 An example of a restatement segment according to some embodiments is shown. For this example, the input utterance 1010 is "deliver some pizza to my home by noon". The example non-primary segment 1020 is: "deliver some pizza to my home by noon". to my home and “deliver some pizza by noon ”, where the underlined words refer to non-primary segments. The primary segment 1030 is: “deliver some pizza”. The example result of the restatement process on the non-primary segment 1025 results in the following restatement: “deliver some pizza for home ", "deliver some pizza back home ", "deliver some pizza to bring home ",...,"deliver some pizza before noon ", "deliver some pizza at noon and “deliver some pizza around noon ”…, where the underlined part is the non-main segment after the restatement. For the restatement of the main segment 1030, examples of the restated main segment 1035 are: “get me some pizza”, “buy a pizza” and “I want a piece of pizza”…. The restatement of the segment is generated by an existing paraphrase algorithm.
[0070] Fig.11An example of a restatement segment 1110 and a combined paraphrase 1120 based on the restatement segment is shown according to some embodiments. The restatement segment is used to replace the original segment in the utterance to generate a paraphrase list. In this example, the restatement segment 1110 is: "get me some pizza", "buy a pizza", and "I want some pizza" ...; "for home", "back home", and "to bring home"; and "before noon", "at noon", and "around noon". The combined paraphrases 1120 based on the restatement segment are: "get me some pizza back home by noon", "by noonget me some pizza and home", "I want a pizza before noon back home", "before enoon I want a pizza back home", "to home get me some pizza via noon", "buy apizza for home before noon", "for home buy some pizza before noon", "around noon buy a pizza to home", "buy a pizza by noon back home", and "get me some pizza by noon to home" ....
[0071] Fig.12 640 ( Figure 6 ). In some embodiments, block 640 includes a combined paraphrase ranking that takes as input the generated paraphrases of the ...
[0072] Fig.13An example of ranked paraphrases in accordance with some embodiments is shown. In the example 1310 of ranked paraphrases for “deliver some pizza to my home by noon”, the highest ranked paraphrases 1320 (starting from highest) include: “get me some pizza back home by noon”, “buy a pizza for home before noon”, “I want a pizza before noon back home”, “before noon I want a pizza back home”, “around noon buy a pizza to home”, “get me some pizza by noon to home”. Low ranked paraphrases 1330 include (from highest to lowest): “get me some pizza and home by noon”, “for home buy some pizza before noon”, “to home get me some pizza via noon”, and “buy a pizza by noon back home”.
[0073] Fig.14A and Fig. 14B An example of a restated and exchanged utterance and an output of ranked paraphrases according to some embodiments is shown. For the example input utterance 1410 of "deliver some pizza to my home by noon", the action term 1420 is "deliver", the three segments 1430 are: "deliver some pizza", "to my home", and "by noon", and the primary segment 1440 is "deliver some pizza". In some example embodiments, the first replacement 1450 of the phrase is a restatement of the non-primary segment, which includes replacing "to my home" with "for home", "back home", and "to bring home", and replacing "by noon" with "before noon", "at noon", and "around noon".
[0074] The second alternative phrase 1460 for the action term ("deliver some pizza") includes restating the main segment with "get me some pizza," "buy a pizza," "I want some pizza," etc. In some embodiments, the example restated and exchanged utterances (by combining the first and second alternatives) 1470 include: "get me some pizzaback home by noon," "by noon get me some pizza and home," "I want a pizzabefore noon back home," "before noon I want a pizza back home," "to home get mesome pizza via noon," "buy a pizza for home before noon," "for home buy somepizza before noon," "around noon buy a pizza to home," "buy a pizza by noonback home," and "get me some pizza by noon to home," etc.
[0075] The final output 1480 of the ranked paraphrases may include high-ranking results 1490: “get me some pizza backhome by noon,” “buy a pizza for home before noon,” “I want a pizza before noonback home,” “before noon I want a pizza back home,” “around noon buy a pizza tohome,” and “get me some pizza by noon to home.” The final output 1480 of the ranked paraphrases may include low-ranking results 1495: “by noon get me some pizza and home,” “for home buy some pizza before noon,” “to home get me some pizza via noon,” and “buy a pizza by noon backhome.”
[0076] Fig.151 shows a block diagram of a process 1500 for generating a structural variation interpretation according to some embodiments. In block 1510, the process 1500 generates a structural variation interpretation by an electronic device (e.g., Figure 1 The electronic device 120 of the embodiment of the present invention determines the skills based on the keywords from the first NL input. In block 1520, after successfully determining the skills, the process 1500 sends the first NL input to a customized skill parser (e.g., Figure 3 In some embodiments, in process 1500, a customized skill parser is trained based on a combination of a customized training data set and a plurality of skill training data sets, and each of the plurality of skill training data sets includes data specific to a unique skill in a skill set. In block 1530, in the event that a skill is not successfully determined, process 1500 sends the first NL input to a general parser (e.g., Figure 3 In block 1540, upon successfully determining the skill intent, process 1500 adds the skill to the skill set. In block 1550, upon unsuccessfully determining the skill intent, process 1500 prompts for a second NL input. In process 1500, the second NL input is a paraphrase of the first NL input.
[0077] In some embodiments, process 1500 may include: sending a second NL input to a customized skill parser to determine skill intent; updating a customized training dataset based on the first NL input and the skill intent; and training the customized skill parser based on a combination of multiple customized skill training datasets and the customized training dataset.
[0078] In some embodiments, process 1500 may include generating segments from a first NL input. In process 1500, the segments may include a primary segment and one or more non-primary segments. Process 1500 may further include generating a plurality of restatements from the segments, and exchanging the segments based on dependencies of the segments to generate exchanged restatements. In some embodiments, process 1500 may include ranking the plurality of restatements and the exchanged restatements based on an input language model.
[0079] In some embodiments, in process 1500, generating a segment may include: generating a parse tree of a first NL input and a parser, identifying subordinate relationships between parts of the first NL input, identifying details of the first NL input, wherein the details include at least a verb, an object, and one or more additional adverbials, generating a main segment of the first NL input based on at least one verb and an object, and generating multiple interpretations based on one or more additional adverbials.
[0080] Fig.1616 is a high-level block diagram illustrating an information processing system including a computing system implementing one or more embodiments. System 1600 includes one or more processors 1611 (e.g., ASICs, CPUs, etc.), and may further include an electronic display device 1612 (for displaying graphics, text, and other data), a main memory 1613 (e.g., random access memory (RAM), cache devices, etc.), a storage device 1614 (e.g., a hard drive), a removable storage device 1615 (e.g., a removable storage drive, a removable memory, a tape drive, an optical drive, a computer-readable medium storing computer software and / or data), a user interface device 1616 (e.g., a keyboard, a touch screen, a keypad, a pointing device), and a communication interface 1617 (e.g., a modem, a wireless transceiver (e.g., Wi-Fi, a cellular network), a network interface (e.g., an Ethernet card), a communication port, or a PCMCIA slot and card).
[0081] The communication interface 1617 allows software and data to be transferred between the computer system and external devices via the Internet 1650, mobile electronic devices 1651, servers 1652, networks 1653, etc. The system 1600 also includes a communication infrastructure 1618 (e.g., a communication bus, crossbar, or network) to which the aforementioned devices are connected via the communication interface 1617.
[0082] The information transmitted via the communication interface 1617 may be in the form of signals, such as electronic signals, electromagnetic signals, optical signals, or other signals capable of being received by the communication interface 1617 via a communication link carrying the signal, and may be implemented using wire or cable, optical fiber, a telephone line, a cellular telephone link, a radio frequency (RF) link, and / or other communication channels.
[0083] In one implementation of one or more embodiments in a mobile wireless device (e.g., a mobile phone, a tablet computer, a wearable device, etc.), the system 1600 also includes an image capture device 1620, such as a camera 128 ( Figure 1 ), audio capture device 1619, such as microphone 122 ( Figure 1 ). The system 1600 may also include application processing or processors, such as MMS 1621, SMS 1622, email 1623, social network interface (SNI) 1624, audio / video (AV) player 1625, web browser 1626, image capture 1627, etc.
[0084] In one embodiment, system 1600 includes a personal intent learning process 1630, which can implement similar methods as described with respect to personal intent learning application 129 ( Figure 1 ) and is used for the above processing described with respect to FIG. Fig. 9In one embodiment, the personal intent learning process 1630 and the operating system 1629 may be implemented as executable code residing in a memory of the system 1600. In another embodiment, the personal intent learning process 1630 may be provided in the form of hardware, firmware, etc.
[0085] In one embodiment, the main memory 1613 , the storage device 1614 , and the removable storage device 1615 may store instructions for the above-described embodiments, each alone or in any combination, that may be executed by one or more processors 1611 .
[0086] As known to those skilled in the art, according to the above architecture, the above example architecture can be implemented in many ways, such as program instructions executed by a processor, software modules, microcodes, computer program products on a computer-readable medium, analog / logic circuits, application-specific integrated circuits, firmware, consumer electronic devices, AV devices, wireless / wired transmitters, wireless / wired receivers, networks, multimedia devices, etc. In addition, the embodiments of the architecture can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of hardware and software elements.
[0087] One or more embodiments have been described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to one or more embodiments. Each frame or combination thereof of such diagrams / charts can be implemented by computer program instructions. The computer program instructions, when provided to a processor, produce a machine so that the instructions executed by the processor create a device for implementing the function / operation specified in the flowchart and / or block diagram. Each frame in the flowchart / block diagram can represent the hardware and / or software module or logic that implements one or more embodiments. In an alternative embodiment, the functions indicated in the frame may not occur in the order indicated in the figure or may occur simultaneously.
[0088] The terms "computer program medium", "computer usable medium", "computer readable medium" and "computer program product" are generally used to refer to media such as main memory, secondary memory, removable storage drive, hard disk mounted on a hard drive, etc. These computer program products are devices for providing software to a computer system. The computer readable medium allows a computer system to read data, instructions, messages or message packets, and other computer readable information from the computer readable medium. For example, a computer readable medium may include non-volatile memory such as a floppy disk, ROM, flash memory, disk drive memory, CD-ROM, and other permanent memory. For example, it is useful for transferring information (e.g., data and computer instructions) between computer systems. Computer program instructions may be stored in a computer readable medium, which may direct a computer, other programmable data processing device, or other device to operate in a particular manner so that the instructions stored in the computer readable medium produce a product including instructions that implement the functions / actions specified in one or more blocks of a flowchart and / or block diagram.
[0089] The computer program instructions representing the block diagrams and / or flow charts of this article can be loaded onto a computer, a programmable data processing device, or a processing device so that a series of operations performed thereon produce a computer-implemented process. The computer program (i.e., computer control logic) is stored in a main memory and / or an auxiliary memory. The computer program can also be received via a communication interface. Such a computer program enables a computer system to perform the features of the embodiments discussed herein when executed. In particular, the computer program enables a processor and / or a multi-core processor to perform the features of a computer system when executed. Such a computer program represents a controller of a computer system. A computer program product includes a tangible storage medium that can be read by a computer system and stores instructions executed by a computer system to perform the method of one or more embodiments.
[0090] Although the embodiments have been described with reference to certain versions thereof; however, other versions are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the preferred versions contained herein.
Claims
1. A method for operating an electronic device, the method include: Detecting a first NL input, where NL is natural language, wherein the first NL input corresponds to a first utterance of a user; determining a skill in a skill set from the first NL input, wherein the skill is a specialized field in a plurality of fields corresponding to the skill set; Upon successful determination of the skill, sending the first NL input to a personalized skill parser to determine a skill intent of the first NL input, wherein the personalized skill parser is trained based on a user-specific training dataset for the skill; When the skill is not successfully determined, sending the first NL input to a universal parser to determine a general intent of the first NL input; When the personalized skill parser fails to determine the skill intent of the first NL input, receiving a second NL input as a new vocabulary for cross-domain learning, wherein the second NL input is an utterance of a user's paraphrase of a portion of the first NL input; identifying whether the personalized skill parser cannot determine through parsing that the intent of the new vocabulary is a specific skill intent; and When the personalized skill parser cannot determine that the intent of the new vocabulary is the specific skill intent, the first NL input and the intent of the new vocabulary are added to multiple skill training datasets including a combined skill training dataset and a user-specific training dataset, the personalized skill parser is retrained for cross-domain learning using both the combined skill training dataset and the user-specific training dataset, and the cross-domain learning of the new vocabulary is performed across all personalized skills used by the user via the electronic device.
2. The method according to claim 1, in, Each of the plurality of skill training data sets includes data of a unique skill specific to the skill set, and the skill refers to a field in which the artificial intelligence AI including a personalized skill parser understands, interprets or parses commands related to a specialized field.
3. The method according to claim 2, further comprising: include: When the first NL input includes at least one unique skill word associated with the skill, the skill is added to the skill set.
4. The method according to claim 2, further comprising: include: When the first NL input does not include at least one unique skill word associated with the skill, prompting for the second NL input.
5. The method according to claim 4, further comprising: include: generating segments from the first NL input, wherein the segments include a primary segment and one or more non-primary segments; generating a plurality of restatements from the segments; and The segments are swapped based on their dependencies to generate swapped restatements.
6. The method according to claim 5, further comprising: include: The plurality of restatements and the exchanged restatements are ranked based on an input language model.
7. The method according to claim 5, in, Generating the fragment comprises: Generate a parse tree using the first NL input and the parser; identifying dependencies between parts of the first NL input; identifying details of the first NL input, wherein the details include at least one verb, an object, and one or more additional adverbials; generating the main segment based on the at least one verb and the object; and The plurality of restatements are generated based on the one or more additional adverbials.
8. An electronic device comprising means for executing the method according to any one of claims 1 to 7.
9. A computer-readable medium, comprising instructions, and when the instructions are executed by an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 7.
