Data processing method and device, equipment and storage medium
By determining the entity identification in the data entry in the data processing method and determining the region based on the mapping information, and associating the data entry to the corresponding region, the problem of data home identification is solved and efficient data management is achieved.
Patent Information
- Application Number
- CN202311773500.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2025-06-24
AI Technical Summary
With the development of Internet applications, the generation of massive data has brought about data security issues, especially the identification of data's homepage has become the basic task in data management, especially when some countries prohibit specific types of user data from being sent to overseas servers.
A data processing method is provided, by determining whether the target data entry includes a first entity identifier corresponding to the first entity type, and determining a first region corresponding to the first entity identifier based on the first mapping information, thereby associating the target data entry to the first region.
It realizes the automatic identification of the corresponding regions of data entries, thereby supporting region-based data management and improving the efficiency of data management.
Smart Images

Figure CN120197619A_ABST
Abstract
Description
Technical Field
[0001] Various implementations of the present disclosure relate to the field of computers, and more specifically, to methods, apparatuses, devices, and computer storage media for data processing. Background Art
[0002] With the development of Internet technology, various Internet applications have become an important part of people's lives. Such applications generate a vast amount of data every day, which brings various data security issues such as data sovereignty protection. For example, some countries may prohibit the transmission of specific types of user data to overseas servers. Thus, the identification of the origin of data is a fundamental task in data management. Summary of the Invention
[0003] In a first aspect of the present disclosure, a data processing method is provided. The method includes: determining whether a target data entry includes a first entity identifier corresponding to a first entity type; in response to the target data entry including the first entity identifier, determining a first region corresponding to the first entity identifier based on first mapping information, the first mapping information indicating a first mapping relationship between a first set of entity identifiers and a set of preset regions, the first set of entity identifiers corresponding to the first entity type; and associating the target data entry with the first region.
[0004] In a second aspect of the present disclosure, a device for data processing is provided. The device includes: a first determination module configured to determine whether a target data entry includes a first entity identifier corresponding to a first entity type; a second determination module configured to, in response to the target data entry including the first entity identifier, determine a first region corresponding to the first entity identifier based on first mapping information, the first mapping information indicating a first mapping relationship between a first set of entity identifiers and a set of preset regions, the first set of entity identifiers corresponding to the first entity type; and a data association module configured to associate the target data entry with the first region.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes: a memory and a processor; wherein the memory is used to store one or more computer instructions, and one or more computer instructions are executed by the processor to implement the method according to the first aspect of the present disclosure.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which one or more computer instructions are stored, and one or more computer instructions are executed by a processor to implement the method according to the first aspect of the present disclosure. Brief Description of the Drawings
[0007] In conjunction with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent. In the drawings, the same or similar reference numerals denote the same or similar elements, where:
[0008] Figure 1 shows a schematic block diagram of a data processing system according to an embodiment of the present disclosure;
[0009] Figure 2A and Figure 2B shows a flowchart of an example process for data processing according to some embodiments of the present disclosure;
[0010] Figure 3 shows an example block diagram of an apparatus for data processing according to some embodiments of the present disclosure; and
[0011] Figure 4 shows a block diagram of an example device that can be used to implement the embodiments of the present disclosure. Detailed Description of Specific Embodiments
[0012] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0013] In the description of the embodiments of the present disclosure, the term "including" and its like shall be understood as an open inclusion, that is, "including but not limited to". The term "based on" shall be understood as "at least partially based on". The term "an embodiment" or "the embodiment" shall be understood as "at least one embodiment". The term "some embodiments" shall be understood as "at least some embodiments". There may also be other explicit and implicit definitions hereinafter.
[0014] In this article, unless otherwise specified, performing a step "in response to A" does not mean that the step is immediately performed after "A", but may include one or more intermediate steps.
[0015] It can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition, use, storage, or deletion of the data) should comply with the requirements of the corresponding laws, regulations, and related provisions.
[0016] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, relevant users should be informed of the type, scope of use, usage scenarios, etc. of the information involved in the present disclosure and obtain the authorization of relevant users through appropriate means in accordance with relevant laws and regulations. Among them, relevant users may include any type of rights holders, such as individuals, enterprises, and groups.
[0017] It is understandable that the above process of notification and obtaining user authorization is only illustrative and does not limit the implementation manner of the present disclosure. Other manners that meet relevant laws and regulations can also be applied to the implementation manner of the present disclosure.
[0018] As mentioned above, various Internet applications generate a huge amount of data every day, which brings various data security issues such as data sovereignty protection. For example, some countries may prohibit specific types of user data from being sent to overseas servers. Therefore, the identification of the data's place of origin is a basic task in data management.
[0019] According to an embodiment of the present disclosure, a solution for data processing is provided. According to this solution, it can be determined whether a target data entry includes a first entity identifier corresponding to a first entity type. Further, in response to the target data entry including the first entity identifier, a first region corresponding to the first entity identifier is determined based on first mapping information, and the first mapping information indicates a first mapping relationship between a first group of entity identifiers and a group of preset regions, and the first group of entity identifiers corresponds to the first entity type. Accordingly, the target data entry can be associated with the first region.
[0020] Based on such a manner, the embodiments of the present disclosure can automatically identify the region corresponding to the data entry, so as to support region-based data management.
[0021] The following describes the basic principles and several example implementations of the present disclosure with reference to the accompanying drawings.
[0022] Example environment
[0023] Figure 1 A schematic diagram of an example environment 100 in which the embodiments of the present disclosure can be implemented is shown. As Figure 1 shown, the example environment 100 may include an electronic device 110.
[0024] In this example environment 100, the electronic device 110 can obtain a data set 120. Such a data set 120 may include multiple data entries 125, also referred to as a row of data.
[0025] In some embodiments, the data set 120 can be generated, for example, based on the operations of in-app users. For example, taking comment data as an example, after a user submits a comment within the app, the app can generate a corresponding data entry to correspond to the comment submitted by the user.
[0026] In some embodiments, such a data entry 125 can include multiple data segments, and each data segment can correspond to different types of data content, for example. For example, the data entry 125 can be organized based on a plurality of preset fields, and each data segment can be associated with a corresponding field. Continuing with comment data as an example, such fields can include, for example, the identifier of the comment, the identifier of the user who submitted the comment, the submission time of the comment, and so on.
[0027] As will be discussed in detail below with reference to Figure 2A and Figure 2B the electronic device 110 can determine the region 130 corresponding to each data entry 125 in the data set 120, thereby supporting the management or processing of the data in the data set 120 based on the region.
[0028] The process of determining the region corresponding to the data entry will be introduced in detail below.
[0029] Data processing procedure
[0030] Figure 2A FIG. shows a flowchart of an example data processing process 200A according to some embodiments of the present disclosure. The process 200A can be implemented at the electronic device 110 as shown in Figure 1 The process 200A will be described below with reference to Figure 1 .
[0031] In block 210, the electronic device 110 determines whether the target data entry includes a first entity identifier corresponding to a first entity type.
[0032] Taking the data entry 125 in Figure 1 as an example, the electronic device 110 can determine whether the data entry 125 includes an entity identifier corresponding to a specific entity type. In some embodiments, such a specific entity type can correspond to a unique region.
[0033] In some embodiments, the first entity type can correspond to a user entity, for example, and the first entity identifier includes the user identifier of the user entity. For example, the electronic device 110 can determine whether the data entry 125 includes a user identifier.
[0034] Continuing to refer to FIG. 2, in response to the target data entry including the first entity identifier, process 200A proceeds to block 220. Specifically, electronic device 110 determines a first region corresponding to the first entity identifier based on the first mapping information. The first mapping information indicates a first mapping relationship between a first set of entity identifiers and a set of preset regions, and the first set of entity identifiers corresponds to a first entity type.
[0035] Continuing with the user identifier as an example, if the data entry 125 includes the user identifier, the electronic device 110 may determine the region corresponding to the user identifier based on the pre-constructed mapping information.
[0036] In some embodiments, the first mapping relationship may be established based on the region where the user is located or the region to which the user belongs. For example, the first mapping relationship may be expressed as <user identifier, region>.
[0037] In block 230, the electronic device 110 associates the target data entry with the first region. Further, the electronic device 110 may construct an association between the data entry 125 and the region corresponding to the first entity identifier to support managing or processing the data entry 125 based on the region.
[0038] Continuing to refer Figure 2A , if it is determined in block 210 that the target data entry does not include the first entity identifier, process 200A may proceed to process 200B as Figure 2B shown.
[0039] Specifically, as Figure 2B shown, in block 240, the electronic device 110 may determine whether the target data entry includes a second entity identifier corresponding to a second entity type.
[0040] Different from the first entity type, the second entity type may be an appropriate entity type that can be used to determine the corresponding first entity type. For example, the first entity type may be a user entity, and the second entity type may be a comment entity, for example. The electronic device 110 can determine the unique user entity that posted the comment based on the comment entity.
[0041] If it is determined in block 240 that the target data entry includes the second entity identifier, process 200B may proceed to block 250. In block 250, the electronic device 110 may determine a third entity identifier corresponding to the second entity identifier based on the second mapping information. In some embodiments, the third entity identifier corresponds to the first entity type, the second mapping information indicates a second mapping relationship between a second set of entity identifiers and a third set of entity identifiers, the second set of entity identifiers corresponds to the second entity type, and the third set of entity identifiers corresponds to the first entity type.
[0042] Taking the comment entity and the user entity as examples, the second mapping information can be expressed as <comment identifier, user identifier>, and the electronic device 110 can determine the identifier of the user entity corresponding to the comment entity based on the identifier of the comment entity included in the data entry 125.
[0043] In some embodiments, the electronic device 110 can construct the second mapping information based on the following process, for example. The electronic device 110 can determine the mapping relationship between the candidate entity type and the first entity type. Further, in response to the mapping relationship being a many-to-one mapping or a one-to-one mapping, the electronic device 110 can construct the second mapping information between the candidate entity type and the first entity type.
[0044] That is, the electronic device 110 can determine another entity type that has a many-to-one mapping or a one-to-one mapping with the first entity type, and construct the corresponding mapping relationship accordingly. On the contrary, for other entity types that have a many-to-many mapping relationship with the first entity type, the electronic device 110 can do nothing.
[0045] For example, taking the user entity as an example of the first entity type, the relationship between the fan entity and the user entity is a many-to-many mapping. That is, a fan entity may follow multiple user entities, and a user entity may be associated with multiple fan entities. In this case, the fan entity is not suitable to be used as the second entity type.
[0046] Further, in block 260, the electronic device 110 associates the target data entry with the second region corresponding to the third entity identifier based on the third entity identifier and the first mapping information.
[0047] Continuing to take the user identifier as an example, if the data entry 125 includes the user identifier, the electronic device 110 can determine the region corresponding to the user identifier based on the pre-constructed mapping information, and can associate the data entry 125 with the region to support managing or processing the data entry 125 based on the region.
[0048] Continuing to refer to Figure 2B , if it is determined in block 240 that the target data entry does not include the second entity identifier, the process 200B can proceed to block 270. In block 270, the electronic device 110 can determine whether the target data entry includes a target data segment that meets the preset requirements.
[0049] Further, if it is determined in block 270 that the target data entry includes a target data segment, process 200B may proceed to block 280. In block 280, the electronic device 110 may determine a fourth entity identifier corresponding to the target data segment based on the third mapping information. In some embodiments, the fourth entity identifier corresponds to a first entity type, the third mapping information indicates a second mapping relationship between a set of data segments and a fourth set of entity identifiers, and the fourth set of entity identifiers corresponds to the first entity type.
[0050] Taking the user entity as an example of the first entity, the target data segment may be, for example, data that can uniquely identify the corresponding user entity. For example, the target data segment may be a personal information identifier of the user entity.
[0051] In some embodiments, the electronic device 110 may, for example, extract the target data segment based on a format requirement corresponding to a preset information type of the user entity. For example, such format requirements may include format requirements for specific personal information identifiers.
[0052] The electronic device 110 may, for example, pre - establish a mapping relationship between a set of data segments and user identifiers, which may be represented as <data segment, user identifier>. Thus, the electronic device 110 may determine the user entity corresponding to the data entry based on the data segment extracted from the data entry 125.
[0053] Further, in block 280, the electronic device 110 may associate the target data entry with a third region corresponding to the fourth entity identifier based on the fourth entity identifier and the first mapping information.
[0054] Continuing with the user identifier as an example, if the data entry 125 includes a user identifier, the electronic device 110 may determine the region corresponding to the user identifier based on the pre - constructed mapping information, and may associate the data entry 125 with the region to support managing or processing the data entry 125 based on the region.
[0055] In some embodiments, after associating the data entry 125 with the corresponding region, the electronic device 110 may further perform a data processing operation corresponding to the corresponding region on the target data entry based on the target data being associated with the corresponding region.
[0056] In some embodiments, the electronic device 110 may delete at least part of the content in the target data entry. For example, in cases where storing a specific type of data is not allowed in certain regions, the electronic device 110 may perform a corresponding operation on the data entry associated with the region to, for example, delete the specific type of data from the data entry.
[0057] In some embodiments, the electronic device 110 may also modify at least part of the content in the target data entry. For example, in cases where specific types of data need to be anonymized in certain regions, the electronic device 110 may perform corresponding operations on the data entries associated with that region to, for example, anonymize specific content in the data entries.
[0058] Embodiments of the present disclosure can automatically identify the region corresponding to a data entry, thereby enabling region-based data management and improving the efficiency of data management.
[0059] Example device and equipment
[0060] Embodiments of the present disclosure also provide corresponding apparatuses for implementing the above methods or processes. Figure 3 FIG. shows a schematic structural block diagram of a data processing apparatus 300 according to certain embodiments of the present disclosure. The apparatus 300 may be implemented as or included in the electronic device 110. Each module / component in the apparatus 300 may be implemented by hardware, software, firmware, or any combination thereof.
[0061] As Figure 3 shown, the apparatus 300 includes a first determination module 310 configured to determine whether the target data entry includes a first entity identifier corresponding to a first entity type; a second determination module 320 configured to, in response to the target data entry including the first entity identifier, determine a first region corresponding to the first entity identifier based on first mapping information, the first mapping information indicating a first mapping relationship between a first set of entity identifiers and a set of preset regions, the first set of entity identifiers corresponding to the first entity type; and a data association module 330 configured to associate the target data entry with the first region.
[0062] In some embodiments, the first entity type corresponds to a user entity, and the first entity identifier includes a user identifier of the user entity.
[0063] In some embodiments, the apparatus 300 further includes a first processing module configured to: in response to the target data entry including the first entity identifier, determine whether the target data entry includes a second entity identifier corresponding to a second entity type; in response to the target data entry including the second entity identifier, determine a third entity identifier corresponding to the first entity type based on second mapping information, the third entity identifier corresponding to the first entity type, the second mapping information indicating a second mapping relationship between a second set of entity identifiers and a third set of entity identifiers, the second set of entity identifiers corresponding to the second entity type, the third set of entity identifiers corresponding to the first entity type; and based on the third entity identifier and the first mapping information, associate the target data entry with a second region corresponding to the third entity identifier.
[0064] In some embodiments, the second mapping information is constructed based on the following process: determining a mapping relationship between a candidate entity type and a first entity type; and in response to the mapping relationship being a many-to-one mapping or a one-to-one mapping, constructing the second mapping information between the candidate entity type and the first entity type.
[0065] In some embodiments, the apparatus 300 further includes a second processing module configured to: in response to the target data entry not including a second entity identifier, determine whether the target data entry includes a target data segment that meets a preset requirement; in response to the target data entry including the target data segment, determine a fourth entity identifier corresponding to the target data segment based on third mapping information, the fourth entity identifier corresponding to the first entity type, the third mapping information indicating a second mapping relationship between a set of data segments and a fourth set of entity identifiers, the fourth set of entity identifiers corresponding to the first entity type; and based on the fourth entity identifier and the first mapping information, associate the target data entry with a third region corresponding to the fourth entity identifier.
[0066] In some embodiments, the preset requirement indicates: a format requirement corresponding to a preset information type of a user entity.
[0067] In some embodiments, the apparatus 300 further includes a third processing module configured to: perform a data processing operation corresponding to a first region on the target data entry.
[0068] In some embodiments, the data processing operation includes at least one of the following: deleting at least part of the content in the target data entry; modifying at least part of the content in the target data entry.
[0069] Figure 4 FIG. shows a schematic block diagram of an example device 400 that may be used to implement embodiments of the present disclosure. For example, the electronic device 110 according to an embodiment of the present disclosure may be implemented by the device 400. As shown in the figure, the device 400 includes a central processing unit (CPU) 401, which may execute various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 402 or computer program instructions loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 may also be stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0070] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as a keyboard, mouse, etc.; output unit 407, such as various types of displays, speakers, etc.; storage unit 408, such as a disk, optical disc, etc.; and communication unit 409, such as a network card, modem, wireless communication transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0071] Each of the processes and treatments described above, such as process 200A and / or process 200B, may be executed by processing unit 401. For example, in some embodiments, 200A and / or process 200B may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed onto device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by CPU 401, one or more actions of 200A and / or process 200B described above may be performed.
[0072] The present disclosure may be a method, apparatus, system, and / or computer program product. The computer program product may include a computer-readable storage medium having thereon computer-readable program instructions for performing various aspects of the present disclosure.
[0073] A computer-readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example—but not limited to—an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device, such as a punched card or raised structures in grooves storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage medium used herein is not construed as being an instantaneous signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0074] The computer-readable program instructions described herein can be downloaded to various computing / processing devices from a computer-readable storage medium or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.
[0075] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state-setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via an Internet service provider through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field-programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer-readable program instructions to implement various aspects of the present disclosure.
[0076] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0077] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that the instructions, when executed by the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, a programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises a manufacture including instructions that implement various aspects of the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0078] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, such that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0079] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of code, or a portion of an instruction, and the module, segment of code, or portion of an instruction includes one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or acts, or by a combination of dedicated hardware and computer instructions.
[0080] The various embodiments of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of the terms used herein is intended to best explain the principles of the embodiments, the practical application, or the improvement of the technology in the market, or to enable other ordinary skilled persons in the art to understand the embodiments disclosed herein.
Claims
1. A method for data processing, comprising: Determining whether a target data entry includes a first entity identifier corresponding to a first entity type; In response to the target data entry including the first entity identifier, determining a first region corresponding to the first entity identifier based on first mapping information, the first mapping information indicating a first mapping relationship between a first set of entity identifiers and a set of preset regions, the first set of entity identifiers corresponding to the first entity type; And Associating the target data entry with the first region.
2. The method according to claim 1, wherein the first entity type corresponds to a user entity, and the first entity identifier includes a user identifier of the user entity.
3. The method according to claim 1, further comprising: In response to the target data entry including the first entity identifier, determining whether the target data entry includes a second entity identifier corresponding to a second entity type; In response to the target data entry including the second entity identifier, determining a third entity identifier corresponding to the second entity identifier based on second mapping information, the third entity identifier corresponding to the first entity type, the second mapping information indicating a second mapping relationship between a second set of entity identifiers and a third set of entity identifiers, the second set of entity identifiers corresponding to the second entity type, the third set of entity identifiers corresponding to the first entity type; And Based on the third entity identifier and the first mapping information, associating the target data entry with a second region corresponding to the third entity identifier.
4. The method according to claim 3, wherein the second mapping information is constructed based on the following process: Determining a mapping relationship between a candidate entity type and the first entity type; and In response to the mapping relationship being a many-to-one mapping or a one-to-one mapping, constructing the second mapping information between the candidate entity type and the first entity type.
5. The method according to claim 3, further comprising: In response to the target data entry not including the second entity identifier, determining whether the target data entry includes a target data segment that meets a preset requirement; In response to the target data entry including the target data segment, determining a fourth entity identifier corresponding to the target data segment based on third mapping information, the fourth entity identifier corresponding to the first entity type, the third mapping information indicating a second mapping relationship between a set of data segments and a fourth set of entity identifiers, the fourth set of entity identifiers corresponding to the first entity type; And Based on the fourth entity identifier and the first mapping information, associating the target data entry with a third region corresponding to the fourth entity identifier.
6. The method according to claim 5, wherein the preset requirement indicates: a format requirement corresponding to a preset information type of a user entity.
7. The method according to claim 1, further comprising: Performing a data processing operation corresponding to the first region on the target data entry.
8. The method according to claim 7, wherein the data processing operation includes at least one of the following: Delete at least part of the content in the target data entry; Modify at least part of the content in the target data entry.
9. A device for data processing, comprising: A first determination module configured to determine whether a target data entry includes a first entity identifier corresponding to a first entity type; A second determination module configured to, in response to the target data entry including the first entity identifier, determine a first region corresponding to the first entity identifier based on first mapping information, the first mapping information indicating a first mapping relationship between a first set of entity identifiers and a set of preset regions, the first set of entity identifiers corresponding to the first entity type; And A data association module configured to associate the target data entry with the first region.
10. An electronic device, comprising: A memory and a processor; Wherein the memory is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1 to 9.
11. A computer-readable storage medium, on which one or more computer instructions are stored, and the one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 9.
Citation Information
Cited By
Method and apparatus for data processing, device, and storage medium
WO2025136226A1