Civil law article recommendation method based on two-stage class case matching

Through the two-stage similar case matching method, spectral clustering and Apriori algorithm are used to quickly find similar cases and recommend legal provisions, which solves the problem of difficulty in accurately recommending legal provisions in the existing technology and improves the efficiency of self-resolution of disputes and judicial adjudication. .

CN118568246AActive Publication Date: 2024-08-30DALIAN UNIV OF TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410649827.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-30
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

It is difficult to quickly and effectively find cases similar to new dispute scenarios from similar judgment cases with existing technology, and then make accurate recommendations on legal provisions, which affects the self-resolution of disputes and the efficiency of judicial judgment.

Method used

A two-stage similar case matching method is adopted. First, the cases are clustered through the spectral clustering algorithm, the case characteristic words are identified and synonymously expanded, the matching degree of the dispute scenario and the case is calculated, and the Apriori algorithm is combined with the Apriori algorithm to mine the association rules of the legal articles. Recommendations.

Benefits of technology

It can quickly and effectively find similar cases in a large number of cases, and make more accurate legal article recommendations based on similar cases. The method has strong interpretability and improves the efficiency of self-resolution of disputes and judicial judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568246A
    Figure CN118568246A
Patent Text Reader

Abstract

The invention discloses a civil law article recommendation method based on two-stage class case matching, and the method comprises the following steps: Step 1, dividing cases into case subsets by taking each civil judgment case reference law information as a feature; step 2, identifying feature words of each case subset, and performing synonymous expansion on the feature words; 3, the matching degree simg of the new civil dispute scene and the feature words of each case subset is calculated, and the case subset with the maximum simg value is selected; step 4: calculating the similarity between the new civil dispute scene and each case i in the case subset; 5, according to the law articles quoted by the cases in the similar case set, obtaining a preliminary recommendation result of the law articles suitable for the new civil dispute scene; and Step 6: correcting the Pnew to obtain a final law article recommendation result. According to the method, similar cases can be quickly and effectively found in a large number of cases, accurate law provision recommendation is carried out based on the similar cases, and the process of the method has high interpretability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent legal technology and case management, and relates to a civil law article recommendation method based on two-stage similar case matching. Background Art

[0002] In the context of smart justice and smart social governance, efficient resolution of civil disputes is of great value. Intelligently recommending applicable laws for new dispute scenarios can enhance the legal awareness of parties to civil disputes and encourage them to resolve civil disputes on their own. For some disputes that have entered the litigation trial stage, intelligent law recommendation can assist judicial personnel in making more efficient judgments.

[0003] Gaining experience from similar cases and assisting in new scenarios is a highly interpretable approach. How to quickly and effectively find cases similar to new dispute scenarios from these cases and how to more accurately recommend legal provisions based on similar cases are core issues to be resolved. Summary of the invention

[0004] Based on the technical problems existing in the background technology, the present invention proposes a civil law recommendation method based on two-stage case matching. new , follow the steps below to get the recommended results of applicable laws:

[0005] Step 1: Taking the legal information cited in each civil judgment case as a feature, a spectral clustering algorithm is used to cluster the cases, dividing a large number of cases into k case subsets;

[0006] Step 2: For each case subset g, use the TGF-IGF algorithm to identify the characteristic word KEY of each case subset g , and use the Word2Vec algorithm to perform synonym expansion on the feature words to obtain KEY_MORE g ;

[0007] Step 3: Calculate the new civil dispute scenario ak new The matching degree with each case subset feature word sim g , select the sim g The case subset AS with the largest value is used as the case set for subsequent similar case matching;

[0008] Step 4: Calculate the similarity sim(new,i) between the new civil dispute scenario and each case i in the case subset, and obtain the final similar case set AS based on the sim(new,i) value match ;

[0009] Step 5: Based on the similar case set ASmatch The legal provisions cited in the cases are used to obtain the preliminary recommendation results of applicable legal provisions for new civil dispute scenarios. new ;

[0010] Step 6: Use the Apriori algorithm to mine the legal reference association rule set R in AS, and use the association rule set to identify P new Make corrections and get the final legal recommendation result P new .

[0011] Furthermore, the step 1 is specifically as follows:

[0012] Step 1-1: Assume that the legal information cited in a case includes two parts: legal unit information and legal article information. Among them, "legal unit" is a modification of the concept of "law" with the purpose of dividing and representing laws with strong integration in a more fine-grained manner. The specific definition of "legal unit" is: regard each volume and chapter of the "Civil Code of the People's Republic of China" (hereinafter referred to as the "Civil Code") as a legal unit, and regard each other law as a whole as a legal unit. That is, for a certain law l, its corresponding legal unit l' is:

[0013]

[0014] Each legal unit is composed of several legal articles. Therefore, the legal unit cited in a case can be expressed as L = {l 1 ',l 2 ',...,l m '}, the cited law can be expressed as P = {p 1 ,p 2 ,...,p r ,p r+1 ,p r+2 ,...,p s ,...,p t+1 ,,p t+2 ,...,p y};

[0015] Step 1-2: Use the Jaccard coefficient to measure different cases a i and case a j The similarity between legal units and legal provisions J(L i ,L j ) and J(P i ,P j ),Right now:

[0016]

[0017]

[0018] On this basis, the overall similarity of the case J(a i ,a j ) can be expressed as:

[0019] J(a i ,a j )=α*J(L i ,L j )+β*J(P i ,P j )

[0020] Among them, α, β are coefficients, and α+β=1;

[0021] Step 1-3: Based on Jaccard similarity, the spectral clustering algorithm is used to perform the first stage clustering for the entire case set A.

[0022] At this time, we pay equal attention to the differences between legal units and laws in different cases, so we set α = 0.5 and β = 0.5, that is:

[0023] J(a i ,a j )=0.5*J(L i ,L j )+0.5*J(P i ,P j )

[0024] The whole set of cases is clustered according to the process of spectral clustering algorithm, and the silhouette coefficient is used as the evaluation index of clustering effect under different number of categories to divide the cases into k_1 first-level case subsets;

[0025] Step 1-4: For each case in the first-level case subset, the spectral clustering algorithm is used for the second stage clustering. At this time, the focus is on the differences in the laws of different cases, so α = 0.2, β = 0.8, that is:

[0026] J(a i ,a j )=0.2*J(L i ,L j )+0.8*J(P i ,P j )

[0027] According to the process of spectral clustering algorithm, the cases in the first-level case subset are clustered, and the silhouette coefficient is used as the evaluation index of clustering effect under different number of categories, and each first-level case subset is divided into k_2 second-level subsets. Therefore, for the full set of cases A, it is divided into k case subsets through two-stage clustering, that is:

[0028] A={AS 1 ,AS2 ,...,AS k}

[0029] Furthermore, the step Step 2 is specifically as follows:

[0030] Step 2-1: For each case, the plaintiff's claim and the facts found by the court are extracted through regular expressions, and the specific legal text cited is obtained based on the legal article number cited in the case and the public legal article data. That is, for each case, the plaintiff's claim, the facts found by the court and the cited legal article text are obtained. These three pieces of information can be used as the core text information of this case.

[0031] Step 2-2: Use the TGF-IGF algorithm to obtain the plaintiff's claim feature word KEY of case subset g g 1 . The TGF-IGF algorithm is a new algorithm proposed in the present invention to improve the existing TF-IDF algorithm. That is, for each word i in each category of cases, the final weight of the word in a certain category of cases is obtained by simultaneously measuring the frequency TGF (Term-Group Frequency) of the documents in which the word i appears in each category of cases, and the inverse document class frequency IGF (Inverse Group Frequency) of the word i in other categories of cases. Among them, for word i, its TGF value in the gth category of cases can be obtained by dividing the number of cases in each category of cases where the word i appears by the total number of cases of this category, and the calculation method is as follows:

[0032]

[0033] Among them, d ig is the number of cases where word i appears in the gth class, d g is the total number of cases in the gth category. The IGF value of word i is obtained by taking the inverse of the average of the proportion of cases in which the word appears in other categories and then taking the logarithm. The calculation method is as follows:

[0034]

[0035] Where N is the total number of case categories, N-1 represents the total number of case categories other than the g-th case, is the proportion of cases in which word i appears in a certain category of cases. In order to prevent the denominator from being 0, add 0.01 to the denominator of IGF. Based on the above content, the calculation formula of TGF-IGF can be obtained as follows:

[0036]

[0037] For the plaintiff's claims in the case subset g, the TGF-IGF algorithm is used to obtain the score of each word, and then the Top-N words are selected as the feature word set of this part;

[0038] Step 2-3: Use the TGF-IGF algorithm to obtain the legal fact feature word KEY of case subset g g 2 ;

[0039] Step 2-4: Use the TGF-IGF algorithm to obtain the KEY of the referenced legal text of case subset g g 3 ;

[0040] Step 2-5: Merge the three parts of words to obtain the final word set KEY g 3 ,Right now:

[0041]

[0042] Step 2-6: For the feature word set KEY g Each feature word key in gw , use the Word2Vec model to obtain the five most similar words to form an expanded word set about the feature word as KEY_MORE gw ,Right now:

[0043] KEY_MORE gw ={key gw ,key gw1 ,key gw2 ,...,key gw5}

[0044] Then the expanded word set of all feature words is:

[0045] KEY_MORE g ={KEY_MORE g1 ,KEY_MORE g2 ,...,KEY_MORE gn}

[0046] Furthermore, the step 3 is specifically as follows:

[0047] Step 3-1: For new civil dispute scenarios ak new After word segmentation and stop word removal, we get a new context word set KEY new ;

[0048] Step3-2: For each Calculate the new context word set KEYnew And the expanded feature word set KEY_MORE g First, calculate the key new The extended word set key_more for each feature word in the feature word set gw Similarity sim gw , the calculation formula is as follows:

[0049]

[0050] Among them, |KEY new ∩KE_Y MO g R w KE n Y ew The expanded word set KEY_MORE for each feature word gw The number of common words in

[0051] Step 3-3: On this basis, calculate the context word set KEY new The expanded word set KEY_MORE with all feature words g Similarity sim g , the specific calculation formula is as follows:

[0052]

[0053] The result is a new civil dispute scenario ak new and the case subset AS g The correlation of g The case subset with the largest value AS match_1 , as a data set for subsequent similar case matching.

[0054] Furthermore, the step 4 is specifically as follows:

[0055] Step 4-1: For the case subset AS match_1 Each case in a i , Roformer-Sim is used to measure the new input scenario in the plaintiff's lawsuit, the court's fact finding and case a i The text similarity of the corresponding parts sim 1 (new,i) and sim 2 (new,i), and obtain the similarity set SIM 1 (new) and SIM 2 (new);

[0056] Step 4-2: Based on the idea of ​​entropy weight method, calculate SIM 1 (new) and SIM 1(new) information entropy e 1 and e 2 , and then the weight w is obtained 1 and w 2 So case a new and a i The calculation formula of the similarity sim(new,i) is:

[0057] sim(new,i)=w 1 *sim 1 (new,i)+w 2 *sim 2 (new,i)

[0058] Step 4-3: Obtain a set of sim(new,i) through calculation, set the similarity threshold of the two-stage matching to θ, obtain all cases with sim(new,i) values ​​greater than or equal to θ, if the number of cases that meet the requirements exceeds 10, take the 10 cases with the highest sim(new,i) and include them in the final similar case set AS match ; If not exceeding, all will be included.

[0059] Furthermore, the step 5 is specifically as follows:

[0060] Step 5-1: AS match The cases in sim(new,i) are traversed in descending order: the first traversed case is as 1 , the set of laws cited is P 1 , then P 1 The recommendation index of all laws in is recorded as 1, and the laws are included in the recommendation set; the second traversal case is as 2 , the law cited is P 2 The recommendation index of the law is recorded as 0.9, and the law is included in the recommendation set, and the recommendation index of the same law is superimposed. And so on, the recommendation index decreases by 0.1 each time, but the minimum is not less than 0.1;

[0061] Step 5-2: After the traversal is completed, select the laws with a recommendation index greater than or equal to 2; if the number of laws that meet the requirements exceeds n, select the n laws with the highest recommendation index to form a preliminary set of recommended laws

[0062] Furthermore, the step 6 is specifically as follows:

[0063] Step 6-1: AS for case subset match_1 The referenced legal provisions in the set are used to obtain all legal provisions association rules r (sup r>=minsup and con r >=mincon), and construct a legal clause association rule set R;

[0064] Step 6-2: Sort the rules by confidence, traverse the rules in R, and if the legal clause in the rule antecedent is In the case of If there is a law in the latter item that is not in , add it to If the preceding article of the rule is not in If , this rule is ignored;

[0065] Step6-3: After the traversal is completed, statistics If the number of laws that meet the requirements exceeds n, then the n laws with the highest recommendation index are selected to form the final recommended set of laws P. new . At this point, the legal article recommendation process is complete.

[0066] The beneficial effects of the present invention are as follows:

[0067] The present invention can quickly and effectively find similar cases among a large number of cases, and make more accurate legal recommendations based on similar cases. The process of the method has strong explainability. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a schematic diagram of the steps of the civil law article recommendation method based on two-stage case matching of the present invention;

[0069] Figure 2 It is a flow chart of the civil law article recommendation method based on two-stage case matching of the present invention;

[0070] Figure 3 This is a structural diagram of a method and device for recommending civil law articles based on two-stage case-like matching according to the present invention;

[0071] Figure 4 It is a structural diagram of the civil law article recommendation method based on two-stage case matching of the present invention. DETAILED DESCRIPTION

[0072] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.

[0073] The method flow chart of the present invention is as follows:

[0074] like Figure 3As shown, the first embodiment of the present invention provides an application environment of a civil law recommendation system based on two-stage similar case matching, including a user terminal 10, a server terminal 20, and a legal case library 30. The user terminal 10 is used to make a legal article recommendation request to the server terminal; after receiving the request, the server terminal 20 executes a computer program to determine the recommended legal articles for similar cases by calculating the similarity between the user case and the case in the legal case library 30, and transmits the result to the user terminal 10.

[0075] like Figure 4 As shown, the second embodiment of the present invention provides a computer device, which specifically includes: a processor 1001, a memory 1002, a communication module 1003, an input unit 1004, an audio processor 1005, an output unit 1006, and a power supply 1007.

[0076] The computer device 1000 may include one or more processors 1001, such as one or more central processing units (CPUs) or graphics processing units (GPUs), or other general-purpose processors, application-specific integrated circuits, digital signal processors, etc. Each processing unit may implement one or more hardware threads. The relevant computer program is stored in the memory, and when the processor runs the computer program and related data in the memory, the various functions of the legal article recommendation device that integrates similar cases and legal article association rules in the present invention are realized.

[0077] The memory 1002 can be used to store any kind of information such as code, settings, data, etc., and is mainly divided into a data storage area and a program storage area (used to store related application programs such as image and sound playback functions). In the computer device 1000, the memory 1002 is coupled to the central processor 1001. The central processor 1001 can execute the program stored in the memory 1002 to complete operations such as information processing and / or storage.

[0078] The communication module 1003 is a transmitter / receiver 1003. The computer device 1000 may include one or more communication modules. The signal is sent and received via the antenna 1008, and data is exchanged with other components and devices through one or more communication links.

[0079] The input unit 1004 in the computer device 1000 is used to receive various inputs, and the output unit 1006 is used to present output results such as text and images.

[0080] The audio processor 1005 is coupled to the speaker 1009 for outputting audio, and is coupled to the microphone 1010 for inputting audio, thereby realizing a common telecommunication function.

[0081] Those skilled in the art can understand that the computer device 1000 shown in the second embodiment is only a part of the device components related to the present invention, and does not constitute a limitation on the computer device to which the present application scheme is applied. Those skilled in the art can select some of the components shown in the second embodiment for combination according to the specific hardware and software conditions, or add more components to expand the device.

[0082] In a specific embodiment, the memory 1002 may be a non-volatile memory, such as a read-only memory (ROM) or a flash memory; or a volatile memory, such as a random access memory (RAM). The memory 1002 mainly includes four functional modules: a buffer 1021, an application / function storage module 1022, a data storage module 1023, and a driver storage module 1024. The application / function storage module 1022 is used to store applications and function programs; the data storage module 1023 is used to store various data used by the computer device; and the driver storage module 1024 is used to store various drivers to execute various functions of the computer device.

[0083] The input unit 1004 may be a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, or a touch layer covering a display screen.

[0084] The output unit 1006 is mainly a display screen, which can be a liquid crystal display screen or an electronic ink display screen.

[0085] The present invention also provides a computer-readable storage medium. The computer program instructions are stored in the medium and can guide a computer or other processor to execute in a specific manner, so as to implement the method for recommending legal provisions based on the fusion of similar cases and legal provision association rules proposed by the present invention.

[0086] References to memory, storage, database or other media in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM) or a flash memory. The volatile memory may be a random access memory (RAM) or an external cache memory. It should be noted that RAM exists in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), etc. The technical features in the above embodiments may be combined arbitrarily. For the sake of brevity, not all possible combinations of technical features are described in detail. However, in the absence of contradictions, any combination of these technical features shall be deemed to be within the scope of this specification.

