Data processing method, device, electronic device and storage medium

Through the combination of recognition model and entity relationship data, target entities and relationship words are identified, which solves the problem of low accuracy of entity confirmation responses in the existing technology, achieves more accurate entity and relationship recognition, and improves the accuracy of data processing.

CN110489496BActive Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing data processing technology has a low accuracy rate when determining entity confirmation responses, and cannot accurately identify entities and relationships, resulting in inaccurate output results.

Method used

By obtaining the entity confirmation request, using the entity relationship data and recognition model to identify the target entity and relationship words, and combining the entity pairs and relationship words to determine the entity confirmation reply, the accuracy of entity confirmation is improved.

Benefits of technology

It improves the accuracy of entity confirmation responses, ensures accurate identification of entities and relationships, and enhances the accuracy of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110489496B
    Figure CN110489496B
Patent Text Reader

Abstract

The present application discloses a data processing method, device, electronic device and storage medium, the method comprising: obtaining an entity confirmation request, the entity confirmation request carries entity relationship data of an application to be launched, identifying entities and relationships of the entity relationship data based on the entity set of the application to be launched and an entity relationship recognition model, and obtaining a target entity and a target relationship word; the entity set includes a plurality of entity pairs and relationship words for describing the relationship between two entities in each entity pair; and determining an entity confirmation reply corresponding to the entity confirmation request based on the target entity, the target relationship word, the entity pair and the relationship word. Since the embodiment of the present application can determine the entity confirmation reply corresponding to the entity confirmation request based on the target entity, the target relationship word, the entity pair and the relationship word, rather than determining the entity confirmation reply based only on the entity, the accuracy of the entity confirmation reply can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art

[0002] Nowadays, data in various fields is growing rapidly, which leads to the rapid development of data processing technology. Generally, the process of data processing is: the device identifies the entities in the data according to the received data, and processes the identification results to determine the output corresponding to the data. This data processing method can be applied to various fields such as language recognition and human-computer interaction.

[0003] In the above description, entity refers to something with a specific and real form or structure that can be perceived and touched by people. From the perspective of data processing, objective things in the real world are called entities, which are any distinguishable and identifiable things in the real world. However, entity is only a part of the data, and the output determined by the device based solely on the entity may differ greatly from the output actually corresponding to the data, resulting in a decrease in the accuracy of the device output.

[0004] An embodiment of the present application provides a data processing method for improving the accuracy of an entity confirmation reply determined by a device based on input data. Summary of the invention

[0005] Embodiments of the present application provide a data processing method, apparatus, electronic device, and storage medium, which can improve the accuracy of entity confirmation replies determined by the device based on input data.

[0006] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:

[0007] Obtain an entity confirmation request, which carries entity relationship data of the application to be launched;

[0008] Based on the entity set of the application to be launched and the entity relationship recognition model, the entity relationship data is identified for entities and relationships to obtain target entities and target relationship words. The entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair.

[0009] An entity confirmation reply corresponding to the entity confirmation request is determined based on the target entity, the target relation word, the entity pair and the relation word.

[0010] Another aspect provides a data processing device, the device comprising:

[0011] An acquisition module, used to acquire an entity confirmation request, the entity confirmation request carrying entity relationship data of the application to be launched;

[0012] The recognition module is used to identify entities and relationships in entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model to obtain target entities and target relationship words; the entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair;

[0013] A determination module is used to determine an entity confirmation reply corresponding to an entity confirmation request based on a target entity, a target relational word, an entity pair, and a relational word.

[0014] On the other hand, an electronic device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method as described above.

[0015] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the data processing method as described above.

[0016] The data processing method, device, electronic device, and storage medium provided in the embodiments of the present application have the following technical effects:

[0017] Obtain an entity confirmation request, which carries entity relationship data of an application to be launched, identify entities and relationships of the entity relationship data based on the entity set of the application to be launched and an entity relationship recognition model, and obtain a target entity and a target relationship word; the entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair; determine an entity confirmation reply corresponding to the entity confirmation request based on the target entity, target relationship words, entity pairs, and relationship words. Since the embodiment of the present application can determine the entity confirmation reply corresponding to the entity confirmation request based on the target entity, target relationship words, entity pairs, and relationship words, rather than just based on the entity confirmation reply of the entity determination data, the accuracy of the entity confirmation reply can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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 creative work.

[0019] Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application;

[0020] Figure 2 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0021] Figure 3 It is a schematic diagram of a knowledge graph structure of a reference entity set provided in an embodiment of the present application;

[0022] Figure 4 It is a schematic diagram of a knowledge graph structure of an entity set provided in an embodiment of the present application;

[0023] Figure 5 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0024] Figure 6 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0025] Figure 7 It is a hardware structure block diagram of a server of a data processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] See also Figure 1 , Figure 1 It is a schematic diagram of an application environment provided in an embodiment of the present application, including a terminal device 101 and a server 102, wherein the server 102 provides data processing services for some applications on the terminal device 101.

