CN111475611A - 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 PDF

Info

Publication number
CN111475611A
CN111475611A CN202010136639.8A CN202010136639A CN111475611A CN 111475611 A CN111475611 A CN 111475611A CN 202010136639 A CN202010136639 A CN 202010136639A CN 111475611 A CN111475611 A CN 111475611A
Authority
CN
China
Prior art keywords
dictionary
target
editing
page
query
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.)
Granted
Application number
CN202010136639.8A
Other languages
Chinese (zh)
Other versions
CN111475611B (en
Inventor
金珂
苏少炜
常乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN202010136639.8A priority Critical patent/CN111475611B/en
Publication of CN111475611A publication Critical patent/CN111475611A/en
Application granted granted Critical
Publication of CN111475611B publication Critical patent/CN111475611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3343Query 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)
  • Machine Translation (AREA)
  • User Interface Of Digital Computer (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 by inquiring the target inquiry condition in the page, manual inquiry in a large number of JSON files is not needed, the inquiry 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 editing operation is automatically carried out on the target dictionary based on the triggered target editing function item in the editing page, the operation result is displayed, the JSON files do not need to be manually opened for operation, the operation process is optimized, and the dictionary operation efficiency is improved.

Description

Dictionary management method, dictionary management device, computer equipment and storage medium
Technical Field
The present application relates to the field of voice interaction technologies, and in particular, to a dictionary management method, an apparatus, a computer device, and a storage medium.
Background
With the rapid development of science and technology, the voice interaction technology has been integrated into the life and work of people without sound. Such as smart speakers, smart robots, etc. Computer equipment usually stores a large number of dictionaries as support data for technical implementation, recognizes characters corresponding to user sentences on the basis of the large number of dictionaries, understands and meets the requirements of users, and realizes a voice interaction process between the users and the equipment.
The computer equipment can combine a plurality of words in a referred dictionary into a mode by referring the words in the dictionary, and the plurality of modes can represent an intention. A large number of dictionaries and associated data of intentions, patterns, etc. are typically stored in computer devices in JSON (Object Notation) formatted files. In the processes of problem location, new requirement development and the like, workers often need to perform operations such as query and editing in a dictionary. Staff typically manually queries in a large number of JSON files. For example, manually writing a query logic command to search relevant dictionaries from all JSON files, and then opening the dictionaries one by one to screen or modify dictionary contents, results in low operation efficiency due to large data size. 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, and 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:
displaying a target dictionary meeting the target query condition in a query page based on the target query condition input in the query page in response to a dictionary query instruction, wherein the dictionary query instruction is used for indicating that a target dictionary meeting the target query condition in a plurality of dictionaries of a voice interaction system is queried;
in response to a dictionary editing instruction for 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 a 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 the operation result of the target dictionary in the editing page.
In one possible implementation manner, the performing, 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 displaying an operation result of the target dictionary in the editing page includes 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 to a vocabulary list area of the editing page for displaying;
responding to a trigger event for adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary to the existing vocabulary category in the vocabulary list area for displaying;
and responding to a trigger event for deleting the vocabulary items in the editing page, and deleting the vocabulary corresponding to the deleted vocabulary items in the vocabulary list area.
In one possible implementation, the method further includes:
and responding to a trigger event of a newly-built dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary to a dictionary list area of the editing page for displaying.
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 and based on the target query condition input in the query page, the target dictionary meeting the target query condition in the query page includes any one of:
responding to the dictionary query instruction, acquiring a target category input in the dictionary category query box, and displaying at least one target dictionary belonging to the target category in the query page;
and responding to the dictionary query instruction, acquiring the target name input in the dictionary name query box, and displaying at least one target dictionary with the dictionary name containing the target name in the query page.
In one possible implementation, the query page includes at least one target dictionary, each target dictionary corresponding to an edit operation entry, and the displaying the edit page of the target dictionary in response to the dictionary edit instruction to the target dictionary includes:
and responding to a trigger event of an editing operation inlet corresponding to any target dictionary in the query page, receiving the dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation inlet, and displaying the editing page of the target dictionary.
In one possible implementation, the editing page further includes a status viewing function item of the target dictionary, and the method further includes:
in response to a triggering event of the status viewing function, displaying a status list page of the target dictionary, 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 mode refers to an expression sentence composed of a plurality of words in a dictionary, and the intention refers to a function or a flow which refers to a plurality of modes to express the requirement of a user.
In one possible implementation, the status list page further includes an intent filter box and a mode filter box, and the method further includes any one of:
in response to an intention screening instruction, screening out a target intention which meets 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 meeting 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, and the method further includes:
responding to a trigger event of a pattern test set export item corresponding to any pattern in the state list page, and acquiring a pattern test set corresponding to the pattern based on a plurality of dictionaries referred by the pattern, wherein the pattern test set comprises a plurality of vocabularies which are arranged in a target sequence in the dictionaries referred by the pattern;
and responding to a triggering event of an intention test set derivation 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:
and responding to an editing instruction of any intention or any mode in the state list page, performing target state editing operation corresponding to a 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:
in response to an existence event of an error pattern in a plurality of patterns included in the voice interaction system, determining dictionary reference information of the error pattern, wherein each pattern refers to an expression sentence composed of a plurality of vocabularies in a 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, in response to a dictionary query instruction, obtaining a target query condition input in a query page, the target query condition indicating a target dictionary referenced by the error pattern;
inquiring the plurality of dictionaries based on the target inquiry condition, and displaying a target dictionary which meets the target inquiry condition in the plurality of dictionaries of the voice interaction system in the inquiry page;
in response to a dictionary editing instruction for 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 a 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 the operation result of the target dictionary in the editing page, wherein the target editing operation is used for adjusting the target dictionary to a second dictionary forming 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 query instruction, displaying a target dictionary meeting a target query condition in a query page based on the target query condition input in the query page, wherein the dictionary query instruction is used for indicating to query out a target dictionary meeting the target query condition in a plurality of dictionaries of a voice interaction system;
a second display module, 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 vocabularies of the target dictionary, and each editing function item corresponds to a 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 the 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 to a vocabulary list area of the editing page for displaying;
responding to a trigger event for adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary to the existing vocabulary category in the vocabulary list area for displaying;
and responding to a trigger event for deleting the vocabulary items in the editing page, and deleting the vocabulary corresponding to the deleted vocabulary items in the vocabulary list area.
In one possible implementation, the apparatus further includes:
and the third display module is used for responding to a trigger event of a newly-built dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary to a dictionary list area of the editing page for display.
In one possible implementation, the first display module is further configured to:
responding to the dictionary query instruction, acquiring a target category input in the dictionary category query box, and displaying at least one target dictionary belonging to the target category in the query page;
and responding to the dictionary query instruction, acquiring the target name input in the dictionary name query box, and displaying at least one target dictionary with the dictionary name containing the target name in the query page.
In a possible implementation manner, the second display module is further configured to, in response to a trigger event of an editing operation entry corresponding to any one 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 triggering event of the status viewing function item, the status list page including at least one intent to reference a vocabulary in the target dictionary and at least one mode referenced by the at least one intent;
the mode refers to an expression sentence composed of a plurality of words in a dictionary, and the intention refers to a function or a flow which refers to a plurality of modes to express the requirement of a user.
In one possible implementation, the apparatus further comprises any one of:
the first screening module is used for responding to an intention screening instruction, screening out target intents meeting the intention screening conditions based on the intention screening conditions input in the intention screening box, and displaying the target intents in the state list page;
and the second screening module is used for responding to a mode screening instruction, screening out a target mode meeting 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 obtaining module is used for responding to a trigger event of a pattern test set derived item corresponding to any pattern in the state list page, and obtaining a pattern test set corresponding to the pattern based on a plurality of dictionaries cited by the pattern, wherein the pattern test set comprises a plurality of vocabularies which are arranged in a target sequence in the plurality of dictionaries cited by the pattern;
and the second acquisition module is used for responding to a trigger event of an intention test set derivation 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 a 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:
the determining module is used for responding to the existence event of the error pattern in a plurality of patterns included in the voice interaction system, determining dictionary reference information of the error pattern, wherein each pattern refers to an expression sentence formed by a plurality of vocabularies in a reference dictionary, and the dictionary reference information is used for indicating at least one target dictionary referenced by the error pattern;
an obtaining module, configured to, for each target dictionary in the at least one target dictionary, in response to a dictionary query instruction, obtain a target query condition input in a query page, where the target query condition is used to indicate a target dictionary referenced by the error pattern;
the display module is used for inquiring the plurality of dictionaries based on the target inquiry condition and displaying a target dictionary which meets the target inquiry condition 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 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 a dictionary editing operation;
and the editing module is used for 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, displaying the operation result of the target dictionary in the editing page, and adjusting the target dictionary to form a second dictionary in a correct mode by the target editing operation.
In another aspect, a computer device is provided that includes a processor and a memory having stored therein at least one instruction that is loaded and executed by the processor to perform operations performed by a dictionary management method as described above.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, the instruction being loaded and executed by a processor to implement the operations performed by the dictionary management method as described above.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
the target dictionary is searched in the plurality of dictionaries by inquiring the target inquiry condition in the page, manual inquiry in a large number of JSON files is not needed, the inquiry time is saved, the editing page of the target dictionary comprises a plurality of editing function items, each editing function item corresponds to a dictionary editing operation, the target editing operation is automatically carried out on the target dictionary based on the triggered target editing function item in the editing page, the operation result is displayed, the JSON files do not need to be manually opened for operation, the operation process is optimized, and the dictionary operation efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a dictionary management method provided in an embodiment of the present application;
FIG. 2 is a flowchart of a dictionary management method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a query page provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an editing page provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a status list page provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a status list page provided in an embodiment of the present application;
FIG. 7 is a flowchart of a dictionary management method provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a dictionary management apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural 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 technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 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 computer equipment, and referring to fig. 1, the method comprises the following steps:
101. displaying a target dictionary which meets the target query condition in a query page based on the target query condition input in the query page in response to a dictionary query instruction, wherein the dictionary query instruction is used for indicating that a target dictionary which meets the target query condition in a plurality of dictionaries of the voice interaction system is queried;
102. 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 a dictionary editing operation;
103. 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 the operation result of the target dictionary in the editing page.
In one possible implementation manner, the performing, 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 displaying an operation result of the target dictionary in the editing page includes 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 to a vocabulary list area of the editing page for displaying;
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 to the existing vocabulary category in the vocabulary list area for displaying;
and in response to a trigger event for deleting the vocabulary item in the editing page, deleting the vocabulary corresponding to the deleted vocabulary item in the vocabulary list area.
In one possible implementation, the method further comprises:
and responding to a trigger event of a newly-built dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary to a dictionary list area of the editing page for displaying.
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 and based on the target query condition entered in the query page, the target dictionary that meets the target query condition in the query page includes any one of:
responding to the dictionary query instruction, acquiring a target category input in the dictionary category query box, and displaying at least one target dictionary belonging to the target category in the query page;
and responding to the dictionary query instruction, acquiring the target name input in the dictionary name query box, and displaying at least one target dictionary with the dictionary name containing the target name in the query page.
In one possible implementation, the query page includes at least one target dictionary, each target dictionary corresponding to an edit operation entry, and the displaying the edit page of the target dictionary in response to the dictionary edit instruction to the target dictionary includes:
and responding to a triggering event of an editing operation entry corresponding to any target dictionary in the query page, receiving the dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation entry, and displaying the editing page of the target dictionary.
In one possible implementation, the edit page further includes a status view function of the target dictionary, and the method further includes:
in response to a triggering event of the status viewing function, displaying a status list page of the target dictionary, 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 mode refers to an expression sentence composed of a plurality of words in a dictionary, and the intention refers to a function or a flow which refers to a plurality of modes to express the requirement of a user.
In one possible implementation, the status list page further includes an intent filter box and a mode filter box, and the method further includes any one of:
in response to an intention screening instruction, screening out a target intention which meets 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 meeting 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, and the method further includes:
responding to a trigger event of a pattern test set export item corresponding to any pattern in the state list page, and acquiring a pattern test set corresponding to the pattern based on a plurality of dictionaries cited by the pattern, wherein the pattern test set comprises a plurality of vocabularies which are arranged in a target sequence in the dictionaries cited by the pattern;
and responding to a triggering event of an intention test set derivation 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 comprises:
and responding to an editing instruction of any intention or any mode in the state list page, performing target state editing operation corresponding to a 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 the embodiment of the application, the target dictionary is searched in the plurality of dictionaries by inquiring the target inquiry condition in the page, manual inquiry in a large number of JSON files is not needed, the inquiry 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 editing operation is automatically carried out on the target dictionary based on the triggered target editing function item in the editing page, the operation result is displayed, the JSON files do not need to be manually opened 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 present application is a computer device, for example, a server or a terminal of the computer device. The server may be a background server of the voice interaction application, and the terminal may be a voice interaction device, such as a smart speaker, a smart robot, or the like. Referring to fig. 2, the method includes:
201. in response to the dictionary lookup instruction, the computer device displays a target dictionary that meets the target query condition in the query page based on the target query condition entered in the query page.
The dictionary query instruction is used for indicating to find out a target dictionary which meets the target query condition in a plurality of dictionaries of the voice interaction system; in the embodiment of the application, the computer device may be configured with a voice interaction system to implement a voice interaction process with a user. The voice interaction system includes a plurality of dictionaries, each dictionary including a plurality of words. The computer device can manage the plurality of dictionaries, and the management process can comprise operation processes of inquiring, editing, checking the use state and the like of the dictionaries.
In this step, the query page may include a plurality of input boxes, the user may input the query condition into the plurality of input boxes, and the computer device may perform the query of the target dictionary based on the plurality of input boxes and the plurality of query conditions. In one possible implementation, the query condition may include a condition of two dimensions, a dictionary category and a dictionary name. The dictionary category indicates 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 the computer device querying based on the dictionary category may include: in response to the dictionary lookup instruction, the computer device retrieves the 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 category can be configured based on needs, for example, music, chat, games, etc. can be taken as the category of the dictionary. In another possible example, the process for the computer device to query based on dictionary names may include: in response to a dictionary lookup instruction, the computer device retrieves the target names entered in the dictionary name lookup box and displays at least one target dictionary having a dictionary name containing the target name in the lookup page. The computer equipment can query the target name as a keyword, and displays dictionaries carrying the target name in the dictionary name 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 plural, the computer device may display the plural 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 an editing operation on the dictionary by triggering the editing operation entry. As shown in FIG. 3, the query page includes a category entry box, which may be a representation of a drop down list whose contents are the created dictionary categories, and a name entry box. In addition, the header of the dictionary list in the query page may include three items, a dictionary category, a dictionary name, and an 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 the like.
202. In response to a dictionary edit instruction to the target dictionary, the computer device displays an edit page of the target dictionary.
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 a dictionary editing operation. The computer device may display a plurality of words included in the target dictionary and names of the dictionaries on the edit page. In one possible implementation, the editing page includes a dictionary list area for displaying the target dictionary and a vocabulary list area for displaying the words included in the target dictionary, e.g., the dictionary list area may include the dictionary names of one or more target dictionaries and the vocabulary list area may include the words included in the selected target dictionary in the dictionary list area.
In one possible implementation, the plurality of editing functions may include a newly created dictionary entry for triggering the computer device to create a dictionary in the dictionary list area, an added vocabulary category entry for triggering the computer device to add a vocabulary of a new category in the vocabulary list area, an added vocabulary entry for triggering the computer device to add a new vocabulary in an existing vocabulary category in the vocabulary list area, and a deleted vocabulary entry for triggering the computer device to delete a vocabulary in the vocabulary list area. In one possible example, the newly created dictionary entry can be located in a dictionary list area that can also include a batch import dictionary entry that is used to trigger the computer device to create multiple dictionaries in batches at one time. Of course, each target dictionary in the dictionary list area may also correspond to a deletion function item, and the deletion function item is used for deleting the corresponding target dictionary. In one possible example, the add vocabulary category item may be located in the vocabulary list region. The add vocabulary category items, add vocabulary items, and delete vocabulary items may be located in a vocabulary list area.
In one possible implementation, the editing 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 filter out a target dictionary corresponding to the target dictionary name or the target dictionary including the target vocabulary from a plurality of target dictionaries included in the dictionary list area.
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, a search input box, a newly created dictionary item, a batch import dictionary item, and the like. The right side includes a plurality of words included in the left selected target dictionary. Further, the vocabulary list region may further include a plurality of sub-regions, each sub-region corresponding to a vocabulary category, the plurality of vocabularies may be displayed according to the vocabulary category, and vocabularies of different categories are located in different sub-regions.
In one possible embodiment, the query page may include an edit operation entry, the query page including at least one target dictionary, i.e., one or more target dictionaries, each of which may correspond to one of the edit operation entries, the edit operation entry being for triggering the computer device to display the edit page, and therefore, in response to a dictionary edit instruction for the target dictionary, the step of the computer device displaying the edit page of the target dictionary may include: in response to a triggering event of an editing operation entry corresponding to any target dictionary in the query page, the computer equipment receives the dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation entry, and the computer equipment displays an editing page of the target dictionary. The embodiment of the present application does not specifically limit the specific representation 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 in the same line as the target dictionary name.
203. And the computer equipment carries 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 displays the operation result of the target dictionary in the editing page.
The editing page can comprise a plurality of editing function items, and each editing function item corresponds to an editing operation. In this step, the editing function item may include an add vocabulary category item, an add vocabulary item, and a delete vocabulary item, and accordingly, this step may be implemented in any one of the following three ways.
In a first mode, in response to a trigger event of adding a vocabulary category item in the editing page, the computer device acquires a new category and a first new vocabulary included in the new category, and adds the new category and the first new vocabulary to a vocabulary list area of the editing page for displaying.
The added vocabulary category item may be located in a vocabulary list region, and the computer device may obtain a new category and a plurality of new added vocabularies, store the new category and the first new added vocabulary in association with the current target dictionary, and add a new sub-region in the vocabulary list region, and display the new category and the first new added vocabulary in the new sub-region. As shown in fig. 4, the newly added vocabulary category item may be represented as a travel of a newly added row of buttons, and the newly added vocabulary item may be represented in the form of a button "please enter a value of a dictionary" in a sub-area where existing vocabulary is located.
In a second mode, in response to a trigger event for adding a vocabulary item in the editing page, the computer device acquires 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 items may be located in existing sub-areas of the vocabulary list area, each sub-area corresponding to one added vocabulary item, and in response to a trigger event of an added vocabulary item of any sub-area, the computer device may obtain a plurality of additional vocabulary items, obtain one or more second additional vocabulary items, and display the second additional vocabulary items in the sub-area corresponding to the added vocabulary items.
In a third mode, in response to a trigger event for deleting a vocabulary item in the editing page, the computer device deletes the vocabulary corresponding to the deleted vocabulary item in the vocabulary list region.
As shown in FIG. 4, the words in each sub-area may be displayed in the form of a label and the deleted vocabulary item for each word may be displayed in the form of the symbol "×" to the upper right of the vocabulary label.
In one possible implementation, the computer device may further add a dictionary in the dictionary list area, and the process may include: in response to a triggering event of a new dictionary item in the editing page, the computer equipment acquires a first dictionary to be newly created, and adds the first dictionary to a dictionary list area of the editing page for display. The computer equipment acquires the first dictionary, adds the first dictionary to an existing dictionary library of the voice interaction system for storage, adds the dictionary name of the newly-built first dictionary to a dictionary list area for display, and responds to a trigger event of the dictionary name of the first dictionary to display the vocabulary included in the first dictionary in the vocabulary list area. As shown in fig. 4, the user may trigger a new dictionary entry in the left side dictionary list area to trigger the computer device to create a new dictionary in the dictionary list area. The computer equipment can also trigger the batch import dictionary entry, acquire a plurality of first dictionaries at one time, and add dictionary names of the first dictionaries to a dictionary list area for display.
It should be noted that, in step 201, the computer device may query a plurality of query input boxes in the page to implement multidimensional and accurate query on the dictionary, thereby improving efficiency and accuracy of dictionary query. Furthermore, the computer device implements multiple types of editing operations on the dictionary, such as multi-level operations of creating a new dictionary, adding new words, adding new word categories, etc., by editing multiple editing function items of the page through the above steps 202 and 203, so that the dictionary management manner is enriched, and the operation efficiency is improved. In addition, the computer equipment only adds the vocabulary category, thereby solving the problem that only a part of vocabularies in the dictionary can not be quoted, further improving the use efficiency of the dictionary and improving the accuracy and efficiency of the voice interaction process.
In one possible implementation, the editing page further includes a status viewing function of the target dictionary for triggering the computer device to query a use status of the target dictionary, the use status including an intent to reference a word in the target dictionary and a pattern included by the intent. If the target dictionary comprises a plurality of word categories, the voice interaction system also stores a plurality of intentions and a plurality of modes, and when the modes or intentions are formed, the computer equipment can refer to the whole target dictionary and also can refer to partial words in the target dictionary, for example, refer to the words contained in one of the word categories. In one possible example, the multiple reference ways and their corresponding reference statements may be expressed as: the referential sentence corresponding to the "reference all the words in the target dictionary" may be "majioritype", the referential sentence corresponding to the "reference only the word in one word class in the target dictionary" may be "majioritpe & minorType", and the "reference sentence corresponding to the" reference only the word in the other word class except for a certain word class (minorType) in the target dictionary "may be" majioritype! MinorType ".
In this embodiment, the computer device may implement a query process on the use status of the target dictionary through the following step 204.
204. In response to a triggering event of the status viewing function, the computer device displays a status list page of the target dictionary.
Wherein the status list page includes at least one intent referencing a vocabulary in the target dictionary and at least one pattern referenced by the at least one intent; the mode refers to an expression sentence consisting of a plurality of words in a dictionary, and the intention refers to a function or a flow which refers to a plurality of modes to express the requirement of a user.
As shown in fig. 4, the form of the status view function item may be represented as a view mode button in the editing page, and the status view function item may also be represented in other forms, which is not specifically limited in this embodiment of the present application. In response to the triggering event of the view function button, a status list page is displayed by the computer device as shown in FIG. 5, including all intents and patterns referencing the target dictionary.
In one possible implementation, the computer device may also filter intents and patterns, 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 by which the computer device filters the intent may include: in response to the intent screen instruction, the computer device may screen out a target intent that meets the intent screen condition based on the intent screen condition input in the intent screen box, the target intent being displayed in the status list page. The intent filter box may be in the form of an intent drop down list that includes a plurality of existing intents. In one possible implementation, the computer device may also classify a plurality of intents, for example, into a plurality of intents of different domains, and the computer device may also filter 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 box, and in response to the intention screening instruction, the computer device screens out a target intention meeting the intention screening condition from the plurality of intents belonging to the target domain according to the intention screening condition input in the intention screening box. As shown in fig. 5, the header in the status list page includes: domain, intention name, intention description and operation, wherein the 3 common expressions, i.e. 3 patterns, referred to by the first intention are shown in the list of fig. 5 under the first intention. As shown in fig. 6, the status list page may include an intention referring to the target dictionary, and when an expansion icon to the left of the intention is triggered, the computer device displays the 3 common modes referred to by the intention below the intention, i.e., the page shown in fig. 5 after expansion.
In one possible example, the domain input box and the intention input box may be in the form of a drop-down list, the computer device may establish an association relationship between each domain of the domain input box and each intention of the intention input box in advance, the user may select a target domain in the domain drop-down list in advance, the computer device displays a plurality of intentions belonging to the target domain in the intention drop-down list based on the association relationship between the intention and the domain, and performs filtering based on the target intention selected by the user among the plurality of intentions.
In another possible example, the process by which the computer device filters the patterns can include: in response to a pattern filtering instruction, the computer device may filter out a target pattern that meets the pattern filtering condition based on the pattern filtering condition input in the pattern filtering 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 filtering box, and the computer device may filter out a matching target pattern, for example, a target pattern containing a pattern keyword, based on the input content, thereby implementing fuzzy filtering.
In one possible implementation, the computer device may also derive a test set of intents or a test set of patterns. For example, the status list page also includes a pattern test set export item and an intent test set export item, then the test set export process may include: in response to a trigger event of a pattern test set derived item corresponding to any pattern in the status list page, the computer device obtains a pattern test set corresponding to the pattern based on a plurality of dictionaries referred to by the pattern, where the pattern test set includes a plurality of vocabularies in the plurality of dictionaries referred to by the pattern, and the pattern may refer to the plurality of vocabularies in the plurality of dictionaries and be arranged in a target order, that is, the target order may be a combined order of the plurality of vocabularies in the plurality of dictionaries referred to by the pattern; in response to a triggering 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 in the intent based on the plurality of patterns included in the intent. As shown in FIG. 5, the pattern test set export item may be displayed in the form of an export test set button located in a row above the common representation, and the intent test set export item corresponding to the intent may be displayed in the form of an export test set button located in the same row as the first intent.
In one possible implementation, the computer device may also perform editing operations on the patterns and intents, or on dictionaries referenced by the patterns and intents based on the status list page, or the like. In one possible example, the process by which the computer device edits the schema and intent can include: when the editing instruction of any intention or any mode in the state list page is responded, the computer equipment carries 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 the computer equipment displays the operation result of any intention or any mode on the state list page. As shown in fig. 5, the status list page is provided with an edit manipulation button and a delete manipulation button, by which the user can trigger the computer device to perform operations such as editing, deleting, etc. of the 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 processes of querying and editing a dictionary, that is, the process of step 201 and step 203; the mode management module can be used for realizing processes of inquiring and editing intentions and modes in a state list page, exporting a test set and the like, and for processes of problem positioning, dictionary editing, test set acquisition and the like in technical development, through the processes in the embodiment of the application, the dictionary inquiring process is greatly simplified, the mode and the intention of each dictionary quoted are conveniently counted, and the problems are quickly and accurately positioned. Through the simplified operation procedures of creating the dictionary, adding vocabularies categories and the like, the dictionary can be flexibly and flexibly introduced, the dictionary introduction accuracy is ensured, and the accuracy of pattern matching is further improved. And the operation processes of screening, editing and the like of intentions and patterns are simplified based on the state list page, problems are quickly and accurately determined, the pattern test set, the intention test set and the like can be exported in batches, all contents of the patterns are covered, the generalization result is verified more comprehensively, the dictionary and pattern management efficiency is improved through a visual interface, extra workload of engineering personnel is greatly reduced, and the operation time is saved.
According to the method provided by the embodiment of the application, the target dictionary is searched in the plurality of dictionaries by querying the target query condition in the page, manual query in a large number of JSON files is not needed, the 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 editing operation is automatically performed on the target dictionary based on the triggered target editing function item in the editing page, the operation result is displayed, the JSON files do not need to be manually opened 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. An execution subject of the embodiment of the present application is a computer device, and referring to fig. 7, the method includes:
701. in response to an occurrence of an error pattern in 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 of which includes a plurality of words. Each pattern is an expression sentence composed of a plurality of words in a reference dictionary, and the dictionary reference information is used for indicating at least one target dictionary referenced by the error pattern.
The computer device can refer to a plurality of words in the dictionaries, and combine the words into a plurality of patterns, wherein the patterns comprise a correct pattern and an error pattern, and the error pattern refers to an expression statement with a logical expression error. For example, dictionary 1 includes the word "play", dictionary 2 includes the words "put" and "bar", and the expression sentence composed of the words in dictionary 1 and dictionary 2 may include: obviously, the first expression sentence "play and put" logic expression error is an error mode. The computer equipment can adjust the dictionary by checking the dictionary quoted by the error mode, inquiring, editing, checking the using state and other operation processes, thereby correcting the error mode in the voice interaction system.
Wherein, the computer device can directly store dictionary reference information of each mode, and the dictionary reference information can include but is not limited to: dictionary names, dictionary categories, etc. of the referenced dictionaries. In one possible example, the computer device may store a pattern test set of patterns, which may include dictionary information for a plurality of dictionaries referenced by the patterns, for each of the patterns, from which the computer device may extract the dictionary reference information.
702. For each of the at least one target dictionary, the computer device retrieves the target query condition entered in the query page in response to the dictionary lookup 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 in two dimensions of dictionary category and dictionary name, e.g., target name of the referenced target dictionary, target category, etc. The dictionary category indicates 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. And the computer equipment queries the plurality of dictionaries based on the target query condition, and displays a target dictionary meeting 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 the target name entered in the dictionary name lookup box, performs a lookup of the plurality of dictionaries, and displays in the lookup page at least one target dictionary whose dictionary name contains the target name. In another possible example, in response to the dictionary lookup instruction, querying the plurality of dictionaries, the computer device retrieves a target category entered in the dictionary category lookup box, and displays at least one target dictionary belonging to the target category in the query page.
It should be noted that the specific implementation process of step 702-703 is the same as that of step 201, and is not described herein again.
704. In response to a dictionary edit instruction to the target dictionary, the computer device displays an edit page of the target dictionary.
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 a dictionary editing operation; in one possible implementation, the plurality of editing function items may include, but are not limited to: creating dictionary entries, adding vocabulary category entries, adding vocabulary entries, deleting vocabulary entries, etc. It should be noted that the specific implementation process of this step is the same as that of step 201, and is not described herein again.
705. And the computer equipment carries 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, and displays the 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 a correct pattern. In this step, the editing function item may include, but is not limited to: add vocabulary category items, add vocabulary items, delete vocabulary items, and the like. Correspondingly, the computer equipment can add a new category and a new first vocabulary in the target dictionary; or, the computer device may also add a second newly added vocabulary in 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 that of step 203, and is not described in detail here.
In one possible implementation, the computer device may also display a page based on a list of states triggered by a view function of the target dictionary, view a usage status of the target dictionary, or view, edit, etc. other patterns, intents referencing the target dictionary. The process is the same as the process of step 204, and is not described here again.
It should be noted that, in this embodiment of the application, the computer device may adjust each target dictionary cited by the error pattern according to the processing procedure of the foregoing step 702-705, re-compose a plurality of patterns based on the adjusted plurality of target dictionaries, and if there is an error pattern in the plurality of re-composed patterns, continue to repeat 701-705 processing procedure until the plurality of patterns composed 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 speech interaction system are all correct patterns, thereby implementing a generalization procedure for the speech interaction system.
In the embodiment of the application, by determining the error mode in a plurality of modes included in the voice interaction system, finding out the target dictionary cited by the error mode based on the query page, further directly performing target editing operation on the target dictionary based on the dictionary editing page, and displaying the operation result of the target dictionary in the editing page, the adjusted target dictionary can form a correct mode, the query, editing and the like of the dictionary do not need to be performed in the JSON file, the dictionary management efficiency is improved, and the generalization process efficiency of the voice interaction system is further improved.
Fig. 8 is a schematic structural diagram of a dictionary management device according to an embodiment of the present application. Referring to fig. 8, the apparatus includes:
a first display module 801, configured to display, in response to a dictionary query instruction, a target dictionary meeting a target query condition input in a query page based on the target query condition, where the dictionary query instruction is used to instruct to query a target dictionary meeting the target query condition in a plurality of dictionaries of a voice interaction system;
a second display module 802, configured to display, in response to a dictionary editing instruction for the target dictionary, an editing page of the target dictionary, where the editing page includes a plurality of editing function items and a plurality of vocabularies of the target dictionary, and each editing function item corresponds to a dictionary editing operation;
the editing module 803 is configured to perform a 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 display an operation result of the target dictionary in the editing page.
In a possible implementation, the editing module 803 is further configured to 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 to a vocabulary list area of the editing page for displaying;
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 to the existing vocabulary category in the vocabulary list area for displaying;
and in response to a trigger event for deleting the vocabulary item in the editing page, 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 a trigger event of a newly-built dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary to a 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 query instruction, acquiring a target category input in the dictionary category query box, and displaying at least one target dictionary belonging to the target category in the query page;
and responding to the dictionary query instruction, acquiring the target name input in the dictionary name query box, and displaying at least one target dictionary with the dictionary name containing the target name in the query page.
In a 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 status list page of the target dictionary in response to a triggering event of the status viewing function item, the status list page including at least one intention referring to words in the target dictionary and at least one mode referred to by the at least one intention;
the mode refers to an expression sentence composed of a plurality of words in a dictionary, and the intention refers to a function or a flow which refers to a plurality of modes to express the requirement of a user.
In one possible implementation, the apparatus further comprises any one of:
the first screening module is used for responding to an intention screening instruction, screening out a target intention which meets 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 the second screening module is used for responding to a mode screening instruction, screening out a target mode meeting 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 apparatus further includes:
the first obtaining module is used for responding to a trigger event of a pattern test set derived item corresponding to any pattern in the state list page, and obtaining a pattern test set corresponding to the pattern based on a plurality of dictionaries cited by the pattern, wherein the pattern test set comprises a plurality of vocabularies which are arranged in a target sequence in the plurality of dictionaries cited by the pattern;
and the second acquisition module is used for responding to a trigger event of an intention test set derivation 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 a 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 querying the target query condition in the page, manual query in a large number of JSON files is not needed, the 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 editing operation is automatically performed on the target dictionary based on the triggered target editing function item in the editing page, the operation result is displayed, the JSON files do not need to be manually opened 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 device 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 an event of existence of the error pattern in a plurality of patterns included in the voice interaction system, where the voice interaction system further includes a plurality of dictionaries, each pattern refers to an expression sentence composed of a plurality of words in a reference dictionary, and the dictionary reference information is used to indicate at least one target dictionary referenced by the error pattern;
a retrieving module 902, configured to, for each target dictionary in the at least one target dictionary, in response to a dictionary querying instruction, retrieve a target querying condition input in a querying page, where the target querying condition is used to indicate a target dictionary referenced by the error pattern;
a display module 903, configured to query the multiple dictionaries based on the target query condition, and display a target dictionary meeting the target query condition in the multiple dictionaries of the voice interaction system in the query page;
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 vocabularies of the target dictionary, and each editing function item corresponds to a dictionary editing operation;
and an editing module 904, configured to perform 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 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 form a second dictionary in a correct mode.
In the embodiment of the application, by determining the error mode in a plurality of modes included in the voice interaction system, finding out the target dictionary cited by the error mode based on the query page, further directly performing target editing operation on the target dictionary based on the dictionary editing page, and displaying the operation result of the target dictionary in the editing page, the adjusted target dictionary can form a correct mode, the query, editing and the like of the dictionary do not need to be performed in the JSON file, the dictionary management efficiency is improved, and the generalization process efficiency of the voice interaction system is further improved.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
It should be noted that: in the dictionary management device provided in the above embodiment, when managing the dictionary, only the division of the above functional modules is exemplified, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the computer device may be divided into different functional modules to complete all or part of the above described functions. In addition, the dictionary management device and the dictionary management method provided by the above embodiments belong to the same concept, and the specific implementation process thereof is described in the method embodiments in detail and is not described herein again.
Fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure, where the terminal 1000 may be a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio L layer III, mpeg Audio layer 3), an MP4 player (Moving Picture Experts Group Audio L layer IV, mpeg Audio layer 4), a notebook computer, or a desktop computer, and the terminal 1000 may also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
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, etc., the processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), a P L a (Programmable logic Array), the processor 1001 may also include a main processor and a coprocessor, the main processor is a processor for Processing data in a wake-up state, also known as a CPU (Central Processing Unit), the coprocessor is a low-power processor for Processing data in a standby state, in some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content desired for a display screen, and in some embodiments, the processor 1001 may also include an AI (intelligent processor 1001 for learning operations related to an AI processor).
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The 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 a dictionary management method provided by method embodiments herein.
In some embodiments, terminal 1000 can also optionally include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, touch screen display 1005, camera 1006, audio circuitry 1007, positioning components 1008, and power supply 1009.
The peripheral interface 1003 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1001 and the 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, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
Display 1005 is for displaying a UI (User Interface) that may include graphics, text, icons, video, and any combination thereof, when Display 1005 is a touch Display, Display 1005 also has the ability to capture touch signals on or over the surface of Display 1005. the touch signals may be input to processor 1001 for processing as control signals.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, 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 realizing voice communication. For stereo sound collection or noise reduction purposes, multiple microphones can be provided, each at a different location of terminal 1000. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1007 may also include a headphone jack.
The positioning component 1008 is used to position the current geographic location of the terminal 1000 to implement navigation or L BS (L geographic based Service). the positioning component 1008 can be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 1009 is used to supply power to various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may support wired charging or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can also include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
Acceleration sensor 1011 can detect acceleration magnitudes on three coordinate axes of a coordinate system established with terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the touch display screen 1005 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the terminal 1000, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to acquire a 3D motion of the user on the terminal 1000. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1013 may be disposed on a side frame of terminal 1000 and/or on a lower layer of touch display 1005. When pressure sensor 1013 is disposed on a side frame of terminal 1000, a user's grip signal on terminal 1000 can be detected, and processor 1001 performs left-right hand recognition or shortcut operation according to the grip signal collected by pressure sensor 1013. When the pressure sensor 1013 is disposed at a lower layer of the touch display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1005. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
Fingerprint sensor 1014 is used to collect a user's fingerprint, and the identity of the user is identified by processor 1001 according to the fingerprint collected by fingerprint sensor 1014, or the identity of the user is identified by fingerprint sensor 1014 according to the collected fingerprint when the identity of the user is identified as a trusted identity, the user is authorized by processor 1001 to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying and changing settings, etc.
The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the touch display screen 1005 according to the intensity of the ambient light collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; 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 also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
Proximity sensor 1016, also known as a distance sensor, is typically disposed on a front panel of terminal 1000. Proximity sensor 1016 is used to gather the distance between the user and the front face of terminal 1000. In one embodiment, when proximity sensor 1016 detects that the distance between the user and the front surface of terminal 1000 gradually decreases, processor 1001 controls touch display 1005 to switch from a bright screen state to a dark screen state; when proximity sensor 1016 detects that the distance between the user and the front of terminal 1000 is gradually increased, touch display screen 1005 is controlled by processor 1001 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 8 is not intended to be limiting and that terminal 1000 can include more or fewer components than shown, or some 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 generate a relatively large difference due to a difference in configuration or performance, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the memory 1102 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 1101 to implement the dictionary management method provided by each method embodiment. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, there is also provided a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal or server to perform the dictionary management method in the above-described embodiments. 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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (13)

