Semantic entity recognition method and apparatus, and voice interaction system, vehicle and medium

By constructing a scene semantic directed structure graph and graph search algorithm, the problems of data dependence and inflexible business adjustment in entity semantic understanding in existing technologies are solved, and accurate voice interaction and improved user experience are achieved in dynamic scenarios.

CN118395980BActive Publication Date: 2026-11-24BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310227450.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2026-11-24
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

Existing entity semantic understanding processing methods rely on large amounts of labeled data, resulting in a large workload and inflexible business adjustments, making it difficult to adapt to the needs of dynamic scenarios.

Method used

By constructing a directed semantic structure graph for a scene, and using preset graph search algorithms and random walk algorithms, the business is dynamically adjusted and expanded, and semantic information such as synonyms and near-synonyms is integrated to achieve real-time semantic understanding and generalization.

Benefits of technology

It enables real-time adjustment and expansion of services in dynamic scenarios, reduces dependence on labeled data, improves the generalization ability of semantic understanding and the accuracy of voice interaction, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395980B_ABST
    Figure CN118395980B_ABST
Patent Text Reader

Abstract

This invention discloses a semantic entity recognition method, apparatus, voice interaction system, vehicle, and computer-readable storage medium. The semantic entity recognition method includes: preprocessing voice command information to obtain core mention words contained in the voice command information; and searching a scene semantic directed structure graph based on the core mention words to obtain target entity objects matching the core mention words. The scene semantic directed structure graph is constructed from scene entity objects in the current scene and semantic association words of different granularities for the scene entity objects. This method can flexibly and dynamically adjust semantic enhancement and semantic generalization effects, allowing for flexible business adjustments and expansions, and is suitable for dynamic scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of speech technology, and in particular to a semantic entity recognition method, a semantic recognition device, a voice interaction system, a vehicle, and a computer-readable storage medium. Background Technology

[0002] Entity semantic understanding is a very fundamental task in NLP (Natural Language Processing).

[0003] Currently, the semantic understanding processing for entity objects involves extracting speech command text using deep learning NER (Named Entity Recognition) algorithms and then identifying the entity object using a knowledge base. This approach relies on a large amount of effective labeled data, resulting in a huge workload. Furthermore, during business adjustments, the training dataset needs to be adjusted to retrain the model from scratch, making it inflexible for business adjustments and expansions. Summary of the Invention

[0004] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, a first aspect of this invention proposes a semantic entity recognition method that can flexibly and dynamically adjust semantic enhancement and semantic generalization effects, allowing for flexible business adjustments and expansions, and is suitable for dynamic scenarios.

[0005] A second aspect of the present invention provides a semantic entity recognition device.

[0006] A third aspect of the present invention provides a voice interaction system.

[0007] A fourth aspect of the present invention provides a vehicle.

[0008] A fifth aspect of the present invention provides a computer-readable storage medium.

[0009] To address the aforementioned issues, a semantic entity recognition method according to a first aspect of the present invention includes: preprocessing voice command information to obtain core mention words contained in the voice command information; and searching a scene semantic directed structure graph based on the core mention words to obtain target entity objects matching the core mention words, wherein the scene semantic directed structure graph is constructed from scene entity objects in the current scene and semantic association words of different granularities of the scene entity objects.

[0010] According to the semantic entity recognition method of the present invention, the scene semantic directed structure graph dynamically constructed by the scene can adjust and expand the business in real time, and has strong business expansion capability. Furthermore, the scene semantic directed structure graph can integrate semantic information such as synonyms and near-synonyms at various granularities, which can ensure the generalization effect of semantic understanding. It can also flexibly expand the generalization capability by adjusting the semantic vocabulary, and is suitable for dynamic scenes.

[0011] In some embodiments, the semantic association words of the scene entity objects at different granularities include scene words and information source words. The scene words are obtained by segmenting the scene entity objects and the semantic association words of the scene entity objects. The information source words include the scene words and the semantic association words of the scene words. Directed edges are formed between scene words and information source words that have semantic association relationships, and directed edges are formed between scene words and scene entity objects that have semantic association relationships.

[0012] In some embodiments, the semantic association vocabulary includes at least one of the following: synonyms, near-synonyms, and hypernyms of the scene entity object.

[0013] In some embodiments, obtaining a target entity object matching the core mention word based on the semantic directed structure graph of the core mention word search scenario includes: obtaining candidate entity objects based on the semantic directed structure graph of the core mention word search scenario; obtaining the text matching degree between the core mention word and each candidate entity object; and determining the target entity object corresponding to the voice command information based on the text matching degree.

