NLP-based legal text intelligent analysis method and system

By performing word segmentation, part-of-speech tagging, and word vector analysis on legal texts, the problem of changing interpretations of legal terms in different contexts has been solved, achieving accurate analysis of legal texts and efficient case matching.

CN121524316BActive Publication Date: 2026-04-24北京无限多彩科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
北京无限多彩科技有限公司
Filing Date
2025-11-10
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In NLP-based intelligent parsing of legal texts, changes in the interpretation of legal terms in different contexts can lead to incorrect matching and affect the accuracy of the parsing.

Method used

By segmenting and tagging legal texts, we calculate the correlation fluctuation index between legal terms and other terms, analyze the semantic changes of terms in different contexts, and combine word vector concatenation and similarity calculation to determine the matching similarity between legal terms and cases.

Benefits of technology

It improves the accuracy and efficiency of legal text analysis, enhances the ability to handle complex legal language, and improves the accuracy and efficiency of legal case retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121524316B_ABST
    Figure CN121524316B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of text data processing, in particular to a legal text intelligent analysis method and system based on NLP, which comprises the following steps: obtaining the correlation degree of legal vocabulary and other vocabulary in each sentence of legal text data to be analyzed; determining the correlation degree fluctuation index of each legal vocabulary and each vocabulary in the sentence to which the legal vocabulary belongs; determining the associated vocabulary of each legal vocabulary; analyzing the overall similarity features of the spliced vectors of each legal vocabulary and its associated vocabulary in each legal case, determining the influence correlation degree between the legal vocabulary and the legal case; analyzing the similarity between the spliced vectors of the legal vocabulary and its associated vocabulary in each sentence, determining the matching similarity index of the legal vocabulary and the legal case, and obtaining the best case corresponding to the legal vocabulary and its associated vocabulary. The application aims to improve the matching accuracy of legal text and cases and provide more accurate case support.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of text data processing technology, specifically to a method and system for intelligent parsing of legal texts based on NLP. Background Technology

[0002] The intelligent legal text parsing technology based on Natural Language Processing (NLP) has emerged to address the challenges of complex legal texts, dense terminology, and the high demands for logical rigor. The core process typically includes basic processing such as word segmentation, part-of-speech tagging, and named entity recognition (NER) to extract key information like names of people, places, organizations, and legal clauses. Through these steps, NLP can efficiently identify and analyze important elements in legal texts. Furthermore, relation extraction techniques identify the rights and obligations between parties, and text classification techniques automatically categorize legal documents. In recent years, deep learning models such as BERT and GPT have demonstrated outstanding performance in legal text processing, understanding the contextual semantics of legal texts and significantly improving accuracy. Combined with knowledge graph technology, entities and relationships in legal texts can be structured, constructing a network of relationships within the legal concept system, supporting intelligent retrieval and legal reasoning.

[0003] After acquiring data from legal texts, it's important to consider that legal terms often have different meanings in different sentences. The interpretation of legal terms can change depending on the context, leading to mismatches when matching legal terms with corresponding cases. This can result in users being misled by incorrect legal case references, causing serious consequences. Therefore, when performing intelligent parsing of legal texts based on NLP, more precise parsing and matching of legal terms is required. Summary of the Invention

[0004] In view of the above, it is necessary to provide a method and system for intelligent parsing of legal texts based on NLP to solve the above problems.

[0005] The first aspect of this application provides a method for intelligent parsing of legal text based on NLP, the method comprising:

[0006] Each sentence in the legal text data to be parsed is segmented into words and then tagged with parts of speech.

[0007] Legal terms in each sentence are obtained. By comparing the word vectors of each legal term with the other terms in the sentence, the correlation between each legal term and other terms is determined. All other terms in each sentence except for each legal term are removed in turn. The changes in the correlation of each legal term before and after word removal are analyzed to determine the correlation fluctuation index between each legal term and each term in the sentence.