[0087] The above is only a specific method for implementing the present invention, but is not intended to limit the scope of protection of the present invention. Relevant technicians in this field can easily change or replace these embodiments after understanding the creative concept of the present invention, so the relevant modifications and variations of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A civil law recommendation method based on two-stage case matching, characterized in that: Here are the steps: Step 1: Taking the legal information cited in each civil judgment case as a feature, the spectral clustering algorithm is used to cluster the cases and divide the cases into k case subsets; Step 2: For each case subset g, use the TGF-IGF algorithm to identify the characteristic word KEY of each case subset g , and use the Word2Vec algorithm to perform synonym expansion on the feature words to obtain KEY_MORE g ; Step 3: Calculate the new civil dispute scenario ak new The matching degree with each case subset feature word sim g , select the sim g The case subset AS with the largest value is used as the case set for subsequent similar case matching; Step 4: Calculate the similarity sim(new,i) between the new civil dispute scenario and each case i in the case subset, and obtain the final similar case set AS based on the sim(new,i) value match ; Step 5: Based on the similar case set AS match The legal provisions cited in the cases are used to obtain preliminary recommendations on applicable legal provisions for new civil dispute scenarios. Step 6: Use the Apriori algorithm to mine the legal reference association rule set R in AS, and use the association rule set to Make corrections and get the final legal recommendation result P new .