[0029] In an optional implementation, after the application on the terminal device 101 is started by the user, the entity relationship data input by the user is received, and an entity confirmation request is sent to the server 102, the entity confirmation request carries the entity relationship data of the application to be launched, and correspondingly, the server 102 reads the entity relationship data according to the received entity confirmation request, and identifies entities and relationships in the entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model, and obtains the target entity and target relationship words, the entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair. The server 102 determines the entity confirmation reply corresponding to the entity confirmation request based on the target entity, target relationship words, entity pairs and relationship words, and sends the entity confirmation reply to the terminal device 101.

[0030] In an optional implementation, the terminal device may be a mobile phone, a desktop computer, a tablet computer, a laptop computer, a wearable device, etc.

[0031] Optionally, the entity relationship data between the terminal device 101 and the server 102 can be transmitted via a wired link or a wireless link. The choice of the communication link type can be determined according to the actual application situation and application environment. The server 102 can provide data processing services for multiple terminal devices. Specifically, the number of terminal devices 101 connected to the server 102 can be determined according to actual conditions.

[0032] The following describes a specific embodiment of a data processing method of the present application. Figure 2 It is a flowchart of a data processing method provided by an embodiment of the present application. This specification provides method operation steps such as the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in the order shown in the embodiment or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 2 As shown, the method may include:

[0033] S201: Obtain an entity confirmation request, which carries entity relationship data of an application to be launched.

[0034] In the embodiment of the present application, the application to be launched refers to the application on the terminal device, and the application to be launched may include various types of applications, such as game applications, music applications, social applications, news applications, life service applications, etc.

[0035] In an optional implementation, the application to be launched may be an application that has not yet been launched, that is, an application that cannot be downloaded and used by the public and can only be tested and used by testers of the company that developed the application. Based on this situation, the server receives an entity confirmation request input by the tester, and the entity confirmation request carries entity relationship data. The server may be a server that provides data processing services for the application to be launched.

[0036] In another optional implementation, after the application to be launched is launched, that is, the application to be launched has been put on the market, it can be used by users who download the application to be launched on the terminal device. When the user starts the application on the terminal device, the receiving module of the entity relationship data can be triggered on the interface of the application. In this way, the terminal device can receive the entity relationship data input by the user, carry the entity relationship data in the entity confirmation request, and send the entity confirmation request to the server. Optionally, the receiving module can be a text receiving module for receiving text data input by the user. Optionally, the receiving module can be a voice receiving module for receiving input voice data. In the embodiment of the present application, the above-mentioned text data and voice data are both regarded as entity relationship data.

[0037] S203: Identify entities and relationships in entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model to obtain target entities and target relationship words. The entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair.

[0038] In an optional implementation of obtaining an entity set of an application to be launched, the server obtains all entities in the application to be launched, and determines a relationship pair consisting of two related entities and a relationship word corresponding to the relationship pair based on all the entities and preset relationships between the entities, and then forms a set of all the relationship pairs and the relationship words corresponding to the relationship pairs, namely, the entity set of the application to be launched.

[0039] Optionally, the relationship words corresponding to a relationship pair may include one relationship word, for example, if the relationship between entity 1 and entity 2 is a subordinate relationship, the corresponding relationship word may be "subordinate". Optionally, the relationship words corresponding to a relationship pair may include two relationship words, for example, if the relationship between entity 1 and entity 2 is a subordinate relationship, the corresponding relationship words may be "include" and "belong to", where "include" may indicate the relationship from entity 1 to entity 2, i.e., entity 1 includes entity 2. "Belong to" may indicate the relationship from entity 2 to entity 1, i.e., entity 2 belongs to entity 1.

[0040] In the embodiment of the present application, compared with using one relational word to describe the relationship between two relational words, using two relational words to describe the relationship between the same two entities can more clearly express the relationship between the two entities.

[0041] For example, assuming that the application to be launched is a music application, the entities of the music application may include: singers, albums, songs, etc. The relational word used to describe the relationship between singers and albums may be "album includes", which means: a singer's albums include album 1, album 2, and album 3. The relational word used to describe the relationship between singers and albums may be "belongs to", which means: album 1, album 2, and album 3 belong to a singer.

[0042] Similarly, the relational word used to describe the relationship between an album and a song can be "songs include", which means that the songs in album 1 include song 1, song 2, and song 3. The relational word used to describe the relationship between an album and a song can be "belongs to", which means that song 1, song 2, and song 3 belong to album 1.

[0043] In an embodiment of the present application, the server can determine entity pairs and relationship words corresponding to the entity pairs according to the method described above based on different singers, albums and songs in the music application, thereby determining the entity set of the music application.

