Domain recognition method, device, storage medium and electronic device for voice information

Through the combination of keyword matching templates and historical operation records, the correlation and importance of voice information are calculated, and the field to which the voice information belongs is identified. This solves the problem of inaccurate field matching caused by similar input in the semantic analysis of voice information, and improves the quality of voice information. Accuracy of domain identification.

CN110705308BActive Publication Date: 2024-09-20PING AN TECH (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN201910885400.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-18
Publication Date
2024-09-20
Estimated Expiration
2039-09-18

AI Technical Summary

Technical Problem

In the prior art, when semantic analysis of speech information is performed, similar speech input results in inaccurate domain matching results, and the semantic analysis results in similar fields cannot be effectively distinguished.

Method used

The keyword matching template is used to parse the voice information, combined with the importance weight in the user's historical operation records, to calculate the relevance score and importance weight of the semantic analysis information in each preset field, and identify the field to which the voice information belongs.

Benefits of technology

It improves the accuracy of domain matching results, avoids the problem of similar speech input being mismatched to similar fields, and enhances the accuracy of speech information domain recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110705308B
    Figure CN110705308B
Patent Text Reader

Abstract

The present application provides a method for identifying the domain of voice information, which relates to the field of similarity matching technology. The method includes: receiving voice information input by a user; in each preset domain, using a keyword matching template to parse the voice information, and generating semantic analysis information corresponding to the preset domain; according to the relevance weight of each keyword in each keyword matching template in the corresponding preset domain, calculating the relevance score of the semantic analysis information in the preset domain; obtaining the domain identification record in the user's historical operation record, and determining the importance weight of each preset domain in the domain identification record; according to the relevance score of the semantic analysis information in each preset domain and the importance weight of the preset domain, identifying whether the semantic analysis information belongs to the preset domain. The present application ensures the accuracy of the domain matching results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of similarity matching, and in particular to a method, device, storage medium and electronic device for domain recognition of voice information. Background Art

[0002] In order to facilitate users to use applications, most applications support voice input, so that users only need to input voice data to complete the operation when using the application, which is convenient to use. The application performs semantic analysis on the voice information input by the user, and then matches the corresponding field according to the result of the semantic analysis, so as to analyze the user's needs and perform the corresponding operation. However, simply matching the corresponding field with the result of the semantic analysis, when the user inputs similar voice information, the result of the semantic analysis will be matched to a similar field, resulting in inaccurate field matching results. Summary of the invention

[0003] The embodiments of the present application provide a method, device, storage medium and electronic device for domain identification of speech information, which can overcome the technical problem of matching the results of semantic analysis to similar fields to at least a certain extent, so as to improve the accuracy of the domain matching results.

[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0005] According to one aspect of an embodiment of the present application, a method for domain identification of speech information is provided, comprising:

[0006] Receive voice information input by the user;

[0007] In each preset domain, the voice information is parsed using a keyword matching template to generate semantic parsing information corresponding to the preset domain, wherein each keyword matching template includes at least one keyword;

[0008] For the keyword matching templates used in the semantic analysis information, the relevance score of the semantic analysis information in the preset field is calculated according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field;

[0009] Obtaining a domain identification record in the historical operation record of the user, and determining an importance weight of each preset domain in the domain identification record;

[0010] According to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field, it is identified whether the semantic analysis information belongs to the preset field.

[0011] In an optional embodiment of the present application, in each preset field, a keyword matching template is used to parse the voice information input by the user to generate semantic parsing information corresponding to the preset field, wherein each keyword matching template includes at least one keyword, including:

[0012] Performing voice recognition on the voice information input by the user to obtain text information corresponding to the voice information;

[0013] Segmenting the text information to obtain keywords contained in the text information;

[0014] In each preset field, the keywords contained in the text information are matched with the keyword matching template, and semantic analysis information of the text information in the preset field is generated according to a predetermined format.

[0015] In an optional embodiment of the present application, the domain identification method further includes:

[0016] For each preset field, obtaining a plurality of corpora corresponding to the preset field;

[0017] In each preset field, segmenting the obtained multiple corpora to obtain keywords in the multiple corpora;

[0018] The proportion of each keyword to all keywords in the corresponding preset field is calculated to obtain the relevance weight of the keyword in the preset field.

[0019] In an optional embodiment of the present application, for the keyword matching templates used by the semantic parsing information, the relevance score of the semantic parsing information in the preset field is calculated according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, including:

[0020] Obtaining the relevance weight of each keyword in each keyword matching template in the corresponding preset field;

[0021] The sum of the relevance weights of all keywords is calculated to obtain the relevance score of the semantic analysis information in the preset field.

[0022] In an optional embodiment of the present application, obtaining a domain identification record in the historical operation record of the user, and determining the importance weight of each preset domain in the domain identification record includes:

[0023] Obtaining domain identification records from historical operation records;

[0024] Counting the number of times each predetermined domain appears in the domain identification record;

[0025] The proportion of the number of occurrences of each preset field to all fields in the field identification record is calculated to obtain the importance weight of each preset field in the field identification record.

[0026] In an optional embodiment of the present application, identifying whether the semantic parsing information belongs to the preset field according to the relevance score of the semantic parsing information in each preset field and the importance weight of the preset field includes:

[0027] Calculating the relevance score of the semantic analysis information in each preset field and the sum of the importance weights of the preset fields to obtain the conformity of the semantic analysis information in the preset fields;

[0028] According to the conformity of the semantic analysis information in each preset field, the preset field corresponding to the maximum conformity is determined as the field to which the semantic analysis information belongs.

[0029] In an optional embodiment of the present application, for the keyword matching template adopted by the semantic parsing information, after calculating the relevance score of the semantic parsing information in the preset field according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, the further comprising:

[0030] The preset domain recognized according to the user's voice input is stored in a domain recognition record.

[0031] According to one aspect of an embodiment of the present application, a device for identifying a domain of speech information is provided, including:

[0032] A receiving module, used for receiving voice information input by a user;

[0033] A parsing module, configured to parse the voice information in each preset domain using a keyword matching template to generate semantic parsing information corresponding to the preset domain, wherein each keyword matching template includes at least one keyword;

[0034] A calculation module, for calculating the relevance score of the semantic analysis information in the preset field according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, with respect to the keyword matching template adopted by the semantic analysis information;

[0035] An acquisition module, used to acquire a domain identification record in the historical operation record of the user, and determine the importance weight of each preset domain in the domain identification record;

[0036] The identification module is used to identify whether the semantic analysis information belongs to the preset field according to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field.

[0037] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the domain identification method of voice information as described in the above embodiment is implemented.

[0038] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the domain recognition method of voice information as described in the above embodiments.

[0039] In the technical solutions provided in some embodiments of the present application, by using a keyword matching template to parse the voice information input by the user in each preset field, semantic analysis information corresponding to the preset field is generated, and for the keyword matching template used by the semantic analysis information, the relevance score of the semantic analysis information in the preset field is calculated according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, and then the importance weight of each preset field in the field identification record is determined by obtaining the field identification record in the historical operation record of the user, and finally, according to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field, it is identified whether the semantic analysis information belongs to the preset field. The preset field to which the semantic analysis information belongs is determined based on the voice information input by the user and the historical field matching record of the user, so that the determination of the preset field takes into account the user's usage habits and improves the accuracy of the preset field identification.

[0040] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0042] Figure 1A schematic diagram showing an exemplary system architecture to which the method for domain identification of speech information or the device for domain identification of speech information according to the embodiments of the present application can be applied;