2. A method for recommending civil law provisions based on two-stage case matching as claimed in claim 1, characterized in that: The step 1 is specifically as follows: Step 1-1: Assume that the legal information cited in a case includes two parts: legal unit information and legal article information. Among them, "legal unit" is a modification of the concept of "law". The specific definition of "legal unit" is: regard each volume and chapter of the Civil Code as a legal unit, and regard each other law as a legal unit; that is, for a certain law l, its corresponding legal unit l' is: Each legal unit is composed of several legal provisions; therefore, the legal unit cited in a case is represented by L = {l1',l2',...,l m '}, the cited law can be expressed as P = {p1, p2, ..., p r ,p r+1 ,p r+2 ,...,p s ,...,p t+1 ,,p t+2 ,...,p y }; Step 1-2: Use Jaccard coefficient to measure different cases a i and case a j The similarity between legal units and legal provisions J(L i ,L j ) and J(P i ,P j ),Right now: On this basis, the overall similarity of the case J(a i ,a j ) can be expressed as: J(a i ,a j )=α*J(L i ,L j )+β*J(P i ,P j ) Among them, α, β are coefficients, and α+β=1; Step 1-3: Based on Jaccard similarity, the spectral clustering algorithm is used to perform the first stage clustering for the case set A; At this time, we pay equal attention to the differences between legal units and laws in different cases, so we set α = 0.5 and β = 0.5, that is: J(a i ,has j )=0.5*J(L i ,L j )+0.5*J(P i ,P j ) The whole set of cases is clustered according to the process of spectral clustering algorithm, and the silhouette coefficient is used as the evaluation index of clustering effect under different number of categories to divide the cases into k_1 first-level case subsets; Step 1-4: For each case in the first-level case subset, the spectral clustering algorithm is used for the second stage clustering; at this time, the focus is on the differences in the laws of different cases, so α = 0.2, β = 0.8, that is: J(a i ,has j )=0.2*J(L i ,L j )+0.8*J(P i ,P j ) According to the process of spectral clustering algorithm, the cases in the first-level case subset are clustered, and the silhouette coefficient is used as the evaluation index of clustering effect under different number of categories. Each first-level case subset is divided into k_2 second-level subsets; thus, for the full set of cases A, it is divided into k case subsets through two-stage clustering, that is: A={AS1,AS2,...,AS k }。 3. A method for recommending civil law provisions based on two-stage case matching as claimed in claim 1 or 2, characterized in that: The step 2 is specifically as follows: Step 2-1: For each case, the plaintiff's claim and the facts found by the court are extracted through regular expressions. Based on the article number cited in the case and the public legal article data, the specific article text cited is obtained; Step 2-2: Use the TGF-IGF algorithm to obtain the plaintiff's claim feature word KEY of case subset g g 1 The TGF-IGF algorithm is to obtain the final weight of each word i in each category of cases by simultaneously measuring the frequency TGF (Term-Group Frequency) of documents in which word i appears in each category of cases, as well as the inverse document class frequency IGF (Inverse Group Frequency) of word i in other categories of cases; among them, for word i, its calculation method in the gth category of cases is as follows: Among them, d ig is the number of cases where word i appears in the gth class, d g is the total number of cases in the g-th category; the IGF value of word i is obtained by taking the inverse of the average value of the proportion of cases in which the word appears in other categories and then taking the logarithm, and the calculation method is as follows: Where N is the total number of case categories, N-1 represents the total number of case categories other than the g-th case, is the proportion of cases in which word i appears in a certain category of cases; the calculation formula of TGF-IGF is as follows: For the plaintiff's claims in the case subset g, the TGF-IGF algorithm is used to obtain the score of each word, and then the Top-N words are selected as the feature word set of this part; Step 2-3: Use the TGF-IGF algorithm to obtain the legal fact feature word KEY of case subset g g 2 ; Step 2-4: Use the TGF-IGF algorithm to obtain the KEY of the referenced legal text of case subset g g 3 ; Step 2-5: Merge the three parts of words to obtain the final word set KEY g 3 ,Right now: Step 2-6: For the feature word set KEY g Each feature word key in gw , use the Word2Vec model to obtain the five most similar words to form an expanded word set about the feature word as KEY_MORE gw ,Right now: KEY_MORE gw ={key gw ,key gw1 ,key gw2 ,...,key gw5 } Then the expanded word set of all feature words is: KEY_MORE g ={KEY_MORE g1 ,KEY_MORE g2 ,...,KEY_MORE gn }。 4. A method for recommending civil law provisions based on two-stage case matching as claimed in claim 1 or 2, characterized in that: The step 3 is specifically as follows: Step 3-1: For new civil dispute scenarios ak new After word segmentation and stop word removal, we get a new context word set KEY new ; Step3-2: For each Calculate the new context word set KEY new And the expanded feature word set KEY_MORE g The correlation of key new The extended word set key_more for each feature word in the feature word set gw Similarity sim gw , the calculation formula is as follows: Among them, |KEY new ∩KE_YMO g R w KE n Y ew The expanded word set KEY_MORE for each feature word gw The number of common words in Step 3-3: On this basis, calculate the context word set KEY new The expanded word set KEY_MORE with all feature words g Similarity sim g , the specific calculation formula is as follows: The result is a new civil dispute scenario ak new and the case subset AS g The correlation of g The case subset with the largest value AS match_1 , as a data set for subsequent similar case matching.

