A semantic recognition method and device

Through the preset synonym mapping relationship and the attribute information of smart devices, combined with general and exclusive synonym libraries, the problem of difficult synonym recognition for smart devices in different scenarios is solved, and more accurate semantic analysis and user intention understanding are achieved.

CN112215010BActive Publication Date: 2024-10-22BEIJING ORION STAR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910621634.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-10
Publication Date
2024-10-22
Estimated Expiration
2039-07-10

AI Technical Summary

Technical Problem

Smart devices cannot accurately identify synonyms in text information in different application scenarios, resulting in inaccurate semantic analysis results.

Method used

Determine the target word of the word to be recognized through the preset synonym mapping relationship, and use the combination of the general synonym database and the exclusive synonym database to determine the effective target synonym database based on the attribute information and effective range of the smart device, thereby achieving accurate text information Semantic analysis.

Benefits of technology

It improves the ability of smart devices to understand user intentions in different scenarios, ensures the accuracy of navigation and other functions, and provides more accurate semantic analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112215010B_ABST
    Figure CN112215010B_ABST
Patent Text Reader

Abstract

The present application discloses a semantic recognition method and device, which relate to the field of semantic recognition technology, and are used to solve the problem that when an intelligent device performs semantic analysis on acquired text information, the synonyms of some words in different application scenarios cannot be accurately identified, thereby resulting in inaccurate semantic analysis results for the text information. The method of the present application comprises: determining words to be identified in the acquired text information that need to be synonymously identified, for each word to be identified, determining a target word that is synonymous with the word to be identified according to a preset synonym mapping relationship, and determining the semantic analysis result of the text information according to the determined target word.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of natural language processing, and in particular to a semantic recognition method and device. Background Art

[0002] When current smart devices use text or voice to identify and judge the user's semantic process, most of them only define some standard words for places, events, and objects in their semantic recognition libraries. For example, the places defined in the general dictionary library include standard words such as conference room, coffee shop, toilet, elevator, office, etc. Smart devices can recognize them in the guided navigation scenario, understand the user's intention and navigate to the corresponding location.

[0003] However, a standard word may have different nicknames in different scenarios, such as when used in different companies. For example, the standard word "coffee shop" is used in the navigation systems of different companies. In company A, "coffee shop" becomes "the other shore", and in company B, "coffee shop" is called "Dr. Coffee". Therefore, when smart devices are used in different scenarios, they need to be able to correctly understand the nicknames of designated places in specific scenarios (that is, synonyms corresponding to the places), and then correctly understand the user's true semantics and navigate them to the correct place.

[0004] In summary, when smart devices perform semantic analysis on acquired text information, they are unable to accurately identify the synonyms of some words in different application scenarios, which in turn leads to inaccurate semantic analysis results of the text information. Summary of the invention

[0005] The present application provides a user semantic recognition method and device to solve the problem in the prior art that, when performing semantic analysis on acquired text information, smart devices cannot accurately identify the synonyms of some words in different application scenarios, thereby resulting in inaccurate semantic analysis results for the text information.

[0006] In a first aspect, the present application provides a semantic recognition method, the method comprising:

[0007] Determine the words to be identified that need to be synonymously identified in the acquired text information;

[0008] For each word to be recognized, determining a target word that is synonymous with the word to be recognized according to a preset synonym mapping relationship;

[0009] According to the determined target words, a semantic analysis result of the text information is determined.

[0010] The above method searches for understandable target words that are synonymous with the words to be identified through preset synonym mapping relationships, and can determine the real semantic analysis results of the text information based on the searched target words, thereby understanding the real intention of the user.

[0011] In a possible implementation, determining the words to be identified in the acquired text information that need to be identified as synonyms includes:

[0012] The text information is slot parsed to obtain a slot value corresponding to each slot item, and the obtained slot value is determined as the word to be recognized.

[0013] In a possible implementation, performing slot parsing on the text information includes:

[0014] Performing slot parsing on the text information by text rule matching; or

[0015] The text information is slot parsed using a natural language understanding (NLU) model.

[0016] In a possible implementation, determining a target word that is synonymous with the word to be identified according to a preset synonymous word mapping relationship includes:

[0017] Determine a target synonym library effective for the smart device according to the attribute information of the smart device and the effective range of the synonym library configuration;

[0018] According to the synonymous word mapping relationship contained in the target synonym library, a word synonymous with the word to be identified is determined as the target word.

[0019] In a possible implementation, the synonym library includes a dedicated synonym library and a universal synonym library; according to the synonym word mapping relationship contained in the target synonym library, determining the word synonymous with the word to be identified as the target word includes:

[0020] If the target synonym library is a dedicated synonym library, determining a dedicated word synonymous with the word to be identified as a target word according to each dedicated word contained in the dedicated synonym library and the synonyms of the dedicated word; and / or

[0021] If the target synonym library is a universal synonym library, a standard word synonymous with the word to be identified is determined as a target word according to each standard word contained in the universal synonym library and the synonyms of the standard word.

[0022] In a possible implementation, the target synonym library includes a dedicated synonym library and a universal synonym library, and according to the synonym word mapping relationship contained in the target synonym library, determining a word synonymous with the word to be identified as a target word includes:

[0023] Determine, based on each exclusive word included in the exclusive synonym library and the synonyms of the exclusive word, the exclusive word synonymous with the word to be identified as the target word, and determine, based on each standard word included in the general synonym library and the synonyms of the standard word, the standard word synonymous with the word to be identified; or

[0024] According to the exclusive words contained in the exclusive synonym library and the synonyms of the exclusive words, the exclusive words synonymous with the word to be recognized are determined. If no exclusive words synonymous with the word to be recognized exist in any of the exclusive synonym libraries, then according to the standard words contained in the universal synonym library and the synonyms of the standard words, the standard words synonymous with the word to be recognized are determined.

[0025] In a possible implementation, if the effective target synonym library includes multiple exclusive synonym libraries, determining a word synonymous with the word to be identified as a target word according to the synonym word mapping relationship contained in the target synonym library includes:

[0026] In descending order of priority of the exclusive synonym libraries, in the multiple exclusive synonym libraries, according to each exclusive word and the synonyms of the exclusive words contained in the multiple exclusive synonym libraries, determine the exclusive word that is synonymous with the word to be identified as the target word; or

[0027] In the multiple exclusive synonym libraries, exclusive words synonymous with the word to be identified are determined according to the exclusive words contained in the multiple exclusive synonym libraries and the synonyms of the exclusive words. If multiple exclusive words synonymous with the word to be identified are determined, the exclusive word in the exclusive synonym library with the highest priority is determined as the target word.

[0028] In a possible implementation, before determining the semantic parsing result of the text information according to the determined target word, the method further includes:

[0029] If it is determined that there are at least two target words for any word to be recognized, controlling the intelligent device to output prompt information, wherein the prompt information is used to prompt selection of the at least two target words;

[0030] According to the feedback information obtained by the smart device, the selected target word is determined to be the target word of the final semantic analysis of any word to be recognized.

[0031] In a possible implementation, the effective scope of the synonym library configuration includes at least one of the following:

[0032] It is effective for specified devices, specified enterprises, specified business lines, specified applications, specified fields, and all devices.

[0033] In a second aspect, the present application further provides a semantic recognition device, the device comprising:

[0034] A determination unit, used to determine the words to be identified in the acquired text information that need to be identified as synonyms;