[0043] Figure 2 A schematic diagram showing a flow chart of a method for domain identification of speech information according to an embodiment of the present application;

[0044] Figure 3 An embodiment according to the present application is shown. Figure 2 A flow chart of step S220 in the method for domain identification of voice information;

[0045] Figure 4 A schematic diagram showing a process of determining the relevance weight of a keyword in a method for domain identification of speech information according to an embodiment of the present application;

[0046] Figure 5 An embodiment according to the present application is shown. Figure 2 A flow chart of step S230 in the method for domain identification of voice information;

[0047] Figure 6 An embodiment according to the present application is shown. Figure 2 A flow chart of step S240 in the method for domain identification of voice information;

[0048] Figure 7 An embodiment according to the present application is shown. Figure 2 A flow chart of step S250 in the method for domain identification of speech information;

[0049] Figure 8 A block diagram of a device for identifying a domain of speech information according to an embodiment of the present application is shown;

[0050] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0051] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0052] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0053] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0054] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0055] Please refer to Figure 1 , Figure 1 A schematic diagram showing an exemplary system architecture 100 to which the method for domain identification of speech information or the device for domain identification of speech information according to the embodiments of the present application can be applied;

[0056] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0057] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0058] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, portable computers, desktop computers, etc.

[0059] In a specific application scenario of the present application, a user can use terminal devices 101, 102, 103 to send voice information to a server 105 via a network 104. The server 105 can perform semantic analysis on the received voice information and identify the corresponding field based on the results of the semantic analysis.

