CN112540964A - Document number generation method and related device - Google Patents

Document number generation method and related device Download PDF

Info

Publication number
CN112540964A
CN112540964A CN201910900075.8A CN201910900075A CN112540964A CN 112540964 A CN112540964 A CN 112540964A CN 201910900075 A CN201910900075 A CN 201910900075A CN 112540964 A CN112540964 A CN 112540964A
Authority
CN
China
Prior art keywords
target
document
content
document number
filled
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910900075.8A
Other languages
Chinese (zh)
Inventor
董卓达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910900075.8A priority Critical patent/CN112540964A/en
Publication of CN112540964A publication Critical patent/CN112540964A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services; Handling legal documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a document number generation method, which generates a request by receiving a document number of a target legal document sent by a user; determining a template of the document number according to the document number generation request, wherein one or more content items to be filled exist in the template; determining the target content of the content items to be filled according to one or more extraction rules of the content items to be filled; and filling the target content into the corresponding content item to be filled to generate a document number. Therefore, the invention is pre-constructed with the document number template, and is pre-provided with the extraction rule of each content item to be filled in the document number template, the document number content can be obtained by automatically executing the extraction rule, and the specific document number can be automatically generated by filling the document number content into the document number template.

Description

Document number generation method and related device
Technical Field
The invention relates to the technical field of language analysis, in particular to a document number generation method and a related device.
Background
The document number is the only identification of the document, and a plurality of documents can be distinguished through the document number, so that the documents are processed. For example, the document number of a legal document, from which the legal document can be handled in an orderly manner.
For example: the legal document number recorded at present is a Beijing Hai Gongo (Law) character of restraint [2019]55, and the document number represents a 55-number restraint certificate issued in 2019 by the Beijing City Hai lake district law. Therefore, the document numbers generated in different areas, different mechanisms, different document types and different time are inconsistent, and the document management can be realized through the document numbers.
At present, the generation mode of the document number is manual filling, but the manual filling mode of the document number has uncertain filling errors, so that the generated document number may have phenomena of inaccuracy and the like.
Disclosure of Invention
In view of the above, the invention provides a document number generation method, which solves the problems of inaccurate document number and the like caused by manually filling in the document number. In addition, the invention also provides a document number generation device which is used for ensuring the application and realization of the method in practice.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
in a first aspect, the present invention provides a document number generating method, including:
receiving a request for generating a document number for a target legal document sent by a user;
obtaining a document number template with a preset format, wherein the document number template comprises one or more content items to be filled;
executing a preset content extraction rule corresponding to the content item to be filled to obtain target content corresponding to the content item to be filled;
and filling the target content into a content item to be filled corresponding to the target content in the document number template so as to generate the document number of the target legal document.
In a second aspect, the present invention provides a document number generating apparatus, including:
the receiving module is used for receiving a request for generating a document number for a target legal document sent by a user;
the system comprises a template acquisition module, a document number template and a content filling module, wherein the template acquisition module is used for acquiring the document number template with a preset format, and the document number template comprises one or more content items to be filled;
the extraction module is used for executing a preset content extraction rule corresponding to the content item to be filled so as to obtain target content corresponding to the content item to be filled;
and the generation module is used for filling the target content into the content item to be filled corresponding to the target content in the document number template so as to generate the document number of the target legal document.
In a third aspect, the present invention provides a storage medium having stored thereon a program which, when executed by a processor, implements the document number generation method described above.
In a fourth aspect, the present invention provides an electronic device comprising at least one processor, and at least one memory connected to the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory so as to execute the document number generation method.
According to the technical scheme, the invention provides a document number generation method, which generates a request by receiving the document number of a target legal document sent by a user; determining a template of the document number according to the document number generation request, wherein one or more content items to be filled exist in the template; determining the target content of the content items to be filled according to one or more extraction rules of the content items to be filled; and filling the target content into the corresponding content item to be filled to generate a document number. Therefore, the invention is pre-constructed with the document number template, and is pre-provided with the extraction rule of each content item to be filled in the document number template, the document number content can be obtained by automatically executing the extraction rule, and the specific document number can be automatically generated by filling the document number content into the document number template.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a document number generation method provided by the present invention;
FIG. 2 is a flow chart of a document number generation method applied to a legal document of a public security organization according to the present invention;
FIG. 3 is a block diagram of a document number generator according to the present invention;
fig. 4 is a block diagram of the device structure provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The document number is the unique identification of the document. The generated document numbers are different for different institutions, different times, different types, etc. The document number of the legal document includes a plurality of information such as area, organization, document type, time, etc. for indicating the organization, time of release, etc. of the legal document, so that the document can be managed according to the document number.
At present, the generation mode of the document number is generated by manual filling. However, the manual filling of the document number has uncertain filling errors, so that the generated document number may have inaccuracy and the like.
Therefore, the invention provides a document number generation method which is applied to a document number generation system. Referring to fig. 1, the method includes steps S101-S104.
S101: and receiving a request sent by a user for generating a document number for the target legal document.
The target legal documents are written materials with complete content comparison systems and formats formed by organs, groups, enterprises and public institutions and individuals in various activities. The target legal document includes: official documents of legislative organs, official documents of judicial organs, official documents of administrative organs, official documents of parties and organs, documents of military troops and the like. And determining the target legal document by the user according to the actual use scene condition.
Specifically, the user logs in the document number generation system and sends a document number generation request for generating a target legal document to the system. The system receives a request of generating a document number of a target legal document sent by a user.
S102: a document number template is obtained having a preset format, wherein the document number template includes one or more items of content to be filled.
It should be noted that the document number template in the preset format is generated according to the format specified by the target legal document. The document number template has one or more items of content to fill out, such as: the document number template generated according to the provisions of the target legal document is as follows: x is X (X) X-X. Wherein: x represents the content item to be filled, and particularly, the first X represents the issuing organization of the target legal document, such as Kyoto Hakka, and all administrative organizations in the Hakka district of Beijing City; the second X is (X) which represents the case handling department corresponding to the target legal document for short, such as (Law), and represents the legal system for short, such as (Law); the third X represents the type of the target legal document, such as the character 'captivity', and represents the type of the document as a captivity, which is called 'captivity'; the fourth X, indicates the year of release of the target legal document; the fifth X represents the origination number of the target legal document.
Of course, the document number templates of different types of legal documents can be different and can be set according to actual requirements. Specifically, in the document number generation system, various document number templates can be stored, and the document number template of the target legal document is extracted according to the type of the target legal document selected by the user. There may be one or more items to be filled in per document number template.
S103: and executing a preset content extraction rule corresponding to the content item to be filled so as to obtain target content corresponding to the content item to be filled.
Specifically, the preset content extraction rule is a rule for extracting content corresponding to the content item to be filled. In the document number generation system, there are a plurality of contents corresponding to the content items to be filled, and the required target contents need to be extracted according to the extraction rule. If a certain content item to be filled is the type of legal document, which is abbreviated, the type of legal document exists in various ways, so that the type of legal document is abbreviated in one-to-many relationship with the content. And the corresponding extraction rule may be: and obtaining the type name of the target legal document from the document number generation system, and segmenting the type name to obtain a plurality of segmented words corresponding to the type name, thereby obtaining the type abbreviation corresponding to the type name. According to the rule, the type abbreviation of the target legal document is extracted.
S104: and filling the target content into the content item to be filled corresponding to the target content in the document number template so as to generate the document number of the target legal document.
Specifically, according to step S102, a document number template corresponding to the target legal document and the number of content items to be filled in the document number template can be obtained; the content of each content item to be filled can be obtained according to step S103; combining steps S102 and S103, the content of the content item to be filled is filled into the corresponding content item to be filled, and the document number is generated according to the format of the document number template.
According to the technical scheme, the invention provides a document number generation method, which generates a request by receiving the document number of a target legal document sent by a user; determining a template of the document number according to the document number generation request, wherein one or more content items to be filled exist in the template; determining the target content of the content items to be filled according to one or more extraction rules of the content items to be filled; and filling the target content into the corresponding content item to be filled to generate a document number. Therefore, the invention is pre-constructed with the document number template, and is pre-provided with the extraction rule of each content item to be filled in the document number template, the document number content can be obtained by automatically executing the extraction rule, and the specific document number can be automatically generated by filling the document number content into the document number template.
Note that the document number generation system records the organization unit where the user is located, the region where the organization unit is located, and various document types. When the user logs in the system through the account password, the system can acquire the affiliation organization associated with the account, and further confirm the organization unit to which the user belongs. When a user initiates a document number generation request for generating a target legal document, the system extracts a document number template corresponding to the target legal document, determines the content to be extracted of the content item to be filled in the document number template according to the extraction rule, and combines the document number template with the content of the content item to be filled in to obtain the document number of the target legal document.
In order to understand the technical solutions provided by the above embodiments, the present invention provides a usage scenario of a legal document of a public security organization, and the following embodiments may be specifically referred to.
As shown in fig. 2, an embodiment of the document number generation method herein may include specific steps S201-S208.
S201: and receiving a request sent by a user for generating a document number for the target legal document.
This step is the same as the step S101, and is not described herein again.
It should be noted that the target legal document in this step is a legal document of a public security agency.
S202: obtaining a document number template with a preset format, wherein the document number template comprises five content items to be filled, and the five content items to be filled are respectively: the issuing authority of the target legal document, the case handling department corresponding to the target legal document, the type of the target legal document, the issuing year of the target legal document and the issuing serial number of the target legal document.
Specifically, the document number template of the legal document of the public security organization can refer to the document number template description in step S102 in the above embodiment, and is not repeated herein.
S203: and executing a preset content extraction rule corresponding to a release organ of the target legal document to obtain target content corresponding to the content item to be filled.
And extracting the target content corresponding to the issuing authority of the target legal document from the document number generating system according to a preset content extraction rule corresponding to the issuing authority of the target legal document.
The preset content extraction rule for the issuing authority of the target legal document is generated based on the target government and law unit to which the user belongs and the target case type of the case described in the target legal document.
In one example, the specific implementation manner of this step includes:
determining a target government and legal institution to which the user belongs; determining a target case type of a case recorded in a target legal document; determining a target issuing authority corresponding to the target government and law institution unit and the target case type according to the preset corresponding relation among the government and law institution unit, the case type and the issuing authority; the target issuing authority is determined to be the target content of the target legal document's issuing authority to be filled in content item.
Specifically, the user logs in the document number generation system through an account password, and information related to the account, such as information of a government and law institution to which the user belongs, is recorded in the system. When a user logs in the system, the system can determine a target government and law unit to which the user belongs according to information associated with the user account; determining the case type corresponding to the case according to case related materials (such as writing materials written by a case principal) recorded in the target legal documents; and generating target content of the issuing organization of the target legal documents according to the corresponding relation of the government and law organization unit, the case type and the issuing organization.
The corresponding relation among the government and law organization unit, the case type and the release organization means that the government and law organization unit and the case type jointly determine the target content of the release organization of the content item to be filled. If the organ to which a certain user account belongs is a organ unit in the Haitai district of Beijing City, if the type of the processed case is a traffic case, the generated target content corresponding to the issuing organ is 'Beijing Haitai'; if the type of the processed case is a criminal case, the generated target content corresponding to the issuing organization is 'Jinghai'; if the type of the case to be processed is an administrative type case, the generated target content corresponding to the issuing organization is "kyushaika". Therefore, the content item to be filled is the target content of the issuing authority, which is determined according to the region where the government and law institution is located and the type of the target case.
S204: and executing a preset content extraction rule corresponding to a case handling department corresponding to the target legal document to obtain target content corresponding to the content item to be filled.
And extracting target content corresponding to the case handling department from the document number generation system according to a preset content extraction rule corresponding to the case handling department corresponding to the target legal document.
It should be noted that the preset content extraction rule in this step may be divided into two parts, namely, an extraction rule for a common case type and an extraction rule for a special case type. For the common case type, the extraction rule is to extract the abbreviation of the case handling department from the name of the case handling department, if the case handling department makes a legal process, the extracted target content is 'legal', and the abbreviation is used as the target content of the case handling department as the content item to be filled; for the special case type, the extraction rule is to extract an abbreviation of the type name from the type name of the special case, if the special case type is a criminal case, the abbreviation of the type name is extracted from the criminal case, namely the criminal, and the abbreviation is used as a content item to be filled as a target content of a case handling department.
In one example, the specific implementation manner of this step includes:
determining a target case type of a case recorded in a target legal document; if the target case type belongs to a preset special case type, obtaining a type abbreviation of the target case type, and determining the type abbreviation as the target content of the content item to be filled of the case handling department corresponding to the target legal document; and if the target case type does not belong to the preset special case type, determining a department to which the user belongs for short, and determining the department for short as the target content of the content item to be filled, namely the case handling department corresponding to the target legal document.
Specifically, according to case related materials (such as writing materials written by a case principal) recorded in a target legal document, determining a case type corresponding to the case; and extracting the target content by using different preset content extraction rules according to different case types. And if the target case type belongs to a preset special case type, acquiring the abbreviation of the case type from the name of the case type. The special case types comprise criminal cases, drug inhibition cases, economic cases and the like. Taking criminal cases as an example, and performing word segmentation on the case type name, namely the criminal case, by using a word segmentation tool, thereby extracting a 'criminal' word as an abbreviation of the case type and taking the abbreviation as corresponding target content of the abbreviation of a target case type; if the target case type does not belong to the special case type, extracting the abbreviation of the department from the name of the department to which the user account belongs, and if the name of the department to which the user account belongs is legal, obtaining the abbreviation of the department through a word segmentation tool, and taking the abbreviation as the target content of the item to be filled.
In practical application, the target content of the case handling department can be changed. For example: a lawbreaker swipes a bank card of another person illegally, which belongs to an economic type case, so that the type of a target legal document is called as 'Jing' for short, but the case type can be converted into a criminal case along with the increase of the amount of money swiped by the lawbreaker; meanwhile, the type of the target legal document is also replaced by 'criminal' for short, the replacing process is carried out according to the content material in the target legal document, semantic analysis is carried out on the content material, the replacing condition is extracted, and the replacing process is executed according to the replacing condition.
S205: and executing the corresponding preset content extraction rule for the type abbreviation of the target legal document to obtain the target content corresponding to the content item to be filled.
And extracting target content corresponding to the case handling department from the document number generation system according to a preset content extraction rule corresponding to the type of the target legal document for short.
It should be noted that the preset content extraction rule corresponding to the target legal document type abbreviation is to perform word segmentation operation on the type name of the target legal document so as to obtain the target content of the target legal document type abbreviation, and the type abbreviation is used as the target content of the target legal document type abbreviation.
In one example, the specific implementation manner of this step includes:
obtaining the type name of the target legal document; performing word segmentation operation on the type names to obtain a plurality of type name word segmentations; respectively corresponding abbreviation of each type name participle; the combination of the respective acronyms is determined as the target content for the type acronym for the target legal document for this content item to be filled.
Specifically, determining the type name of the target legal document according to the content material in the target legal document; and performing word segmentation operation on the type name of the obtained target legal document to obtain a plurality of types of word segmentations, and analyzing the plurality of types of word segmentations to obtain a type abbreviation corresponding to the target legal document. If the type name of the target legal document is acquired as education for disarming, a word segmentation tool is used for segmenting the type name of the target legal document to obtain a plurality of type name segmented words, the type segmented words for disarming, housing and education are obtained, and the plurality of type segmented words are analyzed to determine the short term 'teaching relief' corresponding to the legal document, which is taken as the target content of the short term type of the target legal document.
It should be noted that, in this step, word segmentation can be performed according to the case type name of the newly issued target legal document to obtain the abbreviation of the newly issued case type. Such as a telecom fraud assistance questionnaire, which may be referred to as simply a power cooperation questionnaire.
S206: and executing a preset content extraction rule corresponding to the release year of the target legal document to obtain target content corresponding to the content item to be filled.
And extracting target content corresponding to the preset content extraction rule corresponding to the release year from the document number generation system according to the preset content extraction rule corresponding to the release year of the target legal document.
Specifically, the preset content extraction rule corresponding to the release year is to extract the current year from the document number generation system, and use the extracted year as the target content of the release year of the target legal document.
S207: and executing a preset content extraction rule corresponding to the text sending sequence number of the target legal document to obtain target content corresponding to the content item to be filled.
And extracting the target content corresponding to the preset content extraction rule corresponding to the text sending serial number from the text number generation system according to the preset content extraction rule corresponding to the text sending serial number of the target legal document.
Specifically, the preset content extraction rule corresponding to the text sending serial number is to acquire a text sending serial number record of the target legal document, automatically add 1 to the last recorded text sending serial number to generate a text sending serial number of the current target legal document, and use the newly generated text sending serial number as the target content corresponding to the text sending serial number of the current target legal document.
S208: and filling all the target contents into the content items to be filled corresponding to the target contents in the document and document number template so as to generate the document and number of the target legal document.
Specifically, the target content of each content item to be filled extracted in steps S203 to S207 is filled in the corresponding content item to be filled, and the document number of the target legal document is produced.
According to the technical scheme, the invention provides a document number generation method, which generates a request by receiving the document number of a target legal document sent by a user; determining a template of the document number according to the document number generation request, wherein one or more content items to be filled exist in the template; determining the target content of the content items to be filled according to one or more extraction rules of the content items to be filled; and filling the target content into the corresponding content item to be filled to generate a document number. Therefore, the invention is pre-constructed with the document number template, and is pre-provided with the extraction rule of each content item to be filled in the document number template, the document number content can be obtained by automatically executing the extraction rule, and the specific document number can be automatically generated by filling the document number content into the document number template.
In one example, determining a target case type of a case described in a target legal document specifically includes the following steps:
obtaining case material content associated with a target legal document; semantic analysis is performed on the case material content to determine the target case type of the case.
Specifically, the case material content associated with the target legal documents is the material content recorded by the case responsible person on the process and details of the case, and contains information for determining the type of the target case, and the information is subjected to semantic analysis, so that the type of the target case is determined. If the case leader records in the target legal document as: and a lawbreaker swipes the bank card of other people illegally, and the amount of the stolen bank card exceeds the range of the appointed amount, so that criminal cases are formed. And performing semantic analysis on the record to determine that the case is a criminal case.
The invention provides a document number generating device. Referring to fig. 3, the apparatus specifically includes: a receiving module 301, a template obtaining module 302, an extracting module 303 and a generating module 304. Wherein:
the receiving module 301 is configured to receive a request sent by a user to generate a document number for a target legal document.
A template obtaining module 302, configured to obtain a document number template with a preset format, where the document number template includes one or more content items to be filled.
The extracting module 303 is configured to execute a preset content extracting rule corresponding to the content item to be filled, so as to obtain target content corresponding to the content item to be filled.
And the generating module 304 is used for filling the target content into the content item to be filled corresponding to the target content in the document number template so as to generate the document number of the target legal document.
According to the technical scheme, the invention provides a document number generation device, which generates a request by receiving the document number of a target legal document sent by a user; determining a template of the document number according to the document number generation request, wherein one or more content items to be filled exist in the template; determining the target content of the content items to be filled according to one or more extraction rules of the content items to be filled; and filling the target content into the corresponding content item to be filled to generate a document number. Therefore, the invention is pre-constructed with the document number template, and is pre-provided with the extraction rule of each content item to be filled in the document number template, the document number content can be obtained by automatically executing the extraction rule, and the specific document number can be automatically generated by filling the document number content into the document number template.
In one example, the document number template acquired by the template acquisition module comprises at least one of a publishing authority of the target legal document, a case handling department corresponding to the target legal document, a type abbreviation of the target legal document, a publishing year of the target legal document and a publishing serial number of the target legal document.
In one example, if the document number template includes a publishing authority of the target legal document, the extracting module is specifically configured to, when executing a preset content extracting rule corresponding to the publishing authority of the target legal document to obtain target content corresponding to the content item to be filled in:
determining a target government and legal institution to which the user belongs; determining a target case type of a case recorded in a target legal document; determining a target issuing authority corresponding to the target government and law institution unit and the target case type according to the preset corresponding relation among the government and law institution unit, the case type and the issuing authority; the target issuing authority is determined to be the target content of the target legal document's issuing authority to be filled in content item.
In one example, if the document number template includes a case handling department corresponding to the target legal document, the extraction module is specifically configured to, when executing a preset content extraction rule corresponding to the case handling department corresponding to the target legal document to obtain target content corresponding to a content item to be filled:
determining a target case type of a case recorded in a target legal document; if the target case type belongs to a preset special case type, obtaining a type abbreviation of the target case type, and determining the type abbreviation as the target content of the content item to be filled of the case handling department corresponding to the target legal document; and if the target case type does not belong to the preset special case type, determining a department to which the user belongs for short, and determining the department for short as the target content of the content item to be filled, namely the case handling department corresponding to the target legal document.
In one example, when the extraction module determines a target case type of a case described in a target legal document, the extraction module is specifically configured to:
the case type determining module is used for obtaining case material contents related to the target legal documents; semantic analysis is performed on the case material content to determine the target case type of the case.
In one example, if the document number template includes the target legal document with the type abbreviation, the extraction module is specifically configured to, when executing a preset content extraction rule corresponding to the target legal document with the type abbreviation to obtain target content corresponding to a content item to be filled:
obtaining the type name of the target legal document; performing word segmentation operation on the type names to obtain a plurality of type name word segmentations; respectively corresponding abbreviation of each type name participle; the combination of the respective acronyms is determined as the target content for the type acronym for the target legal document for this content item to be filled.
The document number generating device of the invention comprises a processor and a memory, wherein the receiving module 301, the template obtaining module 302, the extracting module 303, the generating module 304 and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem of inaccurate document numbers caused by manual filling is avoided by adjusting the kernel parameters.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the document number generation method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the document number generation method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises at least one processor, at least one memory and a bus, wherein the memory and the bus are connected with the processor; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the document number generation method. The device herein may be a server, a PC, a PAD, a mobile phone, etc. Referring to fig. 4, the device 40 may include a processor 401, a memory 402, and a bus 403, wherein the processor 401 and the memory 402 are coupled via the bus 403.
The invention also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
receiving a request for generating a document number for a target legal document sent by a user;
obtaining a document number template with a preset format, wherein the document number template comprises one or more content items to be filled;
executing a preset content extraction rule corresponding to the content item to be filled to obtain target content corresponding to the content item to be filled;
and filling the target content into a content item to be filled corresponding to the target content in the document number template so as to generate the document number of the target legal document.
In one implementation, the document number template includes at least one of a publishing authority of the target legal document, a case handling department corresponding to the target legal document, a type of the target legal document, a publishing year of the target legal document, and a publishing serial number of the target legal document.
In one implementation, when the document number template includes a publishing authority of the target legal document, executing a preset content extraction rule corresponding to the publishing authority of the target legal document to obtain target content corresponding to the content item to be filled, including:
determining a target government and legal institution to which the user belongs;
determining the target case type of the case recorded in the target legal document;
determining a target issuing authority corresponding to the target political and legal institution unit and the target case type according to preset corresponding relations among the political and legal institution unit, the case type and the issuing authority;
determining the target issuing authority as the target content of the target legal document's issuing authority to be filled in content item.
In one implementation, when the document number template includes a case handling department corresponding to the target legal document, executing a preset content extraction rule corresponding to the case handling department corresponding to the target legal document to obtain target content corresponding to the content item to be filled, includes:
determining the target case type of the case recorded in the target legal document;
if the target case type belongs to a preset special case type, obtaining a type abbreviation of the target case type, and determining the type abbreviation as target content of a content item to be filled of a case handling department corresponding to the target legal document;
and if the target case type does not belong to the preset special case type, determining a department to which the user belongs for short, and determining the department for short as the target content of the content item to be filled, namely the case handling department corresponding to the target legal document.
In one implementation, the determining a target case type of a case corresponding to the target legal document includes:
obtaining case material content associated with the target legal document;
and performing semantic analysis on the case material content to determine the target case type of the case.
In one implementation, when the document number template includes the type abbreviation of the target legal document, executing a preset content extraction rule corresponding to the type abbreviation of the target legal document to obtain target content corresponding to the content item to be filled, including:
obtaining the type name of the target legal document;
performing word segmentation operation on the type names to obtain a plurality of type name word segments;
respectively corresponding abbreviation of each type name participle;
and determining the combination of the short names as the target content of the target legal document with the type short name of the content item to be filled.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A document number generation method is characterized by comprising the following steps:
receiving a request for generating a document number for a target legal document sent by a user;
obtaining a document number template with a preset format, wherein the document number template comprises one or more content items to be filled;
executing a preset content extraction rule corresponding to the content item to be filled to obtain target content corresponding to the content item to be filled;
and filling the target content into a content item to be filled corresponding to the target content in the document number template so as to generate the document number of the target legal document.
2. The document number generation method according to claim 1, wherein the document number template includes at least one of a release authority of the target legal document, a case handling department corresponding to the target legal document, a type abbreviation of the target legal document, a release year of the target legal document, and a release serial number of the target legal document.
3. The document number generation method of claim 2, wherein when the document number template includes a publishing authority of the target legal document, executing a preset content extraction rule corresponding to the publishing authority of the target legal document to obtain target content corresponding to the content item to be filled, comprises:
determining a target government and legal institution to which the user belongs;
determining the target case type of the case recorded in the target legal document;
determining a target issuing authority corresponding to the target political and legal institution unit and the target case type according to preset corresponding relations among the political and legal institution unit, the case type and the issuing authority;
determining the target issuing authority as the target content of the target legal document's issuing authority to be filled in content item.
4. The document number generation method of claim 2, wherein when the document number template includes a case handling department corresponding to the target legal document, executing a preset content extraction rule corresponding to the case handling department corresponding to the target legal document to obtain target content corresponding to the content item to be filled, comprises:
determining the target case type of the case recorded in the target legal document;
if the target case type belongs to a preset special case type, obtaining a type abbreviation of the target case type, and determining the type abbreviation as target content of a content item to be filled of a case handling department corresponding to the target legal document;
and if the target case type does not belong to the preset special case type, determining a department to which the user belongs for short, and determining the department for short as the target content of the content item to be filled, namely the case handling department corresponding to the target legal document.
5. The document number generation method according to claim 3 or 4, wherein the determining a target case type of the case described in the target legal document comprises:
obtaining case material content associated with the target legal document;
and performing semantic analysis on the case material content to determine the target case type of the case.
6. The document number generation method of claim 2, wherein when the document number template includes the type abbreviation of the target legal document, executing a preset content extraction rule corresponding to the type abbreviation of the target legal document to obtain target content corresponding to the content item to be filled, comprises:
obtaining the type name of the target legal document;
performing word segmentation operation on the type names to obtain a plurality of type name word segments;
respectively corresponding abbreviation of each type name participle;
and determining the combination of the short names as the target content of the target legal document with the type short name of the content item to be filled.
7. A document number generation device, comprising:
the receiving module is used for receiving a request for generating a document number for a target legal document sent by a user;
the system comprises a template acquisition module, a document number template and a content filling module, wherein the template acquisition module is used for acquiring the document number template with a preset format, and the document number template comprises one or more content items to be filled;
the extraction module is used for executing a preset content extraction rule corresponding to the content item to be filled so as to obtain target content corresponding to the content item to be filled;
and the generation module is used for filling the target content into the content item to be filled corresponding to the target content in the document number template so as to generate the document number of the target legal document.
8. The document number generating apparatus according to claim 7, wherein the document number template obtained by the template obtaining module includes at least one of a publishing authority of the target legal document, a case handling department corresponding to the target legal document, a type abbreviation of the target legal document, a publishing year of the target legal document, and a sending serial number of the target legal document.
9. A storage medium having a program stored thereon, wherein the program, when executed by a processor, implements the document number generation method according to any one of claims 1 to 6.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory to execute the document number generation method of any one of claims 1-6.
CN201910900075.8A 2019-09-23 2019-09-23 Document number generation method and related device Pending CN112540964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910900075.8A CN112540964A (en) 2019-09-23 2019-09-23 Document number generation method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910900075.8A CN112540964A (en) 2019-09-23 2019-09-23 Document number generation method and related device