[0044] In another optional implementation of obtaining the entity set of the application to be launched, the server determines the online application corresponding to the type of the application to be launched, and determines the reference entity set of the online application. The reference entity set includes multiple reference entity pairs and reference relationship words for describing the relationship between two reference entities in each reference entity pair. The server updates the reference entity set based on the entity and relationship words of the application to be launched, and obtains the entity set of the application to be launched.

[0045] The following example illustrates a method for obtaining the entity set of the application to be launched based on the reference entity set of the launched application of the same type as the application to be launched. Optionally, the launched application can be an application that has been put on the market, or an application that has been developed but not put on the market.

[0046] Assuming that the application to be launched is a shooting game application, before determining the entity set of the shooting game application, the server determines one or more launched applications belonging to the same shooting game application, and obtains reference entities in the launched applications. For example, the reference entities in the launched applications include: firearms, rifles, pistols, sniper rifles, P29, P1911, M14, AKM, SCAR, M24, AWM, magazine capacity 15, bullet diameter 556, range 200 meters, firing rate X meters per second, purchase interface... At the same time, the server can obtain preset relationships between reference entities, for example, firearms include pistols, rifles and sniper rifles; pistols include P29 and P1911; rifles include M14, AKM and SCAR; sniper rifles include M24 and AWM; the features of M14 include magazine capacity 15, purchase interface, bullet diameter 556, range 200 meters and firing rate X...

[0047] In an embodiment of the present application, the server determines the reference entity pair to be applied online and the reference relationship words used to describe the reference entity pair based on the above-mentioned reference entity and the preset relationship between the reference entities. For example, "firearms - pistols, types include, belong to"; "rifle - M14, types include, belong to"; "M14 - range 200 meters, attributes include, attributes"... Among them, "firearms - pistols, types include, belong to" indicates that firearms and pistols are a reference entity pair, and "types include" and "belong to" are reference relationship words that describe the reference entity pair. "Types include" means that the types of firearms include pistols, and "belong to" means that pistols belong to firearms.

[0048] Optionally, the server combines all reference entity pairs and reference relationship words corresponding to the reference entity pairs into a reference reference entity set. In the embodiment of the present application, the set form of the reference entity set can be described by an entity table. Table 1 is an entity table describing the reference entity set. The same row of the entity table represents two reference entities in a reference entity pair and the reference relationship words corresponding to the reference entity pair. Specifically, in the third row, reference entity 1 is a firearm, reference entity 2 is a rifle, reference relationship word 1 includes a relationship from a firearm to a rifle, and reference relationship word 2 belongs to a relationship from a rifle to a firearm.

[0049] Table 1: Relationship table of reference entity collection

[0050]

[0051]

[0052] In this way, the server can describe the reference entity set of the online application through the entity table, and use the entity table as a reference for updating the entity set of the application to be launched. In addition, the server can also save the entity table to a specific storage area, laying the foundation for the update and development of the entity set of the same type of application in the future.

[0053] In the embodiment of the present application, the collection form of the reference entity set can be represented by a knowledge graph structure. Figure 3 : is a schematic diagram of a knowledge graph structure of a reference entity set provided by an embodiment of the present application, which includes reference entity pairs composed of reference entities that have been applied online and reference relationship words corresponding to the reference entity pairs. Figure 3 As shown, each circle represents a reference entity, for example, the top circle represents the entity of firearms. The two circles with arrows in the middle represent a reference entity pair, for example, firearms-rifle is a reference entity pair. Among them, different arrows represent different reference relationship words, and the reference relationship words represented by the first arrow 301 include: along the direction of the first arrow 301, it represents the reference relationship word "category includes", and against the direction of the first arrow 301, it represents the reference relationship word "belongs". The reference relationship words represented by the second arrow 302 include: along the direction of the second arrow 302, it represents the reference relationship word "attribute includes", and against the direction of the second arrow 302, it represents the reference relationship word "attribute". In this way, the server can describe the reference entity set of the online application through the knowledge graph. Furthermore, compared with the entity table above, the knowledge graph has stronger visibility and can express the reference entity pairs and the reference relationship words corresponding to the reference entity pairs in a more specific and clear manner.

[0054] In the embodiment of the present application, it is assumed that there is no sniper rifle in the entity of the application to be launched, and a submachine gun is added. The submachine gun includes UZI and MP5, and the characteristics of MI4 include a range of 300 meters. The server determines the entity pairs to be changed and the relationship words corresponding to the entity pairs according to the entities and relationship words in the application to be launched, and based on the above content, determines that the reference entity pairs to be deleted and the reference relationship words corresponding to the reference entity pairs are: "Firearms-sniper rifles, types include, belonging to", "Sniper rifles-M24, types include, belonging to", "Sniper rifles-AWM, types include, belonging to". The entity pairs to be added and the relationship words corresponding to the entity pairs are: "Firearms-submachine guns, types include, belonging to", "Submachine guns-UZI, types include, belonging to", "Submachine guns-MP5, types include, belonging to". The reference entity pairs and the reference relationship words corresponding to the reference entity pairs "MI4-range 200 meters, attributes include, attributes" are changed to "MI4-range 300 meters, attributes include, attributes" to update the reference entity set and obtain the entity set of the application to be launched.