[0060] In one embodiment of the present application, a server (e.g., server 105) may receive voice information input by a user, and then in each preset field, use a keyword matching template to parse the voice information to generate semantic parsing information corresponding to the preset field, wherein each keyword matching template includes at least one keyword. And for the keyword matching template used for the semantic parsing information, the relevance score of the semantic parsing information in the preset field is calculated based on the relevance weight of each keyword in each keyword matching template in the corresponding preset field. Then, the field identification record in the user's historical operation record is obtained to determine the importance weight of each preset field in the field identification record. Finally, based on the relevance score of the semantic parsing information in each preset field and the importance weight of the preset field, it is identified whether the semantic parsing information belongs to the preset field.

[0061] Based on the above application scenarios, it can be known that the domain identification method of voice information provided in the embodiment of the present application can be executed by the server, and accordingly, the domain identification device of voice information is generally arranged in the server. However, in other embodiments of the present application, the terminal device (one or more of the terminal devices 101, 102, and 103) may also have similar functions, so as to execute the domain identification method of voice information provided in the embodiment of the present application, that is, in the embodiment of the present application, one or more of the terminal devices 101, 102, and 103 can receive the voice information input by the user, and then in each preset field, the voice information is parsed using a keyword matching template to generate semantic parsing information corresponding to the preset field, wherein each keyword matching template includes at least one keyword. And for the keyword matching template used by the semantic parsing information, according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, the relevance score of the semantic parsing information in the preset field is calculated. Then obtain the field identification record in the historical operation record of the user, determine the importance weight of each preset field in the field identification record, and finally identify whether the semantic parsing information belongs to the preset field according to the relevance score of the semantic parsing information in each preset field and the importance weight of the preset field.

[0062] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0063] Please refer to Figure 2 , Figure 2 A flow chart of a method for domain identification of speech information according to an embodiment of the present application is shown. The method for domain identification of speech information can be executed by a server, which can be Figure 1 Refer to the server shown in . Figure 2 As shown, the domain identification method of voice information at least includes steps S210 to S250, which are described in detail as follows:

[0064] In step S210, voice information input by a user is received.

[0065] Among them, voice information can be voice data input by the user and used to operate the application. For example, when the user wants to buy a train ticket, he can say "buy a train ticket" to operate the application. When the user wants to open an application, he can say "open XXX (application name)" and so on.

[0066] In step S220, in each preset domain, the voice information is parsed using a keyword matching template to generate semantic parsing information corresponding to the preset domain, wherein each keyword matching template includes at least one keyword.

[0067] The preset domain refers to a domain obtained by pre-dividing the voice content that the user may input, such as train tickets, air tickets, hotel reservations, product purchases, and application openings.

[0068] The keyword matching template refers to a template preset in each preset field and used to parse the voice information input by the user. Each keyword matching template includes at least one keyword insertion position to match the voice information. For example, in the field of train tickets, the preset keyword matching template is "I want to buy a train ticket for XXX (time)", etc. The keyword matching template includes at least one keyword. For example, in the keyword matching template "I want to buy a train ticket for XXX (time)", "buy" and "train ticket" are keywords, etc.

