CN106815256A - Set up the method and device of laws and regulations bar fund incidence relation - Google Patents

Set up the method and device of laws and regulations bar fund incidence relation Download PDF

Info

Publication number
CN106815256A
CN106815256A CN201510867554.6A CN201510867554A CN106815256A CN 106815256 A CN106815256 A CN 106815256A CN 201510867554 A CN201510867554 A CN 201510867554A CN 106815256 A CN106815256 A CN 106815256A
Authority
CN
China
Prior art keywords
money
regulations
laws
preset
bar
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
CN201510867554.6A
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 CN201510867554.6A priority Critical patent/CN106815256A/en
Publication of CN106815256A publication Critical patent/CN106815256A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of method and device for setting up laws and regulations bar fund incidence relation, it is related to Computer Applied Technology field, main purpose is the speed that improve law in retrieval laws and regulations, and the efficiency of law is obtained so as to improve.Technical scheme includes:The bar fund order of laws and regulations is stored in preset array;Laws and regulations first rule fund and the last item bar fund storage location respectively in preset array are determined according to laws and regulations mark;Preset array is traveled through from the corresponding storage location of the first rule fund to the corresponding storage location of the last item bar fund based on preset matching rule, and determines volume, the incidence relation between chapter, section, bar, money in bar fund;Wherein, preset matching rule for matching bar fund in volumes, chapter, section, bar, the matched rule of money, and with bar fund in volume, chapter, section, bar, money one-to-one corresponding;Incidence relation is preserved.The present invention is applied in the retrieving to laws and regulations.

Description