[0055] Optionally, the updated entity set of the application to be launched can be described by an entity table. Table 2 is an entity table describing the entity set. The same row of the entity table represents two entities in an entity pair and the relationship words corresponding to the entity pair.

[0056] Table 2: Relationship table of entity sets

[0057]

[0058]

[0059] In the embodiment of the present application, the collection form of the entity set can be represented by a knowledge graph structure. Figure 4 It is a schematic diagram of the knowledge graph structure of an entity set provided in an embodiment of the present application, which includes entity pairs composed of entities to be applied online and relationship words corresponding to the entity pairs. Among them, each circle represents an entity, for example, the top circle represents a firearm. Two circles with arrows in the middle represent an entity pair, for example, a firearm-rifle is an entity pair. Among them, different arrows represent different relationship words, and the relationship words represented by the first arrow 401 include: along the direction of the third arrow 401, it represents the relationship word "type includes", and against the direction of the third arrow 401, it represents the relationship word "belongs". The relationship words represented by the fourth arrow 402 include: along the direction of the fourth arrow 402, it represents the relationship word "attribute includes", and against the direction of the fourth arrow 402, it represents the relationship word "attribute".

[0060] In this way, the server can obtain the entity set of the application to be launched in the above two optional implementation modes, so as to prepare for the subsequent recognition of the received entity relationship data.

[0061] In the embodiment of the present application, the entity set to be applied online also includes entity name files of entities in multiple entity pairs, and the entity name files include different names of entities. For example, the multiple names included in the entity name file of M14 can be M14, m14, M146, m146, the fastest rifle, etc., and the entity name file of the rifle can only include rifles and rifles. In this way, by increasing the content of the entity, the server can locate the target entity faster when processing entity relationship data based on the entity set in the future, and perform subsequent data processing.

[0062] In an optional implementation, the server may determine entity name files of entities in multiple entity pairs based on a reference entity name file of the reference entity in the reference entity pair, wherein the reference entity name file includes different names of the reference entity. For example, the multiple names included in the reference entity name file of M14 may be M14, m14, M146, m146, and the name of the fastest rifle is added to the updated entity name file.

[0063] In another optional embodiment, the server may determine the entity name file of the entity based on different names of the same entity received.

[0064] In an embodiment of the present application, the entity set to be applied online also includes a relationship name file of relationship words, and the relationship name file includes different expressions of relationship words with the same meaning. For example, the relationship name file of the relationship word "types include" includes "include", "include", "in", etc. The relationship name file of the relationship word "belongs to" includes "is a kind of...", "included in", "contained in...", etc. In this way, by adding the content of the relationship words, the server can locate the target relationship words more quickly when processing entity relationship data based on the entity set, and perform subsequent data processing.

[0065] In an optional implementation, the server may determine the relationship name file of the relationship words in the entity set of the application to be launched based on the reference relationship name file of the reference relationship words in the reference entity set of the application that has been launched, wherein the reference relationship name file includes different names of the reference relationship words. In another optional embodiment, the server may determine the relationship name file of the relationship word based on different names of the same relationship word received.

[0066] In an embodiment of the present application, in an optional implementation, the target entity and the target relationship word can be an entity or relationship word in the entity relationship data. For example, the entity relationship data is "Does the rifle type include M14?" Since the entities in the entity relationship data are "rifle" and "M14", the relationship word is "types include", which is consistent with the entity name in the entity set of the application to be launched. The server identifies entities and relationships in the entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model, and the target entities obtained are "rifle" and "M14", and the target relationship word obtained is "types include".

[0067] In another optional implementation, the target entity corresponds to the entity in the entity relationship data, and the target relationship word corresponds to the relationship word in the entity relationship data. For example, the entity relationship data is "Is M14 a type of rifle?" The server identifies entities and relationships in the entity relationship data based on the entity set and entity relationship recognition model to be applied online, and the target entities obtained are "rifle" and "M14", and the target relationship word is "belongs to". Among them, the target entity "rifle" corresponds to "rifle" in the entity relationship data, and the target relationship word "belongs to" corresponds to "is a type of..." in the entity relationship data. This is because "rifle" is included in the entity name file of the entity rifle, and "is a type of..." is included in the relationship name file of the relationship word. Therefore, the server can determine the target entity and the target relationship word from the entity relationship data through the entity name file of the entity in the entity set, the relationship name file of the relationship word, and the entity relationship recognition model.

[0068] In an embodiment of the present application, a method for obtaining an entity relationship recognition model is to obtain training entity relationship data, annotate the training entity relationship data with entities and relationship words, and perform entity and relationship recognition training on a preset deep learning model based on the training entity relationship data and the entity set of the application to be launched, so as to obtain an entity relationship recognition model. The preset deep learning model may be a convolutional neural network model.