[0069] The semantic analysis information is generated by analyzing the voice information input by the user in each preset field. Specifically, the voice information input by the user is converted into text information, and the text information is matched with a keyword matching template in each preset field, and the semantic analysis information of the voice information input by the user in each preset field is generated accordingly.

[0070] In step S230, for the keyword matching templates used in the semantic analysis information, the relevance score of the semantic analysis information in the preset field is calculated according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field.

[0071] The relevance weight of each keyword in the corresponding preset field is used to indicate the importance of the keyword in the corresponding preset field. The greater the relevance weight of the keyword, the higher the importance of the keyword in the corresponding preset field. The same keyword also has different relevance weights in different preset fields. For example, in the shopping field, the relevance weight of "purchase" is greater than the relevance weight of "train tickets", while in the train ticket field, the relevance weight of the keyword "train tickets" is greater than the relevance weight of the keyword "purchase".

[0072] The relevance score of the semantic analysis information in each preset field is used to indicate the relevance degree of the semantic analysis information to each preset field. The higher the relevance score of the semantic analysis information in the preset field, the greater the relevance degree of the semantic analysis information to the preset field.

[0073] Continue to refer Figure 2 In step S240, the domain identification record in the historical operation record of the user is obtained, and the importance weight of each preset domain in the domain identification record is determined.

[0074] Among them, the historical operation record refers to a record that records the results of the user's historical voice information domain recognition. By obtaining the domain recognition record in the user's historical operation record, the importance weight of each preset domain in the domain recognition record can be determined. The greater the importance weight, the more times the preset domain appears in the domain recognition record. According to the importance weight, the user's commonly used preset domains can be identified.

[0075] In step S250, whether the semantic analysis information belongs to the preset field is identified according to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field.

[0076] exist Figure 2 In the illustrated embodiment, whether the semantic parsing information belongs to the preset domain is identified based on the relevance score of the semantic parsing information in each preset domain and the importance weight of the preset domain in the domain identification record, so that the domain identification of the semantic parsing information is based on its own meaning and the user's usage habits, thereby improving the accuracy of the domain identification of the semantic parsing information and avoiding the error of similar voice information but different meanings being classified as the same preset domain.

[0077] Please refer to Figure 3 , Figure 3 An embodiment according to the present application is shown Figure 2 The flowchart of step S220 in the method for domain recognition of voice information is shown in FIG. Figure 3In the illustrated embodiment, step S220 of the method for identifying the domain of speech information includes at least steps S310 to S330, which are described in detail as follows:

[0078] In step S310, voice recognition is performed on the voice information input by the user to obtain text information corresponding to the voice information.

[0079] Among them, the voice information input by the user is subjected to voice recognition to obtain corresponding text information, which is convenient for subsequent preset field matching.

[0080] In step S320, the text information is segmented to obtain keywords contained in the text information.

[0081] In step S330, in each preset field, the keywords contained in the text information are matched with the keyword matching template, and semantic analysis information of the text information in the preset field is generated according to a predetermined format.

[0082] In this embodiment, keywords are extracted from the text information generated by speech recognition, and semantic parsing information is generated in a predetermined format using at least one keyword matching template in each preset field based on the extracted keywords. For example, in the field of train tickets, the semantic parsing information obtained by parsing based on two keyword matching templates, such as a keyword matching template with time and a keyword matching template with price, is "I spent 75 yuan the day before yesterday morning", etc.

[0083] exist Figure 3 In the embodiment shown, the voice information input by the user is subjected to voice recognition to obtain corresponding text information, and then the obtained text information is matched by using a keyword matching template in each preset field and corresponding semantic analysis information is generated, so that the possible meanings of the voice information input by the user are identified, thereby ensuring the integrity of the field recognition of the voice information.

[0084] Please refer to Figure 4 , Figure 4 The method for domain identification of speech information according to an embodiment of the present application further includes a flow chart of determining the relevance weight of a keyword. Figure 4 In the illustrated embodiment, the exemplary method for domain identification of voice information further includes:

[0085] In step S410, for each preset field, a plurality of corpora corresponding to the preset field are obtained.

[0086] The corpus refers to the commonly used sentence patterns in the preset field. For example, the corpus in the train ticket field is: "I want to buy a train ticket", "I want to take tomorrow's train", etc.

[0087] In step S420, in each preset field, the acquired multiple corpora are segmented to obtain keywords in the multiple corpora.

[0088] In this embodiment, the acquired corpus is segmented to obtain keywords in the corpus. For example, in the field of train tickets, the corpus "I want to buy a train ticket" and the corpus "I want to take tomorrow's train" are segmented to obtain "I", "want", "buy", "train", "ticket", "I", "want", "ride", "tomorrow", "of", and "train". The subject and some words without actual meaning (such as "I", "want", and "of") are removed to obtain the keywords: "buy", "train", "ticket", "ride", "tomorrow", and "train".

[0089] In step S430, the proportion of each keyword to all keywords in the corresponding preset field is calculated to obtain the relevance weight of the keyword in the preset field.

[0090] In this embodiment, the proportion of each keyword to all keywords in the corresponding preset field is calculated to obtain the relevance weight of the keyword in the preset field. For example, in the field of train tickets, all keywords are "buy", "train", "ticket", "ride", "tomorrow", and "train". The relevance weight of each keyword is calculated separately, and it is found that in the field of train tickets, the relevance weight of "buy" is 1 / 6, the relevance weight of "train" is 1 / 3, the relevance weight of "ticket" is 1 / 6, the relevance weight of "ride" is 1 / 6, and the relevance weight of "tomorrow" is 1 / 6. In other embodiments of the present application, in order to make the relevance weight of each keyword in each preset field more accurate, a sufficient amount of corpus can be obtained for calculation.

[0091] based on Figure 2 The domain identification method of the voice information shown in FIG. 1 is a method for identifying a domain of the voice information shown in FIG. 1 , in an exemplary embodiment of the present application, Figure 5 As shown, step S230 in the exemplary method for domain identification of voice information includes at least steps S510 to S520, which are described in detail as follows:

[0092] In step S510, the relevance weight of each keyword in each keyword matching template in the corresponding preset field is obtained.

[0093] In this embodiment, in each preset field, the relevance weight of each keyword in the preset field in the keyword matching template used to parse the voice information input by the user to generate semantic analysis information is obtained.

[0094] In step S520, the sum of the relevance weights of all keywords is calculated to obtain the relevance score of the semantic analysis information in the preset field.

[0095] In this embodiment, the obtained relevance weights of all keywords in each preset field are added together to obtain the relevance score of the semantic analysis information in the preset field. The larger the relevance score, the greater the relevance of the semantic analysis information to the preset field.

[0096] Please refer to Figure 6 , Figure 6 A flow chart of step S240 in a method for domain identification of speech information according to an exemplary embodiment of the present application is shown. Figure 6 In the illustrated embodiment, the exemplary method for domain identification of voice information, step S240, includes at least steps S610 to S630, which are described in detail as follows:

[0097] In step S610, a domain identification record is obtained from the historical operation record.

[0098] In step S620, the number of occurrences of each preset domain in the domain identification record is calculated.

[0099] In this embodiment, the number of occurrences of each preset field in the field identification record of the user is calculated respectively. According to the number of occurrences of each preset field in the field identification record, the user's usage habits can be obtained, and the more times each preset field appears, the more often the user uses the preset field.

[0100] In step S630, the proportion of the number of occurrences of each preset field to all fields in the field identification record is calculated to obtain the importance weight of each preset field in the field identification record.

[0101] In this embodiment, according to the number of times each preset field appears in the field identification record, it is divided by the total number of times the field appears in the field identification record to obtain the proportion of the number of times each preset field appears in the total number of times in the field identification record, and the proportion is determined as the importance weight of the preset field in the field identification record, so that the user's usage habits can be fully considered in the field identification process, thereby ensuring the accuracy of field identification.