5. The method for recommending civil law provisions based on two-stage case matching as claimed in claim 3, characterized in that: The step 3 is specifically as follows: Step 3-1: For new civil dispute scenarios ak new After word segmentation and stop word removal, we get a new context word set KEY new ; Step3-2: For each Calculate the new context word set KEY new And the expanded feature word set KEY_MORE g The correlation of key new The extended word set key_more for each feature word in the feature word set gw Similarity sim gw , the calculation formula is as follows: Among them, |KEY new ∩KE_YMO g R w KE n Y ew The expanded word set KEY_MORE for each feature word gw The number of common words in Step 3-3: On this basis, calculate the context word set KEY new The expanded word set KEY_MORE with all feature words g Similarity sim g , the specific calculation formula is as follows: The result is a new civil dispute scenario ak new and the case subset AS g The correlation of g The case subset with the largest value AS match_1 , as a data set for subsequent similar case matching.

6. A method for recommending civil law provisions based on two-stage case matching as claimed in claim 1, 2 or 5, characterized in that: The step 4 is specifically as follows: Step 4-1: For the case subset AS match_1 Each case in a i , Roformer-Sim is used to measure the new input scenario in the plaintiff's lawsuit, the court's fact finding and case a i The text similarities of the corresponding parts are sim1(new,i) and sim2(new,i), and the similarity sets SIM1(new) and SIM2(new) are obtained respectively; Step 4-2: Based on the idea of ​​entropy weight method, the information entropy e1 and e2 of SIM1(new) and SIM1(new) are calculated respectively, and then the weights w1 and w2 are obtained; so case a new and a i The calculation formula of the similarity sim(new,i) is: sim(new,i)=w1*sim1(new,i)+w2*sim2(new,i) Step 4-3: Obtain a set of sim(new,i) through calculation, set the similarity threshold of the two-stage matching to θ, obtain all cases with sim(new,i) values ​​greater than or equal to θ, if the number of cases that meet the requirements exceeds 10, take the 10 cases with the highest sim(new,i) and include them in the final similar case set AS match ; If not exceeding, all will be included.