[0069] S205: Determine an entity confirmation reply corresponding to the entity confirmation request based on the target entity, the target relational word, the entity pair and the relational word.

[0070] In the embodiment of the present application, entity pairs and relationship words refer to entity pairs and relationship words in the entity set of the application to be launched.

[0071] In the embodiment of the present application, the server can determine the entity pair associated with the target entity from the entity pair, and determine the relationship word associated with the target relationship word from the relationship word, and determine the entity confirmation reply according to the associated entity pair and the associated relationship word. In the embodiment of the present application, there are many forms of entity confirmation reply, and this application will introduce in detail 3 optional implementation methods for determining entity confirmation reply.

[0072] In an optional implementation, the entity confirmation reply may include a first display instruction and an entity in the associated entity pair that is different from the target entity, the first display instruction being used to instruct a terminal device receiving the entity confirmation reply to display an entity that is different from the target entity.

[0073] For example, assuming that the entity relationship data is "a rifle with a range of 300 meters", the server identifies the entity and relationship of the entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model, and obtains the target entities "rifle" and "range 300 meters", and the target relationship word "in". Optionally, the server determines that "rifle" and "range 300 meters" are not a pair of entities based on the entity set, so the server determines from the entity pairs that the entity pairs associated with the target entity are "rifle-M14", "rifle-AKM", "rifle-SCAR" and "M14-range 300 meters", and the relationship words determined by the server from the relationship words that are associated with the target relationship word "in" are "category includes" and / or "attribute includes".

[0074] For this example, the specific steps for the server to determine the entity confirmation reply based on the associated entity pairs and the associated relational words are as follows: the relational word "types include" is the relational word corresponding to the entity pairs "rifle-M14", "rifle-AKM", and "rifle-SCAR", and the relational word "attributes include" is the relational word corresponding to the entity pair "M14-range 300 meters". Therefore, the intersection entity existing in the entity pairs corresponding to different relational words can be used as an entity different from the target entity in the associated entity pair, that is, the intersection entity M14 of "rifle-M14" and "M14-range 300 meters". After the server determines M14, it sends an entity confirmation reply to the terminal device, and the entity confirmation reply includes the first display instruction and M14. The terminal device receives the entity confirmation reply, parses the first display instruction and M14, and displays the M14 on the reply interface of the application to be launched according to the first display instruction. Optionally, the displayed M14 can be text, or it can be a picture corresponding to M14 plus text.

[0075] In another optional implementation, the entity confirmation reply may also include a second display instruction and a sentence consisting of two entities in the associated entity pair and the relationship words corresponding to the two entities, and the second display instruction is used to instruct the terminal device receiving the entity confirmation reply to display the sentence.

[0076] Based on the entity relationship data "Does the rifle type include M14?" in the above text, the entity confirmation reply determined by the server based on the entity confirmation request is explained. After the server identifies the entity and relationship of the entity relationship data based on the entity set and entity relationship recognition model to be applied online, the target entities obtained are "rifle" and "M14", and the target relationship word obtained is "type includes". Optionally, the server determines that "rifle" and "M14" are a pair of entity pairs based on the entity set, so the server determines that the entity pair associated with the target entity is "rifle-M14" from the entity pair. The server determines that the relationship word associated with the target relationship word "type includes" from the relationship words is "type includes", and determines that "type includes" is the relationship word corresponding to the entity pair "rifle-M14". In this way, the server can determine the sentence composed of the two entities in the associated entity pair and the relationship words corresponding to the two entities, that is, "the rifle type includes M14". The server sends the entity confirmation reply containing the second display instruction and the sentence to the terminal device. Correspondingly, the terminal device receives the confirmation reply from the entity, parses the second display instruction and the statement, and displays the statement on the reply interface of the application to be launched according to the second display instruction.

[0077] In another alternative implementation for determining the entity confirmation response corresponding to the entity confirmation request, the entity set of the application to be launched also includes verbs, and the verbs act on the entities in the entity pair. The server identifies entities and relationships in the entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model, and obtains the target entity, the target relationship word, and the target verb. For example, assume that the entity relationship data is "Open the purchase interface of M14". The server identifies entities and relationships in the entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model, obtains the target entities as "M14" and "purchase interface", obtains the target relationship word as "of", and obtains the target verb as "Open".

[0078] In the embodiment of the present application, the server determines that "M14" and "purchase interface" are an entity pair based on the entity set. Therefore, the server determines the entity pair associated with the target entity from the entity pair as "M14 - purchase interface". The server determines the relationship words associated with the target relationship word "of" from the relationship words as "types include" and "attributes include", and determines that "attributes include" is the relationship word corresponding to the entity pair "M14 - purchase interface". Then the server can determine that the relationship word associated with the target relationship word is "attributes include".