Publications (1)

Publication Number Publication Date
CN112540964A true CN112540964A (en) 2021-03-23

Family

ID=75013061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910900075.8A Pending CN112540964A (en) 2019-09-23 2019-09-23 Document number generation method and related device

Country Status (1)

Country Link
CN (1) CN112540964A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339258A1 (en) * 2012-06-14 2013-12-19 International Business Machines Corporation Legal notice creation
CN103729426A (en) * 2013-12-25 2014-04-16 南威软件股份有限公司 Automatic serial number generator
CN106933808A (en) * 2017-03-20 2017-07-07 百度在线网络技术(北京)有限公司 Article title generation method, device, equipment and medium based on artificial intelligence
CN108009299A (en) * 2017-12-28 2018-05-08 北京市律典通科技有限公司 Law tries method and device for business processing
CN110096689A (en) * 2019-05-17 2019-08-06 北京市律典通科技有限公司 Template type legal documents information fill method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339258A1 (en) * 2012-06-14 2013-12-19 International Business Machines Corporation Legal notice creation
CN103729426A (en) * 2013-12-25 2014-04-16 南威软件股份有限公司 Automatic serial number generator
CN106933808A (en) * 2017-03-20 2017-07-07 百度在线网络技术(北京)有限公司 Article title generation method, device, equipment and medium based on artificial intelligence
CN108009299A (en) * 2017-12-28 2018-05-08 北京市律典通科技有限公司 Law tries method and device for business processing
CN110096689A (en) * 2019-05-17 2019-08-06 北京市律典通科技有限公司 Template type legal documents information fill method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
范海玉等: "法律文书实务教程", 中国民主法制出版社, pages: 014 *