[0014] In some embodiments, obtaining candidate entity objects by searching the scene semantic directed structure graph based on the core mention words includes: searching the scene semantic directed structure graph according to a preset graph search algorithm, wherein information source words matching the core mention words are used as the search starting point, and the search endpoint is restricted to scene entity objects in the scene speech directed structure graph; obtaining random scene entity objects in the scene speech directed structure graph corresponding to the search endpoint; and selecting random scene entity objects that meet the candidate entity object conditions as the candidate entity objects.

[0015] In some embodiments, selecting random scene entity objects that meet the candidate entity object conditions as candidate entity objects includes: obtaining the score of the random scene entity objects; sorting the scores of the random scene entity objects; selecting a preset number of random scene entity objects with the highest scores as candidate entity objects, or selecting random scene entity objects with scores exceeding a score threshold as candidate entity objects.

[0016] In some embodiments, obtaining the text matching degree between the core mention word and each candidate entity object includes: obtaining the shortest path between the core mention word and the candidate entity object; determining a target candidate entity object and a target core mention word that have a path relationship 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 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.

[0017] In some embodiments, 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 length of the target core mention word includes: 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.

[0018] In some embodiments, the semantic entity recognition method further includes: determining the target scene vocabulary from the target 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.

[0019] In some embodiments, obtaining the text matching degree between the core mention word and each candidate entity object includes: obtaining the shortest path between the core mention word and the candidate entity object; determining a target candidate entity object, a target core mention word, and a target scene word 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 word 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 obtaining the text matching degree between the target core mention word and the target candidate entity object based on the first ratio and the second ratio and the corresponding weights.

[0020] In some embodiments, determining the target entity object corresponding to the voice command information based on the text matching degree includes: determining candidate entity objects whose text matching degree exceeds a matching degree threshold as the target entity object corresponding to the voice command information.

[0021] In some embodiments, the voice command information is preprocessed to obtain core mention words contained in the voice command information, including: converting the voice command information into voice command text; segmenting the voice command text and removing stop words to obtain the core mention words.

[0022] To address the aforementioned problems, a semantic entity recognition device according to a second aspect of the present invention includes:

[0023] The voice information processing module is used to preprocess the voice command information to obtain the core mention words contained in the voice command information; the search module is used to search the scene semantic directed structure graph based on the core mention words to obtain the target entity objects that match the core mention words, wherein the scene semantic directed structure graph is constructed from scene entity objects in the current scene and semantic association words of different granularities of the scene entity objects.

[0024] According to the semantic entity recognition device of the present invention, the core mention words are obtained through the voice information processing module, and the target entity objects matching the core mention words are obtained by the search module by searching the scene semantic directed structure graph based on the core mention words. The scene semantic directed structure graph is dynamically constructed based on the scene, which can adjust and expand the business in real time and has strong business expansion capabilities. Furthermore, the scene semantic directed structure graph can integrate semantic information of various granularities such as synonyms and near-synonyms, which can ensure the generalization effect of semantic understanding. The generalization capability can also be flexibly expanded by adjusting the semantic vocabulary, so as to achieve more accurate voice interaction and improve user experience.

[0025] To address the aforementioned problems, a voice interaction system according to a third aspect of the present invention includes: at least one processor; a memory communicatively connected to the at least one processor; the memory storing a computer program executable by the at least one processor, wherein the at least one processor executes the computer program to implement the entity recognition method.

[0026] According to the voice interaction system of the present invention, the target entity object is determined by executing the entity recognition method of the above embodiment through at least one processor. The system can adjust and expand the business in real time, improve the generalization effect of semantic understanding, and has flexible expansion and generalization capabilities. It can achieve more accurate voice interaction and improve user experience.

[0027] To address the aforementioned problems, a vehicle according to a fourth aspect of the present invention includes the aforementioned voice interaction system.

[0028] The vehicle according to the embodiments of the present invention, by employing the voice interaction system of the above embodiments, can achieve more accurate voice interaction in dynamic scenarios, thereby improving the user experience.

[0029] A fifth aspect of the present invention also provides a computer-readable storage medium, characterized in that it stores a computer program thereon, which, when executed by a processor, implements the entity recognition method described above.

[0030] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0031] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0032] Figure 1 This is a semantic entity recognition method according to an embodiment of the present invention.

[0033] Figure 2 This is a schematic diagram of a dynamically constructed scene semantic directed structure graph according to an embodiment of the present invention.

[0034] Figure 3 This is a schematic diagram illustrating the acquisition of candidate entity objects using a preset graph search algorithm according to an embodiment of the present invention.

[0035] Figure 4 This is a block diagram of a semantic entity recognition device according to an embodiment of the present invention.

[0036] Figure 5 This is a block diagram of a voice interaction system according to another embodiment of the present invention.

[0037] Figure 6 This is a block diagram of a vehicle according to an embodiment of the present invention. Detailed Implementation

[0038] The embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of the present invention are described in detail below.

[0039] The following is for reference. Figures 1-3 A semantic entity recognition method according to an embodiment of the first aspect of the present invention is described.

[0040] Figure 1 This is a flowchart of a semantic entity recognition method according to an embodiment of the present invention, such as... Figure 1 As shown, the semantic entity recognition method of this invention includes at least steps S1 and S2.

[0041] S1 preprocesses the voice command information to obtain the core reference words contained in the voice command information.

[0042] Specifically, voice command information is acquired. In this embodiment, the voice command information can be a specific voice interaction command for the current scenario, such as a voice query command. For example, a voice acquisition system can collect voice command information for the current scenario and send the collected voice command information to a voice processing system.

[0043] In some embodiments, preprocessing may include form conversion, word segmentation, deletion of invalid words, etc., to obtain the core vocabulary of the most effective interaction in the voice command information, i.e., the core mention words.

[0044] Specifically, the voice command information is converted into voice command text; the voice command text is then segmented and stop words are removed to obtain the core mention words. This segmentation and stop word removal can be based on a dictionary or model, and some invalid words can be deleted.

[0045] For example, in in-vehicle voice commands, there are many interjections and modifiers. Removing these words does not affect the meaning; they are removed as stop words. For example, in the sentence "Hmm, please open the car window for me," "help me" / "open the window for me" is a modifier, and "hmm" / "please" is an interjection.

[0046] S2: Based on the semantic directed structure graph of the core mention words, obtain the target entity object that matches the core mention words.

[0047] The scene semantic directed structure graph is constructed from scene entity objects in the current scene and semantic association words of scene entity objects at different granularities.

[0048] For example, different granularities can include coarse-grained and fine-grained. Coarse-grained granularity can include some related general terms, such as including but not limited to hypernyms and general vocabulary, while fine-grained granularity can include but not limited to synonyms and near-synonyms.

[0049] Therefore, by dynamically constructing a scene semantic directed structure graph, not only can corresponding entity control objects be added dynamically, but also semantic information such as hypernyms and synonyms can be added. The semantic enhancement and semantic generalization effects can be dynamically adjusted, enabling flexible and effective business expansion, especially in dynamic application scenarios.

[0050] According to the semantic entity recognition method of the present invention, the scene semantic directed structure graph dynamically constructed by the scene can adjust and expand the business in real time, and has strong business expansion capability. Furthermore, the scene semantic directed structure graph can integrate semantic information such as synonyms and near-synonyms at various granularities, which can ensure the generalization effect of semantic understanding. It can also flexibly expand the generalization capability by adjusting the semantic vocabulary, and is suitable for dynamic scenes.

[0051] In some embodiments, obtaining target entity objects matching core mentions based on the semantic directed structure graph of the core mention search scenario includes: obtaining candidate entity objects based on the semantic directed structure graph of the core mention search scenario; obtaining the text matching degree between the core mentions and each candidate entity object; and determining the target entity object corresponding to the voice command information based on the text matching degree.

[0052] Specifically, the degree of matching between core mentions and candidate entity objects can be determined by the text matching degree between them. After determining the matching degree between each candidate entity object and the core mentions, the matching degrees of all candidate entities can be sorted and a threshold can be taken to obtain the final entity object.

[0053] For example, candidate entity objects whose text matching degree exceeds the matching degree threshold are identified as the target entity objects corresponding to the voice command information.

[0054] The process of dynamically constructing a scene semantic directed structure graph based on different scenarios is explained below.

[0055] A scene semantic directed graph includes nodes and directed edges. In this embodiment, scene entity objects and various scene terms can serve as nodes in the scene semantic directed graph. Furthermore, if there are relationships between the terms, then directed edges exist between them. For example, the direction between scene terms and information source terms is from the information source terms to the scene terms, and the direction between scene terms and scene entity objects is from the scene terms to the scene entity objects.