[0079] In the embodiment of the present application, the entities in the entity set of the application to be launched that can be acted on by the verb can be marked with an action identifier by the server.

[0080] In this example, the purchase interface of M14 is the entity in the entity pair carrying the action identifier. In this way, after the server determines that the entity to act on is the purchase interface, it can determine the entity confirmation response. The entity confirmation response includes a start instruction and the identifier of the purchase interface, and sends the entity confirmation response to the terminal device. Correspondingly, the terminal device receives the entity confirmation response, parses out the start instruction and the identifier of the purchase interface, determines the purchase interface according to the identifier of the purchase interface, and starts the purchase interface according to the start instruction, facilitating the user to purchase M14 on this interface.

[0081] In the embodiment of the present application, in a way of updating the reference entity set to obtain the entity set, the server can display the knowledge graph structure of the reference entity set of the launched application on a display screen. The server can update the reference entity set according to the input instruction, the deletion instruction, and the replacement instruction. The input instruction includes the entity and the relationship word to be input. The deletion instruction includes the entity and the relationship word to be deleted. The replacement instruction includes the entity and the relationship word to be replaced. The updated entity set can be immediately displayed on the display screen.

[0082] In an embodiment of the present application, the entity name file of an entity may also include the priority of the entity in entities of the same level, and the priority may be determined by the server based on the priority of entities in a reference entity set. The priority may also be obtained by the server through technical means of crawling network keywords. For example, the priority of "M14" in a rifle is high, the priority of "SCAR" is medium, and the priority of "AKM" is low. In this way, when the entity relationship data involves the priority of a rifle, the server may determine the entity to which the entity confirms the reply based on the priority in the entity name file. In this way, the flexibility and diversity of the technical solution of the present application may be increased.

[0083] Figure 5 is a flow chart of a data processing method provided in an embodiment of the present application, and the specific example is as follows Figure 5 As shown, the method may include:

[0084] S501: The server determines an online application corresponding to the type of the application to be online.

[0085] S503: The server determines a reference entity set of an online application, where the reference entity set includes a plurality of reference entity pairs and reference relationship words for describing a relationship between two reference entities in each reference entity pair.

[0086] S505: The server updates the reference entity set based on the entities and relational terms of the application to be launched, and obtains the entity set of the application to be launched, where the entity set includes multiple entity pairs and relational terms used to describe the relationship between two entities in each entity pair.

[0087] S507: The terminal device obtains entity relationship data of the application to be launched.

[0088] S509: The server receives an entity confirmation request sent by the terminal device, where the entity confirmation request carries entity relationship data.

[0089] S511: The server identifies entities and relationships in the entity relationship data based on the entity set of the application to be launched and the entity relationship recognition model, and obtains target entities and target relationship words.

[0090] S513: The server determines an entity pair associated with the target entity from the entity pairs.

[0091] S515: The server determines, from the relational words, a relational word associated with the target relational word.

[0092] S517: The server determines an entity confirmation reply based on the associated entity pairs and the associated relational words.

[0093] S519: The server sends the entity confirmation reply to the terminal device.

[0094] S521: The terminal device determines the object to be displayed on the interface of the application to be launched according to the entity confirmation reply.

[0095] In the embodiment of the present application, if the entity confirmation reply includes a first display instruction and an entity or the entity confirmation reply includes a sentence consisting of relational words corresponding to two entities of the second display instruction, the object displayed by the terminal device on the interface of the application to be launched is the entity or the sentence consisting of relational words corresponding to the two entities. If the entity confirmation reply is a startup instruction and an entity identifier, the terminal device displays the interface of the entity corresponding to the entity identifier on the interface of the application to be launched based on the startup instruction.

[0096] In an optional implementation, while the implementation of the above-mentioned server determining the entity confirmation reply corresponding to the entity confirmation request is carried out, another optional implementation can also be used to determine the entity confirmation reply corresponding to the entity confirmation request. This implementation is: the server generates preset entity relationship data according to the entity pairs in the entity set, the relationship words corresponding to the entity pairs, and the entity name files of the entities in the entity pairs, and determines the entity confirmation reply corresponding to the preset entity confirmation request. For example, the server can generate the entity data relationship "Does the sniper rifle include M24?", "Is M24 a type of sniper rifle?", "Does the type of sniper rifle include M24?", "Is there M24 in the sniper rifle?", "Does the large sniper 24 belong to the sniper rifle?"... In the embodiment of the present application, the entity confirmation reply determined by the server according to the above-mentioned preset entity confirmation request may include a display instruction and "Sniper rifle includes M24". If the server receives the entity relationship data, it matches it with the preset entity relationship data, and determines the entity confirmation reply according to the matching result. In the embodiment of the present application, these two implementation methods for determining entity confirmation replies can not only ensure stable operation when the entity relationship recognition model has not been trained to meet the recognition conditions, but also ensure the accuracy of the entity confirmation replies through the above two methods.

