Legal document sample construction method, device and equipment and storage medium

By automatically obfuscating the attribute values ​​of personal information in the legal document samples, the unreducible obfuscated attribute values ​​are generated, and the problems of low efficiency and low security of manual obfuscating in the existing technology are solved, and a more efficient and safe construction of legal document samples is achieved.

CN119720278APending Publication Date: 2025-03-28GUANGDONG ESHORE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411862956.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the training of legal documents sample in the field of public security, procuratorial and judicial, the reliance on manual confusion of personal information has problems of low efficiency, high risk and low security.

Method used

By obtaining the file data of the legal document, identifying personal entity information, using the corresponding obfuscation algorithm to obfuscate the attribute value, generating irreducible obfuscation attribute values, and replacing the original attribute values ​​to construct a legal document sample.

Benefits of technology

It improves the efficiency and security of personal information obfuscation, reduces the risk of artificial obfuscation, and ensures the security and obfuscation effect of legal document samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119720278A_ABST
    Figure CN119720278A_ABST
Patent Text Reader

Abstract

The invention provides a legal instrument sample construction method and device, equipment and a storage medium, and the method comprises the steps: obtaining the file data of a legal instrument, recognizing the file data, obtaining the personal entity information of a plurality of individuals, and carrying out the recognition of the original attribute values of a plurality of attributes of the personal entity information, the corresponding confusion algorithms are respectively utilized to perform confusion processing to obtain confusion attribute values corresponding to the plurality of attributes, and compared with manual confusion, the efficiency is improved and the risk is reduced; and according to the confusion attribute value and the original attribute value, determining a reduction possibility, when the reduction possibility represents that the legal document cannot be reduced, replacing the corresponding original attribute value with the confusion attribute value to obtain a legal document sample, and by introducing the reduction possibility, ensuring the security and confusion effect of the final legal document sample.
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, and in particular to a method, device, equipment and storage medium for constructing a legal document sample. Background Art

[0002] In today's machine learning and artificial intelligence fields, training samples occupy a vital position. Training samples provide indispensable support for the learning and growth of models. High-quality training samples can help models learn more deeply and accurately understand the inherent laws contained in the data, so that in actual application scenarios, the models can show higher accuracy and more outstanding efficiency.

[0003] In the public security, procuratorial and judicial fields, the training of relevant models is also involved. However, since legal document samples are closely related to personal information, in order to ensure the security of personal information, personal information must be manually obfuscated before it can be used for model training. However, relying on manual obfuscation of personal information has certain risks and low efficiency. At the same time, manual obfuscation may be incomplete. It may be possible to infer and restore the real information before obfuscation through relevant information in the context, which has low security. Summary of the invention

[0004] The present application provides a method, device, equipment and storage medium for constructing a legal document sample to solve at least one problem existing in the related art. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a legal document sample, comprising:

[0006] Acquire file data of a legal document, and identify the file data to obtain personal entity information of a number of individuals, wherein the personal entity information includes a number of attributes;

[0007] Performing obfuscation processing on the original attribute values ​​of the plurality of attributes using corresponding obfuscation algorithms respectively, to obtain obfuscated attribute values ​​corresponding to the plurality of attributes;

[0008] Determining restoration possibility according to the obfuscated attribute value and the original attribute value;

[0009] When the restoration possibility representation is irreversible, the obfuscated attribute values ​​are used to replace the corresponding original attribute values ​​to obtain a legal document sample.

[0010] In one implementation, the original attribute values ​​of the plurality of attributes are obfuscated using corresponding obfuscation algorithms to obtain obfuscated attribute values ​​corresponding to the plurality of attributes, including at least one of the following:

[0011] When the attribute is a name, the original attribute value of the name is obfuscated by a name obfuscation algorithm to obtain an obfuscated attribute value of the name;

[0012] When the attribute is an address, the original attribute value of the address is obfuscated by using an address obfuscation algorithm to obtain an obfuscated attribute value of the address;