[0035] A synonym recognition unit, for determining, for each word to be recognized, a target word that is synonymous with the word to be recognized according to a preset synonym mapping relationship;

[0036] The parsing unit is used to determine the semantic parsing result of the text information according to the determined target words.

[0037] In a possible implementation, the determination unit is specifically configured to: perform slot parsing on the text information to obtain a slot value corresponding to each slot item, and determine the obtained slot value as the word to be recognized.

[0038] The determination unit is used to perform slot parsing on the text information by text rule matching; or to perform slot parsing on the text information by an NLU model.

[0039] In a possible implementation, the synonym recognition unit is specifically used to: determine a target synonym library that is effective for the smart device based on the attribute information of the smart device and the effective scope of the synonym library configuration; and determine a word that is synonymous with the word to be recognized as a target word based on the synonym word mapping relationship contained in the target synonym library.

[0040] In a possible implementation, the synonym library includes a dedicated synonym library and a universal synonym library; the synonym recognition unit is specifically used to: if the target synonym library is a dedicated synonym library, determine the dedicated word that is synonymous with the word to be recognized as the target word according to each dedicated word contained in the dedicated synonym library and the synonyms of the dedicated word; and / or

[0041] If the target synonym library is a universal synonym library, a standard word synonymous with the word to be identified is determined as a target word according to each standard word contained in the universal synonym library and the synonyms of the standard word.

[0042] In a possible implementation, the target synonym library includes a dedicated synonym library and a universal synonym library, and the synonym recognition unit is specifically used to: determine the dedicated word synonymous with the word to be recognized as the target word according to each dedicated word contained in the dedicated synonym library and the synonyms of the dedicated word, and determine the standard word synonymous with the word to be recognized according to each standard word contained in the universal synonym library and the synonyms of the standard word; or

[0043] According to the exclusive words contained in the exclusive synonym library and the synonyms of the exclusive words, the exclusive words synonymous with the word to be recognized are determined. If no exclusive words synonymous with the word to be recognized exist in any of the exclusive synonym libraries, then according to the standard words contained in the universal synonym library and the synonyms of the standard words, the standard words synonymous with the word to be recognized are determined.

[0044] In a possible implementation, the synonym unit is specifically used to: determine, in order of priority of the exclusive synonym libraries from high to low, in the multiple exclusive synonym libraries, based on each exclusive word contained in the multiple exclusive synonym libraries and the synonyms of the exclusive words, an exclusive word that is synonymous with the word to be identified as the target word; or

[0045] In the multiple exclusive synonym libraries, exclusive words synonymous with the word to be identified are determined according to the exclusive words contained in the multiple exclusive synonym libraries and the synonyms of the exclusive words. If multiple exclusive words synonymous with the word to be identified are determined, the exclusive word in the exclusive synonym library with the highest priority is determined as the target word.

[0046] In a possible implementation, the synonym recognition unit is also used to: before determining the semantic analysis result of the text information based on the determined target words, if it is determined that there are at least two target words for any word to be identified, control the intelligent device to output prompt information, and the prompt information is used to prompt the selection of the at least two target words; based on the feedback information obtained by the intelligent device, determine that the selected target word is the target word for the final semantic analysis of any word to be identified.

[0047] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores an executable program, and when the program is executed, the processor implements the steps of the method described in the first aspect.

[0048] In a fourth aspect, the present application further provides a computer storage medium having a computer program stored thereon, which, when executed by a processing unit, implements the steps of the method described in the first aspect.

[0049] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program stored on a computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0050] In addition, the technical effects brought about by any implementation method in the second aspect and the fifth aspect can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0052] Figure 1 A schematic diagram of a semantic recognition method provided in an embodiment of the present application;

[0053] Figure 2 A schematic diagram of a process of slot parsing of text information provided in an embodiment of the present application;

[0054] Figure 3 A schematic diagram of a complete process of semantic recognition provided in an embodiment of the present application;

[0055] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application;

[0056] Figure 5 A schematic diagram of a semantic recognition device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of this application clearer, this application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] The following are explanations of some of the terms that appear in the text:

[0059] 1. In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0060] 2. The smart device in the embodiments of the present application may be a smart robot with certain functions, such as a smart device with leading functions, reception functions, tour guide functions, explanation functions, chat functions, business inquiry functions, music playing functions, etc. The smart device may also be a portable device (for example: a mobile phone, a tablet, a laptop computer, etc.) or a personal computer (PC, Personal Computer), or a smart speaker, etc. The specific form of the smart device is not limited in the embodiments of the present invention.

[0061] The application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems. In the description of the present application, unless otherwise specified, the meaning of "multiple" is two or more.

[0062] Most of the current smart devices define some common words and have some common dictionaries. Smart devices can understand the words in these common dictionaries. For example, "bathroom" and "elevator" are defined in the common dictionary. Smart devices with certain functions (such as reception function) can understand the words "bathroom" and "elevator", and can understand the user's intention based on text information. For example, if the text information is "Please take me to the elevator", the smart device can understand the user's intention and guide the user to the location of the elevator. However, some words often have more than one common expression form. For example, "bathroom" is usually expressed as "restroom", "toilet", "WC", "latrine" and other words. At this time, if the location words collected by the smart device are "WC", "toilet" and "latrine", these words cannot be understood, and thus the user's intention cannot be correctly understood.

[0063] In addition, different companies may have their own exclusive words. Taking place names as an example, different companies have different exclusive place names. For example, in Company A, "Coffee Shop" is called "The Other Shore", and in Company B, "Coffee Shop" is called "Dr. Coffee". Smart devices need to be able to correctly understand the exclusive place names in different companies. Therefore, in order to correctly understand the user's true semantics and make corresponding responses to the user's semantics, this application provides a semantic recognition method based on synonyms. In this method, text information is first obtained, and the words to be recognized in the obtained text information that need to be synonymously recognized are determined. Then, for each word to be recognized, a target word that is synonymous with the above-mentioned word to be recognized is determined according to a preset synonym mapping relationship. Specifically, the target word that is synonymous with the above-mentioned word to be recognized can be determined based on the synonym mapping relationship contained in the target synonym library, and then the semantic parsing result of the above-mentioned text information is determined according to the determined target word.

[0064] It should be noted that the smart devices in the embodiments of the present application all refer to smart devices with certain functions, and may include but are not limited to smart devices with guidance functions, query functions, music playing functions, etc.

[0065] In the present application, a synonym library is pre-built to achieve the determination of a target word synonymous with the above-mentioned word to be identified according to a preset synonym mapping relationship. The above-mentioned synonym library stores the above-mentioned preset synonym mapping relationship. The following first describes the above-mentioned constructed synonym library:

[0066] In the present application, a general synonym library can be constructed based on the relationship between standard words and synonyms that express the same semantics, so as to store understandable standard words (standard words are words commonly used in expressing semantics, such as bathroom, coffee shop, subway station, etc.), and the above-mentioned general synonym library stores each standard word and its synonyms (for example, when the above-mentioned standard word is "bathroom", the synonyms that express the same semantics as it are "WC", "toilet", and "latrine") as preset synonym mapping relationships. After the words to be recognized are determined, the target words with the same semantics as each word to be recognized are determined respectively according to the preset standard words and the synonym mapping relationship of the above-mentioned standard words. For example, when the word to be recognized is the standard word "bathroom", no target word synonymous with "bathroom" can be found according to the preset synonym mapping relationship. At this time, the standard word "bathroom" is determined as the target word. When the word to be recognized is "WC" or "toilet", the standard word "bathroom" with the same semantics as it is determined as the target word according to the preset mapping relationship.

