CN111475611B - Dictionary management method, dictionary management device, computer equipment and storage medium - Google Patents
Dictionary management method, dictionary management device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111475611B CN111475611B CN202010136639.8A CN202010136639A CN111475611B CN 111475611 B CN111475611 B CN 111475611B CN 202010136639 A CN202010136639 A CN 202010136639A CN 111475611 B CN111475611 B CN 111475611B
- Authority
- CN
- China
- Prior art keywords
- dictionary
- target
- editing
- page
- vocabulary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3343—Query execution using phonetics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Acoustics & Sound (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
- Machine Translation (AREA)
Abstract
The application discloses a dictionary management method, a dictionary management device, computer equipment and a storage medium, and belongs to the technical field of voice interaction. According to the method and the device, the target dictionary is searched in the plurality of dictionaries through the target query condition in the query page, manual query in a large number of JSON files is not needed, query time is saved, the editing page of the target dictionary comprises a plurality of editing function items, each editing function item corresponds to one dictionary editing operation, the target dictionary is automatically subjected to target editing operation based on the target editing function item triggered in the editing page, an operation result is displayed, the JSON files are not needed to be opened manually for operation, the operation flow is optimized, and the dictionary operation efficiency is improved.
Description
Technical Field
The present application relates to the field of voice interaction technologies, and in particular, to a dictionary management method, a dictionary management device, a computer device, and a storage medium.
Background
Along with the rapid development of technology, the voice interaction technology is silently integrated into the life and work of people. Such as a smart speaker, a smart robot, etc. The computer equipment generally stores a large number of dictionaries as supporting data for technical realization, recognizes characters corresponding to user sentences on the basis of the large number of dictionaries, understands and meets the requirements of users, and realizes the voice interaction process between the users and the equipment.
The dictionary comprises a collection of a plurality of words belonging to the same field, the computer equipment is usually internally provided with a large amount of data such as intentions, modes and the like, the intentions are usually a function or a process for meeting the demands of users, the modes are usually an expression sentence formed by combining the plurality of words, the computer equipment can combine the plurality of words in the quoted dictionary into a mode by referring to the words in the dictionary, and the modes can represent the intentions. A large number of dictionaries and related intent, patterns, etc. of data are typically stored in computer devices in JSON (JavaScript Object Notation, object profile) format files. In the processes of problem positioning, new demand development and the like, staff often needs to perform operations such as inquiring, editing and the like on a dictionary. Typically, workers are in a large number of JSON files for manual querying. For example, a query logic instruction is written manually to search related dictionaries from all JSON files, and then the dictionaries are opened next to each other to screen or modify dictionary contents, so that the operation efficiency is low due to huge data volume. Therefore, there is a need for a dictionary management method to improve the operation efficiency of the dictionary.
Disclosure of Invention
The embodiment of the application provides a dictionary management method, a dictionary management device, computer equipment and a storage medium, which can improve the operation efficiency of a dictionary. The technical scheme is as follows:
in one aspect, a dictionary management method is provided, the method including:
responding to a dictionary inquiry instruction, and displaying a target dictionary conforming to target inquiry conditions in an inquiry page based on the target inquiry conditions input in the inquiry page, wherein the dictionary inquiry instruction is used for indicating to inquire a target dictionary conforming to the target inquiry conditions in a plurality of dictionaries of a voice interaction system;
responding to a dictionary editing instruction of the target dictionary, displaying an editing page of the target dictionary, wherein the editing page comprises a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to one dictionary editing operation;
and performing target editing operation corresponding to the target editing function item on the target dictionary based on the triggered target editing function item in the editing page, and displaying an operation result of the target dictionary in the editing page.
In one possible implementation manner, the performing, based on the triggered target editing function item in the editing page, a target editing operation corresponding to the target editing function item on the target dictionary, and displaying, in the editing page, an operation result of the target dictionary includes any one of the following:
Responding to a trigger event of adding a vocabulary category item in the editing page, acquiring a new category and a first new vocabulary included in the new category, and adding the new category and the first new vocabulary into a vocabulary list area of the editing page for display;
responding to a trigger event of adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary into the existing vocabulary category of the vocabulary list area for display;
and deleting the vocabulary corresponding to the deleted vocabulary item in the vocabulary list area in response to the trigger event of deleting the vocabulary item in the editing page.
In one possible implementation, the method further includes:
and responding to a trigger event of a new dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary into a dictionary list area of the editing page for display.
In one possible implementation manner, the query page includes a dictionary category query box and a dictionary name query box, and the displaying, in response to a dictionary query instruction, a target dictionary meeting the target query condition in the query page based on the target query condition input in the query page includes any one of the following:
Responding to the dictionary inquiry instruction, acquiring a target category input in the dictionary category inquiry box, and displaying at least one target dictionary belonging to the target category in the inquiry page;
and responding to the dictionary inquiry instruction, acquiring the target names input in the dictionary name inquiry box, and displaying at least one target dictionary with the dictionary names containing the target names in the inquiry page.
In one possible implementation, the query page includes at least one target dictionary, each target dictionary corresponding to an editing operation entry, and the displaying the editing page of the target dictionary in response to a dictionary editing instruction to the target dictionary includes:
and responding to a trigger event of an editing operation entry corresponding to any target dictionary in the query page, receiving a dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation entry, and displaying an editing page of the target dictionary.
In one possible implementation, the editing page further includes a status viewing function of the target dictionary, and the method further includes:
in response to a trigger event of the state viewing function item, displaying a state list page of the target dictionary, the state list page including at least one intent referencing a vocabulary in the target dictionary and at least one pattern referenced by the at least one intent;
The pattern refers to an expression sentence composed of a plurality of words in a dictionary, and the intention is to refer to a function or flow which uses a plurality of patterns to represent the demands of users.
In one possible implementation, the status list page further includes an intent filter box and a pattern filter box, the method further including any of:
responding to an intention screening instruction, screening out target intention meeting the intention screening condition based on the intention screening condition input in the intention screening box, and displaying the target intention in the state list page;
and responding to a mode screening instruction, screening out a target mode conforming to the mode screening condition based on the mode screening condition input in the mode screening box, and displaying the target mode in the state list page.
In one possible implementation, the status list page further includes a pattern test set derivation item and an intent test set derivation item, the method further comprising:
responding to a trigger event of a mode test set export item corresponding to any mode in the state list page, and acquiring a mode test set corresponding to the mode based on a plurality of dictionaries referenced by the mode, wherein the mode test set comprises a plurality of vocabularies which are arranged according to a target sequence in the plurality of dictionaries referenced by the mode;
And responding to a trigger event of an intention test set export item corresponding to any intention in the state list page, and acquiring a mode test set of a plurality of modes included by the intention based on the plurality of modes included by the intention.
In one possible implementation, the method further includes:
responding to an editing instruction of any intention or any mode in the state list page, carrying out target state editing operation corresponding to the target state editing item on any intention or any mode based on the triggered target state editing item in the state list, and displaying an operation result of any intention or any mode on the state list page.
In another aspect, a dictionary management method is provided, the method including:
determining dictionary reference information of an error pattern in response to a presence event of the error pattern in a plurality of patterns included in the voice interaction system, wherein the voice interaction system further comprises a plurality of dictionaries, each pattern refers to an expression sentence composed of a plurality of vocabularies in the reference dictionary, and the dictionary reference information is used for indicating at least one target dictionary referenced by the error pattern;
for each target dictionary in the at least one target dictionary, responding to a dictionary inquiry instruction, and acquiring target inquiry conditions input in an inquiry page, wherein the target inquiry conditions are used for indicating target dictionaries referenced by the error mode;
Inquiring the plurality of dictionaries based on the target inquiry conditions, and displaying a target dictionary which accords with the target inquiry conditions in the plurality of dictionaries of the voice interaction system in the inquiry page;
responding to a dictionary editing instruction of the target dictionary, displaying an editing page of the target dictionary, wherein the editing page comprises a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to one dictionary editing operation;
and performing target editing operation corresponding to the target editing function item on the target dictionary based on the target editing function item in the plurality of editing function items, and displaying an operation result of the target dictionary in the editing page, wherein the target editing operation is used for adjusting the target dictionary into a second dictionary which forms a correct mode.
In another aspect, there is provided a dictionary management apparatus, the apparatus including:
the first display module is used for responding to a dictionary inquiry instruction, displaying a target dictionary conforming to target inquiry conditions in an inquiry page based on the target inquiry conditions input in the inquiry page, wherein the dictionary inquiry instruction is used for indicating to inquire a target dictionary conforming to the target inquiry conditions in a plurality of dictionaries of the voice interaction system;
The second display module is used for responding to a dictionary editing instruction of the target dictionary and displaying an editing page of the target dictionary, wherein the editing page comprises a plurality of editing function items and a plurality of vocabularies of the target dictionary, and each editing function item corresponds to one dictionary editing operation;
and the editing module is used for carrying out target editing operation corresponding to the target editing function item on the target dictionary based on the triggered target editing function item in the editing page, and displaying an operation result of the target dictionary in the editing page.
In one possible implementation, the editing module is further configured to:
responding to a trigger event of adding a vocabulary category item in the editing page, acquiring a new category and a first new vocabulary included in the new category, and adding the new category and the first new vocabulary into a vocabulary list area of the editing page for display;
responding to a trigger event of adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary into the existing vocabulary category of the vocabulary list area for display;
And deleting the vocabulary corresponding to the deleted vocabulary item in the vocabulary list area in response to the trigger event of deleting the vocabulary item in the editing page.
In one possible implementation, the apparatus further includes:
and the third display module is used for responding to a trigger event of the new dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary into a dictionary list area of the editing page for display.
In one possible implementation manner, the first display module is further configured to:
responding to the dictionary inquiry instruction, acquiring a target category input in the dictionary category inquiry box, and displaying at least one target dictionary belonging to the target category in the inquiry page;
and responding to the dictionary inquiry instruction, acquiring the target names input in the dictionary name inquiry box, and displaying at least one target dictionary with the dictionary names containing the target names in the inquiry page.
In one possible implementation manner, the second display module is further configured to respond to a trigger event of an editing operation entry corresponding to any target dictionary in the query page, receive the dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation entry, and display an editing page of the target dictionary.
In one possible implementation, the apparatus further includes:
a fourth display module for displaying a status list page of the target dictionary in response to a trigger event of the status viewing function item, the status list page including at least one intent referencing a vocabulary in the target dictionary and at least one pattern referenced by the at least one intent;
the pattern refers to an expression sentence composed of a plurality of words in a dictionary, and the intention is to refer to a function or flow which uses a plurality of patterns to represent the demands of users.
In one possible implementation, the apparatus further includes any one of:
the first screening module is used for responding to an intention screening instruction, screening out target intention meeting the intention screening condition based on the intention screening condition input in the intention screening frame, and displaying the target intention in the state list page;
and the second screening module is used for responding to the mode screening instruction, screening out a target mode conforming to the mode screening condition based on the mode screening condition input in the mode screening frame, and displaying the target mode in the state list page.
In one possible implementation, the apparatus further includes:
the first acquisition module is used for responding to a trigger event of a mode test set export item corresponding to any mode in the state list page, acquiring a mode test set corresponding to the mode based on a plurality of dictionaries referenced by the mode, wherein the mode test set comprises a plurality of vocabularies which are arranged according to a target sequence in the plurality of dictionaries referenced by the mode;
the second acquisition module is used for responding to a trigger event of an intention test set export item corresponding to any intention in the state list page, and acquiring a mode test set of a plurality of modes included by the intention based on the plurality of modes included by the intention.
In one possible implementation, the apparatus further includes:
and the fifth display module is used for responding to an editing instruction of any intention or any mode in the state list page, carrying out target state editing operation corresponding to the target state editing item on any intention or any mode based on the triggered target state editing item in the state list, and displaying an operation result of any intention or any mode on the state list page.
In another aspect, there is provided a dictionary management apparatus, the apparatus including:
a determining module, configured to determine dictionary reference information of an error mode in response to a presence event of the error mode in a plurality of modes included in the voice interaction system, where each mode refers to an expression sentence composed of a plurality of vocabularies in a reference dictionary, and the dictionary reference information is used to indicate at least one target dictionary referenced by the error mode;
the acquisition module is used for responding to a dictionary inquiry instruction for each target dictionary in the at least one target dictionary, and acquiring target inquiry conditions input in an inquiry page, wherein the target inquiry conditions are used for indicating the target dictionary referenced by the error mode;
the display module is used for inquiring the plurality of dictionaries based on the target inquiry conditions, and displaying target dictionaries which accord with the target inquiry conditions in the plurality of dictionaries of the voice interaction system in the inquiry page;
the display module is further used for responding to a dictionary editing instruction of the target dictionary, displaying an editing page of the target dictionary, wherein the editing page comprises a plurality of editing function items and a plurality of vocabularies of the target dictionary, and each editing function item corresponds to one dictionary editing operation;
And the editing module is used for carrying out target editing operation corresponding to the target editing function item on the target dictionary based on the target editing function item in the plurality of editing function items, displaying an operation result of the target dictionary in the editing page, and adjusting the target dictionary into a second dictionary which forms a correct mode.
In another aspect, a computer device is provided that includes a processor and a memory having at least one instruction stored therein that is loaded and executed by the processor to perform operations as performed by the dictionary management method described above.
In another aspect, a computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement operations performed by a dictionary management method as described above is provided.
The technical scheme provided by the embodiment of the application has the beneficial effects that:
the target dictionary is searched in a plurality of dictionaries through searching target searching conditions in the page, manual searching in a large number of JSON files is not needed, searching time is saved, the editing page of the target dictionary comprises a plurality of editing function items, each editing function item corresponds to one dictionary editing operation, the target dictionary is automatically subjected to target editing operation based on the target editing function item triggered in the editing page, an operation result is displayed, the JSON files are not needed to be opened manually for operation, the operation flow is optimized, and the dictionary operation efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a dictionary management method provided by an embodiment of the present application;
FIG. 2 is a flowchart of a dictionary management method provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a query page according to an embodiment of the present application;
FIG. 4 is a schematic view of an edit page according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a status list page according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a status list page according to an embodiment of the present application;
FIG. 7 is a flowchart of a dictionary management method provided by an embodiment of the present application;
FIG. 8 is a schematic diagram of a dictionary management apparatus according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a dictionary management apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application;
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a flowchart of a dictionary management method according to an embodiment of the present application. The execution body of the embodiment of the application is a computer device, referring to fig. 1, the method includes:
101. responding to a dictionary inquiry instruction, and displaying a target dictionary conforming to target inquiry conditions in an inquiry page based on the target inquiry conditions input in the inquiry page, wherein the dictionary inquiry instruction is used for indicating to inquire a target dictionary conforming to the target inquiry conditions in a plurality of dictionaries of a voice interaction system;
102. responding to a dictionary editing instruction of the target dictionary, displaying an editing page of the target dictionary, wherein the editing page comprises a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to one dictionary editing operation;
103. And based on the triggered target editing function item in the editing page, performing target editing operation corresponding to the target editing function item on the target dictionary, and displaying an operation result of the target dictionary in the editing page.
In one possible implementation manner, the target editing operation corresponding to the target editing function item is performed on the target dictionary based on the triggered target editing function item in the editing page, and the operation result of displaying the target dictionary in the editing page includes any one of the following:
responding to a trigger event of adding a vocabulary category item in the editing page, acquiring a new category and a first new vocabulary included in the new category, and adding the new category and the first new vocabulary into a vocabulary list area of the editing page for display;
responding to a trigger event of adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary into the existing vocabulary category of the vocabulary list area for display;
and responding to a trigger event for deleting the vocabulary item in the editing page, and deleting the vocabulary corresponding to the deleted vocabulary item in the vocabulary list area.
In one possible implementation, the method further includes:
And responding to a trigger event of a new dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary into a dictionary list area of the editing page for display.
In one possible implementation, the query page includes a dictionary category query box and a dictionary name query box, and the displaying, in response to the dictionary query instruction, the target dictionary meeting the target query condition in the query page based on the target query condition entered in the query page includes any one of:
responding to the dictionary inquiry instruction, acquiring a target category input in the dictionary category inquiry box, and displaying at least one target dictionary belonging to the target category in the inquiry page;
and responding to the dictionary inquiry instruction, acquiring the target name input in the dictionary name inquiry box, and displaying at least one target dictionary with the dictionary name containing the target name in the inquiry page.
In one possible implementation, the query page includes at least one target dictionary, each target dictionary corresponding to an editing operation entry, the displaying the editing page of the target dictionary in response to a dictionary editing instruction to the target dictionary includes:
Responding to a trigger event of an editing operation entry corresponding to any target dictionary in the query page, receiving a dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation entry, and displaying an editing page of the target dictionary.
In one possible implementation, the edit page further includes a status view function of the target dictionary, the method further comprising:
in response to a trigger event of the state viewing function item, displaying a state list page of the target dictionary, the state list page including at least one intent referencing a vocabulary in the target dictionary and at least one pattern referenced by the at least one intent;
the pattern refers to an expression sentence composed of a plurality of words in a dictionary, and the intention is to refer to a function or flow which uses a plurality of patterns to represent the demands of users.
In one possible implementation, the status list page further includes an intent filter box and a pattern filter box, the method further including any of:
responding to an intention screening instruction, screening out target intention meeting the intention screening condition based on the intention screening condition input in the intention screening frame, and displaying the target intention in the state list page;
And responding to a mode screening instruction, screening out a target mode conforming to the mode screening condition based on the mode screening condition input in the mode screening box, and displaying the target mode in the state list page.
In one possible implementation, the status list page further includes a pattern test set export item and an intent test set export item, the method further comprising:
responding to a trigger event of a mode test set export item corresponding to any mode in the state list page, and acquiring a mode test set corresponding to the mode based on a plurality of dictionaries referenced by the mode, wherein the mode test set comprises a plurality of vocabularies which are arranged according to a target sequence in the plurality of dictionaries referenced by the mode;
and responding to a trigger event of an intention test set export item corresponding to any intention in the state list page, and acquiring a mode test set of a plurality of modes included by the intention based on the plurality of modes included by the intention.
In one possible implementation, the method further includes:
responding to an editing instruction of any intention or any mode in the state list page, carrying out target state editing operation corresponding to the target state editing item of any intention or any mode based on the triggered target state editing item in the state list, and displaying an operation result of any intention or any mode in the state list page.
According to the method and the device, the target dictionary is searched in the plurality of dictionaries through the target query condition in the query page, manual query in a large number of JSON files is not needed, query time is saved, the editing page of the target dictionary comprises a plurality of editing function items, each editing function item corresponds to one dictionary editing operation, the target dictionary is automatically subjected to target editing operation based on the target editing function item triggered in the editing page, an operation result is displayed, the JSON files are not needed to be opened manually for operation, the operation flow is optimized, and the dictionary operation efficiency is improved.
Fig. 2 is a flowchart of a dictionary management method according to an embodiment of the present application. The execution subject of the embodiment of the application is a computer device, for example, a server or a terminal of the computer device. The server may be a background server of a voice interaction application, and the terminal may be a voice interaction device, for example, an intelligent sound box, an intelligent robot, and the like. Referring to fig. 2, the method includes:
201. in response to the dictionary lookup instruction, the computer device displays a target dictionary in accordance with target lookup conditions entered in a lookup page based on the target lookup conditions in the lookup page.
The dictionary inquiry instruction is used for indicating to find out a target dictionary which accords with the target inquiry condition in a plurality of dictionaries of the voice interaction system; in the embodiment of the application, the computer equipment can be provided with a voice interaction system for realizing the voice interaction process with the user. The voice interaction system includes a plurality of dictionaries, each dictionary including a plurality of words. The computer device may manage the plurality of dictionaries, and the management process may include an operation process of inquiring, editing, viewing a usage state of the dictionary, and the like.
In this step, the query page may include a plurality of input boxes into which the user may input the query conditions, and the computer device may acquire a plurality of query conditions based on the plurality of input boxes to perform the query of the target dictionary. In one possible implementation, the query conditions may include conditions for both dictionary categories and dictionary names. The dictionary category represents a domain to which a plurality of words included in the dictionary belong. The query page includes a dictionary category query box and a dictionary name query box, and the computer device can query based on a category dimension entered in the dictionary category query box and a name dimension entered in the dictionary name query box, respectively. In one possible example, the process of querying the computer device based on the dictionary categories may include: in response to the dictionary lookup instruction, the computer device obtains a target category entered in the dictionary category lookup box and displays at least one target dictionary belonging to the target category in the lookup page. The dictionary categories may be configured based on the need, for example, music, chat, games, etc. may all be dictionary categories. In another possible example, the process of the computer device querying based on the dictionary name may include: in response to a dictionary lookup instruction, the computer device obtains a target name entered in the dictionary name lookup box, and displays in the lookup page at least one target dictionary whose dictionary name contains the target name. The computer device can query the target names as keywords, and display the dictionary with the target names in the dictionary names as query results.
It should be noted that, the computer device may display the dictionary name and the dictionary category of the target dictionary in the query page. If the number of the searched target dictionaries is a plurality, the computer device may display the plurality of target dictionaries in a list form. In addition, the query page may further include an editing operation entry of the dictionary, and the user may perform editing operation on the dictionary by triggering the editing operation entry. As shown in fig. 3, the query page includes a category input box, which may be a representation of a drop down list whose contents are the created dictionary categories, and a name input box. In addition, the header of the dictionary list in the query page may include three items of dictionary category, dictionary name, and operation, which may include a view operation, an edit operation, and a delete operation. Of course, the operation may also be configured based on needs, for example, may also include an ignore operation, a set-top operation, and so on.
202. In response to a dictionary compiling instruction for the target dictionary, the computer device displays a compiling page of the target dictionary.
The editing page comprises a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to one dictionary editing operation. The computer device may display a plurality of words included in the target dictionary and names of the dictionary on the edit page. In one possible implementation, the edit page includes a dictionary list area for displaying the target dictionary and a vocabulary list area for displaying the vocabulary included in the target dictionary, e.g., the dictionary list area may include dictionary names of one or more target dictionaries, and the vocabulary list area may include a plurality of vocabularies included in the selected target dictionary in the dictionary list area.
In one possible implementation, the plurality of editing function items may include a new dictionary item for triggering the computer device to newly build a dictionary in the dictionary list area, an add vocabulary category item for triggering the computer device to add a new category of vocabulary in the vocabulary list area, an add vocabulary item for triggering the computer device to add a new vocabulary in an existing vocabulary category in the vocabulary list area, and a delete vocabulary item for triggering the computer device to delete a vocabulary in the vocabulary list area. In one possible example, the newly created dictionary entry may be located in a dictionary list area that may also include a batch import dictionary entry for triggering a batch creation of multiple dictionaries by the computer device at once. Of course, in the dictionary list area, each target dictionary may also correspond to a deletion function item for deleting the corresponding target dictionary. In one possible example, the added vocabulary category item may be located in a vocabulary list area. The add vocabulary category item, add vocabulary item, and delete vocabulary item may be located in a vocabulary list area.
In one possible implementation, the edit page may further include a search input box for searching the dictionary based on the target dictionary name or the target vocabulary. In one possible example, the search input box may be located in a dictionary list area, and the computer device may obtain a target dictionary name or a target vocabulary based on the search input box, and further screen a target dictionary corresponding to the target dictionary name from a plurality of target dictionaries included in the dictionary list area, or a target dictionary including the target vocabulary.
For example, as shown in fig. 4, the left side of the editing page is a dictionary list area, the right side is a vocabulary list area, and the left side includes a plurality of dictionary names and search input boxes, newly created dictionary entries, batch-imported dictionary entries, and the like. The right side includes a plurality of words included in the target dictionary selected on the left side. Further, the vocabulary list area may further include a plurality of sub-areas, each sub-area corresponding to one vocabulary category, the plurality of vocabularies may be displayed according to the vocabulary category, and vocabularies of different categories are located in different sub-areas.
In one possible embodiment, the query page may include an edit manipulation portal, the query page including at least one target dictionary, i.e., one or more target dictionaries, each target dictionary may correspond to an edit manipulation portal for triggering a computer device to display the edit page, and thus, in response to a dictionary edit instruction to the target dictionary, the step of the computer device displaying the edit page of the target dictionary may include: and responding to a trigger event of an editing operation entry corresponding to any target dictionary in the query page, receiving a dictionary editing instruction by the computer equipment based on the target dictionary corresponding to the triggered editing operation entry, and displaying the editing page of the target dictionary by the computer equipment. The embodiment of the application does not specifically limit the specific expression form of the editing operation entry. As shown in fig. 3, the editing operation entry corresponding to the target dictionary may be an editing button of the same line as the target dictionary name.
203. And the computer equipment performs target editing operation corresponding to the target editing function item on the target dictionary based on the triggered target editing function item in the editing page, and the operation result of the target dictionary is displayed in the editing page.
The editing page may include a plurality of editing function items, each corresponding to an editing operation. In this step, the editing function item may include adding a vocabulary category item, adding a vocabulary item, and deleting a vocabulary item, and accordingly, this step may be implemented in any one of the following three manners.
In the first mode, in response to a trigger event for adding a vocabulary category item in the editing page, the computer equipment acquires a new category and a first new vocabulary included in the new category, and adds the new category and the first new vocabulary into a vocabulary list area of the editing page for display.
The added vocabulary category item may be located in a vocabulary list area, and the computer device may obtain a new added category and a plurality of new added vocabularies, store the new added category and the first new added vocabulary in association in a current target dictionary, and display the new added category and the first new added vocabulary in the new added area in the vocabulary list area. As shown in FIG. 4, the newly added vocabulary category item may be represented as a run of a new row of buttons, and the newly added vocabulary item may be represented in the form of a button "please enter a dictionary value" in the subregion where the existing vocabulary is located.
In a second mode, in response to a trigger event for adding vocabulary items in the editing page, the computer device obtains a second newly added vocabulary, and adds the second newly added vocabulary to the existing vocabulary category in the vocabulary list area for display.
As shown in FIG. 4, the added vocabulary item may be located in an existing sub-area of the vocabulary list area, each sub-area corresponding to an added vocabulary item, and in response to a trigger event for the added vocabulary item for any sub-area, the computer device may obtain a plurality of newly added vocabularies, obtain one or more second newly added vocabularies, and display the second newly added vocabularies in the sub-area corresponding to the added vocabulary item.
And in a third mode, responding to a trigger event for deleting the vocabulary item in the editing page, and deleting the vocabulary corresponding to the deleted vocabulary item in the vocabulary list area by the computer equipment.
Each deleted vocabulary item may correspond to a vocabulary, and the computer device may delete the vocabulary corresponding to the deleted vocabulary item from the dictionary and may no longer be displayed in the vocabulary list area. As shown in fig. 4, the vocabulary in each sub-region may be displayed in the form of a label, and the deleted vocabulary item of each vocabulary may be displayed in the form of a symbol "x" on the right upper side of the vocabulary label.
In one possible implementation, the computer device may further add a dictionary to the dictionary list area, and the process may include: and responding to a trigger event of a new dictionary item in the editing page, acquiring a first dictionary to be newly built by the computer equipment, and adding the first dictionary into a dictionary list area of the editing page for display. The computer equipment acquires the first dictionary, adds the first dictionary into the existing dictionary database of the voice interaction system for storage, adds the dictionary name of the newly-built first dictionary into the dictionary list area for display, and responds to a trigger event of the dictionary name of the first dictionary, the computer equipment displays the vocabulary included in the first dictionary in the vocabulary list area. As shown in fig. 4, the user may trigger a newly built dictionary entry in the left dictionary list area to trigger the computer device to newly build a dictionary in the dictionary list area. The computer device can trigger the batch import dictionary item, acquire a plurality of first dictionaries at a time, and add dictionary names of the plurality of first dictionaries to a dictionary list area for display.
It should be noted that, in step 201, the computer device may implement multidimensional and accurate query on the dictionary through multiple query input boxes in the query page, so as to improve the efficiency and accuracy of the dictionary query. In addition, the computer device realizes editing operations of various types of dictionary, such as multi-level operations of new dictionary, newly-added vocabulary category and the like, through the steps 202-203 and the plurality of editing function items of the editing page, enriches the dictionary management modes and improves the operation efficiency. In addition, the computer equipment solves the problem that only a certain part of vocabulary in the dictionary can not be cited by only adding the vocabulary category, further improves the use efficiency of the dictionary and improves the accuracy and efficiency of the voice interaction process.
In one possible implementation, the edit page further includes a state view function of the target dictionary for triggering a computer device to query a target dictionary for a use state including an intent referencing a vocabulary in the target dictionary and a pattern included in the intent. Wherein if the target dictionary includes a plurality of vocabulary categories, the voice interaction system further stores a plurality of intents and a plurality of patterns, the computer device may refer to the entire target dictionary or to a portion of the vocabulary in the target dictionary, such as to the vocabulary included in one of the vocabulary categories, when composing the patterns or intents. In one possible example, the various ways of referencing and their corresponding reference statements may be represented as: the reference sentence corresponding to the vocabulary of the reference target dictionary may be "majoriType", the reference sentence corresponding to the vocabulary of only one vocabulary category in the reference target dictionary may be "majoriTpe & minurType", and the reference sentence corresponding to the vocabulary of other vocabulary categories except one vocabulary category (minurType) in the reference target dictionary may be "majoriType-! minorType).
In the embodiment of the present application, the computer device may implement a query process for the usage status of the target dictionary through the following step 204.
204. In response to a trigger event for the status viewing function item, the computer device displays a status list page for the target dictionary.
Wherein the state list page includes at least one intent that references a vocabulary in the target dictionary and at least one schema referenced by the at least one intent; a pattern refers to an expression sentence consisting of a plurality of words in a dictionary, and is intended to refer to a function or flow that uses a plurality of patterns to represent a user's needs.
As shown in fig. 4, the state view function item may be represented as a view mode button in an editing page, and the state view function item may be represented in other forms, which is not particularly limited in the embodiment of the present application. In response to a trigger event of the view function button, a status list page displayed by the computer device is shown in FIG. 5, the status list page including all intents and modes referencing the target dictionary.
In one possible implementation, the computer device may also filter for intent and pattern, e.g., the status list page may also include an intent filter box and a pattern filter box through which the computer device filters. In one possible example, the process of the computer device screening for intent may include: in response to the intent screening instruction, the computer device may screen out a target intent that meets the intent screening condition based on the intent screening condition entered in the intent screening box, and display the target intent in the status list page. The intent filter box may be in the form of an intent drop down list including a plurality of existing intents therein. In one possible implementation, the computer device may also categorize multiple intents, e.g., multiple intents divided into different domains, and may also screen in connection with domains and intents. The process may include: in response to the domain screening instruction, the computer device screens out a plurality of intents belonging to the target domain according to the target domain input in the domain screening frame, and in response to the intent screening instruction, the computer device screens out a target intent conforming to the intent screening condition from a plurality of intents belonging to the target domain according to the intent screening condition input in the intent screening frame. As shown in fig. 5, the table header in the status list page includes: domain, intent name, intent description and operation, wherein the first intent in the list of fig. 5 shows the 3 common expressions referenced by the first intent, i.e., the 3 patterns. Wherein, as shown in fig. 6, the state list page may include an intention to reference the target dictionary, and when the expanded icon on the left side of the intention is triggered, the computer device will display the 3 common modes referenced by the intention under the intention, and after expansion, the page is shown in fig. 5.
In one possible example, the domain input box and the intention input box may each be in the form of a drop-down list, the computer device may pre-establish an association relationship between each domain of the domain input box and each intention in the intention input box, the user may first select a target domain in the domain drop-down list, the computer device may display a plurality of intents belonging to the target domain in the intention drop-down list based on the association relationship between the intents and the domains, and perform screening based on the target intention selected by the user among the plurality of intents.
In another possible example, the process of screening patterns by the computer device may include: in response to a pattern screening instruction, the computer device may screen out a target pattern that meets the pattern screening condition based on the pattern screening condition input in the pattern screening box, and display the target pattern in the status list page. As shown in fig. 5, the user may directly input any pattern or keyword in the pattern screening box, and the computer device may screen out a matching target pattern, for example, a target pattern including a pattern keyword, based on the input content, thereby implementing fuzzy screening.
In one possible implementation, the computer device may also derive a test set of intent or patterns. For example, the state list page further includes a pattern test set export item and an intent test set export item, and the test set export process may include: responding to a trigger event of a mode test set deriving item corresponding to any mode in the state list page, and acquiring a mode test set corresponding to the mode based on a plurality of dictionaries referenced by the mode, wherein the mode test set comprises a plurality of vocabularies which are arranged according to a target sequence in the plurality of dictionaries referenced by the mode, the plurality of vocabularies in the plurality of dictionaries can be referenced by the mode and are arranged according to the target sequence, namely, the target sequence can be the combined sequence of the plurality of vocabularies in the plurality of dictionaries referenced by the mode; in response to a trigger event of an intent test set derivation item corresponding to any intent in the status list page, the computer device obtains a pattern test set of a plurality of patterns included by the intent based on the plurality of patterns included by the intent. As shown in fig. 5, the pattern test set derivation items may be displayed in the form of a derivation test set button located in the previous row of the common expression, and the intention test set derivation items corresponding to the intention may be displayed in the form of a derivation test set button located in the same row as the first intention.
In one possible implementation, the computer device may also perform editing operations on the patterns and intents, or on dictionaries referenced by patterns and intents based on the status list page, or the like. In one possible example, the process of editing the pattern and intent by the computer device may include: and responding to an editing instruction of any intention or any mode in the state list page, performing target state editing operation corresponding to the target state editing item on any intention or any mode by the computer equipment based on the triggered target state editing item in the state list, and displaying an operation result of any intention or any mode on the state list page by the computer equipment. As shown in fig. 5, the status list page is provided with an edit operation button and a delete operation button, by which a user can trigger the computer device to edit, delete, etc. a mode or intention.
It should be noted that, the computer device may configure a mode management module and a dictionary management module, where the dictionary management module is used to implement the processes of inquiring and editing the dictionary, that is, the processes of steps 201-203; the mode management module can be used for realizing the processes of inquiring, editing and exporting test sets of intentions and modes in the state list page, and the like, and for the processes of problem positioning, dictionary editing, test set acquisition and the like in technical development, the method and the device greatly simplify the dictionary inquiring flow, conveniently count the referenced modes and intentions of each dictionary, and rapidly and accurately position the problem. Through the simplified operation flows of newly built dictionary, increased vocabulary category and the like, the dictionary can be flexibly referenced, the accuracy of dictionary reference is ensured, and the accuracy of pattern matching is further improved. And the method and the system simplify the operation processes of screening, editing and the like of the intention and the mode based on the state list page, quickly and accurately determine the problem, can also lead out a mode test set, an intention test set and the like in batches, cover the whole content of the mode, and more comprehensively verify the generalization result, thereby improving the management efficiency of a dictionary and the mode through a visual interface, greatly reducing the extra workload of engineering personnel and saving the operation time.
According to the method provided by the embodiment of the application, the target dictionary is searched in the plurality of dictionaries by searching the target searching condition in the page, manual searching in a large number of JSON files is not needed, the searching time is saved, the editing page of the target dictionary comprises a plurality of editing function items, each editing function item corresponds to one dictionary editing operation, the target dictionary is automatically subjected to target editing operation based on the triggered target editing function item in the editing page, the operation result is displayed, the JSON files are not needed to be opened manually for operation, the operation flow is optimized, and the dictionary operation efficiency is improved.
Fig. 7 is a flowchart of a dictionary management method according to an embodiment of the present application. The execution body of the embodiment of the application is a computer device, referring to fig. 7, the method includes:
701. in response to the presence event of an error pattern of a plurality of patterns included in the voice interaction system, the computer device determines dictionary reference information for the error pattern.
In an embodiment of the present application, the voice interaction system further includes a plurality of dictionaries, each dictionary including a plurality of vocabularies. Each pattern refers to an expression statement referencing a plurality of lexicon components in a dictionary, the dictionary referencing information indicating at least one target dictionary referenced by the error pattern.
The computer device may refer to a plurality of words in the plurality of dictionaries, combine the plurality of words into a plurality of patterns, the plurality of patterns including a correct pattern and an error pattern, the error pattern being an expression statement that logically expresses an error. For example, the dictionary 1 includes the words "play", the dictionary 2 includes the words "put" and "bar", and the expression sentence formed by the word assembly in the dictionary 1 and the dictionary 2 may include: playing, playing bar, obviously, the first expression statement "playing" logically expresses error, which is an error mode. The computer equipment can realize the adjustment of the dictionary by checking the dictionary referenced by the error pattern, and the operation processes of inquiring, editing, checking the use state and the like of the dictionary, thereby correcting the error pattern in the voice interaction system.
Wherein dictionary reference information for each mode may be directly stored in the computer device, which may include, but is not limited to: dictionary names of the referenced dictionary, dictionary categories, etc. In one possible example, the computer device may store a pattern test set of each pattern, the pattern test set may include dictionary information for a plurality of dictionaries referenced by the pattern, and the computer device may extract the dictionary reference information from the pattern test set of the pattern.
702. For each target dictionary of the at least one target dictionary, the computer equipment obtains target query conditions input in the query page in response to the dictionary query instruction.
The target query condition is used to indicate a target dictionary referenced by the error pattern. In one possible implementation, the query condition may include a condition of two dimensions of a dictionary category and a dictionary name, e.g., a target name of a target dictionary referenced, a target category, etc. The dictionary category represents a domain to which a plurality of words included in the dictionary belong. The query page includes a dictionary category query box and a dictionary name query box, and the computer device can query based on a category dimension entered in the dictionary category query box and a name dimension entered in the dictionary name query box, respectively.
703. The computer device queries the plurality of dictionaries based on the target query condition, and displays a target dictionary conforming to the target query condition in the plurality of dictionaries of the voice interaction system in the query page.
In one possible example, in response to a dictionary lookup instruction, the computer device retrieves a target name entered in the dictionary name lookup box, queries the plurality of dictionaries, and displays in the query page at least one target dictionary whose dictionary name contains the target name. In another possible example, in response to a dictionary query instruction, the plurality of dictionaries are queried, the computer device obtains a target category entered in the dictionary category query box, and at least one target dictionary belonging to the target category is displayed in the query page.
It should be noted that, the specific implementation process of the steps 702-703 is the same as the process of the step 201, and will not be described in detail here.
704. In response to a dictionary compiling instruction for the target dictionary, the computer device displays a compiling page of the target dictionary.
The editing page comprises a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to one dictionary editing operation; in one possible implementation, the plurality of editing function items may include, but are not limited to: new dictionary items, adding vocabulary category items, adding vocabulary items, deleting vocabulary items, and the like. It should be noted that, the specific implementation process of this step is the same as the above-mentioned process of step 201, and will not be described in detail here.
705. The computer device performs a target editing operation corresponding to the target editing function item on the target dictionary based on the target editing function item in the plurality of editing function items, and displays an operation result of the target dictionary in the editing page.
Wherein the target editing operation is used to adjust the target dictionary to a second dictionary that constitutes the correct pattern. In this step, the editing function may include, but is not limited to: adding vocabulary category items, adding vocabulary items, deleting vocabulary items, and the like. Correspondingly, the computer equipment can add a new category and a new first vocabulary into the target dictionary; alternatively, the computer device may further add a second newly added vocabulary to the target dictionary; alternatively, the computer device may delete the vocabulary corresponding to the deleted vocabulary item in the target dictionary. It should be noted that, the specific implementation process of this step is the same as the above-mentioned process of step 203, and will not be described in detail here.
In one possible implementation, the computer device may also display a page based on a status list triggered by the view function of the target dictionary, view the usage status of the target dictionary, or view, edit other modes, intents, etc. that reference the target dictionary. The process is the same as the process of step 204, and will not be described again.
It should be noted that, in the embodiment of the present application, the computer device may adjust each target dictionary referenced by the error pattern according to the processing procedure of the steps 702 to 705, reform a plurality of patterns based on the adjusted plurality of target dictionaries, and if the reformulated plurality of patterns have the error pattern, continue to repeat the processing procedure of 701 to 705 until the plurality of patterns formed by the plurality of target dictionaries do not include the error pattern, so as to ensure that the plurality of patterns included in the corpus of the voice interaction system are all correct patterns, thereby implementing the generalization procedure for the voice interaction system.
In the embodiment of the application, the target dictionary referenced by the error mode is searched based on the query page by determining the error mode in a plurality of modes included in the voice interaction system, the target dictionary is directly subjected to target editing operation based on the dictionary editing page, and the operation result of the target dictionary is displayed in the editing page, so that the adjusted target dictionary can form a correct mode without the need of inquiring, editing and the like of the dictionary in the JSON file, the management efficiency of the dictionary is improved, and the efficiency of the generalization process of the voice interaction system is further improved.
Fig. 8 is a schematic structural diagram of a dictionary management apparatus according to an embodiment of the present application. Referring to fig. 8, the apparatus includes:
a first display module 801, configured to respond to a dictionary query instruction, and display, on the basis of a target query condition input in a query page, a target dictionary that meets the target query condition in the query page, where the dictionary query instruction is configured to instruct to query a target dictionary that meets the target query condition in a plurality of dictionaries of a voice interaction system;
a second display module 802, configured to display an editing page of the target dictionary in response to a dictionary editing instruction for the target dictionary, where the editing page includes a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to a dictionary editing operation;
and the editing module 803 is configured to perform, on the basis of the triggered target editing function item in the editing page, a target editing operation corresponding to the target editing function item on the target dictionary, and display an operation result of the target dictionary in the editing page.
In one possible implementation, the editing module 803 is further configured to:
responding to a trigger event of adding a vocabulary category item in the editing page, acquiring a new category and a first new vocabulary included in the new category, and adding the new category and the first new vocabulary into a vocabulary list area of the editing page for display;
Responding to a trigger event of adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary into the existing vocabulary category of the vocabulary list area for display;
and responding to a trigger event for deleting the vocabulary item in the editing page, and deleting the vocabulary corresponding to the deleted vocabulary item in the vocabulary list area.
In one possible implementation, the apparatus further includes:
and the third display module is used for responding to the trigger event of the new dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary into the dictionary list area of the editing page for display.
In one possible implementation, the first display module 801 is further configured to:
responding to the dictionary inquiry instruction, acquiring a target category input in the dictionary category inquiry box, and displaying at least one target dictionary belonging to the target category in the inquiry page;
and responding to the dictionary inquiry instruction, acquiring the target name input in the dictionary name inquiry box, and displaying at least one target dictionary with the dictionary name containing the target name in the inquiry page.
In one possible implementation manner, the second display module 802 is further configured to, in response to a trigger event of an editing operation entry corresponding to any target dictionary in the query page, receive the dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation entry, and display an editing page of the target dictionary.
In one possible implementation, the apparatus further includes:
a fourth display module for displaying a state list page of the target dictionary in response to a trigger event of the state viewing function item, the state list page including at least one intent referencing a vocabulary in the target dictionary and at least one pattern referenced by the at least one intent;
the pattern refers to an expression sentence composed of a plurality of words in a dictionary, and the intention is to refer to a function or flow which uses a plurality of patterns to represent the demands of users.
In one possible implementation, the apparatus further includes any one of:
the first screening module is used for responding to the intention screening instruction, screening out target intention meeting the intention screening condition based on the intention screening condition input in the intention screening frame, and displaying the target intention in the state list page;
and the second screening module is used for responding to the mode screening instruction, screening out a target mode which accords with the mode screening condition based on the mode screening condition input in the mode screening frame, and displaying the target mode in the state list page.
In one possible implementation, the apparatus further includes:
The first acquisition module is used for responding to a trigger event of a mode test set export item corresponding to any mode in the state list page, acquiring a mode test set corresponding to the mode based on a plurality of dictionaries referenced by the mode, wherein the mode test set comprises a plurality of vocabularies which are arranged according to a target sequence in the plurality of dictionaries referenced by the mode;
the second obtaining module is used for responding to the trigger event of the intention test set export item corresponding to any intention in the state list page, and obtaining a mode test set of a plurality of modes included by the intention based on the plurality of modes included by the intention.
In one possible implementation, the apparatus further includes:
and the fifth display module is used for responding to an editing instruction of any intention or any mode in the state list page, carrying out target state editing operation corresponding to the target state editing item on any intention or any mode based on the triggered target state editing item in the state list, and displaying an operation result of any intention or any mode on the state list page.
According to the method provided by the embodiment of the application, the target dictionary is searched in the plurality of dictionaries by searching the target searching condition in the page, manual searching in a large number of JSON files is not needed, the searching time is saved, the editing page of the target dictionary comprises a plurality of editing function items, each editing function item corresponds to one dictionary editing operation, the target dictionary is automatically subjected to target editing operation based on the triggered target editing function item in the editing page, the operation result is displayed, the JSON files are not needed to be opened manually for operation, the operation flow is optimized, and the dictionary operation efficiency is improved.
Fig. 9 is a schematic structural diagram of a dictionary management apparatus according to an embodiment of the present application. Referring to fig. 9, the apparatus includes:
a determining module 901, configured to determine dictionary reference information of an error pattern in response to a presence event of the error pattern in a plurality of patterns included in the voice interaction system, where each pattern refers to an expression sentence composed of a plurality of vocabularies in a reference dictionary, and the dictionary reference information is used to indicate at least one target dictionary referred to by the error pattern;
an obtaining module 902, configured to obtain, for each target dictionary in the at least one target dictionary, a target query condition input in a query page in response to a dictionary query instruction, where the target query condition is used to indicate a target dictionary referenced by the error pattern;
the display module 903 is configured to query the plurality of dictionaries based on the target query condition, and display, in the query page, a target dictionary that meets the target query condition in the plurality of dictionaries of the voice interaction system;
the display module 903 is further configured to display an editing page of the target dictionary in response to a dictionary editing instruction for the target dictionary, where the editing page includes a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to a dictionary editing operation;
And an editing module 904, configured to perform, based on a target editing function item in the plurality of editing function items, a target editing operation corresponding to the target editing function item on the target dictionary, and display an operation result of the target dictionary in the editing page, where the target editing operation is used to adjust the target dictionary to a second dictionary that forms a correct mode.
In the embodiment of the application, the target dictionary referenced by the error mode is searched based on the query page by determining the error mode in a plurality of modes included in the voice interaction system, the target dictionary is directly subjected to target editing operation based on the dictionary editing page, and the operation result of the target dictionary is displayed in the editing page, so that the adjusted target dictionary can form a correct mode without the need of inquiring, editing and the like of the dictionary in the JSON file, the management efficiency of the dictionary is improved, and the efficiency of the generalization process of the voice interaction system is further improved.
Any combination of the above-mentioned optional solutions may be adopted to form an optional embodiment of the present disclosure, which is not described herein in detail.
It should be noted that: in the dictionary management apparatus provided in the above embodiment, only the division of the above functional modules is used for illustration when managing a dictionary, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the dictionary management device and the dictionary management method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments, which are not described herein again.
Fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 1000 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 1000 can also be referred to by other names of user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 1000 can include: a processor 1001 and a memory 1002.
The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1001 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. Memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1002 is used to store at least one instruction for execution by processor 1001 to implement the dictionary management method provided by the method embodiments of the present application.
In some embodiments, terminal 1000 can optionally further include: a peripheral interface 1003, and at least one peripheral. The processor 1001, the memory 1002, and the peripheral interface 1003 may be connected by a bus or signal line. The various peripheral devices may be connected to the peripheral device interface 1003 via a bus, signal wire, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, touch display 1005, camera 1006, audio circuitry 1007, positioning component 1008, and power supply 1009.
Peripheral interface 1003 may be used to connect I/O (Input/Output) related at least one peripheral to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1001, memory 1002, and peripheral interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
Radio Frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. Radio frequency circuitry 1004 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. Radio frequency circuitry 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 1004 may also include NFC (Near Field Communication ) related circuitry, which is not limiting of the application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1005 is a touch screen, the display 1005 also has the ability to capture touch signals at or above the surface of the display 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this time, the display 1005 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, display 1005 may be one, providing a front panel of terminal 1000; in other embodiments, display 1005 may be provided in at least two, separately provided on different surfaces of terminal 1000 or in a folded configuration; in still other embodiments, display 1005 may be a flexible display disposed on a curved surface or a folded surface of terminal 1000. Even more, the display 1005 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 1005 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1006 is used to capture images or video. Optionally, camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 1001 for processing, or inputting the electric signals to the radio frequency circuit 1004 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple, each located at a different portion of terminal 1000. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 1007 may also include a headphone jack.
The location component 1008 is used to locate the current geographic location of terminal 1000 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 1008 may be a positioning component based on the united states GPS (Global Positioning System ), the beidou system of china, the grainer system of russia, or the galileo system of the european union.
Power supply 1009 is used to power the various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable battery or rechargeable battery. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can further include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyroscope sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
The acceleration sensor 1011 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1001 may control the touch display 1005 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect the body direction and the rotation angle of the terminal 1000, and the gyro sensor 1012 may collect the 3D motion of the user to the terminal 1000 in cooperation with the acceleration sensor 1011. The processor 1001 may implement the following functions according to the data collected by the gyro sensor 1012: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1013 may be disposed on a side frame of terminal 1000 and/or on an underlying layer of touch display 1005. When the pressure sensor 1013 is provided at a side frame of the terminal 1000, a grip signal of the terminal 1000 by a user can be detected, and the processor 1001 performs right-and-left hand recognition or quick operation according to the grip signal collected by the pressure sensor 1013. When the pressure sensor 1013 is provided at the lower layer of the touch display 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1014 may be provided on the front, back or side of terminal 1000. When a physical key or vendor Logo is provided on terminal 1000, fingerprint sensor 1014 may be integrated with the physical key or vendor Logo.
The optical sensor 1015 is used to collect ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the touch display 1005 based on the ambient light intensity collected by the optical sensor 1015. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 1005 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is turned down. In another embodiment, the processor 1001 may dynamically adjust the shooting parameters of the camera module 1006 according to the ambient light intensity collected by the optical sensor 1015.
Proximity sensor 1016, also referred to as a distance sensor, is typically located on the front panel of terminal 1000. Proximity sensor 1016 is used to collect the distance between the user and the front of terminal 1000. In one embodiment, when proximity sensor 1016 detects a gradual decrease in the distance between the user and the front face of terminal 1000, processor 1001 controls touch display 1005 to switch from the bright screen state to the off screen state; when proximity sensor 1016 detects a gradual increase in the distance between the user and the front face of terminal 1000, processor 1001 controls touch display 1005 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 8 is not limiting and that terminal 1000 can include more or fewer components than shown, or certain components can be combined, or a different arrangement of components can be employed.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 1100 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 1101 and one or more memories 1102, where the memories 1102 store at least one instruction, and the at least one instruction is loaded and executed by the processor 1101 to implement the dictionary management method provided in the above-mentioned method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a computer readable storage medium, such as a memory including instructions executable by a processor in a terminal or a server to perform the dictionary management method of the above embodiment is also provided. For example, the computer readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory ), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the application is not intended to limit the application to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the application are intended to be included within the scope of the application.
Claims (12)
1. A dictionary management method, the method comprising:
determining dictionary reference information of an error pattern in a plurality of patterns included in a voice interaction system in response to a presence event of the error pattern, wherein the voice interaction system further comprises a plurality of dictionaries, each pattern refers to an expression sentence composed of a plurality of vocabularies in the reference dictionary, and the dictionary reference information is used for indicating at least one target dictionary referenced by the error pattern;
for each target dictionary in the at least one target dictionary, responding to a dictionary inquiry instruction, and displaying a target dictionary conforming to target inquiry conditions in an inquiry page based on the target inquiry conditions input in the inquiry page, wherein the target inquiry conditions are used for indicating the target dictionary referenced by the error mode, and the dictionary inquiry instruction is used for indicating to inquire a target dictionary conforming to the target inquiry conditions in a plurality of dictionaries of the voice interaction system; responding to a dictionary editing instruction of the target dictionary, displaying an editing page of the target dictionary, wherein the editing page comprises a plurality of editing function items and a plurality of words of the target dictionary, and each editing function item corresponds to one dictionary editing operation;
And based on the target editing function items in the editing page, performing target editing operation corresponding to the target editing function items on the target dictionary, and displaying an operation result of the target dictionary in the editing page, wherein the target editing operation is used for adjusting the target dictionary into a second dictionary which forms a correct mode.
2. The method of claim 1, further comprising any one of:
responding to a trigger event of adding a vocabulary category item in the editing page, acquiring a new category and a first new vocabulary included in the new category, and adding the new category and the first new vocabulary into a vocabulary list area of the editing page for display;
responding to a trigger event of adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary into the existing vocabulary category of the vocabulary list area for display;
and deleting the vocabulary corresponding to the deleted vocabulary item in the vocabulary list area in response to the trigger event of deleting the vocabulary item in the editing page.
3. The method according to claim 1, wherein the method further comprises:
And responding to a trigger event of a new dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary into a dictionary list area of the editing page for display.
4. The method of claim 1, wherein the query page includes a dictionary category query box and a dictionary name query box, and wherein the displaying in the query page, based on target query conditions entered in the query page, a target dictionary that meets the target query conditions in response to a dictionary query instruction includes any one of:
responding to the dictionary inquiry instruction, acquiring a target category input in the dictionary category inquiry box, and displaying at least one target dictionary belonging to the target category in the inquiry page;
and responding to the dictionary inquiry instruction, acquiring the target names input in the dictionary name inquiry box, and displaying at least one target dictionary with the dictionary names containing the target names in the inquiry page.
5. The method of claim 1, wherein the query page includes at least one target dictionary, each target dictionary corresponding to an editing operation portal, the method further comprising:
And responding to a trigger event of an editing operation entry corresponding to any target dictionary in the query page, receiving a dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation entry, and displaying an editing page of the target dictionary.
6. The method of claim 1, wherein the edit page further comprises a status view function item of the target dictionary, the method further comprising:
in response to a trigger event of the state viewing function item, displaying a state list page of the target dictionary, the state list page including at least one intent referencing a vocabulary in the target dictionary and at least one pattern referenced by the at least one intent;
the pattern refers to an expression sentence composed of a plurality of words in a dictionary, and the intention is to refer to a function or flow which uses a plurality of patterns to represent the demands of users.
7. The method of claim 6, wherein the status list page further comprises an intent filter box and a pattern filter box, the method further comprising any of:
responding to an intention screening instruction, screening out target intention meeting the intention screening condition based on the intention screening condition input in the intention screening box, and displaying the target intention in the state list page;
And responding to a mode screening instruction, screening out a target mode conforming to the mode screening condition based on the mode screening condition input in the mode screening box, and displaying the target mode in the state list page.
8. The method of claim 6, wherein the status list page further comprises a pattern test set derivation term and an intent test set derivation term, the method further comprising:
responding to a trigger event of a mode test set export item corresponding to any mode in the state list page, and acquiring a mode test set corresponding to the mode based on a plurality of dictionaries referenced by the mode, wherein the mode test set comprises a plurality of vocabularies which are arranged according to a target sequence in the plurality of dictionaries referenced by the mode;
and responding to a trigger event of an intention test set export item corresponding to any intention in the state list page, and acquiring a mode test set of a plurality of modes included by the intention based on the plurality of modes included by the intention.
9. The method of claim 6, wherein the method further comprises:
responding to an editing instruction of any intention or any mode in the state list page, carrying out target state editing operation corresponding to the target state editing item on any intention or any mode based on the triggered target state editing item in the state list, and displaying an operation result of any intention or any mode on the state list page.
10. A dictionary management apparatus, characterized in that the apparatus includes a plurality of functional modules for executing the dictionary management method according to any one of claims 1 to 9.
11. A computer device comprising a processor and a memory having at least one instruction stored therein, the instructions being loaded and executed by the processor to implement the dictionary management method of any one of claims 1-9.
12. A computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the dictionary management method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010136639.8A CN111475611B (en) | 2020-03-02 | 2020-03-02 | Dictionary management method, dictionary management device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010136639.8A CN111475611B (en) | 2020-03-02 | 2020-03-02 | Dictionary management method, dictionary management device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111475611A CN111475611A (en) | 2020-07-31 |
CN111475611B true CN111475611B (en) | 2023-09-15 |
Family
ID=71747126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010136639.8A Active CN111475611B (en) | 2020-03-02 | 2020-03-02 | Dictionary management method, dictionary management device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111475611B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360666A (en) * | 2021-05-31 | 2021-09-07 | 珠海大横琴科技发展有限公司 | Data dictionary management method and device, electronic equipment and storage medium |
CN113934952B (en) * | 2021-09-15 | 2024-05-14 | 南方电网数字平台科技(广东)有限公司 | Method and device for building page in building block mode |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246714A (en) * | 2013-04-26 | 2013-08-14 | 中国科学院计算技术研究所 | Method and system of Chinese search engine inquiring and error correcting based on error pattern searching |
CN108959436A (en) * | 2018-06-12 | 2018-12-07 | 苏州思必驰信息科技有限公司 | Dictionary edit methods and system for voice dialogue platform |
CN109933774A (en) * | 2017-12-15 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Method for recognizing semantics, device storage medium and electronic device |
WO2019168235A1 (en) * | 2018-03-02 | 2019-09-06 | 주식회사 머니브레인 | Method and interactive ai agent system for providing intent determination on basis of analysis of same type of multiple pieces of entity information, and computer-readable recording medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101432801B (en) * | 2006-02-23 | 2012-04-18 | 日本电气株式会社 | Speech recognition dictionary making supporting system, and speech recognition dictionary making supporting method |
JP2009080626A (en) * | 2007-09-26 | 2009-04-16 | Toshiba Corp | Metadata managing device, program, and method |
-
2020
- 2020-03-02 CN CN202010136639.8A patent/CN111475611B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246714A (en) * | 2013-04-26 | 2013-08-14 | 中国科学院计算技术研究所 | Method and system of Chinese search engine inquiring and error correcting based on error pattern searching |
CN109933774A (en) * | 2017-12-15 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Method for recognizing semantics, device storage medium and electronic device |
WO2019168235A1 (en) * | 2018-03-02 | 2019-09-06 | 주식회사 머니브레인 | Method and interactive ai agent system for providing intent determination on basis of analysis of same type of multiple pieces of entity information, and computer-readable recording medium |
CN108959436A (en) * | 2018-06-12 | 2018-12-07 | 苏州思必驰信息科技有限公司 | Dictionary edit methods and system for voice dialogue platform |
Also Published As
Publication number | Publication date |
---|---|
CN111475611A (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107885533B (en) | Method and device for managing component codes | |
CN110471858B (en) | Application program testing method, device and storage medium | |
CN109902089B (en) | Query method and device using heterogeneous index, electronic equipment and medium | |
WO2019076377A1 (en) | Image viewing method and mobile terminal | |
WO2021008287A1 (en) | Character recommending method and apparatus, and computer device and storage medium | |
CN111475611B (en) | Dictionary management method, dictionary management device, computer equipment and storage medium | |
CN109917988B (en) | Selected content display method, device, terminal and computer readable storage medium | |
CN110245255B (en) | Song display method, device, equipment and storage medium | |
CN113204302B (en) | Virtual robot-based operation method, device, equipment and storage medium | |
WO2019223393A1 (en) | Method and apparatus for generating lyrics, method and apparatus for displaying lyrics, electronic device, and storage medium | |
CN112100528B (en) | Method, device, equipment and medium for training search result scoring model | |
CN111666076B (en) | Layer adding method, device, terminal and storage medium | |
CN110569064B (en) | Interface identifier generation method, device, equipment and storage medium | |
CN111898353A (en) | Table display method, device and medium | |
CN108831423B (en) | Method, device, terminal and storage medium for extracting main melody tracks from audio data | |
CN113535039B (en) | Method and device for updating page, electronic equipment and computer readable storage medium | |
CN113408989B (en) | Automobile data comparison method and device and computer storage medium | |
CN111125095B (en) | Method, device, electronic equipment and medium for adding data prefix | |
CN113051485B (en) | Group searching method, device, terminal and storage medium | |
CN116954597A (en) | Form page generation method and device, electronic equipment, storage medium and product | |
KR102488359B1 (en) | Method and apparatus for processing lexical database | |
CN109918566B (en) | Query method, query device, electronic equipment and medium | |
CN110928867B (en) | Data fusion method and device | |
CN111524533B (en) | Voice operation method, device, electronic equipment and storage medium | |
CN114138143B (en) | Query interface display method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |