Named entity identification method and device, equipment and medium
A named entity recognition and overall technology, applied in the computer field, can solve problems such as poor recognition effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] Embodiment 1 of the present invention provides a named entity recognition method, figure 1 A flowchart showing an embodiment of the named entity recognition method of the present invention, including:
[0049] Step S101: input the target sentence into the current named entity recognition model, and obtain the tag type and corresponding probability of each character in the target sentence;
[0050] In this embodiment, the sentence to be recognized by named entity is input into the current named entity recognition model, and each character in the sentence is marked separately to obtain the type of label and the corresponding probability. The named entity recognition model used such as BERT model, LSTM -CRF model, etc. For example, the target sentence is "I love Beijing", input the sentence into the current named entity recognition model, and mark each character in the sentence as "B (Begining)" and "M (Middle)" , one of the "E(End)" or "O(Outside)" labels, to get the lab...
Embodiment 2
[0086] The named entity recognition device described below and the named entity recognition method described above may refer to each other correspondingly.
[0087] The embodiment of the present invention also provides a named entity recognition device, Image 6 It shows a schematic structural diagram of an embodiment of the named entity recognition device of the present invention, including:
[0088] Annotation module 101, is used for inputting target sentence into current named entity recognition model, obtains the labeling type and corresponding probability of each character in described target sentence;
[0089] The loss value acquisition module 102 is configured to calculate the corresponding loss value of the label type of each character according to the corresponding probability of the label type of each character according to the target loss function, and according to the current loss value Calculating an overall loss value, the target loss function increases the atte...
Embodiment 3
[0101] Based on the above solution, the present invention also provides a named entity recognition device, including the above-mentioned named entity recognition device, and details of the named entity recognition device will not be repeated here.
[0102] In addition, the embodiment of the present application also provides a named entity recognition device, such as Figure 7 As shown, the equipment includes:
[0103] memory 11 for storing computer programs;
[0104] The processor 12 is used to implement the following steps when executing the computer program: input the target sentence into the current named entity recognition model to obtain the label type and corresponding probability of each character; according to the corresponding probability of the label type of each character according to The target loss function calculates the corresponding loss value, calculates the overall loss value according to the current loss value, and the target loss function increases the att...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com