[0067] Among them, one or more exclusive synonym libraries can also be constructed based on different application scenarios. The above-mentioned exclusive synonym libraries are used to store exclusive words that can be understood in specific application scenarios (exclusive words are special expressions used to express semantics in specific application scenarios. For example, in different companies, "coffee shop" may correspond to the words "Dr. Coffee" and "the other side". At this time, "Dr. Coffee" and "the other side" are exclusive words), and each of the above-mentioned exclusive synonym libraries stores each exclusive word and the synonyms of the above-mentioned exclusive words as preset synonym mapping relationships; after the words to be recognized are determined, according to the preset synonym mapping relationships in the exclusive synonym library, target words synonymous with each word to be recognized are determined respectively. For example, when the word to be recognized is the exclusive word "Dr. Coffee", according to the preset synonym mapping relationship, no target word with the same semantics as the exclusive word "Dr. Coffee" can be found. At this time, the exclusive word "Dr. Coffee" is determined as the target word. When the word to be recognized is "coffee shop", according to the preset synonym mapping relationship, the exclusive word "Dr. Coffee" with the same semantics as it is determined as the target word.

[0068] In each synonym library (including a general synonym library and a dedicated synonym library), there may be one or more synonyms with the same semantics as the same base word or dedicated word; and the synonym mapping relationship preset in each synonym library may be saved as a synonym mapping table, but is not limited to. The synonym mapping table may be in the form of, but is not limited to, the following table 1 or table 2:

[0069] Table 1:

[0070] Standard word 1 Synonyms 11 Synonyms 12 Standard word 2 Synonyms 21 … … … … Standard word n Synonyms n1 Synonyms n2 …

[0071] In the above Table 1, the standard words and synonyms in the same row have the same semantics, and the spaces indicate that there are no extra synonyms. For standard word 1, there are 2 synonyms (i.e., synonym 11 and synonym 12), for standard word 2, there is 1 synonym (i.e., synonym 21), and for standard word n, there are 2 synonyms (i.e., synonym n1 and synonym n2) or more.

[0072] Table 2:

[0073]

[0074]

[0075] In the above Table 2, the exclusive words and synonyms in the same row have the same semantics, and the spaces indicate that there are no extra synonyms. For exclusive word 1, there are 2 synonyms (i.e., synonym 11 and synonym 12), for exclusive word 2, there is 1 synonym (i.e., synonym 21), and for exclusive word n, there are 2 synonyms (i.e., synonym n1 and synonym n2) or more.

[0076] Furthermore, when multiple synonym libraries are pre-built, in order to better distinguish the applicable scope of each synonym library, an effective scope is configured for each synonym library (including a general synonym library and / or a dedicated synonym library).

[0077] The effective scope of any of the above synonym libraries may include but is not limited to:

[0078] 1) Effective at the device level.

[0079] The device-level effectiveness indication is effective for the specified device. According to the scenario requirements or actual needs, the effectiveness scope of any of the above synonym libraries can be configured to be effective for the specified device (that is, the above-mentioned smart device). For example, the effectiveness scope of synonym library 1 is configured to be smart device A and smart device B, and the effectiveness scope of synonym library 2 is configured to be smart device C. For smart device B, the synonym library that is effective for it is synonym library 1.

[0080] The device-level effectiveness can also indicate that it is effective for devices of a specified device type. According to the scenario requirements or actual needs, the effectiveness scope of any of the above synonym libraries can be configured to be effective for devices of a specified device type. For example, the device types of smart device A and smart device B are both device type a, and the device type of smart device C is both device type b. When the effectiveness scope of synonym library 1 is configured to be device type a, then synonym library 1 is effective for both smart device A and smart device B.

[0081] The above-mentioned designated device types may be, but are not limited to, devices with designated functions, such as smart devices with leading functions, etc.

[0082] 2) Enterprise-level effectiveness. Enterprise-level effectiveness indicates that it is effective for a specified enterprise. According to the scenario requirements or actual needs, the effectiveness scope of any of the above synonym libraries can be configured to be effective for the devices of the specified enterprise. For example, if the effectiveness scope of synonym library 1 is configured to be enterprise A and the effectiveness scope of synonym library 2 is configured to be enterprise B, then for the smart devices under enterprise A, the effective synonym library is synonym library 1, and for the smart devices under enterprise B, the effective synonym library is synonym library 2.

[0083] 3) Business line level effectiveness. Business line level effectiveness indicates that it is effective for the specified business line. According to the scenario requirements or actual needs, you can configure the effectiveness scope of any of the above synonym libraries to be effective for the devices of the specified business line. For example, if the effectiveness scope of synonym library 1 is configured as business line A and the effectiveness scope of synonym library 2 is configured as business line B, then for the smart devices under business line A, the synonym library that is effective for them is synonym library 1.

[0084] 4) Application-level effectiveness. Application-level effectiveness indicates that it is effective for a specified application. According to the scenario or actual needs, the effectiveness scope of any of the above synonym libraries can be configured to be effective for devices of the specified application. For example, if the effectiveness scope of synonym library 1 is configured to be application A, and the effectiveness scope of synonym library 2 is configured to be application B, then for the smart device executing application A, the synonym library that is effective for it is synonym library 1.

[0085] 5) Field-level effectiveness. Field-level effectiveness indicates effectiveness for a specified field. According to the scenario or actual needs, the effectiveness scope of any of the above synonym libraries can be configured to be effective for devices in a specified field. For example, if the effectiveness scope of synonym library 1 is configured to be field A and the effectiveness scope of synonym library 2 is configured to be field B, then for smart devices in field A, the effective synonym library is synonym library 1.

[0086] 6) Effective for all devices. The effectiveness range of any of the above synonym libraries can be configured to be effective for all devices. For example, if the effectiveness range of synonym library 1 is configured to be effective for all devices, then synonym library 1 is effective for any smart device.

[0087] Furthermore, the priority of the synonym library may be set according to the above effective range, and the priority order of the synonym library may be set to the following order, but is not limited to:

[0088] The order of priority from high to low is: synonym library effective for specified devices, synonym library effective for specified enterprises, synonym library effective for specified applications, synonym library effective for specified business lines, synonym library effective for specified fields, and synonym library effective for all devices.

[0089] It should be understood that the smaller the effective range of the above-mentioned multiple exclusive synonym libraries is, the higher the priority thereof is. The priority of the above-mentioned synonym libraries is in descending order from the front to the back.

[0090] It should be noted that each of the above synonym libraries can be stored in the smart device where it is effective, or can be stored in a server.

[0091] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings of the specification and the above-mentioned synonym library.

[0092] First of all, it should be explained that in a semantic recognition method provided in an embodiment of the present application, the words to be recognized in the text information that need to be synonymously recognized are first determined, and then the target words that are synonymous with the above-mentioned words to be recognized are determined according to the preset synonym mapping relationships in the various synonym libraries saved; after determining the target words that are synonymous with the words to be recognized, it is possible but not limited to determining the semantic analysis results of the text information based on the target words, and determining the response data corresponding to the semantic analysis results, so as to control the smart device to output the response data.

