Instruction processing method and apparatus, and device, storage medium and vehicle
By extracting, filling, splitting and labeling command element information, the accuracy problem of multi-intent voice command processing in the existing technology is solved, and the accuracy of intent recognition of the vehicle-machine system is improved.
Patent Information
- Application Number
- PCT/CN2024/083849
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-03
AI Technical Summary
When processing multi-intent voice commands, the existing technology cannot accurately split text commands, resulting in a low accuracy of intent recognition in the vehicle-machine system and the inability to fully express the user's intent.
By extracting instruction element information from text instructions, filling in the preset instruction element structure, splitting and labeling to distinguish different intentions, and merging redundant information to ensure that each intention is fully expressed.
The accuracy of recognition of user intentions in multi-intent voice commands by the vehicle-to-machine system is improved, ensuring that the vehicle-to-machine system can accurately understand all the user's intentions.
Smart Images

Figure CN2024083849_03102024_PF_FP_ABST
Abstract
Description
Instruction processing method, device, equipment, storage medium and vehicle
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure is based on and claims the priority of Chinese patent application with application number 202310339628.3 and application date March 31, 2023. The entire content of the Chinese patent application is hereby incorporated into this disclosure by reference. Technical Field
[0003] The present disclosure belongs to the field of voice processing technology, and in particular relates to a command processing method, apparatus, device, storage medium, and vehicle. Background Art
[0004] During the human-computer dialogue process, the vehicle system needs to convert the user's voice commands into text commands based on automatic speech recognition technology (ASR), and then identify the user's intention contained in the text commands based on natural language understanding (NLU) technology, so as to perform corresponding operations based on the identified user intention.
[0005] When a voice command issued by a user contains multiple user intentions, relevant technologies usually split the text instructions converted from the voice command based on words with special properties such as punctuation marks and verb conjunctions, so that the vehicle system can recognize all user intentions contained in the text instructions. However, this processing method cannot guarantee that a single text instruction containing multiple intentions can be accurately split into multiple text instructions containing a single intention, nor can it guarantee that each instruction after the split can fully express an intention. Therefore, adopting such a processing method will cause certain difficulties in the vehicle system's intention recognition, resulting in a low accuracy rate of the vehicle system's intention recognition, and may not be able to accurately understand all user intentions contained in the voice command.
[0006] Summary of the Invention
[0007] The embodiments of the present disclosure provide a command processing method, apparatus, device, storage medium, and vehicle, which enable the vehicle system to accurately identify all user intentions contained in multi-intent voice commands.
[0008] In the first aspect, an embodiment of the present disclosure provides an instruction processing method, which includes: obtaining a text instruction to be processed, where the text instruction is converted from a multi-intent voice instruction issued by a user; extracting instruction element information corresponding to a preset instruction element item in the text instruction; filling each extracted instruction element information into a target slot of a preset instruction element structure respectively to obtain an instruction element representation structure, where the target slot is a position corresponding to the preset instruction element item corresponding to the instruction element information; splitting the instruction element representation structure based on the position where the first instruction element item appears in the instruction element representation structure to obtain multiple preset instruction element items belonging to the same intent, where the preset instruction element items include the first instruction element item; adding the same annotation to the preset instruction element items belonging to the same intent to obtain a multi-intent text instruction with a first target representation structure.
[0009] According to the implementation of the first aspect of the present disclosure, each extracted instruction element information is filled into the target slot of the preset instruction element structure respectively to obtain the instruction element representation structure, including: according to the order in which the instruction element information appears in the text instruction, each extracted instruction element information is filled into the target slot of the preset instruction element structure respectively to obtain the instruction element representation structure.
[0010] According to any of the aforementioned embodiments of the first aspect of the present disclosure, after obtaining a multi-intent text instruction with a first target representation structure, the instruction processing method also includes: when there are at least two first instruction element items with the same instruction element information in the multi-intent text instruction, merging the slots corresponding to the at least two first instruction element items to obtain a multi-intent text instruction with a second target representation structure.
[0011] According to any of the aforementioned embodiments of the first aspect of the present disclosure, before adding the same annotation to the preset instruction element items belonging to the same intent, the instruction processing method also includes: when there are at least two first instruction element items with the same instruction element information in the multi-intent text instruction, merging the slots corresponding to the at least two first instruction element items to obtain a merged instruction element representation structure; adding the same annotation to the preset instruction element items belonging to the same intent, including: adding the same annotation to the preset instruction element items belonging to the same intent in the merged instruction element representation structure.
[0012] According to any of the aforementioned embodiments of the first aspect of the present disclosure, each extracted instruction element information is filled into the target slot of the preset instruction element structure respectively to obtain the instruction element representation structure, including: each extracted instruction element information is filled into the target slot of the preset instruction element structure respectively; when there is an unfilled target slot in the target slot of the preset instruction element structure, the unfilled target slot is deleted to obtain the instruction element representation structure.
[0013] According to any of the aforementioned embodiments of the first aspect of the present disclosure, the first instruction element item includes an instruction operation action, and based on the position where the first instruction element item appears in the instruction element representation structure, the instruction element representation structure is split to obtain multiple preset instruction element items belonging to the same intention, including: based on the position where the instruction operation action appears in the instruction element representation structure, the instruction element representation structure is split to obtain multiple preset instruction element items belonging to the same intention.
[0014] In the second aspect, an embodiment of the present disclosure provides an instruction processing device, which includes: an acquisition module for acquiring text instructions to be processed, where the text instructions are converted from multi-intention voice instructions issued by a user; an extraction module for extracting instruction element information corresponding to preset instruction element items in the text instructions; a filling module for filling each extracted instruction element information into a target slot of the preset instruction element structure to obtain an instruction element representation structure, where the target slot is a position corresponding to the preset instruction element item corresponding to the instruction element information; a splitting module for splitting the instruction element representation structure based on the position where the first instruction element item appears in the instruction element representation structure to obtain multiple preset instruction element items belonging to the same intention, where the preset instruction element items include the first instruction element item; a labeling module for adding the same label to the preset instruction element items belonging to the same intention to obtain a multi-intention text instruction with a first target representation structure.
[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, which includes: a processor, a memory, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the steps of the instruction processing method provided in the first aspect are implemented.
[0016] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the instruction processing method provided in the first aspect are implemented.
[0017] In a fifth aspect, an embodiment of the present disclosure provides a vehicle, the vehicle comprising at least one of the following: an instruction processing device as provided in the second aspect; an electronic device as provided in the third aspect; or a computer-readable storage medium as provided in the fourth aspect.
[0018] The disclosed embodiments provide a command processing method, apparatus, device, storage medium, and vehicle. After obtaining a text command converted from a multi-intent voice command issued by a user, the method extracts command element information corresponding to preset command elements from the text command, thereby specifically obtaining key information associated with the user's intent. Each extracted command element information is then populated into the corresponding slot of the preset command element, resulting in a command element representation structure that fully represents the user's intent. Based on the position of the first command element in the command element representation structure, the command element representation structure is split to accurately distinguish the preset command elements corresponding to different user intents. Finally, the preset command elements in the command element representation structure that belong to the same intent are annotated identically, resulting in a multi-intent text command having a first target representation structure. Thus, by extracting the command element information, populating the command element information, splitting the command element representation structure, and annotating the preset command elements, the vehicle-mounted system can identify all user intents from the multi-intent voice command issued by the user, and accurately distinguish the multiple identified user intents into multiple individual intents that fully express the user intent, thereby improving the vehicle-mounted system's accuracy in identifying user intent in multi-intent voice commands. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0020] FIG1 is a flow chart of an instruction processing method provided by an embodiment of the present disclosure;
[0021] FIG2 is a schematic structural diagram of an instruction processing device provided by an embodiment of the present disclosure;
[0022] FIG3 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0025] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.
[0026] Before describing the technical solutions provided by the embodiments of the present disclosure, in order to facilitate understanding of the embodiments of the present disclosure, the present disclosure first specifically describes the problems existing in the related technologies:
[0027] As mentioned above, the inventors of the present disclosure have discovered that when a voice instruction issued by a user contains multiple user intentions, the relevant technology usually splits the text instruction converted from the voice instruction according to words of special properties such as punctuation marks and verb conjunctions, so that the vehicle system can recognize all user intentions contained in the text instruction. However, such a processing method cannot guarantee that a single text instruction containing multiple intentions can be accurately split into multiple text instructions containing a single intention, nor can it guarantee that each instruction after the split can fully express an intention. Therefore, adopting such a processing method will cause certain difficulties in the vehicle system's intention recognition, resulting in a low accuracy rate of the vehicle system's intention recognition, and may not be able to accurately understand all user intentions contained in the voice instruction.
[0028] In order to solve related technical problems, the embodiments of the present disclosure provide an instruction processing method, apparatus, device, storage medium and vehicle.
[0029] The following first introduces the instruction processing method provided by the embodiment of the present disclosure.
[0030] FIG1 is a flow chart of a method for processing an instruction provided by an embodiment of the present disclosure. As shown in FIG1 , the method may include the following steps S101 to S105:
[0031] S101. Obtain a text instruction to be processed, where the text instruction is converted from a multi-intent voice instruction issued by a user.
[0032] During the human-computer dialogue process, the vehicle system will first obtain the multi-intention voice commands issued by the user, such as "open the windows and air conditioning", "turn off the air conditioning after opening the windows", "play the video and adjust the air conditioning temperature to 23 degrees", etc., and then convert the multi-intention voice commands into corresponding text commands based on speech recognition technology.
[0033] S102: Extract instruction element information corresponding to preset instruction element items in the text instruction.
[0034] In the disclosed embodiment, the preset instruction element items include at least an instruction operation action and an instruction operation object, and may also include at least one of the attributes corresponding to the instruction operation object and the application scenario to which the instruction operation object belongs. Those skilled in the art may also set the preset instruction element items according to actual needs. The instruction element information corresponding to the instruction operation action may include but is not limited to open, close, select, play, navigate, adjust, delete, set, etc.; the instruction element information corresponding to the instruction operation object may include but is not limited to car windows, sunroofs, sunshades, air conditioners, refrigerators, locations, videos, audio, application software, etc.; the instruction element information corresponding to the attributes corresponding to the instruction operation object may include but is not limited to temperature, gear position, drama series, video resolution, audio playback mode, etc.; the instruction element information corresponding to the application scenario to which the instruction operation object belongs may include but is not limited to the main driver, co-driver, central control screen, co-driver screen, etc. Based on the preset instruction element items, the vehicle system extracts the instruction element information corresponding to the preset instruction element items from the text instruction.
[0035] For example, when the voice command issued by the user is "play for me", the vehicle system can extract the instruction element information corresponding to the instruction operation action as "play" from the converted text instruction; when the voice command issued by the user is "open the window for me", the vehicle system can extract the instruction element information corresponding to the instruction operation action as "open" from the converted text instruction, and the instruction element information corresponding to the instruction operation object is "window"; when the voice command issued by the user is "adjust the air conditioning temperature to 23 degrees", the vehicle system can extract the instruction element information corresponding to the instruction operation action as "adjust" from the converted text instruction, the instruction element information corresponding to the instruction operation object is "air conditioning", and the instruction element information corresponding to the attribute corresponding to the instruction operation object is "temperature 23 degrees"; when the voice command issued by the user is "adjust the air conditioning temperature on the co-pilot side to 23 degrees", the vehicle system can extract the instruction element information corresponding to the instruction operation action as "adjust" from the converted text instruction, the instruction element information corresponding to the instruction operation object is "air conditioning", the instruction element information corresponding to the attribute corresponding to the instruction operation object is "temperature 23 degrees", and the instruction element information corresponding to the application scenario to which the instruction operation object belongs is "co-pilot".
[0036] S103. Fill each extracted instruction element information into a target slot of a preset instruction element structure to obtain an instruction element representation structure, where the target slot is a position corresponding to the preset instruction element item corresponding to the instruction element information.
[0037] The preset instruction element structure can be "instruction operation action {} instruction operation object {} attribute corresponding to instruction operation object {} application scenario to which instruction operation object belongs {} instruction operation action {} instruction operation object {} attribute corresponding to instruction operation object {} application scenario to which instruction operation object belongs {}", and the "{}" after each preset instruction element item is the target slot corresponding to the preset instruction element item. A preset instruction element structure may contain multiple "instruction operation actions {}", "instruction operation objects {}", "attributes corresponding to instruction operation objects {}" and "application scenarios to which instruction operation objects belong {}", and the embodiment of the present disclosure does not limit the specific form of expression of the instruction element structure. The vehicle-mounted system will fill each extracted instruction element information into the target slot corresponding to the preset instruction element item according to the corresponding preset instruction element item, and obtain the filled instruction element representation structure.
[0038] S104. Split the instruction element representation structure based on the position where the first instruction element item appears in the instruction element representation structure to obtain multiple preset instruction element items belonging to the same intention, where the preset instruction element items include the first instruction element item.
[0039] The position of the first instruction element item in the instruction element representation structure is used as a sign of the occurrence of an intention. The instruction element representation structure is split with reference to the relative positions of each preset instruction element item and the first instruction element item to obtain multiple preset instruction element items belonging to the same intention.
[0040] S105. Add the same annotation to the preset instruction element items belonging to the same intent to obtain a multi-intent text instruction with a first target representation structure.
[0041] The instruction element items belonging to the same intention in the instruction element representation structure are marked in one form, and the instruction element items belonging to different intentions are marked in different forms to obtain the marked instruction element representation structure, that is, the multi-intent text instruction with the first target representation structure.
[0042] Exemplarily, the instruction element items belonging to the same intent in the instruction element representation structure can be marked with the same serial number, and the instruction element items belonging to different intents can be distinguished with different serial numbers. For example: a multi-intent text instruction with a first target representation structure can be "instruction operation action 1{}instruction operation object 1{}attribute corresponding to instruction operation object 1{}application scenario 1 to which instruction operation object belongs{}instruction operation action 2{}instruction operation object 2{}attribute corresponding to instruction operation object 2{}application scenario 2 to which instruction operation object belongs{}", and the embodiment of the present disclosure does not limit the marking form of the instruction element representation structure.
[0043] The disclosed embodiments provide a command processing method. After obtaining a text command converted from a multi-intent voice command issued by a user, the method extracts command element information corresponding to preset command elements from the text command, thereby specifically obtaining key information associated with the user's intent. Each extracted command element information is then populated into the corresponding slot of the preset command element, thereby obtaining a command element representation structure that can fully represent the user's intent. Based on the position of the first command element in the command element representation structure, the command element representation structure is split to accurately distinguish the preset command elements corresponding to different user intents. Finally, the preset command elements in the command element representation structure that belong to the same intent are annotated identically, thereby obtaining a multi-intent text command having a first target representation structure. Thus, by extracting the command element information, populating the command element information, splitting the command element representation structure, and annotating the preset command elements, the vehicle-mounted system can identify all user intents from the multi-intent voice command issued by the user, and can accurately distinguish the multiple identified user intents into multiple individual intents that can fully express the user intent, thereby improving the vehicle-mounted system's accuracy in identifying user intent in multi-intent voice commands.
[0044] In some embodiments, each extracted instruction element information is filled into the target slot of the preset instruction element structure respectively to obtain the instruction element representation structure, including: filling each extracted instruction element information into the target slot of the preset instruction element structure respectively according to the order in which the instruction element information appears in the text instruction to obtain the instruction element representation structure.
[0045] For example, each instruction element information must fill the target slot according to the order in which it appears in the text instruction. The instruction element representation structure obtained in this way can completely match the order in which the internal instruction element information appears with the order in which the user expresses his intention, thereby ensuring the accuracy of the instruction element representation structure.
[0046] In some embodiments, each extracted instruction element information is filled into the target slot of the preset instruction element structure respectively to obtain the instruction element representation structure, including: each extracted instruction element information is filled into the target slot of the preset instruction element structure respectively; if there is an unfilled target slot in the target slot of the preset instruction element structure, the unfilled target slot is deleted to obtain the instruction element representation structure.
[0047] For example, after each instruction element information is filled into the target slot in the order in which it appears in the text instruction, the extracted instruction element information may not completely include the instruction element information corresponding to all preset instruction element items, for example, it may not completely include the instruction operation action information, instruction operation object information, attribute information corresponding to the instruction operation object, and application scenario information to which the instruction operation object belongs. Therefore, some target slots may be unfilled. In this case, simply delete the unfilled target slots to obtain the instruction element representation structure.
[0048] For example, when the multi-intent text instruction is "Open the windows and the air conditioner," "Open the windows and turn on the air conditioner," "Open the windows and turn on the air conditioner," or "Open the windows and turn on the air conditioner," the extracted instruction element information appears in the order of "Open the windows" first and then "Turn on the air conditioner." Following this order, the extracted instruction element information "Open," "Window," "Open," and "Air Conditioner" are populated into the target slots of the preset instruction element structure, resulting in the instruction element representation structure of "Instruction operation action {Open} Instruction operation object {Window} Instruction operation object corresponding attributes {} Instruction operation object's application scenario {} Instruction operation action {Open} Instruction operation object {Air conditioner} Instruction operation object corresponding attributes {} Instruction operation object's application scenario {}." Since the extracted instruction information does not include the instruction operation object's corresponding attributes and the instruction operation object's application scenario information, the target slots corresponding to these two preset instruction element items are unpopulated and need to be deleted, ultimately resulting in the instruction element representation structure of "Instruction operation action {Open} Instruction operation object {Window} Instruction operation action {Open} Instruction operation object {Air conditioner}."
[0049] When the multi-intent text command is "Close the main driver's window and adjust the air conditioning temperature to 23 degrees" or "Close the main driver's window and adjust the air conditioning temperature to 23 degrees," the extracted command element information appears in the order of "Close the main driver's window" followed by "Adjust the air conditioning temperature to 23 degrees." Following this order, the extracted command element information "Close," "main driver," "window," "adjust," "air conditioning," and "temperature 23 degrees" are populated into the target slots of the preset command element structure, resulting in a command element representation structure of "Command action {Close} Command action object {Window} Command action object corresponding attribute {} Application scenario to which the command object belongs {Main driver's window} Command action {Adjust} Command action object {Air conditioning} Command action object corresponding attribute {Temperature 23 degrees} Application scenario to which the command object belongs {}." The unpopulated target slots are deleted, resulting in a command element representation structure of "Command action {Close} Command action object {Window} Application scenario to which the command object belongs {Main driver's window} Command action {Adjust} Command action object {Air conditioning} Command action object corresponding attribute {Temperature 23 degrees}."
[0050] In some embodiments, after obtaining a multi-intent text instruction with a first target representation structure, the instruction processing method also includes: when there are at least two first instruction element items with the same instruction element information in the multi-intent text instruction, merging the slots corresponding to the at least two first instruction element items to obtain a multi-intent text instruction with a second target representation structure.
[0051] Exemplarily, after obtaining a multi-intent text instruction having a first target representation structure, if the instruction element information corresponding to at least two first instruction element items belonging to different intents in the multi-intent text instruction is the same, then the slots corresponding to the first instruction element items with the same instruction element information are merged to obtain a multi-intent text instruction having a second target representation structure. By merging the slots of preset instruction element items with the same instruction element information, the redundancy of the expression of the multi-intent text instruction can be reduced to a certain extent while ensuring the complete expression of all user intents.
[0052] For example, when the multi-intent text instruction is "open the car window and air conditioning" or "open the car window, turn on the air conditioning" or "open the car window and air conditioning" or "open the car window and turn on the air conditioning", the instruction element representation structure of "instruction operation action {open} instruction operation object {car window} instruction operation action {open} instruction operation object {air conditioning}" is obtained. The same annotation is added to the instruction element items belonging to the same intention in the instruction element representation structure, and the multi-intent text instruction with the first target representation structure of "instruction operation action 1 {open} instruction operation object 1 {car window} instruction operation action 2 {open} instruction operation object 2 {air conditioning}" is obtained. Since the instruction element information corresponding to the instruction operation actions of "open the car window" and "turn on the air conditioning" are both "open", it is necessary to merge the slots corresponding to the instruction operation actions in the multi-intent text instruction. The merged instruction element items may not have annotations, thereby obtaining the multi-intent text instruction with the second target representation structure of "instruction operation action {open} instruction operation object 1 {car window} instruction operation object 2 {air conditioning}".
[0053] When the multi-intent text instruction is "Open the main driver's window, open the passenger driver's window" or "Open the main driver's window and the passenger driver's window" or "Open the main driver's window and the passenger driver's window", the instruction element representation structure of "instruction operation action {open} instruction operation object {window} application scenario to which the instruction operation object belongs {main driver's window} instruction operation action {open} instruction operation object {window} application scenario to which the instruction operation object belongs {passenger driver's window}" is obtained. The same annotation is added to the instruction element items belonging to the same intent in the instruction element representation structure to obtain the multi-intent text instruction with the first target representation structure of "instruction operation action 1 {open} instruction operation object 1 {window} application scenario 1 to which the instruction operation object belongs {main driver's window} instruction operation action 2 {open} instruction operation object 2 {window} application scenario 2 to which the instruction operation object belongs {passenger driver's window}". Since the instruction element information corresponding to the instruction operation actions of "open the main driver's window" and "open the passenger driver's window" is both "open", and the instruction element information corresponding to the instruction operation objects is both "window", it is necessary to merge the slots corresponding to the instruction operation actions and the instruction operation objects in the multi-intention text instructions. The merged instruction element items may not be labeled, thereby obtaining the multi-intention text instruction with the second target representation structure of "command operation action {open} instruction operation object {window} application scenario 1 to which the instruction operation object belongs {main driver} application scenario 2 to which the instruction operation object belongs {passenger driver}".
[0054] In some embodiments, before adding the same annotation to the preset instruction element items belonging to the same intent, the instruction processing method also includes: when there are at least two first instruction element items with the same instruction element information in the multi-intent text instruction, merging the slots corresponding to the at least two first instruction element items to obtain a merged instruction element representation structure; adding the same annotation to the preset instruction element items belonging to the same intent includes: adding the same annotation to the preset instruction element items belonging to the same intent in the merged instruction element representation structure.
[0055] Exemplarily, before adding the same annotation to the preset instruction elements belonging to the same intent, if the instruction element information corresponding to at least two first instruction elements belonging to different intents in the multi-intent text instruction is the same, the slots corresponding to these first instruction elements with the same instruction element information are merged to obtain a merged instruction element representation structure. Then, the same annotation is added to the preset instruction elements belonging to the same intent in the merged instruction element representation structure.
[0056] For example, when the multi-intent text instruction is "open the main driver's window and the passenger's air conditioner" or "open the main driver's window and the passenger's air conditioner" or "open the main driver's window and the passenger's air conditioner" or "open the main driver's window and turn on the passenger's air conditioner", the instruction element representation structure of "instruction operation action {open} instruction operation object {window} application scenario to which the instruction operation object belongs {main driver's seat} instruction operation action {open} instruction operation object {air conditioner} application scenario to which the instruction operation object belongs {passenger driver's seat}" is obtained. Since the instruction element information corresponding to the instruction operation actions of "open the main driver's window" and "turn on the passenger's seat air conditioner" are both "open", it is necessary to merge the slots corresponding to the instruction operation actions in the multi-intent text instruction. The merged instruction element representation structure is "instruction operation action {open} instruction operation object {window} application scenario to which the instruction operation object belongs {main driver's seat} instruction operation object {air conditioner} application scenario to which the instruction operation object belongs {passenger driver's seat}". Then add the same annotation to the preset instruction element items belonging to the same intention in the merged instruction element representation structure, and obtain the multi-intent text instruction with the first target representation structure of "instruction operation action {open} instruction operation object 1 {window} instruction operation object belongs to application scenario 1 {main driver} instruction operation object 2 {air conditioner} instruction operation object belongs to application scenario 2 {co-driver}".
[0057] In some embodiments, the first instruction element item includes an instruction operation action, and based on the position where the first instruction element item appears in the instruction element representation structure, the instruction element representation structure is split to obtain multiple preset instruction element items belonging to the same intention, including: based on the position where the instruction operation action appears in the instruction element representation structure, the instruction element representation structure is split to obtain multiple preset instruction element items belonging to the same intention.
[0058] For example, when the multi-intent text instruction is "Close the main driver's window, turn on the passenger's air conditioner, and play the fifth episode of the video" or "Close the main driver's window, turn on the passenger's air conditioner, and then play the fifth episode of the video", the instruction element representation structure of "instruction operation action {close} instruction operation object {window} application scenario to which the instruction operation object belongs {main driver's window} instruction operation action {open} instruction operation object {air conditioner} application scenario to which the instruction operation object belongs {passenger driver's window} instruction operation action {play} instruction operation object {video} attribute corresponding to the instruction operation object {fifth episode}" is obtained. In an embodiment of the present disclosure, the preset instruction element item includes a first instruction element item. If the first instruction element item includes an instruction operation action, the position where the instruction operation action appears in the instruction element representation structure is used as a sign of the appearance of an intention. The preset instruction element item that appears after the position where one instruction operation action appears and before the position where the next instruction operation action appears is regarded as a preset instruction element item belonging to the same intention as the previous instruction operation action, that is, "instruction operation action {close} instruction operation object {car window} application scenario to which the instruction operation object belongs {main driver}" is a preset instruction element item belonging to the same intention; "instruction operation action {open} instruction operation object {air conditioner} application scenario to which the instruction operation object belongs {co-driver}" is a preset instruction element item belonging to the same intention; "instruction operation action {play} instruction operation object {video} attribute corresponding to the instruction operation object {fifth episode}" is a preset instruction element item belonging to the same intention. Therefore, by splitting the instruction element representation structure, multiple preset instruction element items belonging to the same intention are obtained.
[0059] Based on the instruction processing method provided in the above embodiment, the present disclosure also provides a specific implementation of an instruction processing device. Please refer to the following embodiment.
[0060] As shown in FIG2 , the instruction processing device 200 provided in the embodiment of the present disclosure includes the following modules:
[0061] An acquisition module 201 is configured to acquire a text instruction to be processed, where the text instruction is converted from a multi-intent voice instruction issued by a user;
[0062] Extraction module 202, used to extract instruction element information corresponding to preset instruction element items in the text instruction;
[0063] Filling module 203, used to fill each extracted instruction element information into the target slot of the preset instruction element structure respectively, to obtain an instruction element representation structure, where the target slot is the position corresponding to the preset instruction element item corresponding to the instruction element information;
[0064] a splitting module 204 configured to split the instruction element representation structure based on a position where the first instruction element item appears in the instruction element representation structure, to obtain a plurality of preset instruction element items belonging to the same intent, wherein the preset instruction element items include the first instruction element item;
[0065] The annotation module 205 is used to add the same annotation to the preset instruction element items belonging to the same intention to obtain a multi-intent text instruction with a first target representation structure.
[0066] The disclosed embodiments provide a command processing device that, after obtaining a text command converted from a multi-intent voice command issued by a user, extracts command element information corresponding to preset command elements from the text command, thereby specifically obtaining key information associated with the user's intent. Each extracted command element information is then populated into the corresponding slot of the preset command element, thereby obtaining a command element representation structure that fully represents the user's intent. Based on the position of the first command element in the command element representation structure, the command element representation structure is split to accurately distinguish the preset command elements corresponding to different user intents. Finally, the preset command elements in the command element representation structure that belong to the same intent are annotated identically, thereby obtaining a multi-intent text command having a first target representation structure. Thus, by extracting the command element information, populating the command element information, splitting the command element representation structure, and annotating the preset command elements, the vehicle-mounted system can identify all user intents from the multi-intent voice command issued by the user, and accurately distinguish the multiple identified user intents into multiple individual intents that fully express the user intent, thereby improving the vehicle-mounted system's accuracy in identifying user intent in multi-intent voice commands.
[0067] In some embodiments, the filling module 203 is specifically used to fill each extracted instruction element information into the target slot of the preset instruction element structure according to the order in which the instruction element information appears in the text instruction, so as to obtain the instruction element representation structure.
[0068] In some embodiments, the above-mentioned instruction processing device 200 may also include: a first merging module, which is used to merge the slots corresponding to at least two first instruction element items with the same instruction element information after obtaining the multi-intent text instruction with a first target representation structure, so as to obtain the multi-intent text instruction with a second target representation structure.
[0069] In some embodiments, the above-mentioned instruction processing device 200 may also include: a second merging module, which is used to merge the slots corresponding to at least two first instruction elements belonging to the same intention before adding the same annotation to the preset instruction element items belonging to the same intention, when there are at least two first instruction element items with the same instruction element information in the multi-intention text instruction, to obtain a merged instruction element representation structure; adding the same annotation to the preset instruction element items belonging to the same intention, including: adding the same annotation to the preset instruction element items belonging to the same intention in the merged instruction element representation structure.
[0070] In some embodiments, the above-mentioned filling module 203 is specifically used to fill each extracted instruction element information into the target slot of the preset instruction element structure respectively; when there is an unfilled target slot in the target slot of the preset instruction element structure, the unfilled target slot is deleted to obtain the instruction element representation structure.
[0071] In some embodiments, the first instruction element item includes an instruction operation action, and the above-mentioned splitting module 204 is specifically used to split the instruction element representation structure based on the position where the instruction operation action appears in the instruction element representation structure to obtain multiple preset instruction element items belonging to the same intention.
[0072] Each module in the device shown in FIG2 has the function of implementing each step in FIG1 and can achieve its corresponding technical effect. For the sake of brevity, it will not be described in detail here.
[0073] FIG3 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
[0074] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.
[0075] Specifically, the processor 301 may include a central processing unit (CPU) or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.
[0076] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In one example, the memory 302 may include a removable or non-removable (or fixed) medium, or the memory 302 may be a non-volatile solid-state memory. The memory 302 may be inside or outside the integrated gateway disaster recovery device.
[0077] In one example, the memory 302 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0078] The memory 302 may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0079] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement the method / steps S101 to S105 in the embodiment shown in Figure 1, and achieves the corresponding technical effects achieved by executing the method / steps in the example shown in Figure 1. For the sake of brevity, they are not repeated here.
[0080] In one example, the electronic device may further include a communication interface 303 and a bus 310. As shown in FIG3, the processor 301, the memory 302, and the communication interface 303 are connected via the bus 310 and communicate with each other.
[0081] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present disclosure.
[0082] Bus 310 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus can include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association local (VLB) bus or other suitable bus or two or more of these combinations. Where appropriate, bus 310 can include one or more buses. Although the present disclosure describes and shows a specific bus, the present disclosure considers any suitable bus or interconnection.
[0083] In addition, in combination with the instruction processing method in the above embodiment, the embodiment of the present disclosure may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the instruction processing methods in the above embodiment is implemented. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as electronic circuits, semiconductor memory devices, ROM, random access memory, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, and hard disks.
[0084] In addition, an embodiment of the present disclosure also provides a vehicle, which includes at least one of the following: an instruction processing device as provided in any of the second aspects; an electronic device as provided in any of the third aspects; or a computer-readable storage medium as provided in any of the fourth aspects.
[0085] It should be understood that the present disclosure is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present disclosure is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present disclosure.
[0086] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present disclosure are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0087] It should also be noted that the exemplary embodiments described in this disclosure describe methods or systems based on a series of steps or devices. However, this disclosure is not limited to the order of the steps described above. In other words, the steps may be performed in the order described in the embodiments, or in a different order, or several steps may be performed simultaneously.
[0088] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0089] The above description is only a specific embodiment of the present disclosure. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present disclosure is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should be included in the scope of protection of the present disclosure.
Claims
1. A method for processing an instruction, the method comprising: Obtaining a text instruction to be processed, where the text instruction is converted from a multi-intent voice instruction issued by a user; Extracting instruction element information corresponding to the preset instruction element item in the text instruction; Filling each of the extracted instruction element information into a target slot of a preset instruction element structure to obtain an instruction element representation structure, wherein the target slot is a position corresponding to the preset instruction element item corresponding to the instruction element information; splitting the instruction element representation structure based on the position where the first instruction element item appears in the instruction element representation structure to obtain a plurality of preset instruction element items belonging to the same intent, the preset instruction element items including the first instruction element item; The same annotation is added to the preset instruction element items belonging to the same intention to obtain a multi-intent text instruction with a first target representation structure.
2. The method according to claim 1, wherein The step of filling each of the extracted instruction element information into a target slot of a preset instruction element structure to obtain an instruction element representation structure includes: According to the order in which the instruction element information appears in the text instruction, each of the extracted instruction element information is filled into the target slot of the preset instruction element structure to obtain an instruction element representation structure.
3. The method according to claim 1 or 2, wherein: After obtaining the multi-intent text instruction having the first target representation structure, the method further includes: When there are at least two first instruction element items with the same instruction element information in the multi-intent text instruction, the slots corresponding to the at least two first instruction element items are merged to obtain a multi-intent text instruction with a second target representation structure.
4. The method according to claim 1 or 2, wherein: Before adding the same annotation to the preset instruction elements belonging to the same intention, the method further includes: In a case where there are at least two first instruction element items with the same instruction element information in the multi-intent text instruction, merging the slots corresponding to the at least two first instruction element items to obtain a merged instruction element representation structure; The adding the same annotation to the preset instruction elements belonging to the same intention includes: Add the same annotation to the preset instruction element items belonging to the same intent in the merged instruction element representation structure.
5. The method according to any one of claims 1 to 4, wherein The step of filling each of the extracted instruction element information into a target slot of a preset instruction element structure to obtain an instruction element representation structure includes: Filling each of the extracted instruction element information into the target slot of the preset instruction element structure respectively; In the case that there are unfilled target slots in the target slots of the preset instruction element structure, the unfilled target slots are deleted to obtain the instruction element representation structure.
6. The method according to any one of claims 1 to 5, wherein The first instruction element item includes an instruction operation action, and the instruction element representation structure is split based on the position where the first instruction element item appears in the instruction element representation structure to obtain multiple preset instruction element items belonging to the same intention, including: Splitting the instruction element representation structure based on the position where the instruction operation action appears in the instruction element representation structure, Get multiple preset instruction element items belonging to the same intention.
7. An instruction processing device, comprising: An acquisition module is used to acquire a text instruction to be processed, wherein the text instruction is converted from a multi-intent voice instruction issued by a user; An extraction module, configured to extract instruction element information corresponding to a preset instruction element item in the text instruction; a filling module, configured to fill each of the extracted instruction element information into a target slot of a preset instruction element structure to obtain an instruction element representation structure, wherein the target slot is a position corresponding to the preset instruction element item corresponding to the instruction element information; a splitting module, configured to split the instruction element representation structure based on a position where the first instruction element item appears in the instruction element representation structure, to obtain a plurality of preset instruction element items belonging to the same intent, wherein the preset instruction element items include the first instruction element item; The annotation module is used to add the same annotation to the preset instruction element items belonging to the same intention to obtain a multi-intent text instruction with a first target representation structure.
8. An electronic device, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the instruction processing method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the instruction processing method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the instruction processing method according to any one of claims 1 to 6.
11. A computer program, which, when executed on a computer, causes the computer to execute the steps of the instruction processing method according to any one of claims 1 to 6.
12. A vehicle comprising at least one of the following: The instruction processing device according to claim 7; The electronic device according to claim 8; The computer-readable storage medium of claim 9; The computer program product according to claim 10; A computer program as claimed in claim 11.
Citation Information
Patent Citations
Intention recognition method and system for task type multi-intention dialogue
CN113515611A
Emergency dispatching instruction execution method and device and electronic equipment
CN114385779A
Multi-intention semantic understanding model training and using method and device
CN115359786A
Control method and control system of in-vehicle infotainment system
CN115440200A
Voice recognition system and voice recognition method for analyzing command having multiple intents
US20190164540A1