[0056] In some embodiments, the semantic association vocabulary of scene entity objects at different granularities may include scene vocabulary and information source vocabulary. Scene vocabulary can be understood as vocabulary suitable for voice interaction in the current scene; for example, scene vocabulary is obtained by segmenting scene entity objects and their semantic association vocabulary. Information source vocabulary refers to vocabulary suitable for voice interaction in the current scene contained in the collected user voice command information; for example, information source vocabulary includes scene vocabulary and its semantic association vocabulary. Directed edges are formed between semantically related scene vocabulary and information source vocabulary, and between semantically related scene vocabulary and scene entity objects.

[0057] Furthermore, in the embodiments, the semantic association vocabulary may include at least one of synonyms, near-synonyms, and hypernyms. For example, the semantic association vocabulary of scene entity objects may include at least one of synonyms, near-synonyms, and hypernyms of scene entity objects, and the semantic association vocabulary of scene vocabulary may include at least one of synonyms, near-synonyms, and hypernyms of scene vocabulary. Constructing a scene semantic directed structure graph using vocabulary of different granularities in this way can ensure the generalization effect of semantic understanding, and the generalization capability can be flexibly expanded by adjusting the semantic vocabulary.

[0058] Taking synonyms as an example, specifically, by segmenting scene data and combining a synonym bank, coarse-grained (superordinate and generalized) and fine-grained (specific) synonyms of scene entity words are found, so that semantic relationships of various granularities can be established to construct a directed scene semantic structure diagram of a current scene.

[0059] As shown Figure 2 in FIG. , a schematic diagram of constructing a directed scene semantic structure diagram according to an embodiment of the present disclosure is shown. Specifically, for a scene entity object, for example Figure 2 a target word in the synonym bank is searched to obtain a synonym list, the synonym list and the entity object are segmented to determine fine-grained scene words. The reason why the entity object needs to be subjected to synonym search is that the coarse granularity may be synonyms, and the fine-grained word level cannot be well represented by synonyms. For example, "Xiaodi skill" is equal to "voice skill", and "Xiaodi" is not equal to "voice", because "Xiaodi" is only a virtual name of a voice assistant, so that rich expressions can be coped with. Continuous entity generalized expressions are: Xiaodi skill / voice skill / Xiaodi voice skill, etc.; discontinuous entity generalized expressions are: what skills does Xiaodi have / what voice skills does Xiaodi have, etc.

[0060] Synonyms are searched for the scene fine-grained words, and the scene fine-grained words and the searched synonyms are used as information source words, that is, Figure 2 source word nodes in the directed scene semantic structure diagram. Here, fine-grained synonym semantics are integrated into the structure diagram. For example, "Xiaodi" is recognized as "Xiao D" due to inaccurate ASR or intonation, where "Xiaodi" is equal to "Xiao D", so that many generalized expressions can be added on the original basis, for example, Xiao D skill / what skills does Xiao D have / Xiao D voice skill, etc. Therefore, the generalized effect of semantic understanding can be ensured, and the generalized ability can be flexibly extended.

[0061] Further, in some embodiments, a preset graph search algorithm is used to search the directed scene semantic structure diagram to obtain candidate entity objects. The end-to-end semantic understanding based on graph calculation does not require complicated large-scale data labels for model training, and each sub-function is integrated to realize an end-to-end solution.

[0062] Specifically, the directed scene semantic structure diagram is searched according to a preset graph search algorithm, where an information source word matched with a core mention word is used as a search start point, and a search end point is limited to correspond to a scene entity object in a directed scene voice structure diagram; a random scene entity object in the directed scene voice structure diagram corresponding to the search end point is obtained; and a random scene entity object satisfying a candidate entity object condition is used as a candidate entity object.

[0063] Specifically, a pre-defined graph search algorithm is used to search the semantic directed structure graph of the scene. The core mention words are used as the starting point of the search and the search endpoint is limited to the corresponding scene entity objects. In this way, there are multiple paths, and the same core mention word may reach multiple scene entity objects, i.e., random scene entity objects. The candidate entity object conditions are further used to determine the candidate entity objects with relatively high matching pairs.

[0064] Figure 3 This is a schematic diagram illustrating the use of a random walk graph algorithm to obtain candidate entity objects according to an embodiment of the present invention. Figure 3 As shown, the core vocabulary mentioned corresponds to Figure 3 The term "source" corresponds to the entity object. Figure 3 The target words in the text randomly move from source words to scene words and back to target words.

[0065] In some examples, the candidate entity object criteria can be restricted based on the scores of random scene entity objects. Specifically, the scores of random scene entity objects are obtained and sorted. 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.

[0066] For example, the starting point of a random walk is first determined by the core keywords mentioned in the query text. Then, the endpoint of the random walk is restricted to "target". Multiple random walk points are then selected, and the top N points reaching the endpoint are chosen as candidate entity objects. Specifically, random walks are used to determine the N highest-scoring entities as candidate entity objects. Figure 3 As shown, for example, if the core mention of the query text is "Xiaodi voice skill", then the source starting point is "Xiaodi", "voice", "skill". By randomly walking, most of the time it can only reach the target nodes "Xiaodi skill" and "voice broadcast", so the candidate entity objects are "Xiaodi skill" and "voice broadcast".

[0067] In this embodiment, a preset graph search algorithm is used to search the scene semantic directed structure graph to obtain core mention words and their corresponding candidate entity objects. Multiple core mention words are simultaneously injected into the scene semantic directed structure graph, resulting in multiple paths. Not every entity object determined by each path is a word that matches the core mention word. Therefore, it is necessary to further determine the target entity object.

[0068] In some embodiments, the path between each candidate entity object and the core mention can be obtained through the shortest path, i.e., the shortest path between the core mention and the candidate entity object is obtained; the target candidate entity object and the target core mention with path relationship are determined based on the shortest path. For example, Figure 3 As shown, for example, the shortest paths can be obtained as "Xiao Di" -> "Xiao Di" -> "Xiao Di Skills | Voice Skills", "Voice" -> "Voice" -> "Voice Broadcast", "Voice" -> "Voice" -> "Xiao Di Skills | Voice Skills", etc.

[0069] Furthermore, the first text matching length between the target core mention and the target candidate entity is obtained; the text matching degree between the target core mention and the target candidate entity is obtained based on the first text matching length and the text length of the target core mention.

[0070] Specifically, all paths for each candidate entity are categorized to identify the core keywords and contextual terms that ultimately determine the direction of the random walk, and then a score is calculated. The score can be calculated based on the number of words in the corresponding contextual terms and the number of words in the candidate entity's terms, representing the match between the candidate entity and the core keywords. Alternatively, the match can be calculated from the perspective of core keywords, and the final match score can be a weighted average of both scores.

[0071] 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, i.e., the number of characters that match between 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.

[0072] That is, the matching degree of the core mention term is: query matching length / query core mention term length, where query matching length = query and semantic space matching term length. Here, query corresponds to the core mention term.

[0073] 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 according to the shortest path; the second text matching length between the target scene vocabulary and the target candidate entity object is obtained; 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.

[0074] That is, the matching degree of scene words is: label matching length / target candidate entity object, where label matching length = the length of the matching words in the query and label. Here, label corresponds to the target scene words.

[0075] In other embodiments, the shortest path between the core mention and the candidate entity is obtained; the target candidate entity, the target core mention, and the target scene vocabulary with path relationships are determined based on the shortest path; a first text matching length between the target core mention and the target candidate entity is obtained, and a second text matching length between the target scene vocabulary and the target candidate entity is obtained; a first ratio of the first text matching length to the text length of the target core mention is obtained, and a second ratio of the second text matching length to the text length of the target candidate entity is obtained; the text matching degree between the target core mention and the target candidate entity is obtained based on the first ratio and the second ratio and the corresponding weights.

[0076] In other words, the overall score is calculated as follows: Score = α * label matching degree + (1-α) * query matching degree. α represents the preset score weight parameter.

[0077] like Figure 3 As shown: The entity object "Xiao Di Skills | Voice Skills" mainly involves the scene words "Xiao Di" and "skills" which can be associated with "Xiao Di Skills". The matching length is 4 characters, the entity word is 4 characters, and the score is 1. The entity object "Voice Broadcast" involves the scene word "voice" which can be associated with "Voice Broadcast". The matching length is 2 characters, the entity word is 4 characters, and the score is 0.5.

[0078] Furthermore, candidate entity objects whose text matching degree exceeds the matching degree threshold are identified 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 final target entity object is obtained by sorting all candidate entity matching degrees and taking the threshold.