[0013] When the attribute is a mobile phone number, the original attribute value of the mobile phone number is obfuscated by a mobile phone number obfuscation algorithm to obtain an obfuscated attribute value of the mobile phone number;

[0014] When the attribute is a license plate, the original attribute value of the license plate is obfuscated by a license plate obfuscation algorithm to obtain an obfuscated attribute value of the license plate;

[0015] When the attribute is a document number, the original attribute value of the document number is obfuscated using a document number obfuscation algorithm to obtain an obfuscated attribute value of the document number.

[0016] In one implementation, when the attribute is a name, performing obfuscation processing on the original attribute value of the name by using a name obfuscation algorithm to obtain the obfuscated attribute value of the name includes:

[0017] When the attribute is a name, extracting an original surname from the original attribute value of the name, and determining a new surname different from the original surname from a surname library;

[0018] Extracting the original name from the original attribute value of the name, and determining a new name different from the original surname from a common character library;

[0019] According to the new surname and the new given name, a confusion attribute value of the given name is obtained.

[0020] In one implementation, when the attribute is an address, performing obfuscation processing on the original attribute value of the address by using an address obfuscation algorithm to obtain the obfuscated attribute value of the address includes:

[0021] When the attribute is an address, determine the original province in the original attribute value of the address and the region number sequence number of the original province in the province database;

[0022] Determine a new area number and a new province corresponding to the new area number according to the area number sequence and the random function;

[0023] Determine the secondary regional information under the new province as the new regional information, and randomly generate the address number under the new regional information to obtain the new address number;

[0024] The obfuscated attribute value of the address is obtained according to the new province, the new area information and the new address number.

[0025] In one embodiment, when the attribute is a license plate, the original attribute value of the license plate is obfuscated by a license plate obfuscation algorithm to obtain the obfuscated attribute value of the license plate, and when the attribute is a mobile phone number, the original attribute value of the mobile phone number is obfuscated by a mobile phone number obfuscation algorithm to obtain the obfuscated attribute value of the mobile phone number includes:

[0026] When the attribute is a license plate, determine the abbreviation of the province corresponding to the new province and the license plate number in the original attribute value of the license plate, generate a new license plate number by random rules, or replace each bit of the license plate number with different content to obtain a new license plate number, and obtain the obfuscated attribute value of the license plate based on the abbreviation of the province and the new license plate number;

[0027] When the attribute is a mobile phone number, a new segment corresponding to the new area information is determined, and a new part other than the new segment is generated by a random rule, or each digit of the original attribute value of the mobile phone number other than the original segment is changed to obtain the new part;

[0028] According to the new section and the new part, the obfuscated attribute value of the mobile phone number is obtained.

[0029] In one implementation, when the attribute is a document number, the original attribute value of the document number is obfuscated by a document number obfuscation algorithm to obtain the obfuscated attribute value of the document number, including:

[0030] When the attribute is a document number, based on the case number standard, the case year, court code, type code, and case number in the original attribute value of the document number are randomly replaced to obtain a new case year, new court code, new type code, and new case number;

[0031] The obfuscated attribute value of the document number is obtained according to the new case acceptance year, the new court code, the new type code and the new case number.

[0032] In one implementation, determining the restoration possibility according to the obfuscated attribute value and the original attribute value includes:

[0033] Determining a confusion attribute set for each individual according to the confusion attribute value corresponding to each individual;

[0034] According to the confusing attribute set, correlation analysis is performed on all the original attribute values ​​of the corresponding individual to determine whether each of the original attribute values ​​is associated with the confusing attribute set;

[0035] When there is no correlation between each of the original attribute values ​​and the set of obfuscated attributes, the restoration possibility of the irreversible representation is determined, otherwise the restoration possibility of the reversible representation is determined.

[0036] In a second aspect, an embodiment of the present application provides a legal document sample construction device, including:

[0037] An acquisition module, used to acquire file data of a legal document, and identify the file data to obtain personal entity information of several individuals, wherein the personal entity information includes several attributes;