[0097] In the embodiment of the present application, the benefits of the entity set obtained by the server based on all entities in the application to be launched are: first, it ensures the complete logical relationship between all entities in the application to be launched; second, the constructed entity set is a relatively complete structure with strong visibility, which is convenient for the subsequent adjustment and update of the entity set. Third, compared with the entity confirmation reply determined by the entity word, the entity confirmation reply determined by the entity set can be determined based on more details because the entity set itself carries more information, thereby ensuring the correctness of the entity confirmation reply.

[0098] The present application also provides a data processing device. Figure 6 is a structural diagram of a data processing device provided in an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0099] The acquisition module 601 is used to acquire an entity confirmation request, which carries entity relationship data of the application to be launched;

[0100] The identification module 602 is used to identify entities and relationships in entity relationship data based on the entity set of the application to be launched and the entity relationship identification model, and obtain target entities and target relationship words; the entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair;

[0101] The determination module 603 is used to determine an entity confirmation reply corresponding to the entity confirmation request based on the target entity, the target relational word, the entity pair and the relational word.

[0102] In an optional embodiment, the device further comprises:

[0103] The determination module 603 is used to determine the entity pair associated with the target entity from the entity pairs; determine the relation word associated with the target relation word from the relation words; and determine the entity confirmation reply according to the associated entity pair and the associated relation word.

[0104] In an optional embodiment, the device further comprises:

[0105] The entity set also includes verbs, which act on the entities in the entity pair;

[0106] The identification module 602 is used to identify entities and relationships in the entity relationship data based on the entity set of the application to be launched and the entity relationship identification model, and obtain the target entity, target relationship word and target verb;

[0107] Determination module 603 is used to determine the entity pair associated with the target entity from the entity pair; determine the relationship word associated with the target relationship word from the relationship word; determine the entity carrying the role identifier in the associated entity pair according to the target verb, the associated entity pair and the associated relationship word; determine the entity confirmation reply, which includes a start instruction and an entity identifier; wherein the entity identifier is used to identify the entity carrying the role identifier, and the start instruction is used to instruct the terminal device receiving the entity confirmation reply to start the interface corresponding to the entity confirmed based on the entity identifier.

[0108] In an optional embodiment, the device further comprises:

[0109] The recognition module 602 is used to obtain training entity relationship data; annotate the training entity relationship data with entity and relationship words; and perform entity and relationship recognition training on a preset deep learning model based on the training entity relationship data and the entity set to be applied online to obtain an entity relationship recognition model.

[0110] In an optional embodiment, the device further comprises:

[0111] The acquisition module 601 is used to determine the online application corresponding to the type of the application to be launched; determine the reference entity set of the online application; the reference entity set includes multiple reference entity pairs and reference relationship words used to describe the relationship between two reference entities in each reference entity pair; based on the entities and relationship words of the application to be launched, the reference entity set is updated to obtain the entity set of the application to be launched.

[0112] In an optional embodiment, the device further comprises:

[0113] The acquisition module 601 is used to determine the entity name file of the entity in the multiple entity pairs based on the reference entity name file of the reference entity in the reference entity pair; the reference entity name file includes different names of the reference entity, and the entity name file includes different names of the entity.

[0114] The device and method embodiments in the embodiments of this application are based on the same application concept.

[0115] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 7 1 is a hardware structure diagram of a server of a data processing method provided in an embodiment of the present application. Figure 7 As shown, the server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 710 (the processor 710 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 730 for storing data, and one or more storage media 720 (such as one or more mass storage devices) for storing application programs 723 or data 722. Among them, the memory 730 and the storage medium 720 can be short-term storage or permanent storage. The program stored in the storage medium 720 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 710 can be configured to communicate with the storage medium 720 and execute a series of instruction operations in the storage medium 720 on the server 700. The server 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input and output interfaces 740, and / or one or more operating systems 721, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0116] The input / output interface 740 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 700. In one example, the input / output interface 740 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 740 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0117] It can be understood by those skilled in the art that Figure 7 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 7 More or fewer components as shown, or with Figure 7 Different configurations shown.

[0118] An embodiment of the present application also provides a storage medium, which can be set in a server to store at least one instruction, at least one program, a code set or an instruction set related to a data processing method in an implementation method embodiment. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the above-mentioned data processing method.

[0119] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0120] It can be seen from the embodiments of the data processing method, device or storage medium provided by the present application that an entity confirmation request is obtained in the present application, and the entity confirmation request carries entity relationship data of the application to be launched, and the entity relationship data is identified based on the entity set of the application to be launched and the entity relationship recognition model to obtain the target entity and target relationship words; the entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair; the entity confirmation reply corresponding to the entity confirmation request is determined based on the target entity, target relationship words, entity pairs and relationship words. Since the embodiment of the present application can determine the entity confirmation reply corresponding to the entity confirmation request based on the target entity, target relationship words, entity pairs and relationship words, rather than simply determining the entity confirmation reply based on the entity, the accuracy of the entity confirmation reply can be improved.

