Document analysis method and system based on natural language recognition
By calculating the global information content and co-occurrence representation strength of words, a word direction classification model is established, which solves the problem of inaccurate recognition caused by boundary interweaving and overlapping in long named entity recognition, and achieves more efficient long named entity recognition.
Patent Information
- Application Number
- CN202410449728.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-04-15
AI Technical Summary
In the existing technology, long named entity recognition algorithms such as SVM have low training efficiency when dealing with huge feature dimensions and overlapping boundaries, resulting in low recognition accuracy.
By calculating the global information content of words, obtaining the co-occurrence representation strength and long entity dependence coefficient between words, a word direction classification model is established, and the long entity boundaries in the document are divided by combining the naming left tilt and the naming right tilt. Use undirected graphs for node selection to implement document analysis based on natural language recognition.
It improves the accuracy of long named entity recognition, solves the problem of inaccurate recognition caused by difficult-to-identify entity boundaries, and improves the accuracy of document text classification.
Smart Images

Figure CN118246452B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing, and in particular to a document analysis method and system based on natural language recognition. Background Art
[0002] With the rapid development of the Internet, the popularity of various smart devices, and the widespread dissemination of information in all walks of life, more and more data resources are emerging. Effective integration of massive document text data resources can realize the extraction and analysis of key information from document text data resources from different sources. Therefore, it is particularly important to extract key information from massive data resources. Automatic summarization technology can extract key information from document text and aggregate the key information into summary text, realize the key extraction of key information in document text, and improve the accuracy of document text classification.
[0003] In order to realize the automatic summarization of document text, long named entity recognition is required to identify and classify long entities in the text. The long named entity recognition algorithm based on SVM is simple in principle and easy to implement. It can identify and classify long entities in the text, but the data volume of document text is huge and the feature dimension is high. At the same time, the boundaries of entities are intertwined and overlapped, which reduces the training efficiency of SVM and affects the recognition accuracy of long entities. Summary of the invention
[0004] The present invention provides a document analysis method and system based on natural language recognition to solve the problem of inaccurate recognition of long named entities due to difficulty in identifying entity boundaries. The technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present invention provides a document analysis method based on natural language recognition, the method comprising the following steps:
[0006] Preprocess the text data of the document that needs long named entity recognition, obtain the sentence data sequence of the document, and establish a historical database;
[0007] Calculate the global information of the words, obtain the syntactic distance vector of the words, obtain the basic word co-occurrence stripping weights between different words based on the global information of the words, count the word interval distances between two different words, and obtain the co-occurrence representation strength between two different words based on the word interval distance and the frequency of different words appearing simultaneously in the same sentence data sequence in the document, and then obtain the long entity dependency coefficient between the two different words;
[0008] Obtain the adjacent words of each word to the left and right respectively, obtain the left boundary word sequence of the word, obtain the left direction truncation distance of the word according to the left boundary word sequence of the word, and then obtain the left direction inclination of the word, and obtain the right direction inclination of the word to be analyzed;
[0009] According to the historical database, the naming left inclination and the naming right inclination, a word direction classification model is established. The word direction classification model is used to obtain the optimal naming direction of the word, and an undirected graph of the sentence data sequence is established. The nodes of the undirected graph are selected, and the long entities of the sentence data sequence are divided to realize document analysis based on natural language recognition.
[0010] Furthermore, the specific method of calculating the global information amount of a word includes:
[0011] The Shannon information of each word in the sentence data sequence is calculated, and the Shannon information of the word is recorded as the global information of the word.
[0012] Furthermore, the basic word coexistence stripping weights between the different words are obtained by:
[0013] The sum of the global information of the two words is recorded as the information sum;
[0014] The sum of the global information amounts of the words contained in all sentence data sequences in the documents where the two words are located is recorded as the total information amount;
[0015] The ratio of the sum of the information amounts to the total information amounts is recorded as the base word co-existence stripping weight between the two words.
[0016] Furthermore, the co-occurrence representation strength between two different words is obtained according to the word interval distance and the frequency of co-occurrence of different words in the document in the same sentence data sequence. The specific expression is:
[0017]
[0018] In the formula, Z a,b Indicates the co-occurrence representation strength between word a and word b, where word a and word b are in the same sentence data sequence; n a,b Indicates the frequency of word a and word b appearing simultaneously in the same sentence data sequence in the document where word a and word b need to be recognized by long named entity; n a,b′ Indicates the frequency of word a and word b' appearing simultaneously in the same sentence data sequence in the document where word a and word b are located and need to be recognized by long named entity, where word b', word a and word b are in the same sentence data sequence; d a,b Indicates the distance between words a and b; d a,b′ represents the distance between words a and b′; exp() represents an exponential function with a natural constant as the base; α1 represents the first adjustment parameter; B aIndicates the number of different words contained in the sentence data sequence where word a is located.
[0019] Furthermore, the method of obtaining the long entity dependency coefficient between two different words includes the following specific methods:
[0020] The product of the base word co-occurrence stripping weight and the co-occurrence representation strength between the two words is recorded as the first product of the two words;
[0021] The sum of the distance between the syntactic distance vectors of the two words and the first adjustment parameter is recorded as the first distance between the two words;
[0022] The normalized value of the ratio of the first product of the two words to the first distance is recorded as the long entity dependency coefficient between the two words.
[0023] Further, the left direction cutoff distance of the word is obtained according to the left boundary word sequence of the word. The specific expression is:
[0024]
[0025] In the formula, Tr a (l) represents the left cutoff distance of the naming of word a; μ a (l1) represents the mean value of the first l1 long entity dependency coefficients contained in the left boundary word sequence of word a; σ a (l1) represents the variance of the first l1 long entity dependency coefficients contained in the left boundary word sequence of word a; L represents the first preset threshold; α1 represents the first adjustment parameter.
[0026] Furthermore, the specific method for obtaining the leftward inclination of the word name is as follows:
[0027] Each long entity dependency coefficient in the left boundary word sequence of the word is used as a coefficient to be analyzed, and the absolute value of the difference between the coefficient to be analyzed and the previous long entity dependency coefficient of the coefficient to be analyzed is recorded as the first difference of the coefficient to be analyzed;
[0028] The exponential function value with the opposite number of the first difference value of the coefficient to be analyzed as the independent variable is recorded as the first power value of the coefficient to be analyzed;
[0029] The product of the sum of the first power values of all long entity dependency coefficients in the left-boundary word sequence and the left-direction truncation distance of the word's name is recorded as the left-direction inclination of the word's name.
[0030] Furthermore, the word direction classification model is established based on the historical database, the left-direction inclination of the name, and the right-direction inclination of the name, including the specific method of:
[0031] Obtain the left-direction inclination and the right-direction inclination of each word in the history database;
[0032] The text data in the historical database is used as the training set, and the label types are set to left, right, bidirectional and undirected. The words in the training set are labeled, and the radial basis function kernel function is used as the kernel function of SVM. The named left direction inclination and the named right direction inclination of all words in the historical database are used to train the SVM model to obtain the trained support vector machine model, and the trained support vector machine model is recorded as the word direction classification model.
[0033] Furthermore, the node selection of the undirected graph nodes is performed to divide the long entities of the sentence data sequence to implement document analysis based on natural language recognition, including the following specific methods:
[0034] The nodes in the undirected graph whose number of connected nodes is greater than or equal to the preset parameter are recorded as target nodes, and the words corresponding to the target nodes are arranged according to the order of the words in the sentence data sequence to obtain the long entity of the sentence data sequence, thereby realizing document analysis based on natural language recognition.
[0035] In a second aspect, an embodiment of the present invention further provides a document analysis system based on natural language recognition, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned methods when executing the computer program.
[0036] The beneficial effects of the present invention are:
[0037] The present invention analyzes the sentence data sequence obtained from the document that needs to perform long named entity recognition, based on the problem that the wide range of document sources leads to insufficient sentence accuracy and the boundary of the entity cannot be accurately determined due to the nesting of long entities. First, based on the characteristics that the long entity naming is unified and the multiple words corresponding to the entity have co-occurrence characteristics, the characteristics of the simultaneous appearance and coexistence of different words in the document are evaluated to obtain the long entity dependency coefficient between two different words. At the same time, the influence of basic phrases with a wide representation range and frequent use on the long named entity recognition is excluded; then, based on the fact that the long entity belongs to a special noun and contains multiple consecutive and nested words Only when these words are combined together can they fully represent the characteristics of a specific entity. The possibility of each word reaching the entity boundary by collecting adjacent words to the left and right is judged, and the left-direction inclination and right-direction inclination of the word are obtained to improve the accuracy of subsequent entity boundary acquisition. Finally, a word direction classification model is established based on the historical database, the left-direction inclination and the right-direction inclination of the word. The long entities of the sentence data sequence of the document that needs to be recognized by long named entities are divided according to the word direction classification model, and document analysis based on natural language recognition is realized to solve the problem of inaccurate recognition of long named entities caused by the difficulty in identifying the boundaries of entities. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] 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 labor.
[0039] Figure 1 A flowchart of a document analysis method based on natural language recognition provided by an embodiment of the present invention;
[0040] Figure 2 Get the flow chart for long entity dependency coefficients. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] See also Figure 1 , which shows a flow chart of a document analysis method based on natural language recognition provided by an embodiment of the present invention, the method comprising the following steps:
[0043] Step S001, pre-processing the text data of the document that needs to perform long named entity recognition, obtaining the sentence data sequence of the document, and establishing a historical database.
[0044] The text data of the document that needs to be recognized by long named entities is processed by sentence segmentation, word segmentation and stop word removal, and the words obtained in the processing results are arranged in order to obtain the sentence data sequence of each document.
[0045] Among them, sentence segmentation, word segmentation and stop word removal of text data are well-known technologies. This embodiment uses Python spacy for sentence segmentation, uses the jieba word segmentation tool for word segmentation, and removes stop words according to the stop word list. The specific process of sentence segmentation, word segmentation and stop word removal will not be repeated here. The implementer can also choose other methods to perform sentence segmentation, word segmentation and stop word removal on the text data of the document.
[0046] A historical database is established based on the data set consisting of the publicly available text data of the annotated long entities, which includes the text data of the annotated long entities, the extracted long entities, and the long entity naming direction of each word in the long entity. The long entity naming direction of the word is divided into left, right, and bidirectional.
[0047] At this point, the sentence data sequence and history database of the document that needs to perform long named entity recognition are obtained.
[0048] Step S002, obtaining the basic word co-occurrence stripping weights between different words, obtaining the co-occurrence representation strength between two different words, and then obtaining the long entity dependency coefficient between the two different words.
[0049] When the entities in the document that needs to be recognized by long named entities are accurate and complete, the description of the document is relatively detailed and accurate, and the entities obtained after long named entity recognition are highly accurate. However, due to the wide range of document sources, the sentences in some documents are not accurate enough and contain a large number of new words and network words. Therefore, long entities in the document may be nested, and long entities may be split into multiple words, resulting in the inability to accurately determine the boundaries of the entities.
[0050] Due to the uniformity of long entity naming in the document, these words corresponding to the entity have co-occurrence characteristics, that is, high repetition rate, and at the same time, these words have a strong degree of sentence connection with each other. However, the document text data contains many basic phrases, which have a wide range of representations, are frequently used, and also have co-occurrence characteristics and high repetition rates. It is necessary to avoid the influence of these basic phrases with high repetition rates on the recognition of long named entities.
[0051] The frequency of occurrence of each word in the sentence data sequence of the document is counted, the Shannon information of each word is calculated, and the Shannon information of the word is recorded as the global information of the word.
[0052] The sentence data sequences of the document are taken as input, and the HanLP toolkit is used to perform dependency syntactic analysis to obtain the dependency tree of the sentence data sequence. The dependency tree of the sentence data sequence is taken as input, and the depth-first search DFS (DepthFirst Search) algorithm is used to obtain the syntactic distance between each word being analyzed in the dependency tree and other words in the dependency tree, and the syntactic distances between the word being analyzed and other words in the dependency tree are arranged in sequence to obtain the syntactic distance vector of the word being analyzed. Each word contained in the dependency tree is taken as the word being analyzed, and the syntactic distance vector of each word contained in the dependency tree is obtained.
[0053] Among them, the calculation of Shannon information, the use of HanLP toolkit for dependency syntax analysis, and the use of depth-first search DFS algorithm to obtain the syntactic distance between words are well-known technologies and will not be described in detail.
[0054] According to the global information of the words, the basic word co-existence stripping weights between different words are obtained.
[0055]
[0056] In the formula, ρ a,b represents the base word co-existence stripping weight between word a and word b, where word a and word b are in the same sentence data sequence; sc a Indicates the global information of word a; sc b Indicates the global information of word b; sc a1 Represents the global information amount of word a1; A represents the number of different words contained in all sentence data sequences in the document where words a and b need to be recognized by long named entities.
[0057] When the global information of two words is larger, the more information the two words contain in all documents that need to be recognized by long named entities, and the possibility that the two words correspond to the basic phrases in the documents is smaller. At this time, the basic word coexistence stripping weight between the two words is larger.
[0058] In the same document that needs to be recognized by long named entities, the number of words between each two different words is calculated. Since these two different words may appear multiple times in the document, the average number of words between two different words is taken as the word distance between the two different words.
[0059] The co-occurrence representation strength between two different words is obtained according to the word spacing distance between different words in the same sentence data sequence and the frequency of co-occurrence of different words in the document in the same sentence data sequence.
[0060]
[0061] In the formula, Z a,b represents the co-occurrence representation strength between word a and word b; n a,b Indicates the frequency of word a and word b appearing simultaneously in the same sentence data sequence in the document where word a and word b need to be recognized by long named entity; n a,b′ Indicates the frequency of word a and word b' appearing simultaneously in the same sentence data sequence in the document where word a and word b are located and need to be recognized by long named entity, where word b', word a and word b are in the same sentence data sequence; d a,b Indicates the distance between words a and b; d a,b′ represents the distance between words a and b′; exp() represents an exponential function with a natural constant as the base; α1 represents a first adjustment parameter, which is used to prevent the denominator from being 0. In this embodiment, the value of the first adjustment parameter is 0.01; B a Indicates the number of different words contained in the sentence data sequence where word a is located.
[0062] The greater the frequency of simultaneous appearance of different words in a document in the same sentence data sequence and the smaller the word interval between the two words, the more obvious the characteristics of the two words appearing and coexisting in the document, and the smaller the possibility that the two words correspond to the basic phrases in the document. At this time, the co-occurrence representation strength between the two different words is greater.
[0063] According to the co-occurrence representation strength and base word co-occurrence stripping weight between two different words, as well as the syntactic distance vector of the words, the long entity dependency coefficient between two different words is obtained.
[0064]
[0065] Where U a,b represents the long entity dependency coefficient between word a and word b; ρ a,b represents the base word co-existence stripping weight between word a and word b; Z a,b represents the co-occurrence representation strength between word a and word b; Norm[] represents the linear normalization function; dtw(P a ,P b ) represents the syntactic distance vector P of word a a The syntactic distance vector P between word b and bα1 represents the first adjustment parameter, which is used to prevent the denominator from being 0. In this embodiment, the value of the first adjustment parameter is 0.01.
[0066] When the co-occurrence representation strength and the base word co-occurrence stripping weight between two different words are greater, and the syntactic distance vectors of the two different words are more similar, the possibility that the two words correspond to the base phrase in the document is smaller. At this time, the long entity dependency coefficient between the two different words is greater.
[0067] At this point, the long entity dependency coefficient between two different words is obtained. The long entity dependency coefficient acquisition flow chart is as follows: Figure 2 shown.
[0068] Step S003, obtaining the left boundary word sequence of the word, obtaining the left inclination of the word's name, and obtaining the right inclination of the word to be analyzed.
[0069] Long entities in document text data are usually special nouns, containing multiple consecutive, nested words. A long entity generally contains words with multiple meanings. When these words with multiple meanings are combined together, they fully represent a specific entity. Therefore, long entities rely on contextual information, and the boundaries of entities are intertwined and overlapped, making them difficult to identify.
[0070] Each word in the sentence data sequence is used as a word to be analyzed, and a first preset threshold number L of adjacent words are obtained to the left and to the right with the word to be analyzed as the center.
[0071] Arrange the long entity dependency coefficients between each adjacent word obtained to the left and the word to be analyzed according to the order of the words in the text data to obtain the left boundary word sequence of the word to be analyzed. In this embodiment, the value of the first preset threshold L is 5.
[0072] Get the left-direction cutoff distance of the word's name according to the word's left-boundary word sequence.
[0073]
[0074] In the formula, Tr a (l) represents the left cutoff distance of the naming of word a; μ a (l1) represents the mean value of the first l1 long entity dependency coefficients contained in the left boundary word sequence of word a; σ a (l1) represents the variance of the first l1 long entity dependency coefficients contained in the left boundary word sequence of word a; L represents the first preset threshold; α1 represents the first adjustment parameter, which is used to prevent the denominator from being 0. In this embodiment, the value of the first adjustment parameter is 0.01.
[0075] When the long entity dependency coefficients between the adjacent words obtained to the left of the word to be analyzed and the word to be analyzed itself are larger, the adjacent words obtained to the left are more likely to have not reached the entity boundary to the left of the word to be analyzed. At this time, the left truncation distance of the word's naming is larger.
[0076] The left-direction inclination of the word is obtained according to the left-boundary word sequence of the word and the left-direction cutoff distance of the word.
[0077]
[0078] Where, Bl a Indicates the leftward inclination of the name of word a; Tr a (l) represents the left-direction cutoff distance of the naming of word a; L represents the first preset threshold; U a (l1) represents the l1th long entity dependency coefficient in the left boundary word sequence of word a; U a (l2) represents the l2th long entity dependency coefficient in the left-boundary word sequence of word a; exp() represents an exponential function with a natural constant as the base.
[0079] The more consistent the grammatical structure of the adjacent words to the left of the word to be analyzed at the corresponding positions in the dependency tree, the smaller the difference in the dependency coefficients of the adjacent long entities in the left boundary word sequence of the word to be analyzed. At the same time, when the left truncation distance of the name of the word to be analyzed is larger, more words are needed to the left of the word to be analyzed to form a long entity. At this time, the left inclination of the name of the word to be analyzed is greater.
[0080] According to the method of "obtaining adjacent words to the left of the word to be analyzed, and then obtaining the leftward inclination of the name of the word to be analyzed" in the above process, similarly, according to the adjacent words obtained to the right of the word to be analyzed, the rightward inclination of the name of the word to be analyzed is obtained.
[0081] At this point, the named leftward inclination and the named rightward inclination of the word are obtained.
[0082] Step S004, establish a word direction classification model based on the historical database, the naming left direction inclination and the naming right direction inclination, use the word direction classification model to obtain the optimal naming direction of the word, establish an undirected graph of the sentence data sequence, divide the long entities of the sentence data sequence, and realize document analysis based on natural language recognition.
[0083] The long entity naming direction of each word in the sentence data sequence is divided into four types: left, right, bidirectional and undirected. Among them, the words with long entity naming directions of left, right and bidirectional are part of the long entity. These words need to be merged and grouped together to form a long entity. The words with long entity naming direction of undirected do not belong to the long entity and do not need to be merged and grouped.
[0084] Get the left-direction inclination and right-direction inclination of each word in the history database.
[0085] The text data in the historical database is used as a training set, and the label types are set to left, right, bidirectional and undirected. The words in the training set are labeled by manual annotation. The radial basis function (RBF) kernel function is used as the kernel function of the SVM. The SVM model is trained using the left-direction inclination and the right-direction inclination of all words in the historical database to obtain the trained support vector machine model. The trained support vector machine model is recorded as a word direction classification model. Among them, the specific process of training the SVM model is a well-known technology and will not be repeated here.
[0086] The left inclination and right inclination of each word in the document requiring long named entity recognition are input into the word direction classification model, the label of each word is obtained, and the label of the word is used as the optimal naming direction of the word.
[0087] Each word in the same sentence data sequence is taken as a node in an undirected graph, and the connection mode of the nodes in the undirected graph is determined according to the optimal naming direction of the word, and an undirected graph of the sentence data sequence is established. The connection mode of the nodes in the undirected graph is specifically as follows: when the optimal naming direction of the word is left, the node corresponding to the word is connected with the node corresponding to the previous word, and the weight of the connection is the left-direction inclination of the word; when the optimal naming direction of the word is right, the node corresponding to the word is connected with the node corresponding to the next word, and the weight of the connection is the right-direction inclination of the word; when the optimal naming direction of the word is bidirectional, the node corresponding to the word is connected with the nodes corresponding to the two words before and after, and the weights of the two connections are the left-direction inclination and the right-direction inclination of the word respectively; when the optimal naming direction of the word is undirected, the nodes of the word are not connected. It should be noted that when there are multiple weights for the same undirected graph connection, the largest weight is selected as the weight of the connection.
[0088] The undirected graph of the sentence data sequence is processed using the region growing algorithm. Each node is used as the initial growth point. When there is a connection between two nodes, the growth continues, otherwise the growth stops, and the growth region of each initial growth point is obtained. From all the growth regions, the growth regions containing the number of nodes greater than or equal to the preset parameter are selected. According to the order of the words corresponding to the initial growth points of the growth regions in the sentence data sequence, the words corresponding to the initial growth points of the growth regions containing the number of nodes greater than or equal to the preset parameter are arranged to obtain the long entity of the sentence data sequence.
[0089] In this embodiment, the value of the preset parameter is 2.
[0090] At this point, the long entities of the sentence data sequence of the document that needs to be recognized by the long named entity are obtained, and the document analysis based on natural language recognition is realized.
[0091] Based on the same inventive concept as the above method, an embodiment of the present invention also provides a document analysis system based on natural language recognition, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of any one of the above-mentioned document analysis methods based on natural language recognition are implemented.
[0092] 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 document analysis method based on natural language recognition, characterized in that: The method comprises the following steps: Preprocess the text data of the document that needs long named entity recognition, obtain the sentence data sequence of the document, and establish a historical database; Calculate the global information of the words, obtain the syntactic distance vector of the words, obtain the basic word co-occurrence stripping weights between different words based on the global information of the words, count the word interval distances between two different words, and obtain the co-occurrence representation strength between two different words based on the word interval distance and the frequency of different words appearing simultaneously in the same sentence data sequence in the document, and then obtain the long entity dependency coefficient between the two different words; Obtain the adjacent words of each word to the left and right respectively, obtain the left boundary word sequence of the word, obtain the left direction truncation distance of the word according to the left boundary word sequence of the word, and then obtain the left direction inclination of the word, and obtain the right direction inclination of the word to be analyzed; According to the historical database, the left-direction inclination of the naming and the right-direction inclination of the naming, a word direction classification model is established, and the optimal naming direction of the word is obtained using the word direction classification model. An undirected graph of the sentence data sequence is established, and nodes of the undirected graph are selected to divide the long entities of the sentence data sequence, so as to realize document analysis based on natural language recognition; The co-occurrence representation strength between two different words is obtained according to the word interval distance and the frequency of co-occurrence of different words in the document in the same sentence data sequence. The specific expression is: In the formula, Z a,b Indicates the co-occurrence representation strength between word a and word b, where word a and word b are in the same sentence data sequence; n a,b Indicates the frequency of word a and word b appearing simultaneously in the same sentence data sequence in the document where word a and word b need to be recognized by long named entity; n a,b′ Indicates the frequency of word a and word b' appearing simultaneously in the same sentence data sequence in the document where word a and word b are located and need to be recognized by long named entity, where word b', word a and word b are in the same sentence data sequence; d a,b Indicates the distance between words a and b; d a,b′ represents the distance between words a and b′; exp() represents an exponential function with a natural constant as the base; α1 represents the first adjustment parameter; B a Indicates the number of different words contained in the sentence data sequence where word a is located.
2. The document analysis method based on natural language recognition according to claim 1, characterized in that: The specific method of calculating the global information amount of a word includes: The Shannon information of each word in the sentence data sequence is calculated, and the Shannon information of the word is recorded as the global information of the word.
3. The document analysis method based on natural language recognition according to claim 2, characterized in that: The basic word coexistence stripping weights between different words are obtained by: The sum of the global information of the two words is recorded as the information sum; The sum of the global information amounts of the words contained in all sentence data sequences in the documents where the two words are located is recorded as the total information amount; The ratio of the sum of the information amounts to the total information amounts is recorded as the base word co-existence stripping weight between the two words.
4. The document analysis method based on natural language recognition according to claim 1, characterized in that: The specific method of obtaining the long entity dependency coefficient between two different words is as follows: The product of the base word co-occurrence stripping weight and the co-occurrence representation strength between the two words is recorded as the first product of the two words; The sum of the distance between the syntactic distance vectors of the two words and the first adjustment parameter is recorded as the first distance between the two words; The normalized value of the ratio of the first product of the two words to the first distance is recorded as the long entity dependency coefficient between the two words.
5. The document analysis method based on natural language recognition according to claim 1, characterized in that: The left-direction truncation distance of the word naming is obtained according to the left-boundary word sequence of the word. The specific expression is: In the formula, Tr a (l) represents the left cutoff distance of the naming of word a; μ a (l1) represents the mean value of the first l1 long entity dependency coefficients contained in the left boundary word sequence of word a; σ a (l1) represents the variance of the first l1 long entity dependency coefficients contained in the left boundary word sequence of word a; L represents the first preset threshold; α1 represents the first adjustment parameter.
6. The document analysis method based on natural language recognition according to claim 1, characterized in that: The specific method for obtaining the leftward inclination of the word is as follows: Each long entity dependency coefficient in the left boundary word sequence of the word is used as a coefficient to be analyzed, and the absolute value of the difference between the coefficient to be analyzed and the previous long entity dependency coefficient of the coefficient to be analyzed is recorded as the first difference of the coefficient to be analyzed; The exponential function value with the opposite number of the first difference value of the coefficient to be analyzed as the independent variable is recorded as the first power value of the coefficient to be analyzed; The product of the sum of the first power values of all long entity dependency coefficients in the left-boundary word sequence and the left-direction truncation distance of the word's name is recorded as the left-direction inclination of the word's name.
7. The document analysis method based on natural language recognition according to claim 1, characterized in that: The specific method of establishing a word direction classification model based on the historical database, the left-direction inclination of the name and the right-direction inclination of the name is as follows: Obtain the left-direction inclination and the right-direction inclination of each word in the history database; The text data in the historical database is used as the training set, and the label types are set to left, right, bidirectional and undirected. The words in the training set are labeled, and the radial basis function kernel function is used as the kernel function of SVM. The named left direction inclination and the named right direction inclination of all words in the historical database are used to train the SVM model to obtain the trained support vector machine model, and the trained support vector machine model is recorded as the word direction classification model.
8. The document analysis method based on natural language recognition according to claim 1, characterized in that: The node selection of the undirected graph nodes is performed to divide the long entities of the sentence data sequence, and the document analysis based on natural language recognition is realized, and the specific method includes: The nodes in the undirected graph whose number of connected nodes is greater than or equal to the preset parameter are recorded as target nodes, and the words corresponding to the target nodes are arranged according to the order of the words in the sentence data sequence to obtain the long entity of the sentence data sequence, thereby realizing document analysis based on natural language recognition.
9. A document analysis system based on natural language recognition, 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, the steps of the method according to any one of claims 1 to 8 are implemented.