[0038] An obfuscation module, used to perform obfuscation processing on the original attribute values ​​of several attributes using corresponding obfuscation algorithms respectively, to obtain obfuscated attribute values ​​corresponding to several attributes;

[0039] A detection module, used to determine restoration possibility according to the obfuscated attribute value and the original attribute value;

[0040] The sample module is used to replace the corresponding original attribute value with the obfuscated attribute value when the restoration possibility representation is irreversible to obtain a legal document sample.

[0041] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement a method in any one of the above-mentioned embodiments.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, the method in any one of the above-mentioned embodiments is implemented.

[0043] The beneficial effects of the above technical solution include at least:

[0044] By acquiring the file data of legal documents and identifying the file data, the personal entity information of several individuals is obtained. The original attribute values ​​of several attributes of the personal entity information are obfuscated using corresponding obfuscation algorithms to obtain obfuscated attribute values ​​corresponding to the several attributes. Compared with manual obfuscation, this method improves efficiency and reduces risks. Based on the obfuscated attribute values ​​and the original attribute values, the restoration possibility is determined. When the restoration possibility indicates that it cannot be restored, the corresponding original attribute values ​​are replaced with the obfuscated attribute values ​​to obtain legal document samples. By introducing the restoration possibility, the security and obfuscation effect of the final legal document sample are guaranteed.

[0045] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.

[0047] Figure 1 This is a schematic diagram of the steps of the method for constructing a legal document sample according to an embodiment of the present application;

[0048] Figure 2 A structural block diagram of a device for constructing a legal document sample according to an embodiment of the present application;

[0049] Figure 3 This is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0050] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0051] Reference Figure 1 , showing a flow chart of a method for constructing a legal document sample according to an embodiment of the present application, the method for constructing a legal document sample may at least include steps S100-S400:

[0052] S100: Obtain file data of a legal document, and identify the file data to obtain personal entity information of several individuals.

[0053] Alternatively, an individual can also be referred to as an entity. For example, if there are Zhang San and Li Si, there are two individuals. Zhang San and Li Si each have corresponding personal entity information, and the personal entity information includes several attributes. For example, attributes include but are not limited to name, address, mobile phone number, license plate, document number, ID number, unit number, etc., without specific limitation; it can be understood that a specific name is the original attribute value of the name, a specific address is the original attribute value of the address, and so on.

[0054] S200: performing obfuscation processing on original attribute values ​​of several attributes using corresponding obfuscation algorithms respectively, to obtain obfuscated attribute values ​​corresponding to the several attributes.

[0055] Optionally, before performing the obfuscation process, the entity information database may be checked to see whether there is any individual entity information of the individual that has been processed before. If it has been processed before, the processed obfuscation result may be directly used. In addition, all obfuscated attribute values ​​obtained after the obfuscation process may be stored in the entity information database.

[0056] S300: Determine restoration possibility according to the obfuscated attribute value and the original attribute value.

[0057] S400: When the restoration possibility representation cannot be restored, the corresponding original attribute values ​​are replaced by the obfuscated attribute values ​​to obtain a legal document sample.

[0058] The method for constructing a sample of a legal document in an embodiment of the present application can be executed by an electronic control unit, a controller, a processor, etc. of a terminal such as a computer, a mobile phone, a tablet, or a vehicle-mounted terminal, or can be executed by a cloud server.

[0059] The technical solution of the embodiment of the present application obtains the file data of the legal document and identifies the file data to obtain the personal entity information of several individuals, and performs obfuscation processing on the original attribute values ​​of several attributes of the personal entity information using corresponding obfuscation algorithms to obtain obfuscated attribute values ​​corresponding to the several attributes, which improves efficiency and reduces risks compared with manual obfuscation; determines the restoration possibility based on the obfuscated attribute values ​​and the original attribute values, and when the restoration possibility indicates that it cannot be restored, replaces the corresponding original attribute values ​​with the obfuscated attribute values ​​to obtain legal document samples, and by introducing the restoration possibility, ensures the security and obfuscation effect of the final legal document sample.