7. A method for recommending civil law provisions based on two-stage case matching as claimed in claim 1, 2 or 5, characterized in that: The step 5 is specifically as follows: Step 5-1: AS match The cases in are traversed in descending order of sim(new,i): the first traversed case is as1, and the set of laws cited is P1. The recommendation index of all laws in P1 is recorded as 1, and the laws are included in the recommendation set; the second traversed case is as2, and the recommendation index of the cited law P2 is recorded as 0.

9. The laws are included in the recommendation set, and the recommendation index of the same law is superimposed; and so on, the recommendation index decreases by 0.1 each time, but the minimum is not less than 0.1; Step 5-2: After the traversal is completed, select the laws with a recommendation index greater than or equal to 2; if the number of laws that meet the requirements exceeds n, select the n laws with the highest recommendation index to form a preliminary set of recommended laws 8. A method for recommending civil law provisions based on two-stage case matching as claimed in claim 1, 2 or 5, characterized in that: The step 6 is specifically as follows: Step 6-1: AS for case subset match_1 The referenced legal provisions in the set are used to obtain all legal provisions association rules r (sup r >=minsup and con r >=mincon), and construct a legal clause association rule set R; Step 6-2: Sort the rules by confidence, traverse the rules in R, and if the legal clause in the rule antecedent is In the case of If there is a law in the latter item that is not in , add it to If the preceding article of the rule is not in If , this rule is ignored; Step6-3: After the traversal is completed, statistics If the number of laws that meet the requirements exceeds n, then the n laws with the highest recommendation index are selected to form the final recommended set of laws P. new ; At this point, the legal article recommendation process is complete.

