Disclosure of Invention
The embodiment of the invention provides a scene-based input method, a scene-based input device, a scene-based input equipment and a computer-readable storage medium, which can be used for solving the problems in the related art.
In one aspect, an embodiment of the present invention provides an intelligent interaction engine optimization method, where the method includes:
step 101, acquiring a first interaction engine shared by a third party;
step 102, extracting a first element in the first interaction engine and first data information associated with the first element;
103, acquiring a second element matched with the first element in a second interaction engine;
and 104, filling the first data information into a second element in a second interaction engine.
Preferably, the first and second electrodes are formed of a metal,
the first element comprises a first slot position;
the second element comprises a second slot position;
the first data information associated with the first element comprises first key knowledge data associated with a first slot;
the first interaction engine and the second interaction engine have the same task attributes. .
Preferably, the step 101 further comprises
Acquiring one or more interaction engines created or uploaded by a third party through an open interface of an intelligent interaction platform;
or alternatively
And one or more interaction engines shared in the network platform are captured through network searching.
Preferably, the step 103 further comprises
Judging whether a slot position matched with the first slot position exists in a second interaction engine; and if not, creating a second slot position matched with the first slot position.
Preferably, the step 104 further comprises
The second slot position is provided with a plurality of candidate positions;
and filling the candidate bits according to the priority level of the first key knowledge data.
Preferably, the download amount and/or the recommendation value of the first interaction engine are obtained, and the priority level of the first key knowledge data associated with the first slot in the first interaction engine is determined according to the download amount and/or the recommendation value.
Preferably, the plurality of key knowledge data filled in the second slot are screened, and the error data are deleted.
Preferably, the method further comprises step 105
Judging whether a third slot position which is not filled exists in the second interaction engine;
and if so, feeding back slot data missing information to the third party.
On the other hand, an embodiment of the present invention provides an intelligent interaction engine optimization apparatus, where the apparatus includes:
the interaction engine acquisition module is used for acquiring a first interaction engine shared by a third party;
the extraction module is used for extracting a first element in the first interaction engine and first data information associated with the first element;
the matching module is used for acquiring a second element matched with the first element in a second interaction engine;
and the filling module is used for filling the first data information into a second element in the second interaction engine.
Preferably, the first element comprises a first slot;
the second element comprises a second slot position;
the first data information associated with the first element comprises first key knowledge data associated with a first slot;
the first interaction engine and the second interaction engine have the same task attributes.
Preferably, the interaction engine acquisition module is further used for
Acquiring one or more interaction engines created or uploaded by a third party through an open interface of an intelligent interaction platform;
or
And one or more interaction engines shared in the network platform are captured through network searching.
Preferably, the apparatus further creates a module;
the matching module is further used for judging whether a slot position matched with the first slot position exists in a second interaction engine; and if not, the creating module creates a second slot position matched with the first slot position.
Preferably, the second slot has a plurality of candidate bits;
the filling module is further configured to fill the first key knowledge data into the plurality of candidate bits according to the priority of the first key knowledge data.
Preferably, the apparatus further comprises a priority determination module
The priority determining module is used for acquiring the download quantity and/or the recommendation value of the first interaction engine, and determining the priority level of the first key knowledge data associated with the first slot position in the first interaction engine according to the download quantity and/or the recommendation value.
Preferably, the apparatus further includes a screening module configured to screen the plurality of key knowledge data filled in the second slot to delete the error data.
Preferably, the apparatus further comprises a feedback module
The matching module is further used for judging whether a third slot position which is not filled exists in the second interaction engine;
and if so, the feedback module feeds back the slot missing information to the third party.
On the other hand, the embodiment of the invention provides terminal equipment comprising the intelligent interaction engine optimization device.
In another aspect, an embodiment of the present invention provides a computer device, which includes a processor and a memory, where the memory stores a computer program that is executable on the processor, and the computer program implements the foregoing method when executed by the processor.
In another aspect, the present invention provides a computer-readable storage medium, in which a computer program that can be run on a processor is stored, and when being executed, the computer program implements the foregoing method.
The implementation of the embodiment of the invention can effectively optimize the existing interaction engine of the intelligent interaction platform, establish more optimized intelligent interaction control, improve the processing capacity of the intelligent interaction platform, improve the user experience and obtain beneficial effects.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The embodiments and specific features of the embodiments of the present invention are detailed descriptions of technical solutions of the embodiments of the present invention, and are not limited to technical solutions of the present invention, and the technical features of the embodiments and the embodiments of the present invention may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic diagram of an intelligent interaction platform of the present invention, which mainly includes: a human-computer interaction interface 101, a processing module 102, a database 103 and the like. Wherein the processing module comprises a plurality of interaction engines 112, the interaction engines 112 may comprise a semantic understanding module 201, a dialog management and control module 202, a dialog generation module 203, a command execution module 204. The processing module 102 is connected to the human-computer interface 101, and can receive data input by a user through the human-computer interface 101 and output interactive data to the user through the human-computer interface, that is, on one hand, the human-computer interface 101 can receive dialogue data fed back to the user through the processing module 102 and on the other hand, can receive command execution process and result data fed back by the processing module 102. For the intelligent voice interaction platform, the processing module 102 may further include: a voice recognition module 210 and a voice output module 211. The speech recognition module 210 and the speech output module 211 may also be configured in the interaction engine 112. Further, the interaction engine 112 may be a single interaction engine or may be comprised of one or more interaction sub-engines.
One key point of the optimization of the interaction engine in the intelligent interaction platform is to improve the processing capacity of the interaction engine, enhance the understanding of the interaction engine on semantics, improve the efficiency of dialogue interaction and improve the task execution accuracy; these all need to understand the user's intention accurately, and through slot position and slot position analysis in the enrichment interaction engine, improve the control and management of interaction engine to the interaction.
Example one
Referring to fig. 2, fig. 2 is a flowchart illustrating an intelligent interaction engine optimization method according to an embodiment of the present invention, where the method includes, but is not limited to:
step 101, acquiring a first interaction engine shared by a third party;
step 102, extracting a first element in the first interaction engine and first data information associated with the first element;
103, acquiring a second element matched with the first element in a second interaction engine;
and 104, filling the first data information into a second element in a second interaction engine.
Specifically, the first element comprises a first slot position;
the second element comprises a second slot position;
the first data information associated with the first element comprises first key knowledge data associated with a first slot;
the first interaction engine and the second interaction engine have the same task attributes.
The intelligent interaction platform can open an interface to a user, so that the user can create own tasks through the open interface, and an interaction engine based on the tasks is generated by packaging the tasks created and completed by the user. And simultaneously, the user can also directly upload the packaged interaction engine which accords with the platform format by using the interface which is opened to the user.
Specifically, the step 101 further includes acquiring one or more interaction engines created or uploaded by a third party through an open interface of an intelligent interaction platform; for example, a plurality of users upload an interaction engine1, an interaction engine2, … … and an interaction engine n based on the same task on the intelligent interaction platform. In step 101, based on the task attribute of the interaction engine to be optimized, an interaction engine shared by a third party and conforming to the same task can be first found on the intelligent interaction platform, so that the interaction engine initially developed in the intelligent interaction platform and based on the task can be subsequently optimized by using the interaction engines.
Or the first interaction engine for obtaining the third-party share in step 101 may further obtain one or more interaction engines shared in the network platform through network search and crawling. For example, in some public resource sharing platforms, there are interaction engines where users voluntarily share and provide communication downloads; the interaction engines can be captured by utilizing network search, and the interaction engines based on the task initially developed in the intelligent interaction platform can be optimized by utilizing the interaction engines subsequently.
Specifically, the step 103 further includes determining whether a slot matching the first slot exists in a second interaction engine; and if not, creating a second slot position matched with the first slot position. Because all necessary slot positions cannot be exhausted during initial design, at the moment, the aim of learning can be fulfilled by extracting the information of the relevant slot positions in the interaction engine shared by a plurality of third parties, and the slot positions lacking by the interaction engine are optimized and updated so as to further perfect the design of the interaction engine.
Specifically, the step 104 further includes that the second slot has a plurality of candidate bits; and filling the candidate bits according to the priority level of the first key knowledge data.
As in the previous example, a plurality of users 1,2, … …, n all upload the interaction engine1, the interaction engine2, … …, and the interaction engine n based on the same task on the intelligent interaction platform. When the user intelligent interaction platform shares, a related interaction engine information list can be created, and the following table shows that:
user ID
|
Interaction engine identification
|
Attribute
|
Download volume
|
Recommended value
|
UE1
|
ENGINE1
|
TASK1
|
79
|
8.1
|
UE2
|
ENGINE2
|
TASK1
|
67
|
6.7
|
UE3
|
ENGINE3
|
TASK2
|
116
|
9.2
|
……
|
……
|
……
|
|
|
UEn
|
ENGINEn
|
TASKm
|
94
|
8.9 |
Wherein m is 1,2,3 … based on the same task attribute TASKm; there may be multiple interaction ENGINEs uploaded by multiple users, such as UE1, UE2, UE4, such as ENGINE1, ENGINE2, ENGINE 4; extracting key knowledge data corresponding to slot positions and slot positions in the ENGINE1, ENGINE2 and ENGINE 4 through a step 102; the key knowledge data filled in the same slot position in the interaction engine shared by a plurality of users and associated with the slot position can be different. Thus, a slot may be set to have multiple candidate bits to which multiple key knowledge data is populated. For the user of the interaction engine, diversified selections can be provided for the user through the key knowledge data of a plurality of candidate positions in the slot position. For multiple possible choices, in order to better provide the user experience, the priority ranking of the multiple pieces of key knowledge data may be performed, and the 1 st to nth candidate bits are sequentially filled according to the priority ranking from high to low, specifically, for example, the key knowledge data with the highest priority ranking is filled into the first candidate bit.
Specifically, the downloading amount and/or the recommended value of the first interaction engine are obtained, and the priority level of the first key knowledge data associated with the first slot in the first interaction engine is determined according to the downloading amount and/or the recommended value. For example, the download amount and recommendation value of each interactive ENGINE are counted through the interactive ENGINE information list, the priority level of the key knowledge data extracted from the interactive ENGINE is set by how much the download amount is, or the priority level of the key knowledge data extracted from the interactive ENGINE is set by the level of the evaluation value, or the value weight of the interactive ENGINE is calculated by combining the download amount and the recommendation value, and the priority level of the key knowledge data extracted from the interactive ENGINE is set by the level of the value weight, for example, for the same TASK attribute TASK2, it is known that the value weight of the ENGINE3 created by the UE3 is the highest by calculation, and thus the slot extracted from the ENGINE3 and the priority level of the key knowledge data associated with the slot are the highest.
Further, erroneous data may also exist in the interaction engine shared by multiple users, and at this time, the data needs to be analyzed to remove obviously erroneous data; the method can be realized by the following steps:
and screening a plurality of key knowledge data filled in the second slot position, and deleting error data.
Specifically, for the same slot in the same task, for example, the slot description information is the same slot for transfer, the key knowledge data filled in the slot in the shared ENGINE1 by the user 1 is station a; the key knowledge data that the user 2 fills in the slot in the shared ENGINE2 is the B site; the key knowledge data that user 5 fills in the slot in his shared entry 5 is the C site. The station A and the station B belong to optional transfer stations of two transfer lines, and the station C is not a transfer station and may be error data which is key knowledge data filled in the slot position due to the fact that a user fills in errors. In order to avoid providing error information to the user when the interaction engine is subsequently used, the filled multiple pieces of key knowledge data need to be screened, the error data is found, and the error data is removed, so that the use experience of the optimized interaction engine is guaranteed.
Further, the method may further include step 105, determining whether a third slot that is not filled exists in the second interaction engine; and if so, feeding back slot data missing information to the third party.
For example, when a user shares an interaction engine, the intelligent interaction platform counts the related information of the shared user. When the interactive engine optimization is executed and the slot position designed in the interactive engine is found not to obtain the fillable key knowledge data from other interactive engines with the same task, the sharing user corresponding to the interactive engine can be searched in the interactive engine information list, slot position data missing information is fed back to the user to request the response of the user, and if the user responds to the feedback request and carries available key knowledge data, the key knowledge data can be filled in the corresponding slot position in a supplementing manner.
Example two
Based on the same concept as the message pushing method in the foregoing embodiment, the embodiment of the present invention further provides an intelligent interaction engine optimization device, which may be independent of the intelligent interaction platform, or may be implemented by being embedded in the intelligent interaction platform. Referring to fig. 3, the apparatus includes:
the interaction engine acquisition module is used for acquiring a first interaction engine shared by a third party;
the extraction module is used for extracting a first element in the first interaction engine and first data information associated with the first element;
the matching module is used for acquiring a second element matched with the first element in a second interaction engine;
and the filling module is used for filling the first data information into a second element in the second interaction engine.
Preferably, the first element comprises a first slot;
the second element comprises a second slot position;
the first data information associated with the first element comprises first key knowledge data associated with a first slot;
the first interaction engine and the second interaction engine have the same task attributes.
The intelligent interaction platform can open an interface to a user, so that the user can create own tasks through the open interface, and an interaction engine based on the tasks is generated by packaging the tasks created and completed by the user. And simultaneously, the user can also directly upload the packaged interaction engine which accords with the platform format by using the interface which is opened to the user.
Specifically, the interaction engine acquisition module is further configured to acquire one or more interaction engines created or uploaded by a third party through an open interface of an intelligent interaction platform; or one or more interaction engines shared in a network platform captured through network searching. For example, acquiring one or more interaction engines created or uploaded by a third party through an open interface of an intelligent interaction platform; the multiple users upload the interaction engine1, the interaction engine2, … … and the interaction engine n based on the same task on the intelligent interaction platform. In step 101, based on the task attribute of the interaction engine to be optimized, an interaction engine shared by a third party and conforming to the same task can be first found on the intelligent interaction platform, so that the interaction engine initially developed in the intelligent interaction platform and based on the task can be subsequently optimized by using the interaction engines. Or, for example, in some public resource sharing platforms, there are interaction engines where users voluntarily share and provide communication downloads; the interaction engine of the type can be captured by utilizing network search, and the interaction engines initially developed in the intelligent interaction platform based on the task can be optimized by utilizing the interaction engines in the follow-up process.
Specifically, the apparatus further creates a module;
the matching module is further used for judging whether a slot position matched with the first slot position exists in a second interaction engine; if not, the creating module creates a second slot position matched with the first slot position.
Specifically, the second slot has a plurality of candidate bits;
the filling module is further configured to fill the first key knowledge data into the plurality of candidate bits according to the priority of the first key knowledge data.
Specifically, the device further comprises a priority determining module
The priority determining module is used for acquiring the download quantity and/or the recommendation value of the first interaction engine, and determining the priority level of the first key knowledge data associated with the first slot position in the first interaction engine according to the download quantity and/or the recommendation value. For example, the download amount and recommendation value of each interactive ENGINE are counted through the interactive ENGINE information list, the priority level of the key knowledge data extracted from the interactive ENGINE is set by how much the download amount is, or the priority level of the key knowledge data extracted from the interactive ENGINE is set by the level of the evaluation value, or the value weight of the interactive ENGINE is calculated by combining the download amount and the recommendation value, and the priority level of the key knowledge data extracted from the interactive ENGINE is set by the level of the value weight, for example, for the same TASK attribute TASK2, it is known that the value weight of the ENGINE3 created by the UE3 is the highest by calculation, and thus the slot extracted from the ENGINE3 and the priority level of the key knowledge data associated with the slot are the highest.
Specifically, the apparatus further includes a screening module configured to screen the plurality of key knowledge data filled in the second slot to delete the error data. For example, for the same slot in the same task, if the slot description information is the same slot for transfer, the key knowledge data filled in the slot is used as the station a in the shared ENGINE1 by the user 1; the key knowledge data that the user 2 fills the slot in the shared entry 2 is the station B; the key knowledge data that user 5 fills in the slot in his shared ENGINE5 is the C site. The station A and the station B belong to optional transfer stations of two transfer lines, and the station C is not a transfer station and may be error data which is key knowledge data filled in the slot position due to the fact that a user fills in errors. In order to avoid providing error information to the user when the interaction engine is subsequently used, the filled multiple pieces of key knowledge data need to be screened, the error data is found, and the error data is removed, so that the use experience of the optimized interaction engine is guaranteed.
Specifically, the device further comprises a feedback module
The matching module is further used for judging whether a third slot position which is not filled exists in the second interaction engine;
and if so, the feedback module feeds back the slot missing information to the third party.
For example, when the users share the interaction engine, the intelligent interaction platform counts the related information of the shared users. When the interactive engine optimization is executed and the slot position designed in the interactive engine is found not to obtain the fillable key knowledge data from other interactive engines with the same task, the sharing user corresponding to the interactive engine can be searched in the interactive engine information list, slot position data missing information is fed back to the user to request the response of the user, and if the user responds to the feedback request and carries available key knowledge data, the key knowledge data can be filled in the corresponding slot position in a supplementing manner.
Based on the same concept as the message pushing method in the foregoing embodiment, an embodiment of the present invention further provides a terminal device, where the terminal device includes the intelligent interaction engine optimization apparatus in the foregoing second embodiment.
Specifically, the terminal device may be a computer, a tablet computer, a mobile phone, a smart assistant, a vehicle-mounted terminal, and the like.
Based on the same concept as the message pushing method in the foregoing embodiment, an embodiment of the present invention further provides a computer device, where the computer device includes a processor and a memory, where a computer program operable on the processor is stored in the memory, and when the computer program is executed by the processor, the computer program implements a corresponding intelligent interaction engine optimization method.
Based on the same concept as the intelligent interaction engine optimization method in the foregoing embodiments, the embodiments of the present invention further provide a computer-readable storage medium, in which a computer program operable on a processor is stored, and when the computer program is executed, the method for implementing intelligent interaction engine optimization is implemented.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, it should be noted that, for those skilled in the art, many modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.