[0060] In one embodiment, when including but not limited to name, address, mobile phone number, license plate, document number, ID number, unit number, etc., the corresponding step S200 may include steps S210-S240:

[0061] S210: When the attribute is a name, an original attribute value of the name is obfuscated using a name obfuscation algorithm to obtain an obfuscated attribute value of the name.

[0062] Optionally, when the attribute is a name, for example, the original attribute value of the name is "Zhang Erge", the original surname "Zhang" in the original attribute value of the name "Zhang Erge" is extracted through the name confusion algorithm, and then a new surname different from the original surname "Zhang" is determined from the surname library, such as "Li".

[0063] Then, the original name "Second Brother" is extracted from the original attribute value of the name, and a new name different from the original surname is determined from the commonly used character library, such as "Xiao Ming". Finally, based on the new surname "Li" and the new name "Xiao Ming", the confused attribute value of the name is obtained: "Li Xiao Ming", which is completely different from the original attribute value "Second Brother Zhang".

[0064] S220: When the attribute is an address, an original attribute value of the address is obfuscated by using an address obfuscation algorithm to obtain an obfuscated attribute value of the address.

[0065] Optionally, in an embodiment of the present application, a province library is provided, and the province library records the area code sequence of each province. For example, the sequence number can be set to 01 for Guangdong Province, 02 for Hunan Province, and so on, so as to facilitate the system to use and record provinces. When the attribute is an address, for example, the original attribute value is Room XXX, XX Garden, Nanhai District, Foshan City, Guangdong Province, then the original province in the original attribute value of the address and the area code sequence of the original province in the province library are determined, such as Guangdong Province, and the area code sequence in the province library is 01. Then, according to the area code sequence and the random function f(x)=i+random, i is the current area code sequence, random is a random integer from 1 to 30, for example, random is 1, and the new area code is 02. At this time, the new province corresponding to the new area code sequence is determined: Hunan Province. Finally, the secondary regional information under the new province is determined as the new regional information, such as Changsha City under Hunan Province (and then the administrative district under Changsha City is randomly determined) as the new regional information, for example, the new regional information is determined to be Wangcheng District of Changsha City or Yuhua District of Changsha City; and after determining the new regional information, such as Wangcheng District of Changsha City, a certain address such as Room XXX1304 is randomly generated under Wangcheng District of Changsha City, so the new address number is 1304. Therefore, according to the new province, new regional information and new address number, the obfuscated attribute value of the address can be obtained, such as the obfuscated attribute value of the address is Room XXX1304 of Wangcheng District of Changsha City, Hunan Province.

[0066] S230. When the attribute is a mobile phone number, the original attribute value of the mobile phone number is obfuscated using a mobile phone number obfuscation algorithm to obtain an obfuscated attribute value of the mobile phone number; when the attribute is a license plate, the original attribute value of the license plate is obfuscated using a license plate obfuscation algorithm to obtain an obfuscated attribute value of the license plate.

[0067] Optionally, for example, if the original attribute value of the license plate is Guangdong EK2345, when the attribute is the license plate, determine the provincial abbreviation corresponding to the new province: "Xiang" and the license plate number in the original attribute value of the license plate: EK2345, and then generate a new license plate number through random rules, such as AB2236, or, replace each bit in the license plate number with different content, such as BC3254 to obtain the new license plate number, and based on the provincial abbreviation "Xiang" and the new license plate number BC3254, obtain the confused attribute value of the license plate: Xiang BC3254.

[0068] Optionally, when the attribute is a mobile phone number, determine the new segment corresponding to the new area information, for example, the new segment corresponding to Changsha is 138, generate a new part other than the new segment through random rules, or change each digit of the original attribute value of the mobile phone number other than the original segment to obtain a new part, for example, assuming that the new part is 010XXX13. Finally, based on the new segment and the new part, obtain the obfuscated attribute value of the mobile phone number, such as 138010XXX13, so that the obfuscated address-related content can be unified in the attributes such as the license plate and mobile phone number, making the obfuscated context more unified and more valuable.

