Chinese named entity recognition network model based on radical feature embedding
By introducing radical feature embedding into the Chinese named entity recognition algorithm, combining word and character features, and using Bi-LSTM and CRF decoding layers, the problem of low semantic recognition accuracy and low F value in the existing technology is solved, achieving a more efficient and Accurate Chinese named entity recognition.
Patent Information
- Application Number
- CN202210157121.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-02-21
AI Technical Summary
Existing Chinese named entity recognition algorithms perform poorly in terms of semantic recognition accuracy and F-value (the balance between precision and recall), and do not fully utilize Chinese radical features.
A Chinese named entity recognition network model based on radical feature embedding is designed. The model consists of input layer, word feature embedding vector layer, character feature embedding vector layer, radical feature embedding vector layer, Bi-LSTM encoding layer, upper connection layer, The CRF decoding layer and output layer combine word features, character features and radical features to encode and decode text to achieve recognition of Chinese named entities.
It improves the accuracy and recall rate of Chinese named entity recognition, improves the F value, has fast recognition speed, simple recognition process, and is easy to implement. It enriches the Chinese text and semantic feature information learned by the model, and significantly improves the performance of named entity recognition. .
Smart Images

Figure CN114510945B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of natural language processing and Chinese named entity recognition. Background Art
[0002] In the Chinese named entity recognition algorithm, using Chinese word feature embedding (Word Embedding) and Chinese character feature embedding (Char Embedding) as the input features of the model encoder is the mainstream method in recent years. Although these methods that only use Chinese word and Chinese character features as encoder input features have good results in the field of Chinese named entity recognition, Chinese radical features have been ignored in the field of named entity recognition. As a pictographic language, Chinese characters are usually abstracted from corresponding objects. The meaning expressed by the characters can be obtained through the characters themselves, and Chinese characters are often composed of one or more parts, and the partial components express the semantic information of the characters or words.
[0003] The Chinese named entity recognition algorithm in the prior art often only considers Chinese word feature embedding (WordEmbedding) and Chinese character feature embedding (Char Embedding) as the input features of the model encoder, resulting in low semantic recognition accuracy and F-value of the Chinese named entity recognition algorithm. The F-value represents the balance relationship between precision and recall. Therefore, the above problems need to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to solve the problems of low semantic recognition accuracy and F-value of existing Chinese named entity recognition algorithms. The present invention provides a Chinese named entity recognition network model based on radical feature embedding.
[0005] A Chinese named entity recognition network model based on radical feature embedding, which includes an input layer, a word feature embedding vector layer, a character feature embedding vector layer, a radical feature embedding vector layer, a lower connection layer, a Bi-LSTM encoding layer, an upper connection layer, a CRF decoding layer and an output layer;
[0006] The input layer is used to receive the input text sentence S = {x1, x2, ..., x n}, and send each character in the text sentence S to the word feature embedding vector layer, character feature embedding vector layer, and radical feature embedding vector layer at the same time; where x i is the i-th character in the sentence, i=1,2,3...n, i is an integer;
[0007] The word feature embedding vector layer is used to obtain the character x in the text sentence S based on the word segmentation technology i The matching word sequence w i1 ,wi2 ,…,w iP , according to the character x i Each matching word in the matching word sequence is used to obtain the feature vector of each matching word Then according to the feature vector of each matching word And the weight value of the matching word Get character x i The matching word feature vector
[0008] Among them, w ij For character x i The jth matching word in the matching word sequence; j = 1, 2, ... P, j and P are both integers;
[0009] For character x i The feature vector of the j-th matching word;
[0010] For character x i The weight value of the j-th matching word;
[0011] Character feature embedding vector layer is used to embed the received character x i and the character embedding feature vector matrix W c The relationship between them, get the character x i Character embedding feature vector and in,
[0012] C is the number of Chinese characters in the character embedding feature vector matrix;
[0013] d c is the dimension of the character embedding feature vector;
[0014] R represents a real number;
[0015] The radical feature embedding vector layer is used to split each character into its components using Chinese character decomposition technology. i The result after radical splitting is x i ′={r i1 , r i2 , ...r im}, then according to x i Each radical in ′ and the Chinese radical embedding feature matrix W r The relationship between them, get the character x i The characteristic vector of each radical in Then according to the character x i The radicals in the character x i The semantic information contribution score in the text sentence S is score(xi ,r ik ), get the character x i The weight of each radical in Then according to the character x i The characteristic vector of each radical The weight value of the radical Get character x i The radical feature vector of and in,
[0016] r ik For character x i The kth radical of , k=1,2,3……m; k is an integer;
[0017] d r is the dimension of the radical feature vector;
[0018] r is the number of radical eigenvectors;
[0019] The lower connection layer is used to connect the character x i The matching word feature vector Character Embedding Feature Vector and radical feature vector Connect in series to get the character x i The final feature vector
[0020] The Bi-LSTM encoding layer is used to encode the character x i The final feature vector v i Encode and get character x i The forward and backward hidden state vectors of i The forward and backward hidden state vectors are used as the input of the upper connection layer;
[0021] The upper connection layer is used to connect the forward and backward hidden state vectors of each character, and the connected result is used as the input of the CRF decoding layer;
[0022] The CRF decoding layer is used to decode the output of the upper connection layer to obtain the entity labels of all characters. The entity labels of the characters contain the entity category and position of the characters.
[0023] The output layer is used to output the entity labels of all characters.
[0024] The beneficial effects of the present invention are:
[0025] The present invention is constructed as a radical feature embedding matrix (Radical Embedding Matrix); when text is input into the model, characters are split into the form of their radicals, which are mapped into radical feature vectors, and combined with word feature vectors and character feature vectors, and then input into a Bi-LSTM encoding layer for encoding; the encoded features are decoded by a CRF decoding layer to obtain named entity category labels and position labels of the input text, thereby realizing recognition of Chinese named entities; by jointly recognizing text sentences through the radical feature vector, the word feature vector and the character feature vector, the recognition speed is fast, the recognition accuracy is high, the recall rate is improved, the F value is high, and the entire recognition process is simple to operate and easy to implement.
[0026] In this recognition process, the present invention provides a Chinese named entity recognition network model based on radical feature embedding, which adds Chinese radical feature embedding (Radical Embedding) to the input features of the encoder to enrich the Chinese text and semantic feature information learned by the model to improve the performance of the Chinese named entity recognition network model. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The schematic diagram of the principle of the Chinese named entity recognition network model based on radical feature embedding of the present invention; wherein T1 to Tn represent the entity labels of the first to nth characters respectively;
[0028] Figure 2 Schematic diagram of the principle of embedding radical features into the vector layer. DETAILED DESCRIPTION
[0029] 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.
[0030] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0031] Example:
[0032] See also Figure 1 and Figure 2The present embodiment is described, the Chinese named entity recognition network model based on radical feature embedding described in the basic embodiment, the network model includes an input layer, a word feature embedding vector layer, a character feature embedding vector layer, a radical feature embedding vector layer, a lower connection layer, a Bi-LSTM encoding layer, an upper connection layer, a CRF decoding layer and an output layer;
[0033] The input layer is used to receive the input text sentence S = {x1, x2, ..., x n}, and send each character in the text sentence S to the word feature embedding vector layer, character feature embedding vector layer, and radical feature embedding vector layer at the same time; where x i is the i-th character in the sentence, i=1,2,3...n, i is an integer;
[0034] The word feature embedding vector layer is used to obtain the character x in the text sentence S based on the word segmentation technology i The matching word sequence w i1 ,w i2 ,…,w iP , according to the character x i Each matching word in the matching word sequence is used to obtain the feature vector of each matching word Then according to the feature vector of each matching word And the weight value of the matching word Get character x i The matching word feature vector
[0035] Among them, w ij For character x i The jth matching word in the matching word sequence; j = 1, 2, ... P, j and P are both integers;
[0036] For character x i The feature vector of the j-th matching word;
[0037] For character x i The weight value of the j-th matching word;
[0038] Character feature embedding vector layer is used to embed the received character x i and the character embedding feature vector matrix W c The relationship between them, get the character x i Character embedding feature vector and in,
[0039] C is the number of Chinese characters in the character embedding feature vector matrix;
[0040] d cis the dimension of the character embedding feature vector;
[0041] R represents a real number;
[0042] The radical feature embedding vector layer is used to split each character into its components using Chinese character decomposition technology. i The result after radical splitting is x i ′={r i1 , r i2 , ...r im}, then according to x i Each radical in ′ and the Chinese radical embedding feature matrix W r The relationship between them, get the character x i The characteristic vector of each radical in Then according to the character x i The radicals in the character x i The semantic information contribution score in the text sentence S is score(x i ,r ik ), get the character x i The weight of each radical in Then according to the character x i The characteristic vector of each radical The weight value of the radical Get character x i The radical feature vector of and in,
[0043] r ik For character x i The kth radical of , k=1,2,3……m; k is an integer;
[0044] d r is the dimension of the radical feature vector;
[0045] r is the number of radical eigenvectors;
[0046] The lower connection layer is used to connect the character x i The matching word feature vector Character Embedding Feature Vector and radical feature vector Connect in series to get the character x i The final feature vector
[0047] The Bi-LSTM encoding layer is used to encode the character x i The final feature vector v i Encode and get character x i The forward and backward hidden state vectors ofi The forward and backward hidden state vectors are used as the inputs of the upper connection layer;
[0048] The upper connection layer is used to concatenate the forward and backward hidden state vectors of each character, and the concatenated result is used as the input of the CRF decoding layer;
[0049] The CRF decoding layer is used to decode the result output by the upper connection layer to obtain the entity labels of all characters. The entity labels of the characters include the entity categories and positions of the characters;
[0050] The output layer is used to output the entity labels of all characters. In this embodiment, the characters are split into the form composed of their radicals, mapped into radical feature vectors, and combined with word feature vectors and character feature vectors, and then input into the Bi-LSTM encoding layer for encoding. After the encoded features are decoded by the CRF decoding layer, the named entity category labels and position labels of the input text are obtained, so as to realize the recognition of Chinese named entities. By jointly using the radical feature vectors, word feature vectors and character feature vectors to recognize text sentences, the recognition speed is fast, the recognition accuracy is high, the recall rate is low, the F value is high, the whole recognition process is simple to operate, easy to implement, and the overall performance of the network model is high.
[0051] Specifically in application, the character embedding feature vector matrix W c can be implemented by existing technologies. The Bi-LSTM encoding layer and the CRF decoding layer can both be implemented by existing technologies. Among them, the full English name of Bi-LSTM is Bi-Long Short-Term Memory, and the Chinese translation is bidirectional long short-term memory network. The full English name of CRF is Conditional Random Fields, and the Chinese translation is conditional random field.
[0052] Specifically in application, taking the input sentence as an example: "The Nanjing Yangtze River Bridge is located in Jiangsu Province", the radical splitting results of each character are:
[0053] The radical of the character "南" is split into: 十冂丫二;
[0054] The radical of the character "京" is split into: 亠口小;
[0055] The radical of the character "市" is split into: 亠巾;
[0056] The radical of the character "长" is split into: 长;
[0057] The radical of the character "江" is split into: 氵工;
[0058] The radical of the character "大" is split into: 人一;
[0059] The radical of the character "桥" is split into: 木乔;
[0060] The radical of the character "坐" is split into: 人人土;
[0061] The radical of the character "落" is split into: 艹氵各;
[0062] The radical of the character "于" is split into: 二亅;
[0063] The radical of the character "江" is split into: 氵工;
[0064] The radical of the character "苏" is split into: 艹办;
[0065] The radical of the character "省" is split into: 少目.
[0066] Further, for the word feature embedding vector layer, according to each matching word in the matching word sequence of character x i obtain the feature vectors of each matching word The implementation method is:
[0067] Character x i There is a mapping relationship between each matching word in the matching word sequence of and the Chinese word embedding feature vector matrix W w Map each matching word in the matching word sequence of character x i to the Chinese word embedding feature vector matrix W w to obtain the feature vectors of the corresponding matching words of character x i And And
[0068] where w is the number of matching word feature vectors in the Chinese word embedding feature vector matrix;
[0069] d w is the dimension of each matching word feature vector.
[0070] In the specific application of this preferred implementation, taking the input sentence as an example: "The Nanjing Yangtze River Bridge is located in Jiangsu Province", the matching words for each character are:
[0071] The matching words for the character "南": Nanjing, Nanjing City, Mayor of Nanjing;
[0072] The matching words for the character "京": Nanjing, Nanjing City, Mayor of Nanjing;
[0073] The matching words for the character "市": Nanjing City, Mayor of Nanjing;
[0074] The matching words for the character "长": Mayor of Nanjing, Yangtze River, Nanjing Yangtze River Bridge;
[0075] The matching words for the character "江": Yangtze River, Nanjing Yangtze River Bridge, Jiang Bridge;
[0076] Matching words for the character "大": Yangtze River Bridge, River Bridge;
[0077] Matching words for the character "桥": Yangtze River Bridge, River Bridge;
[0078] Matching words for the character "江": Jiangsu Province;
[0079] Matching words for the character "苏": Jiangsu Province;
[0080] Matching words for the character "省": Jiangsu Province;
[0081] For the characters "坐", "落", and "于", there are no matching words.
[0082] In specific applications, the Chinese word embedding feature vector matrix W w is prior art and can be implemented through prior art.
[0083] Furthermore, in the word feature embedding vector layer, the weight value is obtained as follows:
[0084] According to the contribution degree of the j-th matching word in the matching word sequence of the character x i set the weight of this matching word in the matching word sequence of the character x i to obtain the weight value of this matching word
[0085] Furthermore, in the word feature embedding vector layer, the matching word feature vector i of the character x is implemented as follows:
[0086] Sum the weighted matching word feature vectors of all matching words of the character x i to obtain the matching word feature where, the expression of
[0087]
[0088] Furthermore, the character feature embedding vector layer is used to obtain the character embedding feature vector i of the character x c according to the relationship between the received character x i and the character embedding feature vector matrix W The implementation is as follows:
[0089] There is a mapping relationship between the character x i and the character embedding feature vector matrix W c Map the character x i to the character embedding feature vector matrix W c to obtain the character embedding feature vector of the character x iCharacter embedding feature vector
[0090] In this preferred embodiment, the character embedding feature vector matrix W c It is a prior art and is achieved by using the prior art.
[0091] Furthermore, the radical feature embedding vector layer is based on x i Each radical in ′ and the Chinese radical embedding feature matrix W r The relationship between them, get the character x i The characteristic vector of each radical The implementation is:
[0092] x i Each radical in ′ and the Chinese radical embedding feature matrix W r There is a mapping relationship, x i Each radical in ′ is mapped to the Chinese radical embedding feature matrix W r So we get the character x i The characteristic vector of each radical
[0093] Furthermore, the radical feature embedding vector layer is based on x i Each radical in ′ and the Chinese radical embedding feature matrix W r The relationship between them, get the character x i The characteristic vector of each radical in The implementation is:
[0094] x i Each radical in ′ and the Chinese radical embedding feature matrix W r There is a mapping relationship between x i Each radical in ′ is mapped to the Chinese radical embedding feature matrix W r In the code, get the symbol x i The characteristic vector of each radical in
[0095] Furthermore, the radical feature embedding vector layer is based on the character x i The radicals in the character x i The semantic information contribution score (x) in the text sentence S i ,r ik ), get the character x i The weight of each radical in The implementation is:
[0096] Through the softmax function, score(x i ,r ik ) to perform normalization operation and obtain character x i The weight of each radical in
[0097] Furthermore, the radical feature embedding vector layer is based on the character x i The characteristic vector of each radical The weight value of the radical Get character x i The radical feature vector of The implementation is:
[0098]
[0099] Furthermore, the Chinese radical embedding feature matrix W r The way to obtain is:
[0100] The grayscale bitmaps of all radicals in the dictionary are input into the convolutional neural network CNN to obtain the Chinese radical embedding feature matrix W r .
[0101] In this preferred embodiment, the Chinese radical embedding feature matrix W can be realized by using the existing convolutional neural network CNN. r The construction is simple and easy to implement.
[0102] In specific applications, the annotation method for obtaining the entity category and position label of the character in this embodiment can be implemented through the BIOES annotation system. If the character is at the first position of the named entity, it is marked with B; if the character is in the middle position of the named entity, it is marked with I; the last character of the named entity is marked with E; the character that is an entity itself is marked with S; O indicates that the character does not have any entity meaning and is an ordinary character outside the named entity.
[0103] Taking the input sentence as an example: "Nanjing Yangtze River Bridge is located in Jiangsu Province", the label results of each character obtained can be expressed as: B-LOC (label result of "South"), I-LOC (label result of "Beijing"), E-LOC (label result of "City"), B-LOC (label result of "Chang"), I-LOC (label result of "Jiang"), I-LOC (label result of "Da"), E-LOC (label result of "Qiao"), O (label result of "Zuo"), O (label result of "Lu"), O (label result of "Yu"), B-LOC (label result of "Jiang"), I-LOC (label result of "Su"), E-LOC (label result of "Province"); among them, taking the label result B-LOC of "South" as an example, the explanation is given, the LOC in B-LOC represents the entity category, and the B in B-LOC represents that the character "South" is the first character in the entity category in the entity category of Nanjing City.
[0104] Verification test:
[0105] The performance evaluation criteria of the Chinese named entity recognition network model based on radical feature embedding described in the present invention are evaluated by precision (P), recall (R) and F1 value. The parameter settings of the Chinese named entity recognition network model based on radical feature embedding of the present invention are shown in Table 1:
[0106] Table 1. Parameter settings of the model of the present invention
[0107]
[0108] A comparative experiment was conducted on the recognition network model of the present invention and the existing named entity recognition model in the Chinese field. The experimental results are shown in Table 2.
[0109] Table 2. Experimental results of different deep learning models on MSRA dataset
[0110]
[0111] From the comparative experimental results of the MSRA data set, it can be seen that the performance of the character-based NER model using CRF and the Chinese NER model using multiple phrases in the Chinese named entity recognition task is not much different. After adding multiple feature templates to the Chinese NER model using multiple phrases, the model performance is improved. The accuracy of the recognition result is improved by about 1.6%, the comprehensiveness of recognition is improved by about 2%, and the F1 value is improved by 1.7%. It can be seen that the Chinese named entity recognition network model based on radical feature embedding proposed in the present invention can learn richer text features and has a significant effect on improving model performance. The Chinese named entity recognition network model based on radical feature embedding proposed in the present invention (that is, NERMRF model) has outstanding performance compared with the current NER method using deep learning methods. The recall rate (R) can reflect that the invention recognition network model can recognize named entity words as comprehensively as possible in free text, and the precision rate (P) can show that the probability of the recognized named entity model being able to label the correct category label is extremely high.
[0112] We use the MSRA dataset and the ResumeNER dataset to verify the importance of multi-granularity features for Chinese named entity recognition models. The experimental results are shown in Tables 3 and 4.
[0113] Table 3. Experimental results of comparing multi-granularity information on the MSRA dataset.
[0114]
[0115] Table 4. Experimental results of comparing multi-granularity information on the ResumeNER dataset.
[0116]
[0117] Char-baseline represents a baseline model based on character features, Word-baseline represents a baseline model based on word features, Word-baseline+Char represents a baseline model based on word features with character features added, ME-BiLSTM-CRF represents a multi-granularity named entity recognition model based on Bi-LSTM and CRF, and the NERMRF model represents the Chinese named entity recognition network model based on radical feature embedding described in the present invention.
[0118] From the experimental results, it can be seen that the NER model that only uses character features or only uses word features has the worst performance among the selected comparison models in terms of both the accuracy of named entity recognition and the comprehensiveness of entity recognition, and there is not much difference in performance between the models using single granularity features, which shows that it is not worth using a single feature information such as word features or character features to perform Chinese named entity recognition tasks.
[0119] The Word-baselin+Char and ME-BiLSTM-CRF models fuse character and word-level features as text features for named entity recognition, and their model performance has been significantly improved. In the experiment of the MSRA dataset, the precision rate was improved by about 3.8%, the recall rate was improved by about 4.3%, and the F1 value was improved by about 4.2% compared with the precision rate of the single feature model. The difference between these two multi-feature models is that the latter adopts a "gated" structure to fuse the matching words of the characters in the text in the dictionary, which means that the character feature vector in the input text is combined with all its matching word feature vectors in the dictionary as the input feature vector of the model encoder, ensuring the comprehensiveness of the word features. The model of the present invention (NERMRF model) has added more fine-grained radical features, and the model has learned more types of features. The model has higher precision, recall and F1 values than the other four models in the experiments of the two sets of datasets. It shows that multi-granular feature fusion contributes to the comprehensiveness and accuracy of named entity recognition, and the model of the present invention is of great significance to the task of Chinese named entity recognition.
[0120] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that features described in conjunction with individual embodiments may be used in other described embodiments.
Claims
1. A Chinese named entity recognition network model based on radical feature embedding, characterized by: The network model includes an input layer, a word feature embedding vector layer, a character feature embedding vector layer, a radical feature embedding vector layer, a lower connection layer, a Bi-LSTM encoding layer, an upper connection layer, a CRF decoding layer and an output layer; The input layer is used to receive the input text sentence S = {x1, x2, ..., x n }, and send each character in the text sentence S to the word feature embedding vector layer, character feature embedding vector layer, and radical feature embedding vector layer at the same time; where x i is the i-th character in the sentence, i=1,2,3...n, i is an integer; The word feature embedding vector layer is used to obtain the character x in the text sentence S based on the word segmentation technology i The matching word sequence w i1 ,w i2 ,…,w iP , according to the character x i Each matching word in the matching word sequence is used to obtain the feature vector of each matching word Then according to the feature vector of each matching word And the weight value of the matching word Get character x i The matching word feature vector Among them, w ij For character x i The jth matching word in the matching word sequence; j = 1, 2, ... P, j and P are both integers; For character x i The feature vector of the j-th matching word; For character x i The weight value of the j-th matching word; Character feature embedding vector layer is used to embed the received character x i and the character embedding feature vector matrix W c The relationship between them, get the character x i Character embedding feature vector and in, C is the number of Chinese characters in the character embedding feature vector matrix; d c is the dimension of the character embedding feature vector; R represents a real number; The radical feature embedding vector layer is used to split each character into its components using Chinese character decomposition technology. i The result after radical splitting is x i ′={r i1 , r i2 , ...r im }, then according to x i Each radical in ′ and the Chinese radical embedding feature matrix W r The relationship between them, get the character x i The characteristic vector of each radical in Then according to the character x i The radicals in the character x i The semantic information contribution score in the text sentence S is score(x i ,r ik ), get the character x i The weight of each radical in Then according to the character x i The characteristic vector of each radical The weight value of the radical Get character x i The radical feature vector of and in, r ik For character x i The kth radical of , k=1,2,3……m; k is an integer; d r is the dimension of the radical feature vector; r is the number of radical eigenvectors; The lower connection layer is used to connect the character x i The matching word feature vector Character Embedding Feature Vector and radical feature vector Connect in series to get the character x i The final feature vector The Bi-LSTM encoding layer is used to encode the character x i The final feature vector v i Encode and get character x i The forward and backward hidden state vectors of i The forward and backward hidden state vectors are used as the input of the upper connection layer; The upper connection layer is used to connect the forward and backward hidden state vectors of each character, and the connected result is used as the input of the CRF decoding layer; The CRF decoding layer is used to decode the output of the upper connection layer to obtain the entity labels of all characters. The entity labels of the characters contain the entity category and position of the characters. The output layer is used to output the entity labels of all characters.
2. According to claim 1, the Chinese named entity recognition network model based on radical feature embedding is characterized in that: Word feature embedding vector layer, according to character x i Each matching word in the matching word sequence is used to obtain the feature vector of each matching word The implementation is: Character x i Each matching word in the matching word sequence and the Chinese word embedding feature vector matrix W w There is a mapping relationship, character x i Each matching word in the matching word sequence is mapped to the Chinese word embedding feature vector matrix W w So we get the character x i The corresponding feature vectors of each matching word and Where w is the number of matching word feature vectors in the Chinese word embedding feature vector matrix; d w The dimension of the feature vector for each matching word.
3. According to claim 1, the Chinese named entity recognition network model based on radical feature embedding is characterized in that: Word features are embedded in the vector layer, weight value The way to obtain is: According to the character x i The contribution of the jth matching word in the matching word sequence is set to the matching word in character x i The weight of the matching word sequence is obtained by 4. The Chinese named entity recognition network model based on radical feature embedding according to claim 1 is characterized in that: In the word feature embedding vector layer, character x i The matching word feature vector The implementation is: The character x i The weighted sum of all matching word feature vectors is used to obtain the matching word feature. in, The expression is:
5. The Chinese named entity recognition network model based on radical feature embedding according to claim 1 is characterized in that: Character feature embedding vector layer is used to embed the received character x i and the character embedding feature vector matrix W c The relationship between them, get the character x i Character embedding feature vector The implementation is: Character x i and the character embedding feature vector matrix W c There is a mapping relationship between the characters x i Mapped to character embedding feature vector matrix W c So we get the character x i Character embedding feature vector 6. The Chinese named entity recognition network model based on radical feature embedding according to claim 1 is characterized in that: The radical feature embedding vector layer is based on x i Each radical in ′ and the Chinese radical embedding feature matrix W r The relationship between them, get the character x i The characteristic vector of each radical The implementation is: x i Each radical in ′ and the Chinese radical embedding feature matrix W r There is a mapping relationship, x i Each radical in ′ is mapped to the Chinese radical embedding feature matrix W r So we get the character x i The characteristic vector of each radical 7. The Chinese named entity recognition network model based on radical feature embedding according to claim 1 is characterized in that: The radical feature embedding vector layer is based on x i Each radical in ′ and the Chinese radical embedding feature matrix W r The relationship between them, get the character x i The characteristic vector of each radical in The implementation is: x i Each radical in ′ and the Chinese radical embedding feature matrix W r There is a mapping relationship between x i Each radical in ′ is mapped to the Chinese radical embedding feature matrix W r In the code, get the symbol x i The characteristic vector of each radical in 8. The Chinese named entity recognition network model based on radical feature embedding according to claim 1 or 7, characterized in that: The radical feature embedding vector layer is based on the character x i The radicals in the character x i The semantic information contribution score in the text sentence S is score(x i ,r ik ), get the character x i The weight of each radical in The implementation is: Through the softmax function, scire(x i ,r ik ) to perform normalization operation and obtain character x i The weight of each radical in 9. The Chinese named entity recognition network model based on radical feature embedding according to claim 1 is characterized in that: The radical feature embedding vector layer is based on the character x i The characteristic vector of each radical The weight value of the radical Get character x i The radical feature vector of The implementation is:
10. The Chinese named entity recognition network model based on radical feature embedding according to claim 1 is characterized in that: Chinese radical embedding feature matrix W r The way to obtain is: The grayscale bitmaps of all radicals in the dictionary are input into the convolutional neural network CNN to obtain the Chinese radical embedding feature matrix W r .
Citation Information
Patent Citations
Electronic medical record named entity identifying method, device and storage medium
CN109388807A
Multi-embedded named entity recognition method, device, equipment and storage medium
CN111597815A
Electronic medical record named entity recognition method based on data enhancement
CN113990421A
Named entity recognition method and apparatus, device, and computer readable storage medium
WO2020232882A1