[0008] Analyze all correlation fluctuation indicators obtained for each legal term to determine the related terms for each legal term; concatenate the part-of-speech and word vector of each term to obtain the concatenated vector of each term; analyze the overall similarity features of the concatenated vectors when each legal term and its related terms co-occur in each legal case to determine the influence correlation between each legal term and each legal case; analyze the similarity between the concatenated vectors of each legal term and its related terms in each sentence; combine the influence correlation degree to determine the matching similarity index between each legal term and each legal case, and obtain the best case corresponding to each legal term and its related terms.

[0009] The degree of relevance is determined by the cosine similarity of the word vectors of each legal term with other terms.

[0010] Specifically, the determination of the correlation fluctuation index between each legal term and each term in its sentence is as follows:

[0011] Remove all words except legal terms from each sentence in turn; denote the sequence of all relevance values ​​obtained for each legal term in each sentence before word removal as the first relevance sequence; denote the sequence of remaining relevance values ​​obtained for each legal term in each sentence after word removal as the second relevance sequence.

[0012] The negative correlation mapping of the similarity between the first correlation sequence and the second correlation sequence of each legal term in each sentence is used as the correlation fluctuation index between each legal term and each term in the sentence to which it belongs.

[0013] The specific formula for the correlation fluctuation index is as follows: In the formula, This is an indicator of the fluctuation in the correlation between legal term i and term h in its sentence; This represents the first relevance sequence of legal term i before removing term h; This represents the second degree of relevance sequence of legal term i after removing term h; Represents an exponential function with the natural constant as its base; This represents the Pearson correlation coefficient function.

[0014] Specifically, the related words for each legal term are the words corresponding to the sentence in which the correlation fluctuation index is the highest.

[0015] Specifically, determining the degree of influence between each legal term and each legal case involves:

[0016] Obtain all sentences in each case where each legal term and its associated terms appear simultaneously, and calculate the similarity between the concatenated vectors of each legal term and its associated terms in each sentence. Calculate the average of all obtained similarity values ​​to determine the influence correlation between each legal term and each legal case.

[0017] The degree of similarity is obtained by using cosine similarity.

[0018] The specific formula for determining the matching similarity index between each legal term and each legal case is as follows: In the formula, This represents the similarity between the associated combination of legal term i and legal case c. This represents the concatenated vector of legal term i and its associated term j in a sentence. This indicates the degree of influence between the associated combination of legal term i and legal case c. This represents a preset constant.

[0019] Specifically, the best case is the legal case with the highest matching similarity index corresponding to each legal term.

[0020] Secondly, embodiments of this application also provide an NLP-based intelligent legal text parsing system, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of any of the methods described above.

[0021] The beneficial effects of the above scheme are as follows: Each sentence in the legal text data to be parsed is segmented and tagged with parts of speech. Through segmentation and tagging, each word can be given grammatical and semantic information, helping the model accurately distinguish between legal terms and ordinary words, providing a foundation for subsequent semantic analysis. Legal terms in each sentence are obtained, and by comparing the word vectors of each legal term with the remaining words in its sentence, the correlation between each legal term and other words can be determined. This effectively assesses the semantic role of legal terms in the sentence and their relationship with other words, helping to better understand the meaning of terms in legal texts in specific contexts and improving the accurate identification and interpretation of legal terms. All words except legal terms in each sentence are removed sequentially, and the changes in the correlation of each legal term before and after word removal are analyzed. The correlation fluctuation index between each legal term and each word in its sentence is determined, helping to reveal the core role and semantic changes of legal terms in the sentence. By observing the fluctuations in the correlation between legal terms and other terms in a sentence after removing other words, we can quantify the strength of the relationship between legal terms and other words in the sentence, thereby improving the understanding and processing of the semantics of legal texts. Analyzing all correlation fluctuation indicators obtained for each legal term, we can identify the related words for each legal term. Through in-depth analysis of the correlation fluctuations of each legal term, we can identify the words with the closest relationship to it, which helps to understand the meaning changes of the word in different contexts. This helps to build a semantic network between legal terms and improve the accuracy and depth of legal text parsing. Concatenating parts of speech and word vectors can combine grammatical and semantic information, making the representation of words more comprehensive and accurate. This has a positive impact on subsequent tasks such as similarity calculation and case matching, enhancing the model's ability to handle complex legal language. Analyzing the overall similarity features of the concatenated vectors when each legal term and its related terms co-occur in each legal case determines the influence correlation between each legal term and each legal case. By analyzing the co-occurrence of legal terms and their related terms in actual cases, the semantic changes and legal application scenarios of these terms in different cases can be revealed, which helps to build a more accurate case matching model and improve the accuracy and efficiency of legal case retrieval. Analyzing the concatenated vectors of each legal term and its related terms in each sentence, combined with the aforementioned influence correlation, determines the matching similarity index between each legal term and each legal case. By calculating the similarity between legal terms and related terms in sentences, combined with the influence correlation, the matching degree between a certain legal term and a specific legal case can be effectively evaluated. This helps to improve the matching accuracy of legal text and cases, providing legal professionals with more accurate case support. By analyzing the best case corresponding to each legal term and its related terms, legal practitioners can find cases related to the current text more quickly and accurately, greatly improving the efficiency and accuracy of case processing. Attached Figure Description