Similar Documents

Publication Publication Date Title
CN107230008B (en) Risk information output and risk information construction method and device
CN109815742B (en) Data desensitization method and device
CN109784922B (en) Electronic contract signing method, electronic contract signing device, computer equipment and storage medium
CN110490721B (en) Financial voucher generating method and related product
US20210049711A1 (en) Method of automatically transmitting data information and device of automatically transmitting data information
CN111091350A (en) Method, device and equipment for auditing and processing service data and storage medium
CN111815420B (en) Matching method, device and equipment based on trusted asset data
CN112819617B (en) Data uplink method and device, electronic equipment and storage medium
EP3281109B1 (en) Methods for securely processing non-public, personal health information having handwritten data
CN108427667B (en) Legal document segmentation method and device
CN112540964A (en) Document number generation method and related device
CN110990889A (en) Method, equipment and medium based on block chain notarization prenuptial property
CN112329814B (en) Invoice data processing method and equipment
CN110851431B (en) Data processing method and device for data center station
CN112508472A (en) Method and system for viewing order information of same account by multiple persons
CN107784478B (en) Method and device for processing administrative institution information
CN113239381A (en) Data security encryption method
CN111263351A (en) Service processing method, service processing device, electronic device and storage medium
CN112650864A (en) Data processing method and device, electronic equipment and storage medium
CN112581322A (en) Method for processing referee document and related device
CN112732948B (en) Identity verification method, device and storage medium
WO2021098797A1 (en) Method of managing documents, user equipment, and non-transitory
CN115526704A (en) Loan management method and system based on block chain
CN112835902A (en) Data asset identification and use method and equipment
CN109543150B (en) Method and device for processing court trial notes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination