Judicial text keyword extraction method based on deep learning
By obtaining the information contribution factor and feature guidance rate of the phrase, combined with the frequency difference and contextual relevance, the problem of insufficient weight of the deep learning model when extracting keywords from judicial texts is solved, and the accuracy and reliability of extraction are improved.
Patent Information
- Application Number
- CN202410913538.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-09
AI Technical Summary
When existing deep learning models extract keywords from judicial texts, the keywords of some sentences are given low key weights, resulting in inaccurate extraction.
By obtaining the information contribution factor and feature guidance rate of each phrase, keywords with higher structural weights are screened out, and the frequency difference and contextual relevance of the phrases are combined to correct the co-occurrence frequency and improve the phrase guidance rate of subjective sentences.
It improves the accuracy of keyword extraction in judicial texts, enhances the keyword weight of subjective sentences, and ensures the reliability of keyword screening.
Smart Images

Figure CN118504562B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method for extracting keywords from judicial texts based on deep learning. Background Art
[0002] Judicial text keyword extraction is to automatically identify and extract representative and important keywords from text data in the judicial field. These keywords can help understand the theme, key content and key information of the text, and are of great reference significance to legal workers, researchers and the public.
[0003] Currently, deep learning models are commonly used to automatically identify and extract keywords in judicial texts. This method extracts keywords from judicial texts by processing the semantic information in the judicial texts. However, key information words are not universal in some sentences in the judicial texts. In the process of extracting keywords through neural networks, the keywords of some sentences are usually assigned lower key weights, resulting in the inability of commonly used deep learning models to obtain accurate and effective judicial text keywords. Summary of the invention
[0004] The present invention provides a judicial text keyword extraction method based on deep learning to solve the existing problems.
[0005] The judicial text keyword extraction method based on deep learning of the present invention adopts the following technical scheme:
[0006] An embodiment of the present invention provides a method for extracting keywords from judicial texts based on deep learning, the method comprising the following steps:
[0007] Obtain several phrases in each judicial text and the type of each judicial text;
[0008] Record any type of judicial text as the target type; record any judicial text belonging to the target type as the target judicial text; record any phrase in the target judicial text as the target phrase; obtain the information contribution factor of the target phrase based on the difference in the frequency of occurrence of the target phrase in different judicial texts of the target type;
[0009] Constructing an expansion window of a target phrase and expanding the expansion window multiple times; in each expansion process of the expansion window, obtaining the distribution correlation and co-occurrence frequency of the target phrase and other phrases in the expansion window of the current length; modifying the co-occurrence frequency according to the distribution correlation to obtain the phrase guidance rate of the target phrase in the expansion window of the current length; screening the phrase guidance rate to obtain the characteristic guidance rate of the target phrase;
[0010] According to the information contribution factor and feature guide rate of the target phrase, the structural weight of the target phrase is obtained; the structural weights of all phrases are obtained, and all phrases are screened according to the structural weights of the phrases to obtain a number of keywords.
[0011] Furthermore, the information contribution factor of the target phrase is obtained according to the difference in the frequency of occurrence of the target phrase in different judicial texts of the target type, and the specific steps include the following:
[0012] The frequency of the target phrase in the target judicial text is recorded as the phrase frequency of the target phrase; the frequency of the target phrase in all judicial texts of the target type is recorded as the phrase probability of the target phrase; the product of the phrase probability of the target phrase and the number of all judicial texts of the target type is recorded as the expected frequency of the target phrase;
[0013] Based on the difference between the phrase probability and phrase frequency of the target phrase, the relative prominence of the target phrase in the target judicial text is obtained;
[0014] Based on the difference between the frequency of the target phrase in all judicial texts of the target type and the expected frequency of the target phrase, the overall difference in the frequency of the target phrase in different judicial texts is obtained;
[0015] The product of the relative prominence of the target phrase in the target judicial text and the overall difference in frequency in different judicial texts is recorded as the information contribution factor of the target phrase.
[0016] Furthermore, the overall difference in the frequency of the target phrase in different judicial texts is obtained based on the difference between the frequency of the target phrase appearing in all judicial texts of the target type and the expected frequency of the target phrase, and the specific steps include the following:
[0017] The ratio of the square of the difference between the frequency of the target phrase in all judicial texts of the target type and the expected frequency of the target phrase to the expected frequency of the target phrase is recorded as the overall frequency difference of the target phrase in different judicial texts.
[0018] Furthermore, the step of constructing an expansion window of the target phrase and expanding the expansion window multiple times includes the following specific steps:
[0019] The sequence of all phrases of any judicial text in the order in which they appear in the judicial text is recorded as the phrase sequence of the judicial text;
[0020] In the phrase sequence of the target judicial text, the target phrase is the center and the construction length is The window is recorded as the expansion window of the target phrase, and the length of each expansion of the expansion window is , until the number of phrases in the expanded window is less than the expanded window length, the expansion stops; among them, is the preset initial window size, It is the preset single expansion length.
[0021] Furthermore, the method for obtaining the distribution correlation includes:
[0022] The target phrases that appear exactly the same in all judicial texts of the target type are recorded as phrases to be matched; any phrase in the expansion window of the current length of the target phrase is recorded as the target feature phrase; the matching phrases of the target phrase are obtained according to the similarity of the distribution of the target feature phrases in the expansion window of the target phrase and the phrase to be matched; the proportion of all matching phrases of the target phrase in all phrases to be matched is recorded as the joint probability of the target phrase in the expansion window of the current length and the target feature phrase;
[0023] Substitute the joint probability of the target phrase and the phrases in the expansion window of the current length into the calculation formula of the information entropy to obtain the distribution correlation between the target phrase and other phrases in the expansion window of the current length.
[0024] Furthermore, the method for obtaining the co-occurrence frequency includes:
[0025] The frequency of the target phrase appearing in all judicial texts of the target type is recorded as the phrase probability of the target phrase; any phrase within the expansion window of the current length of the target phrase is recorded as the classmate phrase of the target phrase;
[0026] Calculate the phrase probability of the target phrase and the target phrase at a length of The expansion window of The product of the phrase probabilities of the classmates' phrases is the target phrase and the target phrase in length The expansion window of The natural logarithm of the ratio of the joint probability of the same class phrases to the product is recorded as the ratio of the target phrase to the target phrase in length The expansion window of The degree of specialness of the classmate phrases; the target phrase and the target phrase are The sum of the special degrees of all the same-class phrases in the expansion window is recorded as the target phrase and the length is The co-occurrence frequency of other phrases within the expansion window.
[0027] Furthermore, the method for obtaining the matching phrase includes:
[0028] If there is a phrase that is completely identical to the target feature phrase within the expansion window of the current length of any phrase to be matched, the phrase to be matched is recorded as the matching phrase of the target phrase.
[0029] Furthermore, the co-occurrence frequency of the target phrase and the classmate phrase of the target phrase in the expansion window of the current length is corrected according to the distribution correlation between the target phrase and the classmate phrase of the target phrase in the expansion window of the current length to obtain the phrase leading rate of the target phrase in the expansion window of the current length, including the specific steps as follows:
[0030] Calculate the target phrase and the target phrase in length The distribution correlation of the classmate phrases in the expansion window of 1 and the sum of the values of 1 and 1 and the target phrase and the target phrase in the length of The product of the co-occurrence frequencies of the same class phrases in the expansion window of The ratio of the number of phrases in the expansion window of , recorded as the target phrase in length The phrase lead rate of the expansion window.
[0031] Furthermore, the method for obtaining the characteristic guidance rate includes:
[0032] The maximum value of the phrase guide rate of the target phrase during the expansion window of the target phrase is recorded as the characteristic guide rate of the target phrase.
[0033] Furthermore, the structural weight of each phrase is obtained according to the information contribution factor and the feature guide rate of each phrase, and all phrases are screened according to the structural weight of the phrase to obtain a number of keywords, including the following specific steps:
[0034] Obtain the hidden state of the target phrase; record the sum of the product of the hidden state of the previous phrase of the target phrase and the feature guide rate and the information contribution factor of the target phrase as the structural weight of the target phrase; among all phrases in all judicial texts, the phrase with a structural weight greater than a preset weight threshold The phrases are recorded as keywords.
[0035] The beneficial effects of the technical solution of the present invention are as follows: the present invention aims at the problem of keyword extraction in judicial texts, and obtains the information contribution factor of each phrase according to the difference between the frequency of occurrence of each phrase in the judicial text and the frequency of occurrence in the judicial text of the same type, and preliminarily judges the possibility of each phrase being a keyword; due to the difference in content and description between subjective sentences and objective sentences, the keywords in subjective sentences usually have a lower phrase guidance rate. The present invention corrects the co-occurrence frequency between keywords through the distribution correlation between keywords, thereby improving the phrase guidance rate of subjective sentences and increasing the key weight of keywords in subjective sentences; combining the information contribution factor and phrase guidance rate of the phrase, the characteristic guidance rate of the phrase is obtained, which provides a more reliable basis for the screening of keywords. So far, the present invention screens the phrases by the characteristic guidance rate of the phrases to obtain more accurate judicial text keywords. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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 described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 This is a flowchart of the steps of the judicial text keyword extraction method based on deep learning of the present invention. DETAILED DESCRIPTION
[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of the judicial text keyword extraction method based on deep learning proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0039] Unless defined otherwise, 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 invention belongs.
[0040] The specific scheme of the judicial text keyword extraction method based on deep learning provided by the present invention is described in detail below with reference to the accompanying drawings.
[0041] See also Figure 1 , which shows a flowchart of a method for extracting keywords from judicial texts based on deep learning according to an embodiment of the present invention. The method comprises the following steps:
[0042] Step S001: Obtain several phrases in each judicial text and the type of each judicial text.
[0043] It should be noted that the purpose of this embodiment is to accurately extract judicial text keywords through further analysis of the frequency difference of phrases and context association, so it is necessary to first obtain the phrases of the judicial text. Different types of judicial texts have different contents due to their different uses, so when obtaining the phrases of the judicial text, the type of the judicial text is obtained.
[0044] Specifically, several judicial texts and the type of each judicial text are obtained through the official website of the judicial institution; each judicial text is respectively cleaned and segmented to obtain several phrases of each judicial text; a sequence consisting of all phrases of any judicial text in the order in the judicial text is recorded as the phrase sequence of the judicial text; it should be noted that the method of text cleaning and segmentation is a well-known technology, and the specific method will not be introduced here.
[0045] Step S002: record any type of judicial text as a target type; record any judicial text belonging to the target type as a target judicial text; record any phrase in the target judicial text as a target phrase; and obtain the information contribution factor of the target phrase based on the difference in the frequency of occurrence of the target phrase in different judicial texts of the target type.
[0046] It should be noted that this embodiment mainly improves the RNN network structure, so the improved RNN network structure is specifically described. The RNN network includes four parts: input layer, hidden state layer, output layer and recurrent connection layer. In the hidden state layer, since the guiding relationship between the hidden states of some keywords in the judicial text is not obvious, the RNN network cannot accurately identify the keywords based on the context information, so the guiding function between the keywords is optimized.
[0047] Specifically, in the input layer of the RNN network, all phrases of all judicial texts are received in order; any type of judicial text is recorded as a target type; any judicial text belonging to the target type is recorded as a target judicial text; any phrase in the target judicial text is recorded as a target phrase; in the hidden state layer of the RNN network, the hidden state of the target phrase is obtained.
[0048] It should be noted that if the target phrase appears frequently in the target judicial text, but less frequently in the judicial text of the target type, it means that the target phrase is more critical and prominent, and the target phrase is more likely to be a keyword; at the same time, the criticality of the target phrase in different judicial texts of the target type is different, so the overall difference between the frequency of occurrence of the target phrase in the target judicial text and the frequency of occurrence in other judicial texts of the target type is judged.
[0049] Specifically, the frequency of the target phrase in the target judicial text is recorded as the phrase frequency of the target phrase; the frequency of the target phrase in all judicial texts of the target type is recorded as the phrase probability of the target phrase; the product of the phrase probability of the target phrase and the number of all judicial texts of the target type is recorded as the expected frequency of the target phrase; according to the difference between the phrase probability and the phrase frequency of the target phrase, the relative prominence of the target phrase in the target judicial text is obtained; according to the difference between the frequency of the target phrase in all judicial texts of the target type and the expected frequency of the target phrase, the overall difference in the frequency of the target phrase in different judicial texts is obtained; the product of the relative prominence of the target phrase in the target judicial text and the overall difference in the frequency in different judicial texts is recorded as the information contribution factor of the target phrase; the calculation formula for the information contribution factor of the specific target phrase is:
[0050]
[0051] In the formula, Information contribution factor for the target phrase; is the phrase probability of the target phrase; is the phrase frequency of the target phrase; is the frequency of the target phrase in all judicial texts of the target type; is the expected frequency of the target phrase.
[0052] It should be noted that Indicates the relative prominence of the target phrase in the target judicial text. The larger its value, the greater the difference between the frequency of the target phrase in the target judicial text and the frequency of the target phrase in all judicial texts of the target type, and the higher the importance of the target phrase in the target judicial text. It indicates the overall difference in the frequency of the target phrase in different judicial texts. The larger the value, the greater the overall difference between the frequency of the target phrase in the target judicial text and the frequency of the target phrase in other judicial texts of the target type, and the higher the importance of the target phrase in the target judicial text.
[0053] Step S003: construct an expansion window of the target phrase and expand the expansion window multiple times; in each expansion process of the expansion window, obtain the distribution correlation and co-occurrence frequency of the target phrase and other phrases in the expansion window of the current length; modify the co-occurrence frequency according to the distribution correlation to obtain the phrase guidance rate of the target phrase in the expansion window of the current length; screen the phrase guidance rate to obtain the characteristic guidance rate of the target phrase.
[0054] It should be noted that judicial texts include subjective sentences and objective sentences; subjective sentences contain subjective information such as case descriptions and statements of the parties, and the key information words in subjective sentences are not universal. In the process of extracting keywords by neural networks, the keywords of subjective sentences are usually assigned lower key weights, that is, the keywords of subjective sentences usually have lower phrase guidance rates; objective sentences contain objective information such as legal provisions cited in cases, and the key information words in objective sentences are universal. In the process of extracting keywords by neural networks, the keywords of objective sentences are usually assigned higher key weights, that is, the keywords of objective sentences usually have higher guidance rates, resulting in the inability of the keywords extracted by the neural network to accurately express the overall information of the specific judicial text, but the keywords of the subjective sentences have a certain correlation with the keywords of the context, which is specifically manifested as follows: the co-occurrence frequency between the keywords in the subjective sentences is relatively small, but the correlation with the keywords of the context is relatively strong, so the co-occurrence frequency between the keywords is corrected by the distribution correlation between the keywords, thereby improving the phrase guidance rate of the subjective sentences.
[0055] Preferably, in the phrase sequence of the target judicial text, the target phrase is taken as the center and the construction length is The window is recorded as the expansion window of the target phrase, and the length of each expansion of the expansion window is , until the number of phrases in the expanded window is less than the length of the expanded window, the expansion stops; it should be noted that if the number of phrases in the initial expansion window of the constructed target phrase is less than When , the phrase leading rate of the target phrase is not calculated, where is the preset initial window size, is the preset single expansion length, , This embodiment is described using this as an example.
[0056] After constructing the initial expansion window and each expansion, the phrase lead rate of the target phrase in the expansion window of the current length is obtained. The specific acquisition process is:
[0057] In each expansion process of the expansion window, the distribution correlation and co-occurrence frequency of the target phrase and other phrases in the expansion window of the current length are obtained; the co-occurrence frequency is corrected according to the distribution correlation to obtain the phrase guidance rate of the target phrase in the expansion window of the current length; the phrase guidance rate is screened to obtain the characteristic guidance rate of the target phrase;
[0058] Preferably, in one embodiment of the present invention, the method for obtaining distribution relevance includes: recording the exact same phrases that appear in all judicial texts of the target type as phrases to be matched; recording any phrase in the expansion window of the current length of the target phrase as a target feature phrase; obtaining matching phrases of the target phrase based on the similarity of the distribution of the target feature phrases in the expansion window of the target phrase and the phrase to be matched; recording the proportion of all matching phrases of the target phrase in all phrases to be matched as the joint probability of the target phrase in the expansion window of the current length and the target feature phrase;
[0059] Record any phrase within the expansion window of the current length of the target phrase as a classmate phrase of the target phrase;
[0060] Substitute the joint probability of the target phrase and the phrases in the expansion window of the current length into the calculation formula of the information entropy to obtain the distribution correlation between the target phrase and other phrases in the expansion window of the current length.
[0061] As an example, distributional affinity is formulated as:
[0062]
[0063] In the formula, The target phrase is The distribution relevance of other phrases within the expansion window; The length is The number of phrases in the expansion window; The target phrase and the target phrase are in length The expansion window of The joint probability of the same word groups; is a linear normalization function, and the normalization object is all phrases of all judicial texts of the target type in the expansion window of all lengths. .
[0064] It should be noted that Indicates that the target phrase and the target phrase are in length The distribution correlation of the same class phrases in the expansion window of , the larger the value, the more the target phrase and the target phrase are in length The larger the expansion window, the stronger the distribution correlation of the classmates' phrases.
[0065] Preferably, in one embodiment of the present invention, the method for obtaining the co-occurrence frequency includes: calculating the phrase probability of the target phrase and the co-occurrence frequency of the target phrase in the length The expansion window of The product of the phrase probabilities of the classmates' phrases is the target phrase and the target phrase in length The expansion window of The natural logarithm of the ratio of the joint probability of the same class phrases to the product is recorded as the ratio of the target phrase to the target phrase in length The expansion window of The degree of specialness of the classmate phrases; the target phrase and the target phrase are The sum of the special degrees of all the same-class phrases in the expansion window is recorded as the target phrase and the length is The co-occurrence frequency of other phrases within the expansion window.
[0066] As an example, the co-occurrence frequency is formulated as:
[0067]
[0068] In the formula, The target phrase is The co-occurrence frequency of other phrases within the expansion window; The length is The number of phrases in the expansion window; The target phrase and the target phrase are in length The expansion window of The joint probability of the same word groups; is the phrase probability of the target phrase; For the target phrase with a length of The expansion window of The phrase probability of the classmates' phrases.
[0069] It should be noted that the smaller the value, the closer the target phrase is to the target phrase. The larger the expansion window, the lower the relevance of the classmate phrase.
[0070] Preferably, in one embodiment of the present invention, the method for obtaining matching phrases includes: if there is a phrase identical to the target feature phrase within the current length expansion window of any to-be-matched phrase, the to-be-matched phrase is recorded as the matching phrase of the target phrase.
[0071] Preferably, in one embodiment of the present invention, the method for obtaining the phrase leading rate includes: calculating the target phrase and the target phrase in length The distribution correlation of the classmate phrases in the expansion window of 1 and the sum of the values of 1 and 1 and the target phrase and the target phrase in the length of The product of the co-occurrence frequencies of the same class phrases in the expansion window of The ratio of the number of phrases in the expansion window of , recorded as the target phrase in length The phrase lead rate of the expansion window.
[0072] As an example, the phrase lead rate is expressed as:
[0073]
[0074] In the formula, For the target phrase with a length of The phrase lead rate of the expansion window; The length is The number of phrases in the expansion window; The target phrase is The distribution relevance of other phrases within the expansion window; The target phrase is The co-occurrence frequency of other phrases within the expansion window.
[0075] It should be noted that the target phrase and the target phrase are The stronger the distribution correlation of the classmates' phrases in the expansion window of The greater the amount of information combined with other phrases in the expansion window of , the stronger the guiding rate of the target phrase to the subsequent phrases; the target phrase and the target phrase have a length of The lower the connection between the classmate phrases in the expansion window, the more likely the target phrase belongs to a subjective sentence.
[0076] It should be noted that when the target phrase is strongly associated with the phrases in the context of its location, since the phrases in the context of the target phrase that are strongly associated with the target phrase exist within a certain range, the phrase guidance rate of the target phrase first increases and then decreases with the expansion of the expansion window. When the phrase guidance rate of the target phrase reaches the maximum value, the corresponding expansion window contains most of the phrases that are strongly associated with the target phrase. At this time, the phrases in the expansion window are more likely to be keywords of subjective sentences and objective sentences describing the same event.
[0077] Specifically, the maximum value of the phrase guide rate of the target phrase during the expansion window of the target phrase is recorded as the feature guide rate of the target phrase.
[0078] Step S004: Obtain the structural weight of the target phrase according to the information contribution factor and feature guide rate of the target phrase; obtain the structural weights of all phrases, and screen all phrases according to the structural weights of the phrases to obtain a number of keywords.
[0079] It should be noted that the RNN network outputs the structural weight of the phrase according to the information contribution factor, hidden state and feature guidance rate of the phrase.
[0080] Specifically, in the output layer of the RNN network, the sum of the product of the hidden state and feature guide rate of the previous phrase of the target phrase and the information contribution factor of the target phrase is recorded as the structural weight of the target phrase. In the recurrent connection layer of the RNN network, the structural weight of each phrase is calculated in turn according to the order of the phrases in the judicial text. Among all the phrases in all the judicial texts, the phrases with a structural weight greater than a preset weight threshold are counted. The phrase is recorded as a keyword; among them, the preset weight threshold This embodiment is described using this as an example.
[0081] So far, the present invention is completed.
[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A judicial text keyword extraction method based on deep learning, characterized in that: The method comprises the following steps: Obtain several phrases in each judicial text and the type of each judicial text; Record any type of judicial text as the target type; record any judicial text belonging to the target type as the target judicial text; record any phrase in the target judicial text as the target phrase; obtain the information contribution factor of the target phrase based on the difference in the frequency of occurrence of the target phrase in different judicial texts of the target type; Constructing an expansion window of a target phrase and expanding the expansion window multiple times; in each expansion process of the expansion window, obtaining the distribution correlation and co-occurrence frequency of the target phrase and other phrases in the expansion window of the current length; modifying the co-occurrence frequency according to the distribution correlation to obtain the phrase guidance rate of the target phrase in the expansion window of the current length; screening the phrase guidance rate to obtain the characteristic guidance rate of the target phrase; According to the information contribution factor and feature guide rate of the target phrase, the structural weight of the target phrase is obtained, the structural weights of all phrases are obtained, and all phrases are screened according to the structural weights of the phrases to obtain several keywords; The method for obtaining the distribution correlation includes: The target phrases that appear exactly the same in all judicial texts of the target type are recorded as phrases to be matched; any phrase in the expansion window of the current length of the target phrase is recorded as the target feature phrase; the matching phrases of the target phrase are obtained according to the similarity of the distribution of the target feature phrases in the expansion window of the target phrase and the phrase to be matched; the proportion of all matching phrases of the target phrase in all phrases to be matched is recorded as the joint probability of the target phrase in the expansion window of the current length and the target feature phrase; Substitute the joint probability of the target phrase and the phrases in the current length expansion window into the information entropy calculation formula to obtain the distribution correlation between the target phrase and other phrases in the current length expansion window; The method for obtaining the co-occurrence frequency includes: The frequency of the target phrase appearing in all judicial texts of the target type is recorded as the phrase probability of the target phrase; any phrase within the expansion window of the current length of the target phrase is recorded as the classmate phrase of the target phrase; Calculate the phrase probability of the target phrase and the target phrase at a length of The expansion window of The product of the phrase probabilities of the classmates' phrases is the target phrase and the target phrase in length The expansion window of The natural logarithm of the ratio of the joint probability of the same class phrases to the product is recorded as the ratio of the target phrase to the target phrase in length The expansion window of The degree of specialness of the classmate phrases; the target phrase and the target phrase are The sum of the special degrees of all the same-class phrases in the expansion window is recorded as the target phrase and the length is The co-occurrence frequency of other phrases within the expansion window; The method for obtaining the matching phrase includes: If there is a phrase that is exactly the same as the target feature phrase within the expansion window of the current length of any phrase to be matched, the phrase to be matched is recorded as the matching phrase of the target phrase; The co-occurrence frequency is modified according to the distribution correlation to obtain the phrase leading rate of the target phrase in the expansion window of the current length, and the specific steps include the following: Calculate the target phrase and the target phrase in length The distribution correlation of the same class phrases in the expansion window of the target phrase and the sum of the values 1 and the target phrase in the length of The product of the co-occurrence frequencies of the same class phrases in the expansion window of The ratio of the number of phrases in the expansion window of , recorded as the target phrase in length The phrase lead rate of the expansion window.
2. According to the method for extracting keywords from judicial texts based on deep learning according to claim 1, it is characterized in that: The information contribution factor of the target phrase is obtained according to the difference in the frequency of occurrence of the target phrase in different judicial texts of the target type, and the specific steps include the following: The frequency of the target phrase in the target judicial text is recorded as the phrase frequency of the target phrase; the frequency of the target phrase in all judicial texts of the target type is recorded as the phrase probability of the target phrase; the product of the phrase probability of the target phrase and the number of all judicial texts of the target type is recorded as the expected frequency of the target phrase; Based on the difference between the phrase probability and phrase frequency of the target phrase, the relative prominence of the target phrase in the target judicial text is obtained; Based on the difference between the frequency of the target phrase in all judicial texts of the target type and the expected frequency of the target phrase, the overall difference in the frequency of the target phrase in different judicial texts is obtained; The product of the relative prominence of the target phrase in the target judicial text and the overall difference in frequency in different judicial texts is recorded as the information contribution factor of the target phrase.
3. According to the method for extracting keywords from judicial texts based on deep learning according to claim 2, it is characterized in that: The step of obtaining the overall frequency difference of the target phrase in different judicial texts based on the difference between the frequency of the target phrase appearing in all judicial texts of the target type and the expected frequency of the target phrase includes the following specific steps: The ratio of the square of the difference between the frequency of the target phrase in all judicial texts of the target type and the expected frequency of the target phrase to the expected frequency of the target phrase is recorded as the overall frequency difference of the target phrase in different judicial texts.
4. The judicial text keyword extraction method based on deep learning according to claim 1 is characterized in that: The step of constructing an expansion window of the target phrase and expanding the expansion window multiple times includes the following specific steps: The sequence of all phrases of any judicial text in the order in which they appear in the judicial text is recorded as the phrase sequence of the judicial text; In the phrase sequence of the target judicial text, the target phrase is the center and the construction length is The window is recorded as the expansion window of the target phrase, and the length of each expansion of the expansion window is , until the number of phrases in the expanded window is less than the expanded window length, the expansion stops; among them, is the preset initial window size, It is the preset single expansion length.
5. The judicial text keyword extraction method based on deep learning according to claim 1 is characterized in that: The method for obtaining the characteristic guidance rate includes: The maximum value of the phrase guide rate of the target phrase during the expansion window of the target phrase is recorded as the characteristic guide rate of the target phrase.
6. The judicial text keyword extraction method based on deep learning according to claim 1 is characterized in that: The specific steps of obtaining the structural weight of the target phrase according to the information contribution factor and the feature guide rate of the target phrase, obtaining the structural weights of all phrases, screening all phrases according to the structural weights of the phrases, and obtaining a number of keywords are as follows: Obtain the hidden state of the target phrase; record the sum of the product of the hidden state of the previous phrase of the target phrase and the feature guide rate and the information contribution factor of the target phrase as the structural weight of the target phrase; among all phrases in all judicial texts, the phrase with a structural weight greater than a preset weight threshold The phrases are recorded as keywords.