[0069] S240. When the attribute is a document number, the original attribute value of the document number is obfuscated using a document number obfuscation algorithm to obtain an obfuscated attribute value of the document number.

[0070] In an embodiment of the present application, first, when the attribute is the document number, based on the case number standard, the case acceptance year, court code, type code and case number in the original attribute values ​​of the document number are randomly replaced to obtain a new case acceptance year (such as 2023), a new court code (such as Hunan), a new type code (such as No. 0113 Civil First Instance) and a new case number (such as No. 3). Then, according to the new case acceptance year, the new court code, the new type code and the new case number, the obfuscated attribute value of the document number is obtained, and the obfuscated attribute value of the document number is such as (2023) Hunan 0113 Civil First Instance No. 3.

[0071] In some implementations, an ID card number obfuscation algorithm and a unit number obfuscation algorithm may also be included. The original attribute values ​​of the ID card number are obfuscated by the ID card number obfuscation algorithm to obtain the obfuscated attribute values ​​of the ID card number; and the original attribute values ​​of the unit number are obfuscated by the unit number obfuscation algorithm to obtain the obfuscated attribute values ​​of the unit number.

[0072] For example, in the ID card number obfuscation algorithm, the digits representing gender are retained, and the remaining digits can be randomly generated to determine the new ID card number, that is, the obfuscation attribute value of the ID card number; similarly, the unit number can be randomly generated or each digit in the unit number can be replaced with an unused digit to obtain a new unit number, that is, the obfuscation attribute value of the unit number, without specific limitation.

[0073] In one implementation, step S300 includes steps S310-S330:

[0074] S310: Determine a set of obfuscation attributes for each individual according to the obfuscation attribute value corresponding to each individual.

[0075] Optionally, after the various attributes of each individual are obfuscated, each attribute of each individual has a corresponding obfuscated attribute value, and a obfuscated attribute set of each individual is formed according to each obfuscated attribute value.

[0076] S320: Perform association analysis on all original attribute values ​​of the corresponding individuals according to the confusion attribute set to determine whether there is any association between each original attribute value and the confusion attribute set.

[0077] Optionally, after determining the confusing attribute set, all original attribute values ​​of the individuals corresponding to the confusing attribute set are subjected to association analysis according to the confusing attribute set, so as to determine whether each original attribute value is associated with the confusing attribute set. In some cases, since some confusing attribute values ​​are randomly generated, it is possible to infer and restore the original attribute value by combining the context or part of the confusing attribute value. For example, for an address, if only the address of the registered residence and the address of the residence are confused, and combined with the context, there is other information representing the address or inferring the address, such as a mobile phone number if the segment is not adjusted; after the name is replaced, the original attribute value of a certain word or two words such as the mobile phone number is the same or only the positions of the two words are opposite, etc., then it is considered that the original attribute value can be inferred and restored, and it is determined that the original attribute value is associated with the confusing attribute set.

[0078] S330: When there is no correlation between each original attribute value and the set of obfuscated attributes, determine the restoration possibility of the irreversible representation; otherwise, determine the restoration possibility of the reversible representation.

[0079] Optionally, when there is no correlation between each original attribute value and the obfuscated attribute set, that is, all original attribute values ​​cannot be derived and restored using the obfuscated attribute values, it is considered that the obfuscation effect is good and the obfuscation is successful; otherwise, if any original attribute value is correlated with any obfuscated attribute value in the obfuscated attribute set, that is, it can be derived and restored, then it is considered that the obfuscation effect is poor, the obfuscation fails, and further re-obfuscation is required.

[0080] In one implementation, in step S400, if all the associations are characterized as irreversible, the corresponding original attribute values ​​are replaced with obfuscated attribute values ​​to obtain a legal document sample with a satisfactory obfuscation effect.