[0102] Please refer to Figure 7 , Figure 7 A flow chart of step S250 in a method for domain identification of speech information according to an exemplary embodiment of the present application is shown. Figure 7 In the illustrated embodiment, step S250 in the exemplary method for domain identification of speech information includes at least steps S710 to S720, which are described in detail as follows:

[0103] In step S710, the relevance score of the semantic analysis information in each preset field and the sum of the importance weights of the preset fields are calculated to obtain the conformity of the semantic analysis information in the preset fields.

[0104] In this embodiment, the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field are added to obtain the conformity of the semantic analysis information in the preset field. The greater the conformity, the greater the possibility that the semantic analysis information belongs to the preset field.

[0105] In step S720, according to the degree of conformity of the semantic parsing information in each preset field, the preset field corresponding to the maximum degree of conformity is determined as the field to which the semantic parsing information belongs.

[0106] In this embodiment, the preset domain corresponding to the maximum degree of conformity is selected as the domain to which the semantic parsing information belongs, so that the determination of the domain fully considers the user's usage habits and the original meaning of the semantic parsing information, makes the domain identification result more in line with the user's usage habits, and ensures the accuracy of domain identification.

[0107] In other embodiments of the present application, the relevance score of the semantic analysis information in each preset field may be multiplied by the importance weight of the preset field to obtain the conformity of the semantic analysis information in the preset field, and the present application does not make any special limitation on this.

[0108] In an exemplary embodiment of the present application, after calculating the relevance score of the semantic analysis information in the preset field according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, the method further includes:

[0109] The preset domain recognized according to the user's voice input is stored in a domain recognition record.

[0110] In this embodiment, the preset domains identified according to the user's voice input are stored in the domain identification record to enrich the data volume of the domain identification record, so that the importance weight calculation of each preset domain is more accurate.

[0111] The following describes an apparatus embodiment of the present application, which can be used to execute the domain identification method of voice information in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the embodiment of the domain identification method of voice information in the above-mentioned embodiment of the present application.

[0112] Figure 8 A block diagram of a device for identifying a domain of speech information according to an embodiment of the present application is shown.

[0113] Reference Figure 8 As shown, according to an embodiment of the present application, a domain identification device for voice information includes:

[0114] The receiving module 810 is used to receive the voice information input by the user;

[0115] The parsing module 820 is used to parse the voice information in each preset field using a keyword matching template to generate semantic parsing information corresponding to the preset field, wherein each keyword matching template includes at least one keyword;

[0116] A calculation module 830 is used to calculate the relevance score of the semantic analysis information in the preset field according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, for the keyword matching template used by the semantic analysis information;

[0117] An acquisition module 840 is used to acquire a domain identification record in the historical operation record of the user, and determine the importance weight of each preset domain in the domain identification record;

[0118] The identification module 850 is used to identify whether the semantic analysis information belongs to the preset field according to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field.

[0119] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0120] It should be noted that Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0121] like Fig. 9 As shown, the computer system includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 to the random access memory (RAM) 903, such as executing the method described in the above embodiment. In RAM 903, various programs and data required for system operation are also stored. CPU 901, ROM 902 and RAM 903 are connected to each other through bus 904. Input / output (I / O) interface 905 is also connected to bus 904.

[0122] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.

[0123] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, various functions defined in the system of the present application are executed.

[0124] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0125] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0126] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0127] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0128] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0129] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0130] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0131] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for domain recognition of speech information, characterized in that: include: Receive voice information input by the user; In each preset domain, the voice information is parsed using a keyword matching template to generate semantic parsing information corresponding to the preset domain, wherein each keyword matching template includes at least one keyword, wherein the preset domain refers to a domain obtained by pre-dividing the voice content that may be input by the user; For the keyword matching templates used in the semantic analysis information, the relevance score of the semantic analysis information in the preset field is calculated according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field; Obtaining a domain identification record in the user's historical operation record, and determining an importance weight of each preset domain in the domain identification record, wherein a greater importance weight represents a greater number of occurrences of the preset domain in the domain identification record, and the user's frequently used preset domains can be identified according to the importance weight; According to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field, it is identified whether the semantic analysis information belongs to the preset field.