[0022] Figure 1 A flowchart illustrating the steps of an NLP-based intelligent legal text parsing method provided in one embodiment of this application;

[0023] Figure 2 This is a schematic diagram illustrating the acquisition of matching similarity metrics according to one embodiment of this application. Detailed Implementation

[0024] In the description of the embodiments in this application, the words "exemplary," "or," and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary," "or," and "for example" is intended to present the relevant concepts in a specific manner.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.

[0026] It should also be noted that the terms "first" and "second" in this application and its accompanying drawings are used to distinguish similar objects, rather than to describe a specific order or sequence. The methods disclosed in the embodiments of this application or the methods shown in the flowcharts include one or more steps for implementing the method. Without departing from the scope of protection of this application, the execution order of multiple steps can be interchanged, and some steps can also be deleted.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0028] The following description, in conjunction with the accompanying drawings, details the specific scheme of the NLP-based intelligent legal text parsing method and system provided in this application.

[0029] Please see Figure 1 The diagram illustrates a flowchart of a method for intelligent parsing of legal text based on NLP, according to an embodiment of this application. The method includes the following steps:

[0030] The first step is to segment each sentence in the legal text data to be parsed and then perform part-of-speech tagging.

[0031] In NLP-based intelligent legal text parsing, the first step is to collect legal text data, obtaining publicly available legal texts and cases from the internet, and collecting legal-related text documents and scanned copies from various legal websites. Further, the process involves obtaining corresponding definitions of legal terms from the internet, including but not limited to Chinese legal terminology compilations and other legal terminology parsing websites.

[0032] In this embodiment, OCR technology is used to extract text from the acquired legal text data, outputting the extracted text data. Simultaneously, text extraction is performed on the text file. For each sentence in the extracted text, a regular expression tool is used to remove irrelevant characters and punctuation marks, cleaning the text data. Then, the jieba word segmentation tool, combined with the legal thesaurus in the Tsinghua University Open Chinese Dictionary, is used to segment each sentence into lexical units (containing existing legal terms), and the Harbin Institute of Technology stop word list is used to remove stop words. Simultaneously, the LAC tool is used to perform part-of-speech tagging on all segmented words, enhancing the text's structure. All text processing processes use the UTF-8 encoding standard to avoid garbled characters. The use of OCR technology, the jieba word segmentation tool, and the LAC tool are all existing well-known technologies, and this application will not elaborate on them further.

[0033] The second step is to obtain legal terms in each sentence, and determine the correlation between each legal term and other terms by comparing the similarity features of word vectors between each legal term and the other terms in the sentence. Then, remove all other terms in each sentence except for each legal term, analyze the changes in the correlation of each legal term before and after word removal, and determine the correlation fluctuation index between each legal term and each term in the sentence.

[0034] The pre-processed vocabulary is matched and filtered against a custom legal terminology dictionary. This custom legal terminology dictionary is specifically a set of legal terms obtained from Baidu Wenku. The process of building a custom dictionary is well-known in this field and will not be elaborated further. Legal text terms are then extracted from the document data, and intelligent parsing is performed on these extracted terms.