[0081] The method of the embodiment of the present application introduces corresponding obfuscation algorithms based on different attributes for obfuscation processing, which is conducive to ensuring the obfuscation effect of each attribute; introduces the detection of restoration possibility to ensure that the obfuscated attribute value after obfuscation processing cannot be deduced and restored to the original attribute value, and then generates a legal document sample, reducing the risk of leakage of personal information, being more scientific and rigorous, greatly improving the security and availability of the file, building a solid security line for the application of artificial intelligence in the public security, procuratorial and judicial fields, and providing a strong guarantee for the data security of users. In addition, the obfuscated attribute value after obfuscation only replaces the original attribute value, and the structure of the original document can be retained. The model trained by such training samples is more reliable and available.

[0082] Reference Figure 2 , shows a structural block diagram of a legal document sample construction device according to an embodiment of the present application, the device may include:

[0083] An acquisition module is used to acquire the file data of the legal document and identify the file data to obtain personal entity information of several individuals, where the personal entity information includes several attributes;

[0084] The obfuscation module is used to perform obfuscation processing on the original attribute values ​​of several attributes by using corresponding obfuscation algorithms to obtain obfuscated attribute values ​​corresponding to the several attributes;

[0085] A detection module, used for determining restoration possibility according to obfuscated attribute values ​​and original attribute values;

[0086] The sample module is used to replace the corresponding original attribute values ​​with obfuscated attribute values ​​when the restoration possibility representation is irreversible to obtain legal document samples.

[0087] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and will not be repeated here.

[0088] Reference Figure 3 , shows a structural block diagram of an electronic device according to an embodiment of the present application, the electronic device includes: a memory 310 and a processor 320, the memory 310 stores instructions that can be run on the processor 320, and the processor 320 loads and executes the instructions to implement the legal document sample construction method in the above embodiment. The number of the memory 310 and the processor 320 can be one or more.

[0089] In one embodiment, the electronic device also includes a communication interface 330 for communicating with external devices and performing data exchange transmission. If the memory 310, the processor 320 and the communication interface 330 are implemented independently, the memory 310, the processor 320 and the communication interface 330 can be interconnected through a bus and complete mutual communication. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0090] Optionally, in a specific implementation, if the memory 310, the processor 320 and the communication interface 330 are integrated on a chip, the memory 310, the processor 320 and the communication interface 330 can communicate with each other through an internal interface.

[0091] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for constructing a legal document sample provided in the above embodiment.

[0092] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.

[0093] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.

[0094] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.

[0095] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).

[0096] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0097] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0098] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0099] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.

[0100] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.

[0101] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0102] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.