9. The method for recommending civil law provisions based on two-stage case matching as claimed in claim 3, characterized in that: The step 6 is specifically as follows: Step 6-1: AS for case subset match_1 The referenced legal provisions in the set are used to obtain all legal provisions association rules r (sup r >=minsup and con r >=mincon), and construct a legal clause association rule set R; Step 6-2: Sort the rules by confidence, traverse the rules in R, and if the legal clause in the rule antecedent is In the case of If there is a law in the latter item that is not in , add it to If the preceding article of the rule is not in If , this rule is ignored; Step6-3: After the traversal is completed, statistics If the number of laws that meet the requirements exceeds n, then the n laws with the highest recommendation index are selected to form the final recommended set of laws P. new ; At this point, the legal article recommendation process is complete.

10. A method for recommending civil law provisions based on two-stage case matching as claimed in claim 1, 2 or 5, characterized in that: The step 6 is specifically as follows: Step 6-1: AS for case subset match_1 The referenced legal provisions in the set are used to obtain all legal provisions association rules r (sup r >=minsup and con r >=mincon), and construct a legal clause association rule set R; Step 6-2: Sort the rules by confidence, traverse the rules in R, and if the legal clause in the rule antecedent is In the case of If there is a law in the latter item that is not in , add it to middle; If the preceding article of the rule is not If , this rule is ignored; Step6-3: After the traversal is completed, statistics If the number of laws that meet the requirements exceeds n, then the n laws with the highest recommendation index are selected to form the final recommended set of laws P. new ; At this point, the legal article recommendation process is complete.

Citation Information

Patent Citations

  • Legal provision recommendation method based on LDA (Latent Dirichlet Allocation) topic model

    CN108763484A

  • Reusable law article recommendation framework

    CN110717843A

  • Legal provision recommendation method based on joint deep learning model

    CN110750635A