[0093] The execution subject of the method provided in the embodiment of the present application can be a controller of a smart device or a server, and the present application does not limit the execution subject.

[0094] The following only takes the server as the execution subject to exemplify and describe the semantic recognition method provided by this application. Figure 1 As shown, a semantic recognition method provided in this embodiment specifically includes the following steps:

[0095] Step S101, determining the words to be recognized in the acquired text information that need to be recognized as synonyms.

[0096] Before this step, text information uploaded directly by the smart device to the server can be obtained, or voice information uploaded by the smart device can be obtained, and the voice information can be recognized by a voice recognition module to obtain text information corresponding to the voice information.

[0097] The text information uploaded by the smart device may be text information directly acquired by the smart device, or may be text information obtained by the smart device by processing acquired voice information.

[0098] The smart device can obtain voice information through a voice collection device and directly obtain text information through a display module. There are no excessive limitations on the above-mentioned voice collection device and display module. Technical personnel in this field can obtain them according to actual needs, such as using a microphone as the above-mentioned voice collection device and a liquid crystal interactive display screen as the above-mentioned display module.

[0099] Optionally, in this step, the server may perform slot parsing on the text information to obtain slot values ​​corresponding to each slot item, and may, but is not limited to, determine each obtained slot value as the above-mentioned words to be recognized, wherein the text information may be slot parsed in the following manner, but is not limited to:

[0100] Slot parsing method 1: Slot parsing of the above text information is performed through text rule matching;

[0101] Slot parsing method 2: Use the natural language understanding (NLU) model to perform slot parsing on the above text information.

[0102] After determining the words to be recognized in the above step S101 by means of slot analysis, the process proceeds to the following step 102 .

[0103] Step S102: for each word to be recognized, a target word that is synonymous with the word to be recognized is determined according to a preset synonym mapping relationship.

[0104] According to the above content of the embodiments of the present application, the above-mentioned preset synonym mapping relationship may include but is not limited to: the mapping relationship between each exclusive word stored in the exclusive synonym library and the synonyms of the above exclusive words, the mapping relationship between each standard word stored in the general synonym library and the synonyms of the above standard words; and configuring the effective scope for each synonym library (including the above-mentioned general synonym library and the exclusive synonym library).

[0105] Before step S101 of this embodiment, when the smart device uploads text information or voice information to the server, the attribute information of the smart device may be uploaded to the server at the same time.

[0106] The attribute information of the smart device is used to identify the identity information and applicable scenarios of the smart device. The attribute information may include but is not limited to: device identity ID, device type, device-owned enterprise, etc.

[0107] In this step, the target word synonymous with the word to be identified may be determined according to a preset synonymous word mapping relationship in the following manner, but is not limited to:

[0108] Determine a target synonym library effective for the smart device according to the attribute information of the smart device and the effective range of the synonym library configuration;

[0109] According to the synonymous word mapping relationship contained in the target synonym library, a word synonymous with the word to be identified is determined as the target word.

[0110] The following is an exemplary description of the above target synonym library determined to be effective for the above smart device:

[0111] If synonym libraries 1-3 are configured, where the effective scope of synonym library 1 is smart device A and smart device B, the effective scope of synonym library 2 is enterprise A, and the effective scope of synonym library 3 is enterprise B, and it is also known that the enterprise to which smart device B belongs is enterprise A; at this time, according to the attribute information of the smart device and the effective scope of each synonym library configuration, it is determined that the target synonym libraries effective for smart device B are synonym library 1 and synonym library 2.

[0112] It should be noted here that the target synonym library effective for the above-mentioned smart device may be one or more.

[0113] The following is an exemplary description of determining the words that are synonymous with the words to be identified as target words:

[0114] For example, when the determined target synonym library is a general synonym library, and the determined word to be identified is "WC", "bathroom" can be determined as the target word of "WC" based on the mapping relationship between the standard word "bathroom" and "WC";

[0115] For example, when the determined target synonym library is an exclusive synonym library with an effective scope of enterprise A, and the determined word to be identified is "elevator", "elevator A" can be determined as the target word of "elevator" based on the exclusive word "elevator A" (here "elevator A" is the exclusive place name of "elevator" in enterprise A) and the mapping relationship between "elevator A" and "elevator" in the exclusive synonym library; when the determined target synonym library is an exclusive synonym library with an effective scope of enterprise B, and the determined word to be identified is "elevator", "elevator B" can be determined as the target word of "elevator" based on the exclusive word "elevator B" (here "elevator B" is the exclusive place name of "elevator" in enterprise B) and the mapping relationship between "elevator B" and "elevator" in the exclusive synonym library.

[0116] After determining the target word of the word to be recognized, the following step S103 is executed;

[0117] Step S103: determining a semantic analysis result of the text information according to the determined target word.

[0118] In a specific implementation, if the text information obtained in the above step S101 is "Please take me to the WC", the word to be recognized is "WC", and the target word of "WC" is determined to be "bathroom" in step S102, then this step maps "WC" to the above target word "bathroom".

[0119] Further, based on the semantic analysis result, the response data corresponding to the text information is determined, and the corresponding smart device is controlled to output the response data;

[0120] Technicians in this field can set the output form of the above-mentioned response data according to actual needs, such as but not limited to setting the above-mentioned response data to be output in the form of control instructions (such as leading, dancing, etc.), voice broadcast, text display, multimedia playback (audio, video, pictures, etc.), etc.

[0121] In a possible implementation, Figure 2As shown, in the above step S101 in the embodiment of the present application, the following steps are mainly included:

[0122] Step S201, performing field recognition on the text information to determine the field corresponding to the text information;

[0123] Step S202, performing intent recognition on the text information to determine the intent category corresponding to the text information;

[0124] Step S203, extracting slots from the text information, and determining that the slot values ​​corresponding to the extracted slots are the words to be recognized.

[0125] Among them, domain refers to the same type of data or resources, as well as the services provided around these data or resources, such as navigation, encyclopedia, weather, music, train tickets, chatting, etc. Intent refers to the purpose that the user wants to express, which is identified through the user's interactive input. Usually, intent refers to the operation on domain data, which is generally named with a verb-object phrase, such as asking about the weather, finding music, buying train tickets, etc. Slots are the information that needs to be completed to convert preliminary user intentions into clear user instructions. A slot corresponds to a type of information that needs to be obtained in the processing of an event. For example, in order to perform the task of checking the weather, you need to know the necessary elements such as location and time. These necessary elements are slots.

[0126] In another possible implementation, the words to be identified in the text information in step S101 may be determined by the following method:

[0127] The text information is slot parsed to obtain slot values ​​corresponding to each slot item, and slot values ​​that cannot be found in a general dictionary effective for the smart device are determined as words to be recognized.

[0128] It should be understood that in the above method for determining the words to be recognized, when the server obtains the text information uploaded by the smart device, it also obtains the attribute information of the above smart device, and determines the general dictionary in the preset general dictionary that is effective for the smart device based on the attribute information of the above smart device and the effective scope of the preset general dictionary; and then searches for the above slot values ​​in the effective general dictionary, and determines the slot values ​​that are not found in the effective general dictionary as the words to be recognized.

[0129] Among them, the attribute information of the above-mentioned smart device is used to identify the identity information and applicable scenarios of the above-mentioned smart device, and the above-mentioned attribute information may include but is not limited to: device identity ID, device type, device-owned enterprise, etc.