[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for constructing a legal document sample, characterized in that: include: Acquire file data of a legal document, and identify the file data to obtain personal entity information of a number of individuals, wherein the personal entity information includes a number of attributes; Performing obfuscation processing on the original attribute values ​​of the plurality of attributes using corresponding obfuscation algorithms respectively, to obtain obfuscated attribute values ​​corresponding to the plurality of attributes; Determining restoration possibility according to the obfuscated attribute value and the original attribute value; When the restoration possibility representation is irreversible, the corresponding original attribute values ​​are replaced by the obfuscated attribute values ​​to obtain a legal document sample.

2. The method for constructing a legal document sample according to claim 1, characterized in that: The original attribute values ​​of the plurality of attributes are obfuscated using corresponding obfuscation algorithms to obtain obfuscated attribute values ​​corresponding to the plurality of attributes, including at least one of the following: When the attribute is a name, the original attribute value of the name is obfuscated by a name obfuscation algorithm to obtain an obfuscated attribute value of the name; When the attribute is an address, the original attribute value of the address is obfuscated by using an address obfuscation algorithm to obtain an obfuscated attribute value of the address; When the attribute is a mobile phone number, the original attribute value of the mobile phone number is obfuscated by a mobile phone number obfuscation algorithm to obtain an obfuscated attribute value of the mobile phone number; When the attribute is a license plate, the original attribute value of the license plate is obfuscated by a license plate obfuscation algorithm to obtain an obfuscated attribute value of the license plate; When the attribute is a document number, the original attribute value of the document number is obfuscated using a document number obfuscation algorithm to obtain an obfuscated attribute value of the document number.

3. The method for constructing a legal document sample according to claim 2, characterized in that: When the attribute is a name, the original attribute value of the name is obfuscated by a name obfuscation algorithm to obtain an obfuscated attribute value of the name, including: When the attribute is a name, extracting an original surname from an original attribute value of the name, and determining a new surname different from the original surname from a surname library; Extracting the original name from the original attribute value of the name, and determining a new name different from the original surname from a common character library; According to the new surname and the new given name, a confusion attribute value of the given name is obtained.

4. The method for constructing a legal document sample according to claim 2 or 3, characterized in that: When the attribute is an address, the original attribute value of the address is obfuscated by using an address obfuscation algorithm to obtain an obfuscated attribute value of the address, including: When the attribute is an address, determine the original province in the original attribute value of the address and the region number sequence number of the original province in the province database; Determine a new area number and a new province corresponding to the new area number according to the area number sequence and the random function; Determine the secondary regional information under the new province as the new regional information, and randomly generate the address number under the new regional information to obtain the new address number; The obfuscated attribute value of the address is obtained according to the new province, the new area information and the new address number.

5. The method for constructing a legal document sample according to claim 4, characterized in that: When the attribute is a license plate, the original attribute value of the license plate is obfuscated by a license plate obfuscation algorithm to obtain the obfuscated attribute value of the license plate, and when the attribute is a mobile phone number, the original attribute value of the mobile phone number is obfuscated by a mobile phone number obfuscation algorithm to obtain the obfuscated attribute value of the mobile phone number, including: When the attribute is a license plate, determine the abbreviation of the province corresponding to the new province and the license plate number in the original attribute value of the license plate, generate a new license plate number by random rules, or replace each bit of the license plate number with different content to obtain a new license plate number, and obtain the obfuscated attribute value of the license plate based on the abbreviation of the province and the new license plate number; When the attribute is a mobile phone number, a new segment corresponding to the new area information is determined, and a new part other than the new segment is generated by a random rule, or each digit of the original attribute value of the mobile phone number other than the original segment is changed to obtain the new part; According to the new section and the new part, the obfuscated attribute value of the mobile phone number is obtained.

6. The method for constructing a legal document sample according to claim 2 or 3, characterized in that: When the attribute is a document number, the original attribute value of the document number is obfuscated by using a document number obfuscation algorithm, and the obfuscated attribute value of the document number includes: When the attribute is a document number, based on the case number standard, the case year, court code, type code, and case number in the original attribute value of the document number are randomly replaced to obtain a new case year, new court code, new type code, and new case number; The obfuscated attribute value of the document number is obtained according to the new case acceptance year, the new court code, the new type code and the new case number.

7. The method for constructing a legal document sample according to claim 2 or 3, characterized in that: The determining of the restoration possibility according to the obfuscated attribute value and the original attribute value comprises: Determining a confusion attribute set for each individual according to the confusion attribute value corresponding to each individual; According to the confusing attribute set, correlation analysis is performed on all the original attribute values ​​of the corresponding individual to determine whether each of the original attribute values ​​is associated with the confusing attribute set; When there is no correlation between each of the original attribute values ​​and the set of obfuscated attributes, the restoration possibility of the irreversible representation is determined, otherwise the restoration possibility of the reversible representation is determined.

8. A device for constructing a legal document sample, characterized in that: include: An acquisition module, used to acquire file data of a legal document, and identify the file data to obtain personal entity information of several individuals, wherein the personal entity information includes several attributes; An obfuscation module, used to perform obfuscation processing on the original attribute values ​​of several attributes using corresponding obfuscation algorithms respectively, to obtain obfuscated attribute values ​​corresponding to several attributes; A detection module, used to determine restoration possibility according to the obfuscated attribute value and the original attribute value; The sample module is used to replace the corresponding original attribute value with the obfuscated attribute value when the restoration possibility representation is irreversible to obtain a legal document sample.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.