1. A method of dictionary management, the method comprising:
displaying a target dictionary meeting the target query condition in a query page based on the target query condition input in the query page in response to a dictionary query instruction, wherein the dictionary query instruction is used for indicating that a target dictionary meeting the target query condition in a plurality of dictionaries of a voice interaction system is queried;
in response to a dictionary editing instruction for 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 a 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 the operation result of the target dictionary in the editing page.
2. The method according to claim 1, wherein 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 displaying of the operation result of the target dictionary in the editing page comprises 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 to a vocabulary list area of the editing page for displaying;
responding to a trigger event for adding vocabulary items in the editing page, acquiring a second newly added vocabulary, and adding the second newly added vocabulary to the existing vocabulary category in the vocabulary list area for displaying;
and responding to a trigger event for deleting the vocabulary items in the editing page, and deleting the vocabulary corresponding to the deleted vocabulary items in the vocabulary list area.
3. The method of claim 1, further comprising:
and responding to a trigger event of a newly-built dictionary item in the editing page, acquiring a first dictionary to be newly built, and adding the first dictionary to a dictionary list area of the editing page for displaying.
4. The method of claim 1, wherein the query page includes a dictionary category query box and a dictionary name query box, and wherein, in response to the dictionary query instruction, displaying in the query page a target dictionary that meets the target query condition based on the target query condition entered in the query page includes any one of:
responding to the dictionary query instruction, acquiring a target category input in the dictionary category query box, and displaying at least one target dictionary belonging to the target category in the query page;
and responding to the dictionary query instruction, acquiring the target name input in the dictionary name query box, and displaying at least one target dictionary with the dictionary name containing the target name in the query page.
5. The method of claim 1, wherein the query page includes at least one target dictionary, one edit operation entry for each target dictionary, and wherein displaying the edit page of the target dictionary in response to the dictionary edit instruction for the target dictionary comprises:
and responding to a trigger event of an editing operation inlet corresponding to any target dictionary in the query page, receiving the dictionary editing instruction based on the target dictionary corresponding to the triggered editing operation inlet, and displaying the editing page of the target dictionary.
6. The method of claim 1, wherein the editing page further comprises a status viewing function item of the target dictionary, the method further comprising:
in response to a triggering event of the status viewing function, displaying a status list page of the target dictionary, 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 mode refers to an expression sentence composed of a plurality of words in a dictionary, and the intention refers to a function or a flow which refers to a plurality of modes to express the requirement of a user.
7. The method of claim 6, wherein the status list page further comprises an intent filter box and a mode filter box, the method further comprising any of:
in response to an intention screening instruction, screening out a target intention which meets 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 meeting 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 export item and an intent test set export item, the method further comprising:
responding to a trigger event of a pattern test set export item corresponding to any pattern in the state list page, and acquiring a pattern test set corresponding to the pattern based on a plurality of dictionaries referred by the pattern, wherein the pattern test set comprises a plurality of vocabularies which are arranged in a target sequence in the dictionaries referred by the pattern;
and responding to a triggering event of an intention test set derivation 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, further comprising:
and responding to an editing instruction of any intention or any mode in the state list page, performing target state editing operation corresponding to a 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 method of dictionary management, the method comprising:
in response to an existence event of an error pattern in a plurality of patterns included in the voice interaction system, determining dictionary reference information of the error pattern, wherein each pattern refers to an expression sentence composed of a plurality of vocabularies in a 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, in response to a dictionary query instruction, obtaining a target query condition input in a query page, the target query condition indicating a target dictionary referenced by the error pattern;
inquiring the plurality of dictionaries based on the target inquiry condition, and displaying a target dictionary which meets the target inquiry condition in the plurality of dictionaries of the voice interaction system in the inquiry page;
in response to a dictionary editing instruction for 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 a 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 the operation result of the target dictionary in the editing page, wherein the target editing operation is used for adjusting the target dictionary to a second dictionary forming a correct mode.
11. A dictionary management apparatus characterized in that the apparatus comprises a plurality of functional modules for executing the dictionary management method according to any one of claim 1 to claim 10.
12. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction that is loaded and executed by the processor to implement a dictionary management method according to any one of claims 1 to 10.
13. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to implement a dictionary management method according to any one of claims 1 to 10.
CN202010136639.8A 2020-03-02 2020-03-02 Dictionary management method, dictionary management device, computer equipment and storage medium Active CN111475611B (en)

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 true CN111475611A (en) 2020-07-31
CN111475611B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN113934952A (en) * 2021-09-15 2022-01-14 南方电网深圳数字电网研究院有限公司 Method and device for building page in building block mode

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090024392A1 (en) * 2006-02-23 2009-01-22 Nec Corporation Speech recognition dictionary compilation assisting system, speech recognition dictionary compilation assisting method and speech recognition dictionary compilation assisting program
US20090083295A1 (en) * 2007-09-26 2009-03-26 Kabushiki Kaisha Toshiba Apparatus, computer program product, and method for managing meta data
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090024392A1 (en) * 2006-02-23 2009-01-22 Nec Corporation Speech recognition dictionary compilation assisting system, speech recognition dictionary compilation assisting method and speech recognition dictionary compilation assisting program
US20090083295A1 (en) * 2007-09-26 2009-03-26 Kabushiki Kaisha Toshiba Apparatus, computer program product, and method for managing meta data
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

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN113934952A (en) * 2021-09-15 2022-01-14 南方电网深圳数字电网研究院有限公司 Method and device for building page in building block mode
CN113934952B (en) * 2021-09-15 2024-05-14 南方电网数字平台科技(广东)有限公司 Method and device for building page in building block mode