[0130] In one possible implementation, the general dictionary can be constructed based on common expression words. For example, common expression words for specified smart devices (such as toilets, coffee shops, subway stations, etc.) can be saved in the general dictionary. One or more general dictionaries for specified smart devices can also be constructed based on different application scenarios. The general dictionary can include a place name dictionary. Multiple exclusive expression words for a specified enterprise can be saved in the general dictionary. Taking the place name dictionary as an example, different enterprises have different exclusive place names. For example, in Enterprise A, "Coffee Shop" is called "The Other Shore", and in Enterprise B, "Coffee Shop" is called "Dr. Coffee". In the place name dictionary effective in Enterprise A, the exclusive place name "The Other Shore" can be saved, and in the place name dictionary effective in Enterprise A, the exclusive place name "Dr. Coffee" can be saved.

[0131] The effective range of the above-mentioned preset general dictionary can be set with reference to the effective range of the above-mentioned synonym library, and will not be repeated here.

[0132] In the above step S102 in the embodiment of the present application, when performing synonym recognition on any word to be recognized, the target synonym library effective for the above smart device may be a general synonym library or a dedicated synonym library, and the above effective target synonym library may be one or more. Several specific possible situations are provided below to illustrate how to determine the target word synonymous with the above word to be recognized according to the preset synonym mapping relationship in different situations:

[0133] Case 1) There is only one valid target synonym library. In this case, according to the preset synonym mapping relationship, the target word synonymous with the word to be identified is determined, specifically including:

[0134] When the target synonym library is a dedicated synonym library, based on the dedicated words contained in the dedicated synonym library and the synonyms of the dedicated words, a dedicated word synonymous with the word to be identified is determined as the target word; and / or

[0135] If the target synonym library is a general synonym library, a standard word synonymous with the word to be identified is determined as the target word according to each standard word contained in the general synonym library and the synonyms of the standard word.

[0136] Case 2) When the above-mentioned effective target synonym library includes both a dedicated synonym library and a general synonym library, in this case, according to the preset synonym mapping relationship, the target word synonymous with the above-mentioned word to be identified can be determined in the following two ways but not limited to:

[0137] Method 1 for determining target words: determining the target words as the exclusive words that are synonymous with the above-mentioned words to be identified according to the synonyms mapped to each exclusive word in the above-mentioned exclusive synonym library, and determining the standard words that are synonymous with the above-mentioned words to be identified according to the synonyms mapped to each standard word in the general synonym library;

[0138] In a specific implementation, if the target synonym database includes both a dedicated synonym database and a general synonym database, synonym recognition can be performed in the dedicated synonym database and the general synonym database at the same time to determine the target word that is synonymous with the above-mentioned word to be recognized.

[0139] Furthermore, if a synonymous word (such as a standard word or a proprietary word) of the above-mentioned word to be identified is identified only in any one of the synonym libraries, the identified word is determined as the target word; if a synonymous word of the above-mentioned word to be identified is identified in both the proprietary synonym library and the universal synonym library, then according to the priority of the synonym library, the word identified in the synonym library with a higher priority is selected to be determined as the target word. Since the priority of the proprietary synonym library is higher than that of the universal synonym library, the word identified in the proprietary synonym library can be determined as the target word.

[0140] For example, if it is determined that the exclusive synonym library 1 and the general synonym library are both target synonym libraries based on the attribute information of the smart device and the effective scope of each synonym library, and the word to be identified is "WC", the exclusive synonym library 1 can be searched for exclusive words synonymous with "WC" according to the synonym word mapping relationship preset in the exclusive synonym library 1. If an exclusive word synonymous with "WC" is found, the exclusive word is determined as the target word of "WC"; at the same time, according to the synonym word mapping relationship preset in the general synonym library, the general synonym library is searched for standard words synonymous with "WC". If an exclusive word synonymous with "WC" or a standard word synonymous with "WC" is found, the standard word is determined as the target word of "WC".

[0141] Method 2 for determining target words: Determine the exclusive words synonymous with the above-mentioned words to be identified from the exclusive words and their synonyms in the above-mentioned exclusive synonym libraries. If no exclusive words synonymous with the above-mentioned words to be identified exist in any of the above-mentioned exclusive synonym libraries, then determine the standard words synonymous with the above-mentioned words to be identified in the above-mentioned general synonym library based on the standard words and their synonyms.

[0142] In a specific implementation, if the target synonym library includes both an exclusive synonym library and a general synonym library, synonym recognition can be performed first in the exclusive synonym library. If an exclusive word synonymous with the above-mentioned word to be recognized is recognized in the above-mentioned exclusive synonym library, the exclusive word is determined as the target word synonymous with the above-mentioned word to be recognized; if a word (exclusive word) synonymous with the above-mentioned word to be recognized is not recognized in any exclusive synonym library, synonym recognition is then performed in the general synonym library to determine the target word synonymous with the above-mentioned word to be recognized.

[0143] Furthermore, if an exclusive word synonymous with the above-mentioned word to be identified is only identified in any one exclusive synonym library, the identified exclusive word is determined as the target word; if exclusive words synonymous with the above-mentioned word to be identified are identified in multiple exclusive synonym libraries, then according to the priority of the exclusive synonym library, the exclusive word identified in the exclusive synonym library with a high priority is selected as the target word.

[0144] For example, if, according to the attribute information of the smart device and the effective range of each synonym library, it is determined that exclusive synonym library 1, exclusive synonym library 2 and general synonym library are all target synonym libraries, and the word to be recognized is "WC", the exclusive synonym library 1 and exclusive synonym library 2 can be searched for exclusive words synonymous with "WC" according to the preset synonym word mapping relationship in the exclusive synonym library 1 and the exclusive synonym library 2, and the exclusive synonym library 1 and exclusive synonym library 2 can be searched for exclusive words synonymous with "WC". When an exclusive word synonymous with "WC" is found, the exclusive word synonymous with "WC" is used as the target word of "WC"; when it is determined that no exclusive word synonymous with "WC" is found in exclusive synonym library 1 and exclusive synonym library 2, a standard word synonymous with "WC" is searched in the general synonym library according to the synonym word mapping relationship preset in the general synonym library. If a standard word synonymous with "WC" is found, the standard word synonymous with "WC" is determined as the target word of "WC".

[0145] Among them, in the above situation 1) and situation 2), when the above effective target synonym library only includes multiple exclusive synonym libraries, the word synonymous with the above word to be identified can be determined as the target word according to the synonym word mapping relationship contained in the above target synonym library in any of the following ways but not limited to:

[0146] 1) in descending order of priority of the multiple exclusive synonym libraries, in the exclusive synonym library with the highest priority, according to each exclusive word contained in the exclusive synonym library and the synonyms of the exclusive word, determine the exclusive word synonymous with the word to be identified as the target word;

[0147] In a specific implementation, if the target synonym library includes multiple exclusive synonym libraries, synonym recognition can be performed first in the exclusive synonym library with the highest priority according to the order of priority of the multiple exclusive synonym libraries from high to low. If an exclusive word synonymous with the above-mentioned word to be recognized is recognized in the above-mentioned exclusive synonym library, the exclusive word is determined as the target word synonymous with the above-mentioned word to be recognized; if the exclusive word synonymous with the above-mentioned word to be recognized is not recognized in the above-mentioned exclusive synonym library with the highest priority, synonym recognition is performed in the exclusive synonym library with the second highest priority, and so on, until the exclusive word synonymous with the above-mentioned word to be recognized is recognized in a certain exclusive synonym library, or until it is determined that the exclusive word synonymous with the above-mentioned word to be recognized is not recognized in all exclusive synonym libraries.