2. The domain identification method according to claim 1, characterized in that: In each preset domain, the voice information is parsed using a keyword matching template to generate semantic parsing information corresponding to the preset domain, wherein each keyword matching template includes at least one keyword, including: Performing voice recognition on the voice information input by the user to obtain text information corresponding to the voice information; Segmenting the text information to obtain keywords contained in the text information; In each preset field, the keywords contained in the text information are matched with the keyword matching template, and semantic analysis information of the text information in the preset field is generated according to a predetermined format.

3. The domain identification method according to claim 1, characterized in that: Also includes: For each preset field, obtaining a plurality of corpora corresponding to the preset field; In each preset field, segmenting the obtained multiple corpora to obtain keywords in the multiple corpora; The proportion of each keyword to all keywords in the corresponding preset field is calculated to obtain the relevance weight of the keyword in the preset field.

4. The domain identification method according to claim 1, characterized in that: For the keyword matching templates used in the semantic analysis information, the relevance score of the semantic analysis information in the preset field is calculated according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, including: Obtaining the relevance weight of each keyword in each keyword matching template in the corresponding preset field; The sum of the relevance weights of all keywords is calculated to obtain the relevance score of the semantic analysis information in the preset field.

5. The domain identification method according to claim 1, characterized in that: Obtaining a domain identification record in the historical operation record of the user, and determining the importance weight of each preset domain in the domain identification record, including: Obtaining domain identification records from historical operation records; Counting the number of times each predetermined domain appears in the domain identification record; The proportion of the number of occurrences of each preset field to all fields in the field identification record is calculated to obtain the importance weight of each preset field in the field identification record.

6. The domain identification method according to claim 1, characterized in that: According to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field, identifying whether the semantic analysis information belongs to the preset field includes: Calculating the relevance score of the semantic analysis information in each preset field and the sum of the importance weights of the preset fields to obtain the conformity of the semantic analysis information in the preset fields; According to the conformity of the semantic analysis information in each preset field, the preset field corresponding to the maximum conformity is determined as the field to which the semantic analysis information belongs.

7. The domain identification method according to claim 1, characterized in that: After calculating the relevance score of the semantic analysis information in the preset field according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field for the keyword matching template adopted for the semantic analysis information, the method further includes: The preset domain recognized according to the user's voice input is stored in a domain recognition record.

8. A domain recognition device for speech information, characterized in that: include: A receiving module, used for receiving voice information input by a user; A parsing module, configured to parse the voice information in each preset domain by using a keyword matching template to generate semantic parsing information corresponding to the preset domain, wherein each keyword matching template includes at least one keyword, wherein the preset domain refers to a domain obtained by pre-dividing the voice content that may be input by the user; A calculation module, for calculating the relevance score of the semantic analysis information in the preset field according to the relevance weight of each keyword in each keyword matching template in the corresponding preset field, with respect to the keyword matching template adopted by the semantic analysis information; an acquisition module, used to acquire the domain identification record in the historical operation record of the user, and determine the importance weight of each preset domain in the domain identification record. The greater the importance weight, the more times the preset domain appears in the domain identification record. According to the importance weight, the user's frequently used preset domains can be identified; The identification module is used to identify whether the semantic analysis information belongs to the preset field according to the relevance score of the semantic analysis information in each preset field and the importance weight of the preset field.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for domain identification of speech information according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the domain recognition method of speech information as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for semantic analysis of natural language

    CN103268313A

  • Information searching method and apparatus

    CN105653673A

  • Method and device for calculating text theme membership degree

    CN106598999A

  • Field identification method and device of semantic analysis information, equipment and readable medium

    CN107193973A

  • Method for recogniting speech using dynamic weight and topic information

    KR1020180038707A