Also Published As

Publication number Publication date
CN111475611B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN110471858B (en) Application program testing method, device and storage medium
CN110556127B (en) Method, device, equipment and medium for detecting voice recognition result
CN111290948B (en) Test data acquisition method and device, computer equipment and readable storage medium
CN111949680A (en) Data processing method and device, computer equipment and storage medium
WO2021008287A1 (en) Character recommending method and apparatus, and computer device and storage medium
CN109902089B (en) Query method and device using heterogeneous index, electronic equipment and medium
CN110837557B (en) Abstract generation method, device, equipment and medium
CN111475611B (en) Dictionary management method, dictionary management device, computer equipment and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN111666076B (en) Layer adding method, device, terminal and storage medium
CN113222771A (en) Method and device for determining target group based on knowledge graph and electronic equipment
CN111898353A (en) Table display method, device and medium
CN112100528A (en) Method, device, equipment and medium for training search result scoring model
CN113535039B (en) Method and device for updating page, electronic equipment and computer readable storage medium
CN113343709B (en) Method for training intention recognition model, method, device and equipment for intention recognition
CN116954597A (en) Form page generation method and device, electronic equipment, storage medium and product
CN111063372B (en) Method, device and equipment for determining pitch characteristics and storage medium
KR102488359B1 (en) Method and apparatus for processing lexical database
CN111294320B (en) Data conversion method and device
CN110928867B (en) Data fusion method and device
CN113408809A (en) Automobile design scheme evaluation method and device and computer storage medium
CN113268234A (en) Page generation method, device, terminal and storage medium
CN111125424A (en) Method, device, equipment and storage medium for extracting core lyrics of song
CN114756149B (en) Method, device, electronic equipment and storage medium for presenting data tag
CN108710612A (en) The method, apparatus of semantic tagger, computer equipment, readable storage medium storing program for executing

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