Semantic entity recognition method and apparatus, and speech interaction system, vehicle and medium
By constructing a scene semantic directed structure graph and a random walk graph algorithm, the problem of inflexible business adjustment and expansion in the existing technology is solved, and efficient voice interaction and user experience improvement in dynamic scenarios are achieved.
Patent Information
- Application Number
- PCT/CN2023/131508
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2023-11-14
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technologies rely on large batches of annotated data in entity semantic understanding, resulting in inflexible business adjustment and expansion and difficulty in adapting to dynamic scenarios.
By constructing a scene semantic directed structure graph, using core mention words to search for target entity objects, integrating semantic information of different granularities, dynamically adjusting and expanding services, and using a random walk graph algorithm for entity candidate and sorting.
It achieves flexible business expansion and semantic understanding generalization in dynamic scenarios, reduces dependence on annotated data, and improves the accuracy and user experience of voice interaction.
Smart Images

Figure CN2023131508_06092024_PF_FP
Abstract
Description
Semantic entity recognition method and device, voice interaction system, vehicle and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 28, 2023, with application number 202310227450.3 and entitled “Semantic Entity Recognition Method and Device and Voice Interaction System, Vehicle and Medium,” the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of speech technology, and in particular to a semantic entity recognition method, a semantic recognition device, a speech interaction system, a vehicle, and a computer-readable storage medium. Background Art
[0004] Entity semantic understanding is a very basic task in NLP (Natural Language Processing).
[0005] Currently, the semantic understanding of entity objects is achieved by extracting voice command text using a deep learning NER (Named Entity Recognition) algorithm and then identifying the entity objects using a knowledge base. This approach relies on large amounts of valid annotated data, resulting in a significant workload. Furthermore, during business adjustments, the training dataset must be adjusted to retrain the model from scratch, making business adjustments and expansion inflexible.
[0006] Summary of the Invention
[0007] This application aims to solve at least one of the technical problems existing in the prior art. To this end, the first embodiment of this application proposes a semantic entity recognition method that can flexibly and dynamically adjust the semantic enhancement and semantic generalization effects, with flexible business adjustment and expansion, and is suitable for dynamic scenarios.
[0008] The second embodiment of the present application proposes a semantic entity recognition device.
[0009] The third embodiment of the present application proposes a voice interaction system.
[0010] A fourth embodiment of the present application provides a vehicle.
[0011] The fifth embodiment of the present application proposes a computer-readable storage medium.
[0012] In order to solve the above problems, the semantic entity recognition method of the first aspect embodiment of the present application includes: preprocessing the voice command information to obtain the core mentioned words contained in the voice command information; and searching the scene semantic directed structure graph based on the core mentioned words to obtain the target entity object matching the core mentioned words, wherein the scene semantic directed structure graph is constructed by the scene entity objects in the current scene and semantically associated words of different granularities of the scene entity objects.
[0013] According to the semantic entity recognition method of the embodiment of the present application, the scene semantic directed structure graph is dynamically constructed through the scene, which can adjust and expand the business in real time and has strong business expansion capabilities. In addition, the scene semantic directed structure graph can integrate semantic information such as synonyms and synonyms of various granularities, which can ensure the generalization effect of semantic understanding. It can also flexibly expand the generalization capability by adjusting the semantic vocabulary, which is suitable for dynamic scenarios.
[0014] In some embodiments, the semantically associated vocabulary of different granularities of the scene entity object includes scene vocabulary and information source vocabulary, wherein the scene vocabulary is obtained by segmenting the scene entity object and the semantically associated vocabulary of the scene entity object, and the information source vocabulary includes the scene vocabulary and the semantically associated vocabulary of the scene vocabulary; wherein directed edges are formed between the scene vocabulary and the information source vocabulary with semantically associated relationships, and directed edges are formed between the scene vocabulary and the scene entity object with semantically associated relationships.
[0015] In some embodiments, the semantically associated vocabulary includes at least one of synonyms, antonyms, and hypernyms of the scene entity object.
[0016] In some embodiments, searching the scene semantic directed structure graph according to the core mention word to obtain a target entity object that matches the core mention word includes: searching the scene semantic directed structure graph according to the core mention word to obtain candidate entity objects; obtaining the text matching degree between the core mention word and each of the candidate entity objects; and determining the target entity object corresponding to the voice instruction information according to the text matching degree.
[0017] In some embodiments, searching the scene semantic directed structure graph according to the core mentioned words to obtain candidate entity objects includes: searching the scene semantic directed structure graph according to a preset graph search algorithm, wherein the information source vocabulary matching the core mentioned words is used as the search starting point, and limiting the search end point to the scene entity object corresponding to the scene semantic directed structure graph; obtaining a random scene entity object in the scene semantic directed structure graph corresponding to the search end point; and using the random scene entity object that meets the candidate entity object conditions as the candidate entity object.
[0018] In some embodiments, random scene entity objects that meet the candidate entity object conditions are used as the candidate entity objects, including: obtaining scores of the random scene entity objects; sorting the scores of the random scene entity objects; and selecting a preset number of random scene entity objects with higher scores as the candidate entity objects, or selecting random scene entity objects with scores exceeding a score threshold as the candidate entity objects.
[0019] In some embodiments, obtaining the text matching degree between the core mention word and each of the candidate entity objects includes: obtaining the shortest path between the core mention word and the candidate entity object; determining the target candidate entity object and the target core mention word with path connection based on the shortest path; obtaining the first text matching length between the target core mention word and the target candidate entity object; and obtaining the text matching degree between the target core mention word and the target candidate entity object based on the first text matching length and the text length of the target core mention word.
[0020] In some embodiments, based on the first text matching length and the length of the target core mention word, the text matching degree between the target core mention word and the target candidate entity object is obtained, including: obtaining the ratio of the first text matching length to the text length of the target core mention word as the text matching degree between the target core mention word and the target candidate entity object.
[0021] In some embodiments, the semantic entity recognition method also includes: determining the target scene vocabulary from the target core mention word to the target candidate entity object based on the shortest path; obtaining a second text matching length between the target scene vocabulary and the target candidate entity object; and obtaining the ratio of the second text matching length to the text length of the target candidate entity object as the text matching degree between the target core mention word and the target candidate entity object.
[0022] In some embodiments, obtaining the text matching degree between the core mention word and each of the candidate entity objects includes: obtaining the shortest path between the core mention word and the candidate entity object; determining the target candidate entity object, target core mention word and target scene vocabulary with path connection based on the shortest path; obtaining a first text matching length between the target core mention word and the target candidate entity object, and obtaining a second text matching length between the target scene vocabulary and the target candidate entity object; obtaining a first ratio of the first text matching length to the text length of the target core mention word, and obtaining a second ratio of the second text matching length to the text length of the target candidate entity object; obtaining the text matching degree between the target core mention word and the target candidate entity object based on the first ratio, the second ratio and the corresponding weights.
[0023] In some embodiments, determining the target entity object corresponding to the voice instruction information based on the text matching degree includes: determining the candidate entity object whose text matching degree exceeds a matching degree threshold as the target entity object corresponding to the voice instruction information.
[0024] In some embodiments, the voice instruction information is preprocessed to obtain core mentioned words contained in the voice instruction information, including: converting the voice instruction information into voice instruction text; performing word segmentation processing on the voice instruction text and removing stop words to obtain the core mentioned words.
[0025] In order to solve the above problem, the semantic entity recognition device of the second embodiment of the present application includes:
[0026] A voice information processing module is used to pre-process the voice command information to obtain the core mentioned words contained in the voice command information; and a search module is used to search the scene semantic directed structure graph according to the core mentioned words to obtain the target entity object that matches the core mentioned words, wherein the scene semantic directed structure graph is constructed by the scene entity objects in the current scene and the semantically associated words of different granularities of the scene entity objects.
[0027] According to the semantic entity recognition device of the embodiment of the present application, the core mentioned words are obtained through the voice information processing module, and the scene semantic directed structure graph is searched according to the core mentioned words through the search module to obtain the target entity object that matches the core mentioned words. The scene semantic directed structure graph is dynamically constructed based on the scene, and the business can be adjusted and expanded in real time. It has strong business expansion capabilities, and the scene semantic directed structure graph can integrate semantic information such as synonyms and synonyms of various granularities, which can ensure the generalization effect of semantic understanding. It can also flexibly expand the generalization capability by adjusting the semantic vocabulary, realize more accurate voice interaction, and improve user experience.
[0028] In order to solve the above problems, the voice interaction system of the third aspect of the present application includes: at least one processor; and a memory, which is communicatively connected to the at least one processor, and the memory stores a computer program that can be executed by the at least one processor, and the at least one processor implements the entity recognition method when executing the computer program.
[0029] According to the voice interaction system of the embodiment of the present application, at least one processor executes the entity recognition method of the above embodiment to determine the target entity object, which can adjust and expand the business in real time, improve the generalization effect of semantic understanding, have flexible expansion and generalization capabilities, and can achieve more accurate voice interaction and improve user experience.
[0030] In order to solve the above problems, the vehicle of the fourth embodiment of the present application includes the above-mentioned voice interaction system.
[0031] According to the vehicle of the embodiment of the present application, by adopting the voice interaction system of the above embodiment, more accurate voice interaction can be achieved in dynamic scenarios, thereby improving user experience.
[0032] The fifth aspect embodiment of the present application further proposes a computer-readable storage medium, characterized in that a computer program is stored thereon, and the computer program implements the entity recognition method when executed by a processor.
[0033] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0035] FIG1 is a flowchart of a semantic entity recognition method according to an embodiment of the present application.
[0036] FIG2 is a schematic diagram of dynamically constructing a scene semantic directed structure graph according to an embodiment of the present application.
[0037] FIG3 is a schematic diagram of obtaining candidate entity objects using a preset graph search algorithm according to an embodiment of the present application.
[0038] FIG4 is a schematic block diagram of a semantic entity recognition apparatus according to an embodiment of the present application.
[0039] FIG5 is a schematic block diagram of a voice interaction system according to an embodiment of the present application.
[0040] FIG6 is a schematic block diagram of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following describes in detail embodiments of the present application, and the embodiments described with reference to the accompanying drawings are exemplary.
[0042] The following describes a semantic entity recognition method according to an embodiment of the first aspect of the present application with reference to Figures 1 to 3.
[0043] Figure 1 is a flow chart of a semantic entity recognition method according to an embodiment of the present application. As shown in Figure 1 , the semantic entity recognition method according to the embodiment of the present application at least includes steps S1 and S2.
[0044] S1, preprocessing the voice command information to obtain the core mentioned words contained in the voice command information.
[0045] Specifically, voice command information is obtained. In an embodiment, the voice command information may be a specific voice interaction command in a set current scenario, such as a voice query command. For example, the voice command information in the current scenario may be collected by a voice collection system and sent to a voice processing system.
[0046] In some embodiments, preprocessing may include form conversion, word segmentation, deletion of invalid words, etc., to obtain the most effective interactive backbone words in the voice instruction information, that is, the core mentioned words.
[0047] Specifically, the voice command information is converted into voice command text; the voice command text is segmented and stop words are removed to obtain the core mentioned words. The voice command can be segmented and stop words can be removed based on a dictionary or model, so that some invalid words can be deleted.
[0048] For example, in-car voice commands often contain many modifiers and qualifiers. Removing these words does not affect the semantics and can be treated as stop words. For example, in the sentence "Um, please open the window for me," "help me" / "a while" are modifiers, while "um" / "right" are modifiers.
[0049] S2, searches the scene semantic directed structure graph according to the core mentioned words to obtain the target entity objects that match the core mentioned words.
[0050] Among them, the scene semantic directed structure graph is constructed by the scene entity objects in the current scene and the semantically associated words of different granularities of the scene entity objects.
[0051] For example, different granularities may include coarse granularity and fine granularity. Coarse granularity may include some related generalized words, such as but not limited to hypernyms and generalized vocabulary; fine granularity may include but not limited to synonyms and antonyms.
[0052] Therefore, by dynamically constructing a scene semantic directed structure diagram, not only can corresponding entity control objects be dynamically added, but also semantic information such as hypernyms and synonyms can be added, and the semantic enhancement and semantic generalization effects can be dynamically adjusted, which enables flexible and effective business expansion, especially when applied to dynamic scenarios.
[0053] According to the semantic entity recognition method of the embodiment of the present application, the scene semantic directed structure graph is dynamically constructed through the scene, which can adjust and expand the business in real time and has strong business expansion capabilities. In addition, the scene semantic directed structure graph can integrate semantic information such as synonyms and synonyms of various granularities, which can ensure the generalization effect of semantic understanding. It can also flexibly expand the generalization capability by adjusting the semantic vocabulary, which is suitable for dynamic scenarios.
[0054] In some embodiments, searching a scene semantic directed structure graph based on the core mention word to obtain a target entity object that matches the core mention word includes: searching a scene semantic directed structure graph based on the core mention word to obtain candidate entity objects; obtaining a text matching degree between the core mention word and each candidate entity object; and determining a target entity object corresponding to the voice instruction information based on the text matching degree.
[0055] Specifically, the degree of matching between the core mention word and the candidate entity object can be determined by the text matching between the two. After determining the text matching between each candidate entity object and the core mention word, the text matching of all candidate entities can be sorted and the matching threshold can be set to obtain the final target entity object.
[0056] For example, it is determined that the candidate entity object whose text matching degree exceeds the matching degree threshold is the target entity object corresponding to the voice instruction information.
[0057] The following describes the process of dynamically constructing a scene semantic directed structure graph based on different scenarios.
[0058] The scene semantics directed structure graph includes nodes and directed edges. In an embodiment, scene entity objects and various scene vocabularies can serve as nodes of the scene semantics directed structure graph, and if there is an association relationship between them, there are directed edges between the vocabularies. For example, the direction between scene vocabulary and information source vocabulary is from the information source vocabulary to the scene vocabulary, and the direction between scene vocabulary and scene entity objects is from the scene vocabulary to the scene entity objects.
[0059] In some embodiments, the semantically associated vocabulary of different granularities of scene entity objects may include scene vocabulary and information source vocabulary. Among them, scene vocabulary can be understood as vocabulary that is suitable for realizing voice interaction in the current scene. For example, scene vocabulary is obtained by segmenting scene entity objects and semantically associated vocabulary of scene entity objects. Information source vocabulary is the vocabulary suitable for voice interaction in the current scene contained in the collected user voice instruction information. For example, information source vocabulary includes scene vocabulary and semantically associated vocabulary of scene vocabulary. Among them, directed edges are formed between scene vocabulary and information source vocabulary with semantic association relationships, and directed edges are formed between scene vocabulary and scene entity objects with semantic association relationships.
[0060] Furthermore, in an embodiment, semantically associated vocabulary may include at least one of synonyms, antonyms, and hypernyms. For example, the semantically associated vocabulary of a scene entity object may include at least one of synonyms, antonyms, and hypernyms of the scene entity object; the semantically associated vocabulary of a scene vocabulary includes at least one of synonyms, antonyms, and hypernyms of the scene vocabulary. In this way, using vocabulary of different granularities to construct a scene semantic directed structure graph can ensure the generalization effect of semantic understanding, and can also flexibly expand the generalization capability by adjusting the semantic vocabulary.
[0061] Taking synonyms as an example, we can find coarse-grained (superordinate, general) and fine-grained (specific) synonyms of scene entity words through scene data segmentation and combination with the synonym library. In this way, we can establish semantic relationships of various granularities and construct a scene semantic directed structure diagram for the current scene.
[0062] As shown in Figure 2, it is a schematic diagram of constructing a scene semantic directed structure diagram according to an embodiment of the present application. Specifically, for scene entity objects such as the target vocabulary in Figure 2, a synonym list is obtained by searching the synonym library, and the synonym list and the entity object are segmented to determine the fine-grained scene vocabulary. The reason why the entity object needs to be searched for synonyms here is that the coarse-grained words may be synonyms, and the fine-grained word level cannot be well represented by synonyms. For example: "Xiaodi skills" is equal to "voice skills", and "Xiaodi" is not equal to "voice" because "Xiaodi" is just a virtual name for a voice assistant, so that it can cope with a variety of statements. The generalized statements of continuous entities are: Xiaodi skills / voice skills / Xiaodi voice skills, etc.; the generalized statements of discontinuous entities are: What skills does Xiaodi have / What voice skills does Xiaodi have, etc.
[0063] Synonyms are searched for fine-grained scene vocabulary. These and the resulting synonyms serve as information source vocabulary, as shown in the source vocabulary node in Figure 2. Here, the semantics of fine-grained synonyms are integrated into the structure diagram. For example, if "Xiao Di" is recognized as "Xiao D" due to inaccurate ASR or intonation, "Xiao Di" here is equivalent to "Xiao D." This allows for the addition of more generalized expressions, such as "Xiao D's skills," "Xiao D's skills," and "Xiao D's voice skills." This ensures the generalization of semantic understanding and flexibly expands generalization capabilities.
[0064] Furthermore, in some embodiments, a preset graph search algorithm is used to search the scene semantic directed structure graph to obtain candidate entity objects. End-to-end semantic understanding based on graph computing does not require complicated large-scale data labels for model training, and various sub-functions are integrated together to achieve an end-to-end solution.
[0065] Specifically, the scene semantic directed structure graph is searched according to a preset graph search algorithm, wherein the information source vocabulary matching the core mentioned word is used as the search starting point, and the search end point is limited to the scene entity object in the corresponding scene semantic directed structure graph; a random scene entity object in the scene semantic directed structure graph corresponding to the search end point is obtained; and the random scene entity object that meets the candidate entity object conditions is used as a candidate entity object.
[0066] A pre-set graph search algorithm searches the scene semantics directed structure graph, starting with the core mentions and limiting the search to the corresponding scene entity objects. This design allows for diverse paths, meaning the same core mention may reach multiple scene entity objects, i.e., random scene entity objects. The candidate entity objects' conditions are then used to identify candidate entities with a relatively high degree of matching.
[0067] Figure 3 is a schematic diagram of obtaining candidate entity objects using a random walk graph algorithm according to one embodiment of the present application. As shown in Figure 3, the core mention words correspond to the source words in Figure 3, and the entity objects correspond to the target words in Figure 3. A random walk is performed from the source words to the scene words and then to the target words.
[0068] In some examples, the candidate entity object conditions can be limited based on the scores of random scene entity objects. Specifically, the scores of the random scene entity objects are obtained and ranked; a preset number of random scene entity objects with the highest scores are selected as candidate entity objects, or random scene entity objects with scores exceeding a score threshold are selected as candidate entity objects.
[0069] For example, we first use the core words mentioned in the query text as the starting point of the random walk, then restrict the random walk to only "target". In this way, multiple random walk points are scattered, and the first N random walk points that reach the destination are used as candidate entity objects. Among them, random walks are used to determine N random walk points with relatively high scores as candidate entity objects. As shown in Figure 3, for example: if the core words mentioned in the query text are "Xiao Di Voice Skills", then the source starting points are "Xiao Di", "Voice", and "Skills". Through random walks, most of the time, they can only reach the "Xiao Di Skills" and "Voice Broadcast" nodes of the target, so the candidate entity objects are "Xiao Di Skills" and "Voice Broadcast".
[0070] In an embodiment, a scene semantic directed structure graph is searched through a preset graph search algorithm to obtain core mention words and their corresponding candidate entity objects. When multiple core mention words are simultaneously sprinkled into the scene semantic directed structure graph, there will be multiple paths. Not all entity objects determined by each path are words that match the core mention words, so the target entity object needs to be further determined.
[0071] In some embodiments, the path between each candidate entity object and the core mention word can be obtained through the shortest path, that is, the shortest path between the core mention word and the candidate entity object is obtained; and the target candidate entity object and the target core mention word with a path connection are determined based on the shortest path. As shown in Figure 3, for example, the shortest paths can be obtained: "Xiao Di" -> "Xiao Di" -> "Xiao Di Skills | Voice Skills", "Voice" -> "Voice" -> "Voice Broadcast", "Voice" -> "Voice" -> "Xiao Di Skills | Voice Skills", etc.
[0072] Furthermore, a first text matching length between the target core mentioned word and the target candidate entity object is obtained; and a text matching degree between the target core mentioned word and the target candidate entity object is obtained based on the first text matching length and the text length of the target core mentioned word.
[0073] Specifically, all paths for each candidate entity object are classified. In this way, the direction of the random walk can be ultimately determined based on which core mentions and scene vocabulary are extracted, and then the score is calculated. The score can be calculated based on the number of words in the corresponding scene vocabulary and the number of words in the candidate entity object vocabulary. The result is the matching degree between the candidate entity object and the core mentions. Of course, the matching degree can also be calculated from the perspective of extracting core mentions, and the final matching degree calculation can also be a comprehensive calculation of the weighted values of the two scores.
[0074] In some embodiments, from the perspective of core mention words, the first text matching length between the target core mention word and the target candidate entity object is obtained, that is, the number of words that match the two, and the ratio of the first text matching length to the text length of the target core mention word is obtained as the text matching degree between the target core mention word and the target candidate entity object.
[0075] That is, the matching degree of core mention words is: query matching length / query core mention word length, where query matching length = query and semantic space matching word length. In this case, query corresponds to the core mention word.
[0076] In other embodiments, from the perspective of scene vocabulary, the target scene vocabulary from the target mention word to the target candidate entity object is determined based on the shortest path; the second text matching length between the target scene vocabulary and the target candidate entity object is obtained; and the ratio of the second text matching length to the text length of the target candidate entity object is obtained as the text matching degree between the target core mention word and the target candidate entity object.
[0077] That is, the matching degree of scene vocabulary is: label matching length / target candidate entity object, label matching length = matching word length of query and label. Among them, label corresponds to the target scene vocabulary.
[0078] In other embodiments, the shortest path between the core mention word and the candidate entity object is obtained; the target candidate entity object, the target core mention word and the target scene vocabulary with path connection are determined based on the shortest path; the first text matching length between the target core mention word and the target candidate entity object is obtained, and the second text matching length between the target scene vocabulary and the target candidate entity object is obtained; the first ratio of the first text matching length to the text length of the target core mention word is obtained, and the second ratio of the second text matching length to the text length of the target candidate entity object is obtained; the text matching degree between the target core mention word and the target candidate entity object is obtained based on the first ratio and the second ratio and the corresponding weights.
[0079] That is, the comprehensive score is calculated as follows: score = α * label matching + (1α) * query matching. α represents the preset score weight parameter.
[0080] As shown in Figure 3, the "Xiaodi Skills|Voice Skills" entity object mainly involves the scene words "Xiaodi" and "skills", which can be associated with "Xiaodi Skills", the matching length is 4 words, the entity words are 4, and the score is 1; the "Voice Broadcast" entity object involves the scene word "voice" which can be associated with "Voice Broadcast", the matching length is 2 words, the entity words are 4, and the score is 0.5.
[0081] Furthermore, candidate entity objects whose textual matching exceeds a matching threshold are determined as the target entity objects corresponding to the voice command information. Specifically, the above steps are repeated for each candidate entity object to determine the matching degree between each candidate entity and the core mention word. The matching degrees of all candidate entities are then sorted and a matching threshold is determined to obtain the final target entity object.
[0082] As described above, the entity recognition method of the embodiment of the present application adopts a random walk graph algorithm, which is an unsupervised method. It does not require large-scale data annotation and repeated model training, and can quickly implement the task; and this method is an end-to-end entity semantic understanding solution, which does not require the conventional entity recognition, entity candidate and entity sorting pipeline method, thereby reducing the complexity of the entity semantic understanding task.
[0083] In summary, the entity recognition method of the embodiment of the present application dynamically constructs a scene semantic directed structure graph and integrates semantic information, which can not only ensure the generalization effect of natural language but also effectively expand the business; it completes entity candidate and sorting through a random walk graph algorithm and constructs an unsupervised model to reduce the task's dependence on labeled data, which not only simplifies the work but also facilitates the implementation of the method.
[0084] Based on the entity recognition method of the above embodiment, the second embodiment of the present application further proposes a semantic entity recognition device 10.
[0085] FIG4 is a block diagram of a semantic entity recognition device 10 according to an embodiment of the present application. As shown in FIG4 , the semantic entity recognition device 10 includes a speech information processing module 11 and a search module 12 .
[0086] The voice information processing module 11 is used to pre-process the voice command information to obtain the core mentioned words contained in the voice command information. The search module 12 is used to search the scene semantic directed structure graph based on the core mentioned words to obtain the target entity objects that match the core mentioned words. The scene semantic directed structure graph is constructed by the scene entity objects in the current scene and the semantically associated vocabulary of different granularities of the scene entity objects.
[0087] According to the semantic entity recognition device 10 of the embodiment of the present application, the core mentioned words are obtained by the voice information processing module 11, and the target entity object that matches the core mentioned words is obtained by searching the scene semantic directed structure graph based on the core mentioned words through the search module 12. The scene semantic directed structure graph dynamically constructed based on the scene can not only adjust and expand the business in real time and has strong business expansion capabilities, but also can integrate semantic information such as synonyms and synonyms of various granularities to ensure the generalization effect of semantic understanding. At the same time, by adjusting the semantic vocabulary, the generalization capability can be flexibly expanded to achieve more accurate voice interaction and improve user experience.
[0088] Based on the entity recognition method of the above embodiment, the third embodiment of the present application also proposes a voice interaction system 20.
[0089] FIG5 is a block diagram of a voice interaction system 20 according to an embodiment of the present application. As shown in FIG5 , the voice interaction system 20 includes at least one processor 13 and a memory 14 communicatively connected to the at least one processor 13 .
[0090] The memory 14 stores a computer program that can be executed by at least one processor 13 , and the entity recognition method of the above embodiment is implemented when the at least one processor 13 executes the computer program.
[0091] According to the voice interaction system 20 of the embodiment of the present application, the target entity object is determined by executing the entity recognition method of the above embodiment through at least one processor 13, which can adjust and expand the business in real time, improve the generalization effect of semantic understanding, have flexible expansion and generalization capabilities, and can achieve more accurate voice interaction and improve user experience.
[0092] The fourth embodiment of the present application further proposes a vehicle 100 , as shown in FIG6 , wherein the vehicle 100 includes the voice interaction system 20 of the above embodiment.
[0093] According to the vehicle 100 of the embodiment of the present application, by adopting the voice interaction system 20 of the above embodiment, more accurate voice interaction can be achieved in dynamic scenarios, thereby improving user experience.
[0094] The fifth embodiment of the present application further proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the entity recognition method of the above embodiment is implemented.
[0095] In an embodiment, the storage medium may be a non-transitory storage medium, including various media capable of storing program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or a transient storage medium. The computer-readable medium may also be distributed across computer systems connected via a network, so that the computer-readable code can be stored and executed in a distributed manner.
[0096] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "example," "specific example," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.
[0097] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A semantic entity recognition method, characterized in that: include: Preprocessing the voice command information (S1) to obtain core mentioned words contained in the voice command information; and According to the core mentioned words, a scene semantic directed structure graph is searched (S2) to obtain a target entity object matching the core mentioned words, wherein the scene semantic directed structure graph is constructed by scene entity objects in the current scene and semantically associated words of different granularities of the scene entity objects.
2. The semantic entity recognition method according to claim 1, characterized in that: The semantically associated vocabulary of different granularities of the scene entity object includes scene vocabulary and information source vocabulary, wherein the scene vocabulary is obtained by segmenting the scene entity object and the semantically associated vocabulary of the scene entity object, and the information source vocabulary includes the scene vocabulary and the semantically associated vocabulary of the scene vocabulary; wherein directed edges are formed between the scene vocabulary and the information source vocabulary with semantically associated relationships, and directed edges are formed between the scene vocabulary and the scene entity object with semantically associated relationships.
3. The semantic entity recognition method according to claim 1 or 2, characterized in that: The semantically related vocabulary includes at least one of synonyms, antonyms and hypernyms.
4. The semantic entity recognition method according to any one of claims 1 to 3, characterized in that: Searching (S2) a scene semantic directed structure graph according to the core mentioned word to obtain a target entity object matching the core mentioned word, including: Searching the scene semantic directed structure graph according to the core mentioned words to obtain candidate entity objects; Obtaining a textual matching degree between the core mentioned word and each of the candidate entity objects; and The target entity object corresponding to the voice instruction information is determined according to the text matching degree.
5. The semantic entity recognition method according to claim 4, characterized in that: The scene semantic directed structure graph is searched according to the core mentioned words to obtain candidate entity objects, including: Searching the scene semantic directed structure graph according to a preset graph search algorithm, wherein the information source vocabulary matching the core mentioned word is used as the search starting point, and the search end point is limited to the scene entity object corresponding to the scene semantic directed structure graph; Obtaining a random scene entity object in the scene semantic directed structure graph corresponding to a search endpoint; and A random scene entity object that meets the candidate entity object condition is used as the candidate entity object.
6. The semantic entity recognition method according to claim 5, characterized in that: Taking a random scene entity object that meets the candidate entity object condition as the candidate entity object includes: Obtaining a score of the random scene entity object; sorting the scores of the random scene entity objects; and A preset number of random scene entity objects with higher scores are selected as the candidate entity objects, or random scene entity objects with scores exceeding a score threshold are selected as the candidate entity objects.
7. The semantic entity recognition method according to any one of claims 4 to 6, characterized in that: Obtaining the text matching degree between the core mentioned word and each of the candidate entity objects includes: Obtaining the shortest path between the core mentioned word and the candidate entity object; Determine target candidate entity objects and target core mention words having path connections according to the shortest path; Obtaining a first text matching length between the target core mention word and the target candidate entity object; and According to the first text matching length and the text length of the target core mentioned word, a text matching degree between the target core mentioned word and the target candidate entity object is obtained.
8. The semantic entity recognition method according to claim 7, characterized in that: Obtaining a text matching degree between the target core mentioned word and the target candidate entity object according to the first text matching length and the length of the target core mentioned word, including: Obtain the ratio of the first text matching length to the text length of the target core mentioned word as the ratio of the target core mentioned word to the target core mentioned word. The text matching degree between the labeled candidate entity objects.
9. The semantic entity recognition method according to claim 7 or 8, characterized in that: The semantic entity recognition method further comprises: Determining a target scenario vocabulary from the target core mention word to the target candidate entity object according to the shortest path; Obtaining a second text matching length between the target scene vocabulary and the target candidate entity object; and A ratio of the second text matching length to the text length of the target candidate entity object is obtained as a text matching degree between the target core mention word and the target candidate entity object.
10. The semantic entity recognition method according to any one of claims 4 to 6, characterized in that: Obtaining the text matching degree between the core mentioned word and each of the candidate entity objects includes: Obtaining the shortest path between the core mentioned word and the candidate entity object; Determine target candidate entity objects, target core mentioned words and target scene vocabulary with path connection according to the shortest path; Obtaining a first text matching length between the target core mention word and the target candidate entity object, and obtaining a second text matching length between the target scene vocabulary and the target candidate entity object; Obtaining a first ratio of the first text matching length to the text length of the target core mention word, and obtaining a second ratio of the second text matching length to the text length of the target candidate entity object; and According to the first ratio, the second ratio and the corresponding weights, a text matching degree between the target core mentioned word and the target candidate entity object is obtained.
11. The semantic entity recognition method according to any one of claims 4 to 10, characterized in that: Determining a target entity object corresponding to the voice instruction information according to the text matching degree includes: Determine the candidate entity object whose text matching degree exceeds the matching degree threshold as the target entity object corresponding to the voice instruction information.
12. The semantic entity recognition method according to any one of claims 1 to 11, characterized in that: The voice command information is preprocessed (S1) to obtain core mentioned words contained in the voice command information, including: converting the voice command information into voice command text; and The voice instruction text is segmented and stop words are removed to obtain the core mentioned words.
13. A semantic entity recognition device (10), characterized in that: include: A voice information processing module (11) is used to pre-process the voice instruction information to obtain the core mentioned words contained in the voice instruction information; and A search module (12) is used to search a scene semantic directed structure graph according to the core mentioned word to obtain a target entity object that matches the core mentioned word, wherein the scene semantic directed structure graph is constructed by scene entity objects in a current scene and semantically associated words of different granularities of the scene entity objects.
14. A voice interaction system (20), characterized in that: include: at least one processor (13); and A memory (14), wherein the memory (14) is communicatively connected to the at least one processor (13), and the memory (14) stores a computer program executable by the at least one processor (13), and when the at least one processor (13) executes the computer program, the semantic entity recognition method according to any one of claims 1 to 12 is implemented.
15. A vehicle (100), characterized in that: Comprising the voice interaction system (20) according to claim 14.
16. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the semantic entity recognition method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Voice information processing method and device thereof, equipment and medium
CN113488034A
Voice interaction method, vehicle, server, voice system and storage medium
CN114255755A
Artificial intelligence body, voice information recognition method, storage medium and program product
CN114925206A
Methods and systems for enabling human-robot interaction to resolve task ambiguity
US20220148586A1
Cited By
Voice interaction method, server and computer readable storage medium
CN120913561A
Equipment moving method and system with autonomous navigation function
CN121384027A