[0035] When performing intelligent parsing of legal text terms, the legal meaning of a term can vary depending on the context and the surrounding words. For example, in the sentence "A third party acquires ownership of the movable property in good faith, and his rights are protected by law," the word "good faith" changes from its original meaning of "with good intentions" to "unaware and without gross negligence," significantly altering its legal connotation. Furthermore, due to the high rigor required in legal texts, when "good faith" is expressed as "unaware and without gross negligence," it is usually combined with "acquired" to highlight its specific legal meaning. Removing words that alter the semantics of the target term often results in a significant change in the target term's meaning, leading to substantial shifts in the relevance between the target term and other words in the context. Therefore, to avoid errors in interpreting legal terms, it is generally necessary to analyze the impact of surrounding words during the semantic analysis process.

[0036] Based on the above analysis, word vectors are calculated for the preprocessed vocabulary using the BERT model to obtain the word vector for each word. The BERT model is a well-known technology, and the specific operational steps will not be elaborated further. Taking a sentence containing legal term i (legal term i represents a term with legal interpretation) in a legal text as an example, the BERT model is used to obtain the word vector for each word in that sentence.

[0037] When removing words that can alter the semantics of the target word, the meaning of the target word often changes significantly. Therefore, we identify words in a sentence that have a significant impact on the target word: First, we calculate the correlation between the word vectors of each word in the sentence and the legal word i. In this embodiment, the correlation is calculated using cosine similarity.

[0038] Furthermore, when the meaning of the target word changes significantly, the degree of association between the target word and other words in the context also changes significantly. Based on this, for the sentence containing legal word i, the degree of association between each word and legal word i is obtained. Based on the order of the words in the sentence, extract the relevance of words other than word 'h'. Arranged from left to right, as the first relevance sequence of legal term i Furthermore, obtain the sentence after removing any word h except for the legal term i, and similarly obtain the relevance of each word in the current sentence to the legal term. Based on the order of the words in the sentence, determine the relevance of the sentence. Arranged from left to right, this is the second relevance sequence of legal term i after removing term h. Considering that the deletion of words that significantly impact legal term i will alter the relevance between the remaining words in the original sentence and legal term i, a relevance fluctuation index is constructed to analyze the changes in the relevance between other words in the sentence and legal term i before and after the removal of term h. Specifically, in this embodiment, the relevance fluctuation index between legal term i and term h in its sentence is defined as follows: Its formula is as follows: In the formula, This represents an exponential function with the natural constant as its base, avoiding computational complexity. The value is 0. This represents the Pearson correlation coefficient. It should be noted that, to ensure the validity of the Pearson correlation coefficient, the correlation between word h and legal word i is not included in the first correlation sequence. This is to ensure that the number of elements in the first and second correlation sequences remains consistent.

[0039] It should be understood that by calculating the correlation between the correlation sequence of the sentence after word removal and the correlation sequence of the original sentence, the more serious the impact of the removed word on the meaning of legal terms, the greater the difference between the correlation sequence after removal and the correlation sequence of the original sentence, resulting in a relatively small Pearson correlation coefficient and a larger corresponding correlation fluctuation index. Conversely, the less the removed word has on the meaning of legal terms, the less impact it usually has on the original sentence, and the relatively large correlation coefficient between its correlation sequence and the correlation sequence of the original sentence, resulting in a smaller corresponding correlation fluctuation index.

[0040] The third step is to analyze all correlation fluctuation indicators obtained for each legal term to determine the related terms for each legal term; to concatenate the part-of-speech and word vector of each term to obtain the concatenated vector of each term; to analyze the overall similarity features of the concatenated vectors when each legal term and its related terms co-occur in each legal case to determine the influence correlation between each legal term and each legal case; to analyze the similarity between the concatenated vectors of each legal term and its related terms in each sentence; and, in conjunction with the influence correlation, to determine the matching similarity index between each legal term and each legal case to obtain the best case corresponding to each legal term and its related terms.

[0041] For each legal term, all correlation fluctuation indicators were obtained. By calculating the maximum value among all correlation fluctuation indicators, the situation with the most severe impact on the legal term was identified. Furthermore, considering that legal terms form new meanings when combined with their adjuncts, their part-of-speech collocations are not random but follow the inherent high degree of standardization and logic of legal language, usually forming fixed pairs. For example, in a legal context, when "bona fide" modifies "acquisition" to form "bona fide acquisition," the part-of-speech of "acquisition" is a noun, while in "acquiring ownership," "acquisition" is a verb. The meaning represented by this term in different legal combinations will vary significantly from the meaning of the corresponding legal combination. Once this modification relationship changes, the legal meaning will change, producing different interpretations.