[0079] The entity recognition method of the present invention adopts the random walk graph algorithm, which is an unsupervised method. It does not require a large amount of data annotation or repeated model training, and can quickly implement the task. Furthermore, this method is an end-to-end entity semantic understanding solution, which does not require the conventional pipeline approach of entity recognition, entity candidate and entity ranking, thus reducing the complexity of entity semantic understanding tasks.

[0080] In summary, the entity recognition method of this invention can ensure the generalization effect of natural language and effectively expand business by dynamically constructing a scene semantic directed structure graph and fusing semantic information. The random walk graph algorithm is used to complete entity candidate selection and ranking. This unsupervised model reduces the task's dependence on labeled data, which simplifies the work and facilitates the implementation of the method.

[0081] Based on the entity recognition method in the above embodiments, a second aspect of the present invention also proposes a semantic entity recognition device.

[0082] Figure 4 This is a block diagram of a semantic entity recognition device according to an embodiment of the present invention, such as Figure 4 As shown, the semantic entity recognition device 10 includes a voice information processing module 11 and a search module 12.

[0083] The voice information processing module 11 is used to preprocess the voice command information to obtain the core mention 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 mention words to obtain the target entity objects that match the core mention words. The scene semantic directed structure graph is constructed from the scene entity objects in the current scene and the semantic association words of the scene entity objects at different granularities.

[0084] According to the semantic entity recognition device 10 of the present invention, the core mention words are obtained by the voice information processing module 11, and the target entity objects matching the core mention words are obtained by the search module 12 by searching the scene semantic directed structure graph based on the core mention words. The scene semantic directed structure graph is dynamically constructed based on the scene, which can adjust and expand the business in real time and has strong business expansion capabilities. Furthermore, the scene semantic directed structure graph can integrate semantic information of words at various granularities, such as synonyms and near-synonyms, which can ensure the generalization effect of semantic understanding. The generalization ability can also be flexibly expanded by adjusting the semantic vocabulary, so as to achieve more accurate voice interaction and improve user experience.

[0085] Based on the entity recognition method in the above embodiments, a third aspect of the present invention also proposes a voice interaction system.

[0086] Figure 5 This is a block diagram of a voice interaction system according to an embodiment of the present invention, such as... Figure 5 As shown, the voice interaction system 10 includes at least one processor 13 and a memory 14 communicatively connected to at least one processor 13.

[0087] The memory 14 stores a computer program that can be executed by at least one processor 13. When the at least one processor 13 executes the computer program, it implements the entity recognition method of the above embodiment.

[0088] According to the embodiment of the present invention, the voice interaction system 10 determines the target entity object by executing the entity recognition method of the above embodiment through at least one processor 13. It can adjust and expand the business in real time, improve the generalization effect of semantic understanding, and has flexible expansion and generalization capabilities. It can achieve more accurate voice interaction and improve user experience.

[0089] The fourth aspect of the present invention also provides a vehicle, such as Figure 6 As shown, the vehicle 100 includes the voice interaction system 10 of the above embodiment.

[0090] According to the vehicle 100 of the present invention, by adopting the voice interaction system 10 of the above embodiment, more accurate voice interaction can be achieved in dynamic scenarios, thereby improving the user experience.

[0091] A fifth aspect of the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the entity recognition method of the above embodiments.

[0092] In this embodiment, the storage medium can be a non-transitory storage medium, including: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, and other media capable of storing program code; it can also be a transient storage medium. The computer-readable medium can also be distributed across a network-connected computer system, allowing for distributed storage and execution of the computer-readable code.

[0093] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.

[0094] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims

1. A semantic entity recognition method, characterized in that, include: The voice command information is preprocessed to obtain the core reference words contained in the voice command information; The target entity object matching the core mention word is obtained by searching the scene semantic directed structure graph. The scene semantic directed structure graph is constructed from scene entity objects in the current scene and semantic association words of different granularities of the scene entity objects. The process of obtaining target entity objects matching the core mention words based on the semantic directed structure graph of the search scenario includes: Candidate entity objects are obtained based on the semantic directed structure graph of the search scenario using the core mention words; Obtain the text matching degree between the core mention words and each candidate entity object; The target entity object corresponding to the voice command information is determined based on the text matching degree.