[0148] For example, if the priority of the exclusive synonym library is set in descending order: the synonym library effective for the specified device, the synonym library effective for the specified enterprise, and the synonym library effective for the specified application.

[0149] It is known that the target synonym library includes exclusive synonym library 1, exclusive synonym library 2 and exclusive synonym library 3, and the effective scope of exclusive synonym library 1 is effective for specified devices, the effective scope of exclusive synonym library 2 is effective for specified applications, and the effective scope of exclusive synonym library 3 is effective for specified enterprises. At this time, in order of priority from high to low, exclusive words that are synonymous with the words to be identified are searched in exclusive synonym library 1, exclusive synonym library 3 and exclusive synonym library 2 as target words.

[0150] 2) At the same time, according to the exclusive words contained in the above-mentioned multiple exclusive synonym libraries and the synonyms of the above-mentioned exclusive words, it is determined whether there are exclusive words synonymous with the above-mentioned words to be recognized. When multiple exclusive words synonymous with the above-mentioned words to be recognized are determined, the exclusive word in the exclusive synonym library with the highest priority is determined as the target word.

[0151] In a specific implementation, if the target synonym library includes multiple exclusive synonym libraries, synonym recognition can be performed in the above-mentioned multiple exclusive synonym libraries respectively at the same time. If an exclusive word synonymous with the above-mentioned word to be recognized is only recognized in any one exclusive synonym library, the recognized exclusive word is determined as the target word; if exclusive words synonymous with the above-mentioned word to be recognized are recognized in multiple exclusive synonym libraries, then according to the priority of the exclusive synonym libraries, the exclusive word recognized in the exclusive synonym library with a high priority is selected as the target word.

[0152] For example, if the priority of the exclusive synonym library is set from high to low: the synonym library effective for the specified device, the synonym library effective for the specified enterprise, and the synonym library effective for the specified application. It is known that the target synonym library includes exclusive synonym library 1, exclusive synonym library 2, and exclusive synonym library 3, and the effective scope of exclusive synonym library 1 is effective for the specified device, the effective scope of exclusive synonym library 2 is effective for the specified application, and the effective scope of exclusive synonym library 3 is effective for the specified enterprise. At this time, exclusive words synonymous with the words to be identified are searched in exclusive synonym library 1, exclusive synonym library 3, and exclusive synonym library 2 as target words. If exclusive words 1 and exclusive words 2 synonymous with the words to be identified are found in exclusive synonym library 1 and exclusive synonym library 2 respectively, exclusive word 1 found in exclusive synonym library 1 with the highest priority is determined as the target word of the words to be identified.

[0153] Based on any of the above specific embodiments, after determining a target word that is synonymous with the above word to be recognized and before determining a semantic analysis result of the above text information based on the determined target word, the method further includes:

[0154] If it is determined that there are at least two target words for any word to be recognized, controlling the intelligent device to output prompt information, the prompt information being used to prompt selection of the at least two target words;

[0155] According to the feedback information obtained by the above-mentioned smart device, it is determined that the selected target word is the target word of the final semantic analysis of any of the above-mentioned words to be recognized.

[0156] Among them, the smart device can be controlled to output prompt information in the following ways:

[0157] Prompt information output method 1) Control the smart device to send voice prompt information to the user through voice broadcast;

[0158] There are no excessive limitations on the device for voice broadcasting, and those skilled in the art can obtain it according to actual needs, such as using a speaker as the above-mentioned voice broadcasting device.

[0159] Prompt information output mode 2) controlling the smart device to output the prompt information in the form of text information through the display module;

[0160] There are no excessive limitations on the above-mentioned display device, and those skilled in the art can obtain it according to actual needs, such as using a liquid crystal interactive display screen as the above-mentioned interactive display device.

[0161] Correspondingly, the smart device can obtain feedback information in the following ways:

[0162] Feedback information acquisition method 1) Acquire the voice feedback information issued by the user through the voice acquisition device of the smart device.

[0163] Feedback information acquisition method 2) Acquiring feedback information in the form of text information through a display device of a smart device.

[0164] In order to facilitate understanding of the semantic recognition method provided in this embodiment, an exemplary complete process description is provided below, and this embodiment uses the place name as an example for description. Figure 3 As shown, specifically including:

[0165] Step S301, obtaining text information through a smart device;

[0166] Step S302, performing domain identification on the text information through the domain classification module of the semantic understanding system to determine the domain corresponding to the above text information;

[0167] Step S303, performing intent recognition on the text information through an intent classification module to determine the intent category corresponding to the text information;

[0168] Step S304, extracting slots from the text information, and determining the place names corresponding to the extracted slots;

[0169] In this example, only the location name is used as the slot value corresponding to the slot for illustration;

[0170] Step S305, determining whether the place name is found in the place name dictionary valid for the smart device, if not found, proceeding to step S306; otherwise, proceeding to step 309;

[0171] Step S306, determining that the place name that cannot be found in the valid place name dictionary is a to-be-recognized word, and determining a valid target synonym library according to the attribute information of the smart device and the effective range of each synonym library; wherein the target synonym library may be a general synonym library and / or one or more exclusive synonym libraries;

[0172] Step S307, determining a target word that is synonymous with the word to be identified in the target synonym database according to a preset synonym mapping relationship;

[0173] Among them, when the target synonym library is a general synonym library, if the text information is "take me to the toilet", the slot analysis determines that the word to be recognized is "toilet" and "toilet" is not found in the above-mentioned valid place name dictionary. At this time, according to the mapping relationship between the standard words in the general synonym library and the synonyms of the above-mentioned standard words, "toilet" is mapped to the standard word "bathroom". Similarly, when the text information is "take me to WC", "WC" can be mapped to the standard word "bathroom", that is, the standard word "bathroom" is the target word of the above-mentioned words to be recognized.

[0174] When the target synonym library is an exclusive synonym library effective for enterprise A, if slot analysis determines that the word to be identified is "coffee shop" and "coffee shop" is not found in the valid place name dictionary, then according to the mapping relationship between the exclusive words in the exclusive synonym library effective for enterprise A and the synonyms of the above-mentioned standard words, "coffee shop" is mapped to the exclusive word "Dr. Coffee". Similarly, according to the mapping relationship of synonyms in the exclusive synonym library effective for enterprise B, "coffee shop" can be mapped to the exclusive word "the other shore" of the coffee shop of enterprise B; similarly, if enterprises A and B configure "elevator" as the exclusive words "elevator A" and "elevator B" respectively, here, according to the exclusive synonym library effective for enterprise A, "elevator" can be mapped to "elevator A", and according to the exclusive synonym library effective for enterprise B, "elevator" can be mapped to "elevator B".

[0175] Step S308, determining a semantic analysis result of the text information according to the determined target word;

[0176] Step S309: determining the semantic analysis result of the above text information according to the found place name.

[0177] For example, if the text message is "Take me to the bathroom", the place name corresponding to the extracted slot is "Bathroom", and "Bathroom" is found in the valid place dictionary, then the semantic analysis result of the text message can be directly determined to be "Take me to the bathroom".

[0178] In the semantic recognition method provided in the present application, synonyms can be identified for exclusive words that express certain meanings in specific scenarios, so that the smart device can parse the true semantics of the acquired text information and understand the user's intention based on the true semantics of the above text information, so that the smart device can correctly respond to the above text information, such as playing the music the user wants to listen to, leading the user to a designated place, and answering the user's questions, thereby providing the user with a better experience.

[0179] like Figure 4As shown, based on the same inventive concept, an embodiment of the present invention further provides an electronic device, the device comprising a processor 401 and a memory 402, wherein the memory stores an executable program, and when the program is executed, the processor implements the following process:

[0180] Determine the words to be identified that need to be synonymously identified in the acquired text information;

[0181] For each word to be recognized, determine a target word that is synonymous with the word to be recognized according to a preset synonym mapping relationship;

[0182] According to the determined target words, a semantic analysis result of the above text information is determined.

[0183] Optionally, the processor is specifically used to perform slot parsing on the text information to obtain a slot value corresponding to each slot item, and determine the obtained slot value as the word to be recognized.

[0184] Optionally, the processor is specifically configured to perform slot parsing on the text information by text rule matching; or

[0185] The above text information is slot parsed through the natural language understanding (NLU) model.

[0186] Optionally, the processor is specifically used to determine a target synonym library effective for the smart device according to the attribute information of the smart device and the effective scope of the synonym library configuration; and determine a word synonymous with the word to be identified as a target word according to the synonym word mapping relationship contained in the target synonym library.

[0187] The above-mentioned synonym library includes a dedicated synonym library and a general synonym library; optionally, the above-mentioned processor is specifically used to, if the above-mentioned target synonym library is a dedicated synonym library, determine the dedicated word that is synonymous with the above-mentioned word to be identified as the target word according to each dedicated word contained in the above-mentioned dedicated synonym library and the synonyms of the above-mentioned dedicated word; and / or

[0188] If the target synonym library is a general synonym library, a standard word synonymous with the word to be identified is determined as the target word according to each standard word contained in the general synonym library and the synonyms of the standard word.

[0189] The target synonym library includes a dedicated synonym library and a general synonym library. Optionally, the processor is specifically used to determine, based on each dedicated word and the synonyms of the dedicated word contained in the dedicated synonym library, a dedicated word synonymous with the word to be identified as a target word, and to determine, based on each standard word and the synonyms of the standard word contained in the general synonym library, a standard word synonymous with the word to be identified; or

[0190] According to the exclusive words contained in the above-mentioned exclusive synonym library and the synonyms of the above-mentioned exclusive words, the exclusive words synonymous with the above-mentioned words to be recognized are determined. If no exclusive words synonymous with the above-mentioned words to be recognized do not exist in any of the above-mentioned exclusive synonym libraries, then according to the standard words contained in the above-mentioned general synonym library and the synonyms of the above-mentioned standard words, the standard words synonymous with the above-mentioned words to be recognized are determined.

[0191] Optionally, the processor is specifically configured to, in descending order of priority of a plurality of exclusive synonym libraries, determine, in the exclusive synonym library with the highest priority, based on each exclusive word contained in the exclusive synonym library and the synonyms of the exclusive word, an exclusive word synonymous with the word to be identified as the target word; or

[0192] At the same time, according to the exclusive words contained in the above-mentioned multiple exclusive synonym libraries and the synonyms of the above-mentioned exclusive words, it is determined whether there are exclusive words synonymous with the above-mentioned words to be identified. When multiple exclusive words synonymous with the above-mentioned words to be identified are determined, the exclusive word in the exclusive synonym library with the highest priority is determined as the target word.

[0193] Before determining the semantic parsing result of the text information according to the determined target word, the processor is further configured to:

[0194] If it is determined that there are at least two target words for any word to be recognized, controlling the intelligent device to output prompt information, the prompt information being used to prompt selection of the at least two target words;

[0195] According to the feedback information obtained by the above-mentioned smart device, it is determined that the selected target word is the target word of the final semantic analysis of any of the above-mentioned words to be recognized.

[0196] Optionally, the effective scope of the above synonym library configuration includes at least one of the following:

[0197] It is effective for specified devices, specified enterprises, specified business lines, specified applications, specified fields, and all devices.

[0198] like Figure 5 As shown, based on the same inventive concept, an embodiment of the present invention further provides a semantic recognition device, the device comprising:

[0199] A determination unit 501 is used to determine the words to be identified in the acquired text information that need to be identified as synonyms;

[0200] The synonym recognition unit 502 is used to determine, for each word to be recognized, a target word that is synonymous with the word to be recognized according to a preset synonym mapping relationship;

[0201] The parsing unit 503 is used to determine the semantic parsing result of the above text information according to the determined target word.

[0202] Optionally, the determination unit is specifically used to perform slot parsing on the text information to obtain a slot value corresponding to each slot item, and determine the obtained slot value as the word to be recognized.

[0203] Optionally, the determination unit is specifically used to perform slot parsing on the text information through text rule matching; or to perform slot parsing on the text information through an NLU model.

[0204] Optionally, the above-mentioned synonym recognition unit is specifically used to: determine a target synonym library effective for the above-mentioned smart device according to the attribute information of the smart device and the effective scope of the synonym library configuration; determine a word synonymous with the above-mentioned word to be recognized as a target word according to the synonym word mapping relationship contained in the above-mentioned target synonym library.

[0205] The above-mentioned synonym library includes a dedicated synonym library and a general synonym library; optionally, the above-mentioned synonym recognition unit is specifically used to: if the above-mentioned target synonym library is a dedicated synonym library, according to each dedicated word contained in the above-mentioned dedicated synonym library and the synonyms of the above-mentioned dedicated words, determine that the dedicated word that is synonymous with the above-mentioned word to be recognized is the target word; and / or

[0206] If the target synonym library is a general synonym library, a standard word synonymous with the word to be identified is determined as the target word according to each standard word contained in the general synonym library and the synonyms of the standard word.

[0207] The target synonym library includes a dedicated synonym library and a general synonym library. Optionally, the synonym recognition unit is specifically used to: determine the dedicated word synonymous with the word to be recognized as the target word according to each dedicated word contained in the dedicated synonym library and the synonyms of the dedicated word, and determine the standard word synonymous with the word to be recognized according to each standard word contained in the general synonym library and the synonyms of the standard word; or

[0208] According to the exclusive words contained in the above-mentioned exclusive synonym library and the synonyms of the above-mentioned exclusive words, the exclusive words synonymous with the above-mentioned words to be recognized are determined. If no exclusive words synonymous with the above-mentioned words to be recognized do not exist in any of the above-mentioned exclusive synonym libraries, then according to the standard words contained in the above-mentioned general synonym library and the synonyms of the above-mentioned standard words, the standard words synonymous with the above-mentioned words to be recognized are determined.

[0209] Optionally, the synonym recognition unit is specifically used to: determine, in descending order of priority of multiple exclusive synonym libraries, in the exclusive synonym library with the highest priority, based on each exclusive word contained in the exclusive synonym library and the synonyms of the exclusive word, an exclusive word synonymous with the word to be recognized as the target word; or

[0210] At the same time, according to the exclusive words contained in the above-mentioned multiple exclusive synonym libraries and the synonyms of the above-mentioned exclusive words, it is determined whether there are exclusive words synonymous with the above-mentioned words to be identified. When multiple exclusive words synonymous with the above-mentioned words to be identified are determined, the exclusive word in the exclusive synonym library with the highest priority is determined as the target word.

[0211] Optionally, before determining the semantic parsing result of the text information according to the determined target word, the synonym recognition unit is further used to:

[0212] If it is determined that there are at least two target words for any word to be recognized, controlling the intelligent device to output prompt information, the prompt information being used to prompt selection of the at least two target words;

[0213] According to the feedback information obtained by the above-mentioned smart device, it is determined that the selected target word is the target word of the final semantic analysis of any of the above-mentioned words to be recognized.

[0214] Optionally, the effective scope of the above synonym library configuration includes at least one of the following:

[0215] It is effective for specified devices, specified enterprises, specified business lines, specified applications, specified fields, and all devices.

[0216] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable non-volatile storage medium, including a program code. When the above program code is run on a computing terminal, the above program code is used to enable the above computing terminal to execute the steps of the semantic recognition method provided in the above embodiment of the present application.

[0217] The present application is described above with reference to the block diagrams and / or flow charts showing the methods, devices (systems) and / or computer program products according to the embodiments of the present application. It should be understood that a block of the block diagram and / or flow chart diagram and a combination of blocks of the block diagram and / or flow chart diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer and / or other programmable data processing device to produce a machine, so that the instructions executed by the computer processor and / or other programmable data processing device create a method for implementing the functions / actions specified in the block diagram and / or flow chart block.

[0218] Accordingly, the present application may also be implemented with hardware and / or software (including firmware, resident software, microcode, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium, which has a computer-usable or computer-readable program code implemented in the medium, for use by an instruction execution system or in conjunction with an instruction execution system. In the context of the present application, a computer-usable or computer-readable medium may be any medium that may contain, store, communicate, transmit, or convey a program for use by an instruction execution system, device, or apparatus, or in conjunction with an instruction execution system, device, or apparatus.

[0219] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A semantic recognition method, characterized in that: The method includes: Determine the words to be identified that need to be synonymously identified in the acquired text information; For each word to be recognized, determining a target word that is synonymous with the word to be recognized according to a preset synonym mapping relationship; Determining a semantic analysis result of the text information according to the determined target word; The step of determining a target word that is synonymous with the word to be identified according to a preset synonymous word mapping relationship includes: Determine a target synonym library effective for the smart device according to the attribute information of the smart device and the effective range of the synonym library configuration; According to the synonymous word mapping relationship contained in the target synonym library, determining a word synonymous with the word to be identified as a target word; The effective scope of the synonym library configuration includes at least one of the following: It is effective for specified devices, specified enterprises, specified business lines, specified applications, specified fields, and all devices.

2. The method according to claim 1, characterized in that Determine the words to be identified in the acquired text information that need to be identified as synonyms, including: The text information is slot parsed to obtain a slot value corresponding to each slot item, and the obtained slot value is determined as the word to be recognized.

3. The method according to claim 2, characterized in that The text information is subjected to slot parsing, including: Performing slot parsing on the text information by text rule matching; or The text information is slot parsed using a natural language understanding (NLU) model.

4. The method according to claim 1, characterized in that The synonym library includes a dedicated synonym library and a universal synonym library; according to the synonym word mapping relationship contained in the target synonym library, determining the word synonymous with the word to be identified as the target word, including: If the target synonym library is a dedicated synonym library, determining a dedicated word synonymous with the word to be identified as a target word according to each dedicated word contained in the dedicated synonym library and the synonyms of the dedicated word; and / or If the target synonym library is a universal synonym library, a standard word synonymous with the word to be identified is determined as a target word according to each standard word contained in the universal synonym library and the synonyms of the standard word.

5. The method according to claim 4, characterized in that The target synonym library includes a dedicated synonym library and a universal synonym library. According to the synonym word mapping relationship contained in the target synonym library, determining a word synonymous with the word to be identified as a target word includes: Determine, based on each exclusive word included in the exclusive synonym library and the synonyms of the exclusive word, the exclusive word synonymous with the word to be identified as the target word, and determine, based on each standard word included in the general synonym library and the synonyms of the standard word, the standard word synonymous with the word to be identified; or According to the exclusive words contained in the exclusive synonym library and the synonyms of the exclusive words, the exclusive words synonymous with the word to be recognized are determined. If no exclusive words synonymous with the word to be recognized exist in any of the exclusive synonym libraries, then according to the standard words contained in the universal synonym library and the synonyms of the standard words, the standard words synonymous with the word to be recognized are determined.

6. The method according to claim 4 or 5, characterized in that: If the effective target synonym library includes multiple exclusive synonym libraries, determining a word synonymous with the word to be identified as a target word according to the synonym word mapping relationship contained in the target synonym library includes: In descending order of priority of the exclusive synonym libraries, in the multiple exclusive synonym libraries, according to each exclusive word and the synonyms of the exclusive words contained in the multiple exclusive synonym libraries, determine the exclusive word that is synonymous with the word to be identified as the target word; or In the multiple exclusive synonym libraries, exclusive words synonymous with the word to be identified are determined according to the exclusive words contained in the multiple exclusive synonym libraries and the synonyms of the exclusive words. If multiple exclusive words synonymous with the word to be identified are determined, the exclusive word in the exclusive synonym library with the highest priority is determined as the target word.

7. The method according to any one of claims 1 to 5, characterized in that: Before determining the semantic parsing result of the text information according to the determined target words, the method further includes: If it is determined that there are at least two target words for any word to be recognized, controlling the intelligent device to output prompt information, wherein the prompt information is used to prompt selection of the at least two target words; According to the feedback information obtained by the smart device, the selected target word is determined to be the target word of the final semantic analysis of any word to be recognized.

8. A semantic recognition device, characterized in that: The device includes: A determination unit, used to determine the words to be identified in the acquired text information that need to be identified as synonyms; A synonym recognition unit, for determining, for each word to be recognized, a target word that is synonymous with the word to be recognized according to a preset synonym mapping relationship; A parsing unit, used to determine a semantic parsing result of the text information according to the determined target word; The synonym recognition unit is specifically used to: determine a target synonym library valid for the smart device according to the attribute information of the smart device and the effective range of the synonym library configuration; determine a word synonymous with the word to be recognized as a target word according to the synonym word mapping relationship contained in the target synonym library; The effective scope of the synonym library configuration includes at least one of the following: It is effective for specified devices, specified enterprises, specified business lines, specified applications, specified fields, and all devices.

9. An electronic device, characterized in that: The device includes a processor and a memory, wherein the memory stores an executable program, and when the program is executed, the processor implements the following process: Determine the words to be identified that need to be synonymously identified in the acquired text information; For each word to be recognized, determining a target word that is synonymous with the word to be recognized according to a preset synonym mapping relationship; Determining a semantic analysis result of the text information according to the determined target word; The step of determining a target word that is synonymous with the word to be identified according to a preset synonymous word mapping relationship includes: Determine a target synonym library effective for the smart device according to the attribute information of the smart device and the effective range of the synonym library configuration; According to the synonymous word mapping relationship contained in the target synonym library, determining a word synonymous with the word to be identified as a target word; The effective scope of the synonym library configuration includes at least one of the following: It is effective for specified devices, specified enterprises, specified business lines, specified applications, specified fields, and all devices.

10. A computer storable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.