[0042] Based on this, taking legal term i as an example, the term removed when the correlation fluctuation index in the sentence is the largest is taken as the related term of legal term i. It should be understood that the related terms of the same legal term may be different in different sentences. The part of speech of the related term and the legal term in the original sentence are obtained respectively. The word vector of the corresponding part of speech is obtained by using the Word2Vec model. The word vector of the corresponding part of speech is concatenated with the word vector of the corresponding part of speech by using NumPy to obtain the concatenated vector of legal term i and related term j in the original sentence.

[0043] When matching legal terms to the best analytical case, there may be instances where corresponding legal terms and related terms appear in the same sentence but their meanings differ significantly due to their different positions. For example, when "good faith" and "acquire" are combined to form "acquire in good faith," it has a legal meaning. However, in the sentence "He treated others with sincere good faith, and therefore gained everyone's trust and respect," although "good faith" and "acquire" are in the same sentence, their meanings are quite different from "acquire in good faith." Therefore, when a sentence contains legal term i and related term j, then legal term i and related term j are considered a pair of key terms in that sentence.

[0044] When a sentence in a legal case contains each legal term and its associated term, the concatenated vectors of the two terms are obtained separately. Furthermore, the average similarity of the concatenated vectors of legal term i and its associated term j in all sentences where they coexist is calculated, yielding the influence correlation between each legal term and its associated term. In this embodiment, the similarity of the concatenated vectors is calculated using cosine similarity.

[0045] Specifically, legal term i is combined with its related term j to form a combination of legal term i, and the degree of influence between the combination of legal term i and legal case c is denoted as . Its specific formula is as follows: In the formula, Z represents the frequency of legal term i and its related term j appearing simultaneously in a sentence in legal case c. , Let i and j represent the concatenated vectors of legal term i and related term j in the d-th sentence of legal case c, respectively. This represents the cosine similarity function.

[0046] Furthermore, a matching similarity metric is constructed, with the following formula: In the formula, This represents the similarity between the associated combination of legal term i and legal case c. This represents the concatenated vector of legal term i and its associated term j in a sentence. This indicates the degree of influence between the associated combination of legal term i and legal case c. This represents a preset constant with a value of 0.01.

[0047] The diagram illustrating the acquisition of the matching similarity index is shown below. Figure 2 As shown.

[0048] It should be understood that when the combination of corresponding legal terms and related terms in the target case has the same meaning as the word combinations in the original sentence, the calculated and obtained... The closer the value is to 1, the better. The closer the calculated value is to 0, the better; when the combination of legal terms and related terms in the target case deviates significantly from the meaning of the word combinations in the original sentence, the calculated value... The further the value deviates from 1, the worse the calculation results. The larger the similarity, the better. Obtain the maximum matching similarity from the associated combinations corresponding to legal term i, and use its corresponding case as the best matching case to ensure that the case can effectively parse the legal term information.

[0049] The system obtains the best case analysis corresponding to the legal text to be matched, and concatenates word vectors based on the corresponding legal words and related words. It then calculates the cosine similarity between the concatenated word vectors and various interpretations of the legal words in the law, and takes the interpretation corresponding to the maximum value as the legal interpretation of the legal word. For the best case analysis and interpretation of the legal words, it outputs them as the case analysis and interpretation of the corresponding legal text words, respectively. Combined with a JavaScript event listening algorithm, the system associates and displays the corresponding text words with the corresponding case analysis and interpretation. When the user hovers the mouse over a legal text word, they can get the content of the text word (such as the word "force majeure") and its best case analysis and interpretation in the corresponding target legal text word, thus completing the intelligent parsing of legal text based on NLP.

[0050] Based on the same inventive concept as the above methods, this application also provides an NLP-based legal text intelligent parsing system, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it implements the steps of any one of the above-described NLP-based legal text intelligent parsing methods.