Method and device for establishing incidence relation of law and regulation clauses and clauses
Technical Field
The invention relates to the technical field of computer application, in particular to a method and a device for establishing an incidence relation of law and regulation clauses and clauses.
Background
Along with the improvement of civilization and science and technology of society, people pay more and more attention to law and regulation, and the law and regulation is an important ring for law and regulation construction. At present, nearly one million legal regulations are issued, including tens of millions of laws and regulations, and with the increase of the legal regulations, the demand of people for obtaining the laws and regulations is also increasing.
At present, the specific way to obtain the laws and regulations is as follows: and searching the whole legal regulation where the legal provision is located through a legal regulation searching system, and searching the corresponding legal provision in a manual searching mode after the legal regulation is obtained. The retrieval of laws and regulations generally focuses on the specific content of the laws and regulations in the laws and regulations, and the retrieval granularity in the existing laws and regulations retrieval system is generally the retrieval of the whole laws and regulations, for example, if smaller granularity is required to be retrieved, for example, retrieving a certain law in laws and regulations consumes longer manual search time, resulting in slower speed of retrieving the laws and regulations in the laws and regulations and reducing the efficiency of obtaining the laws and regulations.
Disclosure of Invention
In view of this, the method and the device for establishing the incidence relation of the law and regulation clauses and clauses provided by the invention improve the speed of retrieving the law and regulation clauses in the law and regulation, thereby improving the efficiency of acquiring the law and regulation clauses.
In order to solve the above problems, the present invention mainly provides the following technical solutions:
in one aspect, the present invention provides a method for establishing an incidence relation of a legal and legal slip, comprising:
storing the sequence of clauses and clauses of the laws and regulations into a preset array, wherein the clauses and clauses are corresponding edits, chapters, sections, clauses and money in the laws and regulations;
determining the storage positions of the first and last items of the laws and regulations in the preset array according to the laws and regulations identification; wherein the legal regulation mark is the only mark information of the legal regulation;
traversing the preset array from the storage position corresponding to the first entry to the storage position corresponding to the last entry based on a preset matching rule, and determining the incidence relation among the edition, the seal, the section, the bar and the money in the entries; the preset matching rules are matching rules for matching the edition, the chapter, the section, the bar and the money in the bar money and correspond to the edition, the chapter, the section, the bar and the money in the bar money one by one;
and storing the association relation.
In another aspect, the present invention further provides a device for establishing an association relationship between legal and legal provisions, the device comprising:
the storage unit is used for storing the sequence of the clauses and the clauses of the laws and regulations into a preset array, wherein the clauses and the clauses are corresponding plaiting, chaptering, sections, clauses and money in the laws and regulations;
the first determining unit is used for determining the storage positions of the first and the last items of the laws and regulations in the preset array according to the laws and regulations identification; wherein the legal regulation mark is the only mark information of the legal regulation;
the traversing unit is used for traversing the preset array from the storage position corresponding to the first money to the storage position corresponding to the last money based on a preset matching rule; the preset matching rules are matching rules for matching the edition, the chapter, the section, the bar and the money in the bar money and correspond to the edition, the chapter, the section, the bar and the money in the bar money one by one;
the second determining unit is used for determining the incidence relation among the edition, the seal, the section, the bar and the money in the bar money after the traversing unit traverses the preset array;
a storage unit, configured to store the association relationship determined by the second determining unit.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
the invention provides a method and a device for establishing incidence relation of law and regulation clauses, wherein the clauses and clauses of the law and regulation are sequentially stored in a preset array, the clauses are corresponding edition, chapter, section, bar and money in the law and regulation, the storage positions of a first clause and a last clause of the law and regulation in the preset array are determined according to law and regulation marks, the preset array is traversed from the position corresponding to the first clause to the storage position corresponding to the last clause based on a preset matching rule, the incidence relation among the edition, chapter, section, bar and money in the clauses is determined, and the incidence relation is stored; compared with the prior art, the method and the device have the advantages that the incidence relation among the codes, the chapters, the sections, the bars and the money is established through analyzing and processing the laws and regulations, so that when a user inquires the laws and regulations of the laws and regulations, the specific contents of the laws and regulations can be quickly positioned, and the retrieval efficiency of acquiring the laws and regulations is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a method for establishing an association relationship between legal and legal provisions according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a preset array provided by an embodiment of the present invention;
FIG. 3 is a flow chart of another method for establishing an association relationship between legal and legal provisions provided by an embodiment of the present invention;
FIG. 4 is a block diagram illustrating an apparatus for establishing an association relationship between terms of laws and regulations according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating another apparatus for establishing an association relationship between legal and legal provisions according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a method for establishing an incidence relation of a legal and legal clause and a fund, as shown in figure 1, the method comprises the following steps:
101. and storing the sequence of the clauses and the clauses of the laws and regulations into a preset array.
Generally, a compilation, a chapter, a section, a bar and a money in a legal rule correspond to a paragraph respectively, in the embodiment of the invention, a clause item of the legal rule is analyzed by taking the paragraph as a unit, and the clause item is sequentially stored in a preset array by taking the paragraph as a unit, wherein the paragraphs correspond to the clause item one by one, namely one paragraph is a money; the preset array comprises N rows, N is a positive integer, and the money is corresponding to a edition, a chapter, a section, a bar and a money in laws and regulations.
When the clause items of the laws and regulations are stored in the preset array, the clauses and the clauses are stored by taking paragraphs as units, each paragraph corresponds to one storage position in the preset array, as shown in fig. 2, and fig. 2 shows a schematic diagram of the preset array provided by the embodiment of the invention. Storing laws and regulations in sequence in a preset array, wherein S1 is a corresponding storage position compiled in the laws and regulations, and the storage position is a storage position corresponding to a first clause of money of the laws and regulations; s2 is the storage position … … S n corresponding to the chapter in the law and regulation, wherein n is a positive integer. Fig. 2 is only an exemplary embodiment, and the embodiment of the present invention does not limit the number of rows in the preset array and the number of stored money items in each row.
Illustratively, assume that the law is the "patent laws of the people's republic of china," the contents of which include: "Chapter one general rule; the first one is to protect the legal rights and interests of the patentees, encourage the invention creation, promote the application of the invention creation, improve the innovation capability, promote the scientific and technical progress and the economic and social development and establish the law. The invention and creation called by the second invention refer to invention, utility model and appearance design. The invention relates to a new technical scheme for products, methods or improvements thereof. Utility model refers to … …. "to be explained, the said compilation refers to the patent Law of the people's republic of China; the chapter refers to the first chapter general rule; the strips are the first strip and the second strip; the first invention is the invention, the utility model and the appearance design. The above is merely an exemplary example, and the specific content of the legal and legal regulations is not limited in the embodiment of the present invention, for example, the following may also be included: the national criminal law of the people's republic of China, the labor law of the people's republic of China, and the like.
102. And determining the storage positions of the first and the last items of the laws and regulations in the preset array according to the laws and regulations identification.
In the preset array, a plurality of laws and regulations are stored in sequence, different laws and regulations correspond to different laws and regulations identifiers, and the laws and regulations identifiers are unique identification information of the laws and regulations. When the storage position of the first money of the law and regulation in the preset array and the storage position of the last money of the law and regulation in the preset array are determined, determining according to the law and regulation identification; if the law and regulation identification of the law and regulation 1 is FG-1 and the law and regulation identification of the law and regulation 2 is FG-2, when the storage positions of the first entry and the last entry of the law and regulation 1 in the preset array are determined, the first entry corresponding to the FG-1 is found to be the first entry of the law and regulation, and then the last entry corresponding to the FG-2 and the FG-2 is found to be the content of the law and regulation 1.
It should be noted that, in this step, the storage positions of the first entry and the last entry in the preset array of the legal rules are determined according to the legal rule identifications, so as to distinguish different legal rules in the preset array. Meanwhile, if the legal regulations include accessories, the legal regulations and the accessories need to be distinguished.
103. Traversing the preset array from the storage position corresponding to the first entry to the storage position corresponding to the last entry based on a preset matching rule, and determining the association relationship among the edition, the seal, the section, the bar and the money in the entries.
In the embodiment of the invention, the preset matching rule is a matching rule for matching the edition, chapter, section, bar and money in the money item, and corresponds to the edition, chapter, section, bar and money in the money item one by one. Traversing from a storage position corresponding to a first money item when traversing the money items in the preset array based on a preset matching rule; the preset matching rules are respectively corresponding to a set of matching rules, and if the item of the item is matched with any one set of matching rules in the preset matching rules, the item of the item can be determined to belong to any one of the set of matching rules. And sequentially matching all the money items in the preset array by using the same matching mode, determining which one of the clause items belongs to the edition, the chapter, the section, the bar and the money based on a preset matching rule, and confirming the association relationship between the money item and the previous money item.
In the embodiment of the invention, the association relationship among the editing, chapter, section, bar and money in the money is the parent-child relationship among the editing, chapter, section, bar and money in the money; and the parent-child relationship levels corresponding to the edition, chapter, section, bar and section in the laws and regulations are sequentially from high to low. That is, the parent-child relationship level between the edition and the chapter is the highest, the parent-child relationship level between the chapter and the section is the next, the parent-child relationship level between the section and the bar is the third, and the parent-child relationship level between the bar and the section is the lowest.
It should be noted that, because the laws and regulations belong to character strings, the preset matching rule is usually a regular matching rule based on the preset matching rule, and the preset matching rule is not limited in the embodiment of the present invention. .
104. And storing the association relation.
And storing the association relation between the editing, the chapter, the section, the bar and the money determined in the step 103 into a database.
The method for establishing the incidence relation of the clauses and the clauses of the legal regulation provided by the embodiment of the invention stores the sequence of the clauses and the clauses of the legal regulation into the preset array, wherein the clauses are corresponding edition, chapter, section, bar and money in the legal regulation, the storage positions of the first clause and the last clause of the legal regulation in the preset array are determined according to the legal regulation identification, the preset array is traversed from the position corresponding to the first clause to the storage position corresponding to the last clause based on the preset matching rule, the incidence relation among the edition, chapter, section, bar and money in the clauses is determined, and the incidence relation is stored; compared with the prior art, the embodiment of the invention establishes the incidence relation among the codes, the chapters, the sections, the bars and the money by analyzing and processing the laws and regulations so as to quickly locate the specific contents of the laws and regulations when a user inquires the laws and regulations of the laws and regulations and improve the retrieval efficiency of obtaining the laws and regulations.
Further, in the legal system, there are usually included some accessories or addenda, which may be other legal systems cited in the legal system according to the embodiment of the present invention, some table descriptions in the legal system according to the embodiment of the present invention, and so on. When the legal regulation according to the embodiment of the present invention includes an accessory, the legal regulation according to the embodiment of the present invention should be distinguished from the accessory, after the sequence of the clauses of the legal regulation is stored in a preset array, whether the legal regulation includes the accessory is judged according to the accessory identification information, if it is determined that the legal regulation does not include the accessory, the step 102 is executed to determine the storage positions of the first clause and the last clause of the legal regulation in the preset array according to the legal regulation identification; if the accessory is determined to be contained in the legal regulations, the accessory title of the accessory is obtained so as to determine whether the accessory refers to other legal regulations of the embodiment of the invention or some table descriptions in the legal regulations of the embodiment of the invention according to the accessory title. Wherein, the accessory identification is the only identification of the accessory contained in the law and regulation.
In particular implementation, if the legal regulations include accessories, the implementation of the embodiments of the present invention is generally represented by the following forms: xx accessories. When determining whether an accessory is included in the laws and regulations, the accessory matching rule may be determined based on an accessory matching rule, where the accessory matching rule is a regular expression matching rule, and specifically: and ^ (annex | appendix), traversing the preset array based on the annex matching rule, and determining whether the annex exists in the laws and regulations. The specific embodiments of the present invention are not intended to be limiting as to the manner in which the determination of the presence or absence of an accessory in a law or regulation may be made.
Further, after obtaining the accessory title of the accessory, determining whether the accessory title meets a preset legal and legal title rule, if determining that the accessory title does not meet the preset legal and legal title rule, indicating that the accessory is a table description in the legal and legal regulations of the embodiment of the invention, and determining the association relationship between the legal and legal regulations of the embodiment of the invention and the accessory; if the accessory title is determined to meet the preset law and regulation title rule, the accessory is indicated to be the other laws and regulations cited in the laws and regulations of the embodiment of the invention, the accessory is taken as a single law and regulations to execute the steps 101 to 104, and the association relationship between the laws and regulations of the embodiment of the invention and the accessory is determined, wherein the laws and regulations of the embodiment of the invention are father laws and regulations, and the accessory is the cited laws and regulations, namely, the accessory is a child laws and regulations.
Further, the preset matching rule is a basis for determining the edition, chapter, section, bar and money in the bar money, and before traversing the preset array from the first item to the last item of the bar item based on the preset matching rule, the preset matching rule is generated according to the feature keywords of the bar item corresponding to the edition, chapter, section, bar and money, and the preset matching rule includes: a first matching rule, a second matching rule, a third matching rule, a fourth matching rule and a fifth matching rule; wherein, the first matching rule is a matching rule corresponding to the law and regulation; the second matching rule is a matching rule corresponding to the chapter in the laws and regulations; the third matching rule is a matching rule corresponding to the legal regulation middle section; the fourth matching rule is a matching rule corresponding to the legal regulation clause; and the fifth matching rule is a matching rule corresponding to the money in the law and regulation.
In the embodiment of the invention, the characteristic keywords of the clauses and subclauses corresponding to the editing, the chapter, the section, the clause and the clause are respectively as follows: the item is a part of the item, and the item is a part of the item. Wherein, the preset matching rule includes but is not limited to the following contents, for example: compiling a corresponding first preset matching rule as ^ th.; the second preset matching rule corresponding to the chapter is ^ th. The third preset matching rule corresponding to the section is ^ th ^ section; the fourth preset matching rule corresponding to the bar is ^ th. the bar; the fifth preset matching rule corresponding to the pattern is ^ th. Wherein, if the money is: the second XXX determines that the preset matching rule corresponding to the bar is ^ th ^ x bar matching, and then determines that the item is the bar.
Further, determining the association relationship among the editing, chapter, section, bar and money in the bar money comprises: and acquiring the money from a preset array, matching the money with a preset matching rule, and determining the association relation among the editing, the seal, the section, the bar and the money in the money. In the preset array, each storage space stores a paragraph of laws and regulations, the paragraph is one of a compilation, a chapter, a section, a bar and a money, and it is assumed that in the embodiment of the present invention, the current paragraph where the clause items acquired from the preset array are located is i. And matching the obtained current paragraph i with the current paragraph i by using five matching rules in the preset matching rules, determining the matching rules matched with the current paragraph i from the five matching rules, determining the current paragraph i as a clause item, determining the clause item as a father of the incidence relation among the editing, the chapter, the section, the bar and the money, and circularly executing the step of obtaining the next paragraph of the current paragraph i in the preset array until obtaining the last bar of the legal regulation in the preset array.
Further, in order to save the storage space in the preset array and better resolve the legal regulation, the invalid marks in the legal regulation are filtered before the clause items of the legal regulation are sequentially stored in the preset array, wherein the invalid marks comprise line feed characters, blank spaces and the like.
Further, in order to more clearly illustrate the implementation method for establishing an incidence relation of a legal and legal provision clause according to the embodiment of the present invention, a method for establishing an incidence relation of a legal and legal provision clause is summarized as follows, as shown in fig. 3, and the method includes:
301. and filtering invalid marks in the law and regulation, and dividing the law and regulation into paragraphs.
The method comprises the following steps of establishing a preprocessing stage of the incidence relation of the clauses and the clauses of the laws and regulations, wherein the preprocessing stage comprises the steps of filtering various invalid marks in the laws and regulations and generating a preset matching rule according to the corresponding feature keywords of the editing, the chapter, the section, the clause and the clause in the laws and regulations.
302. And storing the paragraph sequence of the laws and regulations into a preset array.
Illustratively, it is assumed that a paragraph of the legal regulation is n, the first paragraph is a first entry istart, a storage location of the istart in the preset array is S [1] shown in fig. 2, the nth paragraph is a last entry iend, the iend is a storage location in the preset array is S [ n ] shown in fig. 2, and the current paragraph is i, that is, the entry in the embodiment of the present invention is a current paragraph i, where n is a positive integer, and i = istart & & i < ═ iend.
303. And judging whether the laws and regulations contain the accessories or not according to the accessory identification.
If so, go to step 304; if no attachment is included, go to step 305.
In this step, it is determined whether the current paragraph i satisfies i > -istart & & i < > iend.
304. An attachment title for the attachment is obtained.
Step 306 is performed sequentially.
305. And determining the storage positions of the first and the last items of the laws and regulations in the preset array according to the laws and regulations marks.
Step 308 is performed sequentially.
306. Determining whether the accessory title complies with preset legal title rules.
If the title rule of the preset laws and regulations is determined to be met, executing step 307; if it is determined that the preset legal title rule is not met, step 308 is executed.
In this step, when it is determined that the accessory title meets the law and regulation title rule, the accessory is required to be used as a separate law and regulation to establish the relation of the law and regulation clauses and subclauses.
307. It is determined whether the attachment needs to be parsed.
If yes, go to step 302; if it is determined that it is not needed, step 308 is performed.
308. An association between the laws and regulations and the accessories is determined and step 311 is performed.
Determining the relationship between the laws and regulations and the accessories in the embodiment of the invention is as follows: the laws and regulations in the embodiment of the invention are the laws and regulations of the father of the accessory; the accessories are sub-laws and regulations of the laws and regulations described in the embodiment of the invention.
309. And acquiring five matching rules in the preset matching rules, and respectively matching the five matching rules with the current paragraph i.
In this step, five matching rules included in the preset rules are sequentially matched with the current paragraph i. If so, go to step 310; if not, go to step 302.
310. And determining the current paragraph i as a clause item, and determining the association relationship among the editing, the chapter, the section, the bar and the money.
In this step, if the current paragraph i matches the matching rule corresponding to the chapter, it is determined that the current paragraph i is the chapter, and if the parent of the current paragraph i is the ifather, the current paragraph i is updated to the ifather; if the current paragraph i is matched with the matching rule corresponding to the section, determining that the current paragraph i is the section, and because the association relationship between the section and the parent-child is the minimum, the ifather cannot be updated based on the current paragraph i; thus, since the ifather is not updated at this time, the parent of the current paragraph i can be determined.
311. And storing the association relation.
It should be noted that details related to steps 301 through 311 are not repeated in the embodiments of the present invention, and please refer to the above detailed description.
According to the foregoing method embodiments, an apparatus embodiment is provided below, which corresponds to the foregoing method embodiments, and for convenience of reading, details of the foregoing method embodiments are not repeated in this apparatus embodiment, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents of the foregoing method embodiments.
Further, an embodiment of the present invention provides an apparatus for establishing an association relationship between legal and legal provisions, as shown in fig. 4, the apparatus includes:
the storage unit 41 is used for storing the sequence of the clauses and the clauses of the laws and regulations into a preset array, wherein the clauses and the clauses are corresponding plaiting, sealing, section, strip and money in the laws and regulations;
a first determining unit 42, configured to determine, according to a legal regulation identifier, storage positions of a first entry and a last entry of the legal regulation in the preset array respectively; wherein the legal regulation mark is the only mark information of the legal regulation;
a traversal unit 43, configured to traverse the preset array from the storage location corresponding to the first entry to the storage location corresponding to the last entry based on a preset matching rule; the preset matching rules are matching rules for matching the edition, the chapter, the section, the bar and the money in the bar money and correspond to the edition, the chapter, the section, the bar and the money in the bar money one by one;
the second determining unit 44 is configured to determine, after the traversing unit 43 traverses the preset array, an association relationship between a compilation, a chapter, a section, a bar, and a money in the money item;
a saving unit 45, configured to save the association relationship determined by the second determining unit 44.
Further, as shown in fig. 5, the apparatus further includes:
a judging unit 46, configured to judge whether the law and regulation includes an accessory according to an accessory identifier after the storage unit 41 stores the order of the clause items of the law and regulation into a preset array; wherein the accessory identification is a unique identification of the accessory contained in the legal and legal regulations;
an obtaining unit 47 configured to obtain an accessory title of the accessory when the judging unit 46 determines that the accessory is included in the law and regulation;
the first determining unit 42 is further configured to determine, according to the legal regulation identifier, storage locations of the first and last items of the legal regulation in the preset array when the determining unit 46 determines that the accessory is not included in the legal regulation.
Further, as shown in fig. 5, the apparatus includes:
a third determination unit 48 configured to determine whether or not the accessory title complies with a preset law and regulation title rule after the acquisition unit 47 acquires the accessory title of the accessory;
an ignoring unit 49 configured to ignore the accessory when the third determining unit 48 determines that the accessory title does not comply with a preset law and regulation title rule;
a fourth determining unit 410, configured to determine an association relationship between the legal regulation and the accessory when the third determining unit 48 determines that the accessory title complies with a preset legal regulation title rule.
Further, as shown in fig. 5, the apparatus further includes:
the generating unit 411 is configured to generate a preset matching rule according to the feature keywords corresponding to the compiling, chapter, section, bar and money before the traversing unit 43 traverses the preset array from the first to the last of the entry based on the preset matching rule, where the preset matching rule includes a first matching rule, a second matching rule, a third matching rule, a fourth matching rule and a fifth matching rule; wherein,
the first matching rule is a corresponding matching rule compiled in the laws and regulations;
the second matching rule is a matching rule corresponding to the chapter in the laws and regulations;
the third matching rule is a matching rule corresponding to the legal regulation middle section;
the fourth matching rule is a matching rule corresponding to the legal regulation clause;
and the fifth matching rule is a matching rule corresponding to the money in the law and regulation.
Further, as shown in fig. 5, the second determining unit 44 includes:
the obtaining module 441 is configured to obtain the money from the preset array;
a matching module 442, configured to match the preset matching rule with the clause item;
a determining module 443, configured to determine an association relationship between a compilation, a chapter, a section, a bar, and a money in the slip after the matching module 442 matches the preset matching rule with the slip; and repeating the step of obtaining the clause item from the preset array until the last clause item is obtained.
Further, as shown in fig. 5, the matching module 442 includes:
the matching sub-module 4421 is configured to match five matching rules included in the preset matching rule with the money;
a first determining sub-module 4422, configured to determine a matching rule matching the clause item from the five matching rules;
the second determining submodule 4423 is configured to determine, according to the determined matching rule, an association relationship between a compilation, a chapter, a section, a bar, and a money in the bar money.
Further, as shown in fig. 5, the apparatus further includes:
a filtering unit 412, configured to filter the invalid flag in the law and regulation before the storing unit 41 stores the order of the clause items of the law and regulation into a preset array; wherein the invalid mark comprises a line feed character and a space.
Further, the association relationship among the editing, chapter, section, bar and money in the money is the parent-child relationship among the editing, chapter, section, bar and money in the money; and the parent-child relationship levels corresponding to the edition, chapter, section, bar and section in the laws and regulations are sequentially from high to low.
The device for establishing the incidence relation of the law and regulation clauses stores the clause sequence of the law and regulation into the preset array, wherein the clause is the corresponding edition, chapter, section, clause and clause in the law and regulation, the storage positions of the first clause and the last clause in the preset array of the law and regulation are determined according to the law and regulation identification, the preset array is traversed from the position corresponding to the first clause to the storage position corresponding to the last clause based on the preset matching rule, the incidence relation among the edition, chapter, section, clause and clause in the clause is determined, and the incidence relation is stored; compared with the prior art, the embodiment of the invention establishes the incidence relation among the codes, the chapters, the sections, the bars and the money by analyzing and processing the laws and regulations so as to quickly locate the specific contents of the laws and regulations when a user inquires the laws and regulations of the laws and regulations and improve the retrieval efficiency of obtaining the laws and regulations.
The device for establishing the incidence relation of the legal and legal provisions and the fund comprises a processor and a memory, wherein the storage unit, the first determining unit, the traversing unit, the second determining unit, the storing unit and the like are 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 speed of retrieving the legal provision in the laws and regulations is improved by adjusting the kernel parameters, so that the efficiency of obtaining the legal provision is improved.
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 present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: storing the sequence of clauses and clauses of the laws and regulations into a preset array, wherein the clauses and clauses are corresponding edits, chapters, sections, clauses and money in the laws and regulations; determining the storage positions of the first and last items of the laws and regulations in the preset array according to the laws and regulations identification; wherein the legal regulation mark is the only mark information of the legal regulation; traversing the preset array from the storage position corresponding to the first entry to the storage position corresponding to the last entry based on a preset matching rule, and determining the incidence relation among the edition, the seal, the section, the bar and the money in the entries; the preset matching rules are matching rules for matching the edition, the chapter, the section, the bar and the money in the bar money and correspond to the edition, the chapter, the section, the bar and the money in the bar money one by one; and storing the association relation.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). 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 application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A method for establishing an incidence relation of legal and legal clauses and clauses is characterized by comprising the following steps:
storing the sequence of clauses and clauses of the laws and regulations into a preset array, wherein the clauses and clauses are corresponding edits, chapters, sections, clauses and money in the laws and regulations;
determining the storage positions of the first and last items of the laws and regulations in the preset array according to the laws and regulations identification; wherein the legal regulation mark is the only mark information of the legal regulation;
traversing the preset array from the storage position corresponding to the first entry to the storage position corresponding to the last entry based on a preset matching rule, and determining the incidence relation among the edition, the seal, the section, the bar and the money in the entries; the preset matching rules are matching rules for matching the edition, the chapter, the section, the bar and the money in the bar money and correspond to the edition, the chapter, the section, the bar and the money in the bar money one by one;
and storing the association relation.
2. The method of claim 1, wherein after storing the sequence of clause items of the laws and regulations in a preset array, the method further comprises:
judging whether the laws and regulations contain accessories or not according to the accessory identification; wherein the accessory identification is a unique identification of the accessory contained in the legal and legal regulations;
if the accessory is determined to be contained in the law and regulation, acquiring an accessory title of the accessory;
determining, according to the law and regulation identifier, storage positions of the first and last items of law and regulation in the preset array respectively includes:
and if the accessory is determined not to be included in the legal regulation, determining the storage positions of the first and the last items of the legal regulation in the preset array according to the legal regulation identification.
3. The method of claim 2, wherein after obtaining the attachment title for the attachment, the method comprises:
determining whether the accessory title meets preset legal title rules;
if the accessory title is determined not to accord with the preset law and regulation title rule, the accessory is ignored;
and if the accessory title is determined to accord with the preset law and regulation title rule, determining the association relationship between the law and regulation and the accessory.
4. The method according to any one of claims 1 to 3, wherein before traversing the preset array from the first to the last of the funds based on a preset matching rule, the method further comprises:
generating the preset matching rules according to the feature keywords corresponding to the editing, stamping, section, bar and money, wherein the preset matching rules comprise a first matching rule, a second matching rule, a third matching rule, a fourth matching rule and a fifth matching rule; wherein,
the first matching rule is a corresponding matching rule compiled in the laws and regulations;
the second matching rule is a matching rule corresponding to the chapter in the laws and regulations;
the third matching rule is a matching rule corresponding to the legal regulation middle section;
the fourth matching rule is a matching rule corresponding to the legal regulation clause;
and the fifth matching rule is a matching rule corresponding to the money in the law and regulation.
5. The method according to claim 4, wherein determining the association relationship between the programs, chapters, sections, bars and money in the money item comprises:
obtaining the money from the preset array;
matching the preset matching rule with the clause item, and determining the incidence relation among the edition, the chapter, the section, the bar and the money in the clause item; and repeating the step of obtaining the clause item from the preset array until the last clause item is obtained.
6. The method of claim 4, wherein matching the preset matching rule with the clause item and determining the association relationship between the programs, chapters, sections, bars and money in the clause item comprises:
matching five matching rules contained in the preset matching rules with the money items respectively;
determining a matching rule matched with the clause item from the five matching rules;
and determining the incidence relation among the editing, sealing, section, bar and money in the bar money according to the determined matching rule.
7. The method of claim 4, wherein prior to storing the sequence of terms of the laws and regulations in the preset array, the method further comprises:
filtering invalid marks in the laws and regulations; wherein the invalid mark comprises a line feed character and a space.
8. The method according to any one of claims 1-3 and 5-7, wherein the association relationship among the codings, chapters, sections, bars and money in the entry is a parent-child relationship among the codings, chapters, sections, bars and money in the entry; and the parent-child relationship levels corresponding to the edition, chapter, section, bar and section in the laws and regulations are sequentially from high to low.
9. An apparatus for establishing an association relationship between legal and legal provisions, comprising:
the storage unit is used for storing the sequence of the clauses and the clauses of the laws and regulations into a preset array, wherein the clauses and the clauses are corresponding plaiting, chaptering, sections, clauses and money in the laws and regulations;
the first determining unit is used for determining the storage positions of the first and the last items of the laws and regulations in the preset array according to the laws and regulations identification; wherein the legal regulation mark is the only mark information of the legal regulation;
the traversing unit is used for traversing the preset array from the storage position corresponding to the first money to the storage position corresponding to the last money based on a preset matching rule; the preset matching rules are matching rules for matching the edition, the chapter, the section, the bar and the money in the bar money and correspond to the edition, the chapter, the section, the bar and the money in the bar money one by one;
the second determining unit is used for determining the incidence relation among the edition, the seal, the section, the bar and the money in the bar money after the traversing unit traverses the preset array;
a storage unit, configured to store the association relationship determined by the second determining unit.
10. The apparatus of claim 9, further comprising:
the judging unit is used for judging whether the laws and regulations contain accessories or not according to the accessory identification after the storage unit stores the clause item sequence of the laws and regulations into a preset array; wherein the accessory identification is a unique identification of the accessory contained in the legal and legal regulations;
an acquisition unit configured to acquire an accessory title of the accessory when the judgment unit determines that the accessory is included in the laws and regulations;
the first determining unit is further configured to determine, according to the legal regulation identifier, storage locations of the first and last items of the legal regulation in the preset array when the determining unit determines that the accessory is not included in the legal regulation.
11. The apparatus of claim 10, wherein the apparatus comprises:
a third determination unit configured to determine whether or not the accessory title complies with a preset legal title rule after the acquisition unit acquires the accessory title of the accessory;
an ignoring unit configured to ignore the accessory when the third determining unit determines that the accessory title does not comply with a preset legal title rule;
a fourth determination unit configured to determine an association relationship between the laws and regulations and the accessory when the third determination unit determines that the accessory title conforms to a preset laws and regulations title rule.
12. The apparatus according to any one of claims 9-11, wherein the apparatus further comprises:
the generating unit is used for generating the preset matching rules according to the corresponding feature keywords of the editing, chapter, section, bar and money before the traversing unit traverses the preset array from the first item of the bar money to the last item of the bar money based on the preset matching rules, wherein the preset matching rules comprise a first matching rule, a second matching rule, a third matching rule, a fourth matching rule and a fifth matching rule; wherein,
the first matching rule is a corresponding matching rule compiled in the laws and regulations;
the second matching rule is a matching rule corresponding to the chapter in the laws and regulations;
the third matching rule is a matching rule corresponding to the legal regulation middle section;
the fourth matching rule is a matching rule corresponding to the legal regulation clause;
and the fifth matching rule is a matching rule corresponding to the money in the law and regulation.
CN201510867554.6A 2015-12-01 2015-12-01 Set up the method and device of laws and regulations bar fund incidence relation Pending CN106815256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510867554.6A CN106815256A (en) 2015-12-01 2015-12-01 Set up the method and device of laws and regulations bar fund incidence relation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510867554.6A CN106815256A (en) 2015-12-01 2015-12-01 Set up the method and device of laws and regulations bar fund incidence relation

Publications (1)

Publication Number Publication Date
CN106815256A true CN106815256A (en) 2017-06-09

Family

ID=59107859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510867554.6A Pending CN106815256A (en) 2015-12-01 2015-12-01 Set up the method and device of laws and regulations bar fund incidence relation

Country Status (1)

Country Link
CN (1) CN106815256A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108280172A (en) * 2018-01-20 2018-07-13 郑州幼儿师范高等专科学校 A kind of science of law inquiry system
CN108595415A (en) * 2018-03-26 2018-09-28 北京北大英华科技有限公司 A kind of law differentiation determination method, device and computer equipment, storage medium
CN109101512A (en) * 2017-06-21 2018-12-28 北京国双科技有限公司 The construction method of law databases, law data query method and device
CN109614453A (en) * 2018-12-14 2019-04-12 杭州法询信息科技有限公司 A kind of data storage, querying method and the device of regulatory information
CN109767135A (en) * 2019-01-17 2019-05-17 中国信息通信研究院 A kind of communication construction policing services system
CN112765939A (en) * 2021-02-04 2021-05-07 浪潮云信息技术股份公司 Policy and law and regulation analysis method and system based on regular expression matching algorithm
CN115374239A (en) * 2022-07-13 2022-11-22 北京中海住梦科技有限公司 Legal and legal analysis method and device, computer equipment and readable storage medium
CN116029262A (en) * 2023-02-17 2023-04-28 广东远景信息科技有限公司 Legal and legal code generation method, database construction method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6584459B1 (en) * 1998-10-08 2003-06-24 International Business Machines Corporation Database extender for storing, querying, and retrieving structured documents
CN101236579A (en) * 2008-02-20 2008-08-06 杭州创业软件股份有限公司 Dynamic structured electronic patient history
CN101464874A (en) * 2007-12-17 2009-06-24 金宝电子(上海)有限公司 Method for representing electronic dictionary catalog data by XML
CN101853252A (en) * 2009-04-02 2010-10-06 深圳市辰飞信息技术有限公司 Legal searching method and legal searching system
CN103488621A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Type setting method and system for laws and regulations
CN104008171A (en) * 2014-06-03 2014-08-27 中国科学院计算技术研究所 Legal database establishing method and legal retrieving service method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6584459B1 (en) * 1998-10-08 2003-06-24 International Business Machines Corporation Database extender for storing, querying, and retrieving structured documents
CN101464874A (en) * 2007-12-17 2009-06-24 金宝电子(上海)有限公司 Method for representing electronic dictionary catalog data by XML
CN101236579A (en) * 2008-02-20 2008-08-06 杭州创业软件股份有限公司 Dynamic structured electronic patient history
CN101853252A (en) * 2009-04-02 2010-10-06 深圳市辰飞信息技术有限公司 Legal searching method and legal searching system
CN103488621A (en) * 2013-09-24 2014-01-01 长沙裕邦软件开发有限公司 Type setting method and system for laws and regulations
CN104008171A (en) * 2014-06-03 2014-08-27 中国科学院计算技术研究所 Legal database establishing method and legal retrieving service method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101512A (en) * 2017-06-21 2018-12-28 北京国双科技有限公司 The construction method of law databases, law data query method and device
CN109101512B (en) * 2017-06-21 2021-05-28 北京国双科技有限公司 Construction method of legal database, legal data query method and device
CN108280172A (en) * 2018-01-20 2018-07-13 郑州幼儿师范高等专科学校 A kind of science of law inquiry system
CN108595415A (en) * 2018-03-26 2018-09-28 北京北大英华科技有限公司 A kind of law differentiation determination method, device and computer equipment, storage medium
CN108595415B (en) * 2018-03-26 2022-06-14 北京北大英华科技有限公司 Law differentiation judgment method and device, computer equipment and storage medium
CN109614453A (en) * 2018-12-14 2019-04-12 杭州法询信息科技有限公司 A kind of data storage, querying method and the device of regulatory information
CN109767135A (en) * 2019-01-17 2019-05-17 中国信息通信研究院 A kind of communication construction policing services system
CN112765939A (en) * 2021-02-04 2021-05-07 浪潮云信息技术股份公司 Policy and law and regulation analysis method and system based on regular expression matching algorithm
CN115374239A (en) * 2022-07-13 2022-11-22 北京中海住梦科技有限公司 Legal and legal analysis method and device, computer equipment and readable storage medium
CN116029262A (en) * 2023-02-17 2023-04-28 广东远景信息科技有限公司 Legal and legal code generation method, database construction method and device
CN116029262B (en) * 2023-02-17 2023-06-09 广东远景信息科技有限公司 Legal and legal code generation method, database construction method and device

Similar Documents

Publication Publication Date Title
CN106815256A (en) Set up the method and device of laws and regulations bar fund incidence relation
CN106649346B (en) Data repeatability checking method and device
CN103106199B (en) Text searching method and device
CN109597983B (en) Spelling error correction method and device
CN111324784A (en) Character string processing method and device
WO2018121153A1 (en) Written judgment retrieval method and device
CN105488068B (en) It searches for music and establishes the method and device of index, search result judgment method
CN107622080B (en) Data processing method and equipment
CN106708886B (en) Display method and device for in-site search words
CN106611044A (en) SQL optimization method and device
CN106610931B (en) Topic name extraction method and device
CN106980619B (en) Data query method and device
US11995059B2 (en) Database index and database query processing method, apparatus, and device
CN112328732A (en) Sensitive word detection method and device and sensitive word tree construction method and device
CN103955514A (en) Image feature indexing method based on Lucene inverted index
CN107451204B (en) Data query method, device and equipment
CN109101512B (en) Construction method of legal database, legal data query method and device
CN110019659B (en) Method and device for searching referee document
CN110019544B (en) Data query method and system
CN109558580B (en) Text analysis method and device
CN111125087A (en) Data storage method and device
CN108241622B (en) Query script generation method and device
CN112699637B (en) Paragraph type recognition method and system and document structure recognition method and system
CN106776654B (en) Data searching method and device
CN108241695B (en) Information processing method and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170609