[0121] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0122] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0123] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0124] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Obtaining an entity confirmation request, wherein the entity confirmation request carries entity relationship data of the application to be launched; Based on the entity set of the application to be launched and the entity relationship recognition model, the entity relationship data is identified in terms of entities and relationships, to obtain target entities and target relationship words; the entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair; Determining an entity confirmation reply corresponding to the entity confirmation request based on the target entity, the target relational word, the entity pairs, and the relational words used to describe the relationship between two entities in each entity pair; The entity set also includes verbs, and the verbs act on the entities in the entity pairs; The identifying of entities and relationships on the entity relationship data based on the entity set of the application to be launched and the entity relationship identification model to obtain target entities and target relationship words includes: Based on the entity set of the application to be launched and the entity relationship recognition model, the entity relationship data is identified as entities and relationships to obtain target entities, target relationship words and target verbs; The determining, based on the target entity, the target relational word, the entity pair and the relational word, an entity confirmation reply corresponding to the entity confirmation request includes: Determining an entity pair associated with the target entity from the entity pairs; Determining, from the relational words, relational words associated with the target relational word; Determining an entity carrying a role identifier in the associated entity pair according to the target verb, the associated entity pair, and the associated relational word; Determine the entity confirmation reply, the entity confirmation reply includes a start instruction and an entity identifier; wherein the entity identifier is used to identify the entity carrying the role identifier, and the start instruction is used to instruct the terminal device receiving the entity confirmation reply to start the interface corresponding to the entity confirmed based on the entity identifier.

2. The method according to claim 1, characterized in that The entity confirmation response also includes: The first display instruction and the entity in the associated entity pair that is different from the target entity; the first display instruction is used to instruct the terminal device that receives the entity confirmation reply to display the entity that is different from the target entity; or; The second display instruction and the sentence consisting of the two entities in the associated entity pair and the relationship words corresponding to the two entities; the second display instruction is used to instruct the terminal device that receives the confirmation reply of the entity to display the sentence.

3. The method according to claim 1, characterized in that: Get training entity relationship data; Annotating the training entity relationship data with entities and relationship words; Based on the training entity relationship data and the entity set of the application to be launched, the preset deep learning model is trained to recognize entities and relationships to obtain the entity relationship recognition model.

4. The method according to claim 1, characterized in that: Before obtaining the entity relationship data of the application to be launched, it also includes: Determine an already launched application corresponding to the type of the application to be launched; Determine a reference entity set of the online application; the reference entity set includes a plurality of reference entity pairs and reference relationship words for describing the relationship between two reference entities in each reference entity pair; The reference entity set is updated based on the entities of the application to be launched and the relational terms used to describe the relationship between two entities in each entity pair to obtain the entity set of the application to be launched.

5. The method according to claim 4, wherein the entity set to be applied online further comprises entity name files of entities in the plurality of entity pairs, wherein the entity name files comprise different names of the entities; The method further comprises: determining an entity name file of an entity in the plurality of entity pairs based on a reference entity name file of a reference entity in the reference entity pair; The reference entity name file includes different names of the reference entities.

6. The method according to claim 4, characterized in that The entity set of the application to be launched at least includes any set form of a knowledge graph or an entity table; The reference entity set includes at least one set form in a knowledge graph or an entity table.

7. A data processing device, characterized in that: The device comprises: An acquisition module, used to acquire an entity confirmation request, wherein the entity confirmation request carries entity relationship data of the application to be launched; An identification module, used to identify entities and relationships in the entity relationship data based on the entity set of the application to be launched and the entity relationship identification model, and obtain target entities and target relationship words; the entity set includes multiple entity pairs and relationship words used to describe the relationship between two entities in each entity pair; A determination module, configured to determine an entity confirmation reply corresponding to the entity confirmation request based on the target entity, the target relational word, the entity pairs, and the relational words used to describe the relationship between two entities in each entity pair; The entity set also includes verbs, and the verbs act on the entities in the entity pairs; The identification module is used to: Based on the entity set of the application to be launched and the entity relationship recognition model, the entity relationship data is identified as entities and relationships to obtain target entities, target relationship words and target verbs; The determining module is used to: Determining an entity pair associated with the target entity from the entity pairs; Determining, from the relational words, relational words associated with the target relational word; Determining an entity carrying a role identifier in the associated entity pair according to the target verb, the associated entity pair, and the associated relational word; Determine the entity confirmation reply, the entity confirmation reply includes a start instruction and an entity identifier; wherein the entity identifier is used to identify the entity carrying the role identifier, and the start instruction is used to instruct the terminal device receiving the entity confirmation reply to start the interface corresponding to the entity confirmed based on the entity identifier.

8. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method as described in any one of claims 1-6.