[0051] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description; sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0052] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from its essential characteristics. Therefore, the embodiments described above should be considered exemplary and non-limiting in all respects; modifications to the technical solutions described in the foregoing embodiments, or equivalent substitutions of some technical features, without causing the essence of the corresponding technical solutions to deviate from the scope of the technical solutions in the embodiments of this application, should all be included within the protection scope of this application.

Claims

1. A method for intelligent parsing of legal text based on NLP, characterized in that, The method includes the following steps: Each sentence in the legal text data to be parsed is segmented into words and then tagged with parts of speech. Legal terms in each sentence are obtained. By comparing the word vectors of each legal term with the other terms in the sentence, the correlation between each legal term and other terms is determined. All other terms in each sentence except for each legal term are removed in turn. The changes in the correlation of each legal term before and after word removal are analyzed to determine the correlation fluctuation index between each legal term and each term in the sentence. Analyze all correlation fluctuation indicators obtained for each legal term to determine the related terms for each legal term; concatenate the part-of-speech and word vector of each term to obtain the concatenated vector of each term; analyze the overall similarity features of the concatenated vectors when each legal term and its related terms co-occur in each legal case to determine the influence correlation between each legal term and each legal case; analyze the similarity between the concatenated vectors of each legal term and its related terms in each sentence; combine the influence correlation to determine the matching similarity index between each legal term and each legal case, and obtain the best case corresponding to each legal term and its related terms.

2. The NLP-based intelligent legal text parsing method as described in claim 1, characterized in that, The degree of relevance is determined by the cosine similarity of the word vectors of each legal term with other terms.

3. The NLP-based intelligent legal text parsing method as described in claim 1, characterized in that, The method for determining the correlation fluctuation index between each legal term and each term in its sentence is as follows: Remove all words from each sentence except for legal terms; The sequence of all relevance scores obtained for each legal term in each sentence before removing the terms is denoted as the first relevance sequence; the sequence of the remaining relevance scores obtained for each legal term in each sentence after removing the terms is denoted as the second relevance sequence. The negative correlation mapping of the similarity between the first correlation sequence and the second correlation sequence of each legal term in each sentence is used as the correlation fluctuation index between each legal term and each term in the sentence to which it belongs.

4. The NLP-based intelligent legal text parsing method as described in claim 3, characterized in that, The specific formula for the correlation fluctuation index is as follows: In the formula, This is an indicator of the fluctuation in the correlation between legal term i and term h in its sentence; This represents the first relevance sequence of legal term i before removing term h; This represents the second degree of relevance sequence of legal term i after removing term h; Represents an exponential function with the natural constant as its base; This represents the Pearson correlation coefficient function.

5. The NLP-based intelligent legal text parsing method as described in claim 1, characterized in that, The related words for each legal term are specifically the words corresponding to the sentence in which the correlation fluctuation index is the highest.

6. The NLP-based intelligent legal text parsing method as described in claim 1, characterized in that, The determination of the influence correlation between each legal term and each legal case specifically involves: Obtain all sentences in each case where each legal term and its associated terms appear simultaneously, and calculate the similarity between the concatenated vectors of each legal term and its associated terms in each sentence. Calculate the average of all obtained similarity values ​​to determine the influence correlation between each legal term and each legal case.

7. The NLP-based intelligent legal text parsing method as described in claim 6, characterized in that, The degree of similarity is obtained using cosine similarity.

8. The NLP-based intelligent legal text parsing method as described in claim 1, characterized in that, The specific formula for determining the matching similarity index between each legal term and each legal case is as follows: In the formula, This represents the similarity between the associated combination of legal term i and legal case c. This represents the concatenated vector of legal term i and its associated term j in a sentence. This indicates the degree of influence between the associated combination of legal term i and legal case c. This represents a preset constant.

9. The NLP-based intelligent legal text parsing method as described in claim 1, characterized in that, The best case is specifically the legal case with the highest matching similarity index corresponding to each legal term.

10. A legal text intelligent parsing system based on NLP, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Text similarity measurement method based on semantic document expression

    CN111444700A

  • Method for extracting crime process key information in legal document based on TextRank algorithm

    CN112800211A