2. The semantic entity recognition method according to claim 1, characterized in that, The semantic association words of the scene entity objects at different granularities include scene words and information source words. The scene words are obtained by segmenting the scene entity objects and the semantic association words of the scene entity objects. The information source words include the scene words and the semantic association words of the scene words. Directed edges are formed between scene words and information source words that have semantic association relationships, and directed edges are formed between scene words and scene entity objects that have semantic association relationships.

3. The semantic entity recognition method according to claim 2, characterized in that, The semantically related vocabulary includes at least one of the following categories: synonyms, related words, and hypernyms.

4. The semantic entity recognition method according to claim 1, characterized in that, Candidate entity objects are obtained based on the semantic directed structure graph of the search scenario using the core mention words, including: The scene semantic directed structure graph is searched according to the preset graph search algorithm, wherein the information source words that match the core mention words are used as the search starting point, and the search endpoint is limited to the scene entity objects in the scene semantic directed structure graph; Obtain random scene entity objects in the scene semantic directed structure graph corresponding to the search endpoint; Random scene entity objects that meet the candidate entity object conditions are selected as candidate entity objects.

5. The semantic entity recognition method according to claim 4, characterized in that, Random scene entity objects that meet the candidate entity object conditions are selected as candidate entity objects, including: Obtain the score of the random scene entity object; Sort the scores of the random scene entity objects; A predetermined 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.

6. The semantic entity recognition method according to claim 4, characterized in that, Obtaining the text matching degree between the core mention words and each candidate entity object includes: Obtain the shortest path between the core mention words and the candidate entity objects; Based on the shortest path, target candidate entity objects and target core mention words with path connections are determined; Obtain the first text matching length between the target core mention word and the target candidate entity object; The text matching degree between the target core mention word and the target candidate entity object is obtained based on the first text matching length and the text length of the target core mention word.

7. The semantic entity recognition method according to claim 6, characterized in that, The text matching degree between the target core mention word and the target candidate entity object is obtained based on the first text matching length and the length of the target core mention word, including: 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.

8. The semantic entity recognition method according to claim 6, characterized in that, The semantic entity recognition method further includes: Based on the shortest path, determine the target scene vocabulary from the target mention word to the target candidate entity object; Obtain the second text matching length between the target scene vocabulary and the target candidate entity object; 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.

9. The semantic entity recognition method according to claim 4, characterized in that, Obtaining the text matching degree between the core mention words and each candidate entity object includes: Obtain the shortest path between the core mention words and the candidate entity objects; Based on the shortest path, target candidate entity objects, target core mention words, and target scene vocabulary with path connections are determined; Obtain the first text matching length between the target core mention word and the target candidate entity object, and obtain the second text matching length between the target scene word and the target candidate entity object; Obtain a first ratio of the first text matching length to the text length of the target core mention word, and obtain a second ratio of the second text matching length to the text length of the target candidate entity object; The text matching degree between the target core mention and the target candidate entity object is obtained based on the first ratio, the second ratio, and the corresponding weights.

10. The semantic entity recognition method according to claim 1, characterized in that, Determining the target entity object corresponding to the voice command information based on the text matching degree includes: Candidate entity objects whose text matching degree exceeds the matching degree threshold are identified as the target entity objects corresponding to the voice command information.

11. The semantic entity recognition method according to claim 1, characterized in that, The voice command information is preprocessed to obtain the core reference words contained in the voice command information, including: Convert the voice command information into voice command text; The voice command text is segmented and stop words are removed to obtain the core mention words.

12. A semantic entity recognition device, characterized in that, include: The voice information processing module is used to preprocess the voice command information to obtain the core reference words contained in the voice command information; The search module is used to obtain target entity objects that match the core mention words by searching the scene semantic directed structure graph. The scene semantic directed structure graph is constructed from scene entity objects in the current scene and semantic association words of different granularities of the scene entity objects. The module includes: obtaining candidate entity objects by searching the scene semantic directed structure graph based on the core mention words; obtaining the text matching degree between the core mention words and each candidate entity object; and determining the target entity object corresponding to the voice command information based on the text matching degree.

13. A voice interaction system, characterized in that, include: At least one processor; A memory that is communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, which, when executing the computer program, implements the semantic entity recognition method according to any one of claims 1-11.

14. A vehicle, characterized in that, Includes the voice interaction system as described in claim 13.

15. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements the semantic entity recognition method according to any one of claims 1-11.

Citation Information

Patent Citations

  • Entity identification method and device, equipment and storage medium

    CN113673249A

  • Artificial intelligence body, voice information recognition method, storage medium and program product

    CN114925206A