Multi-modal named entity identification method and system, storage medium and electronic equipment
Through the combination of optical character recognition and large models, the problem of single-modal text dependence in the existing technology is solved, and efficient and accurate multi-modal named entity recognition is achieved. It is suitable for processing complex document structures and special text formats, improving Improved performance and user experience of named entity recognition.
Patent Information
- Application Number
- CN202410562682.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-03
AI Technical Summary
Existing named entity recognition technology mainly focuses on single-modal text and cannot fully utilize image information, resulting in poor named entity recognition performance for multi-modal data. It also relies on manual features or rules and is difficult to adapt to the diversity and complexity of data. , the recognition speed is slow and the effect is not good, especially in the processing of complex document structures and special text formats.
Use optical character recognition combined with large models to perform multi-modal named entity recognition. By performing text recognition on table images, merging the recognized texts, and performing named entity recognition in the large model, the knowledge base is used to filter target entity tags to improve recognition accuracy. and efficiency.
It improves the accuracy and efficiency of named entity recognition, enhances the applicability to different fields and contexts, improves user experience, and enables efficient processing of multi-modal data.
Smart Images

Figure CN118586390A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of deep learning, and in particular relates to a multimodal named entity recognition method, system, storage medium and electronic device. Background Art
[0002] With the rapid development of information technology, more and more text and image data are being digitized and widely used in various fields. Named Entity Recognition (NER) is an important task in Natural Language Processing (NLP). Named Entity Recognition is a natural language processing technology that aims to identify named entities with specific meanings from text, such as names of people, places, organizations, dates, times, currencies, etc. NER technology can help computers understand named entities in text, so as to better understand text content, extract information or perform information retrieval.
[0003] Named entity recognition technology has a wide range of applications in information extraction, question-answering systems, text classification, machine translation, and other fields. For example, in information extraction, named entity recognition technology can help identify key information in the text, such as meeting date, location, speakers, etc.; in question-answering systems, named entity recognition technology can help the system understand the named entities in user questions and improve the accuracy of answers; in machine translation, named entity recognition technology can help the system identify entities in the text and avoid translation distortion.
[0004] However, the named entity recognition algorithms in the prior art mostly focus on a single modality (text), and usually have the following deficiencies:
[0005] (1) Limited to a single mode
[0006] Existing methods mainly focus on text data and fail to fully utilize image information, resulting in poor performance of named entity recognition for multimodal data.
[0007] (2) Relying on manual features or rules
[0008] Rule-based or statistical methods require a large number of manually designed features or rules, are difficult to adapt to the diversity and complexity of data, and have limited generalization capabilities.
[0009] (3) Named entity recognition is not effective
[0010] At present, some work has begun to focus on the problem of multimodal named entity recognition, but most methods still focus on the text modality, and only a few methods consider image information. At the same time, the existing multimodal named entity recognition algorithms have the following shortcomings:
[0011] (1) The recognition speed is slow, but the recognition effect is effective;
[0012] (2) For some complex document structures or special text formats, the use of optical character recognition may face challenges. For example, the recognition and processing of tables, charts, special symbols, etc. may require more complex algorithms and rules. At the same time, the text after optical character recognition may lose the format and layout information of the original document, making it more difficult to restore and utilize the context. Summary of the invention
[0013] In view of the shortcomings of the prior art mentioned above, the purpose of the present invention is to provide a multimodal named entity recognition method, system, storage medium and electronic device, which realize multimodal named entity recognition based on optical character recognition and large models, and effectively improve the accuracy and efficiency of named entity recognition.
[0014] In a first aspect, the present invention provides a multimodal named entity recognition method, which comprises the following steps: performing text recognition on a table image to obtain recognized text; merging the recognized text to obtain merged text; and inputting the merged text into a large model to obtain a named entity recognition result.
[0015] In an implementation manner of the first aspect, text recognition is performed on an image based on an optical character recognition model.
[0016] In an implementation manner of the first aspect, the recognized texts are merged based on a text recognition order.
[0017] In an implementation manner of the first aspect, it also includes screening target entity tags in the recognized text, and searching for matching named entity information in a knowledge base based on the target entity tags.
[0018] In a second aspect, the present invention provides a multimodal named entity recognition system, the system comprising a recognition module, a merging module and a processing module;
[0019] The recognition module is used to perform text recognition on the table image to obtain the recognized text;
[0020] The merging module is used to merge the recognized texts to obtain a merged text;
[0021] The processing module is used to input the merged text into a large model to obtain a named entity recognition result.
[0022] In an implementation manner of the second aspect, the recognition module performs text recognition on the image based on an optical character recognition model.
[0023] In an implementation manner of the second aspect, the merging module merges the recognized texts based on a text recognition order.
[0024] In an implementation of the second aspect, a search module is further included, which is used to filter the target entity tag in the recognized text and search for matching named entity information in the knowledge base based on the target entity tag.
[0025] In a third aspect, the present invention provides an electronic device, the electronic device comprising: a processor and a memory;
[0026] The memory is used to store computer programs;
[0027] The processor is used to execute the computer program stored in the memory so that the electronic device performs the above-mentioned multimodal named entity recognition method.
[0028] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned multimodal named entity recognition method when executed by an electronic device.
[0029] As described above, the multimodal named entity recognition method, system, storage medium and electronic device of the present invention have the following beneficial effects:
[0030] (1) By applying a large model, it can adapt to different fields and contexts, effectively improving the applicability and versatility of named entity recognition;
[0031] (2) Taking full advantage of the advantages of optical character recognition and large models, the accuracy of named entity recognition is effectively improved;
[0032] (3) High degree of intelligence, which greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Shown is a schematic diagram of a scene of an electronic device in an embodiment of the present invention;
[0034] Figure 2 Shown is a flow chart of a multimodal named entity recognition method in one embodiment of the present invention;
[0035] Figure 3 Shown is a schematic diagram of a framework of a multimodal named entity recognition method in one embodiment of the present invention;
[0036] Figure 4 Shown is a schematic diagram of the structure of a multimodal named entity recognition system in one embodiment of the present invention;
[0037] Figure 5 It is a schematic structural diagram of an electronic device of the present invention in one embodiment. DETAILED DESCRIPTION
[0038] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0039] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0040] The following embodiments of the present invention provide a multimodal named entity recognition method, which can be applied to Figure 1 The electronic device shown. The electronic device described in the present invention may include a mobile phone 11 with a wireless charging function, a tablet computer 12, a laptop computer 13, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present invention does not impose any restrictions on the specific type of the electronic device.
[0041] For example, the electronic device may be a station (STAION, ST) in a WLAN with a wireless charging function, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with a wireless charging function, a computing device or other processing device, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and a next generation communication system, such as a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-terrestrial Network (NTN).
[0042] For example, the electronic device can communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS) and / or Satellite Based Augmentation Systems (SBAS).
[0043] In the present invention, multimodal refers to a data representation method that integrates different senses or information sources. In multimodal data, information from different senses, different media or different sources may be included, such as text, images, voice, video, etc. This information may exist simultaneously or interactively in the same data set.
[0044] Multimodal data has the following characteristics:
[0045] (1) Multi-source information: Multimodal data contains information from different sources, such as text, images, and sounds. These information complement each other and can provide a more comprehensive description.
[0046] (2) Rich expression: Each modality has its own unique way of expression, which can describe the same thing from different angles and dimensions and provide richer information.
[0047] (3) Semantic association: There is often a semantic association between different modalities, such as text descriptions in images and voice content in videos. This association can be used to improve the efficiency and accuracy of data processing.
[0048] (4) Data fusion: Multimodal data integrates information from different modalities. Through reasonable fusion methods, information from different modalities can be organically combined to obtain more comprehensive and accurate results.
[0049] Multimodal data can realize the following applications:
[0050] (1) Multimodal retrieval: In the field of information retrieval, multiple types of information such as text and images can be used simultaneously to perform retrieval, thereby improving the accuracy and diversity of retrieval results.
[0051] (2) Sentiment analysis: In the field of emotion recognition, we can combine text, voice, image and other information to identify the user's emotional state and achieve more fine-grained sentiment analysis.
[0052] (3) Intelligent interaction: In the field of human-computer interaction, multimodal data can be used to achieve a more natural and intelligent way of interaction, such as the combination of speech recognition, image recognition and other technologies.
[0053] (4) Medical diagnosis: In the field of medical image analysis, multiple information such as medical images and patient text descriptions can be used simultaneously to improve the accuracy and efficiency of disease diagnosis.
[0054] Therefore, multimodal data has rich information and a wide range of application areas, and its comprehensive use can bring more comprehensive and accurate data analysis and information processing results.
[0055] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0056] like Figure 2 and Figure 3 As shown, in one embodiment, the multimodal named entity recognition method of the present invention includes steps S1 to S3.
[0057] Step S1, perform text recognition on the table image to obtain the recognized text.
[0058] Specifically, for structured information such as a table, text recognition is first performed on the image based on an optical character recognition model to obtain corresponding recognized text.
[0059] Step S2: merge the recognized texts to obtain a merged text.
[0060] Specifically, the recognized texts are merged in sequence according to the order of text recognition, so as to obtain a merged text.
[0061] Step S3: input the merged text into the large model to obtain the named entity recognition result.
[0062] Specifically, a large model refers to a neural network model that contains ultra-large-scale parameters (usually more than one billion) and has the following characteristics:
[0063] (1) Huge scale
[0064] Large models contain billions of parameters, and the model size can reach hundreds of GB or even larger. This huge model size provides it with powerful expression and learning capabilities.
[0065] (2) Multi-task learning
[0066] Large models usually learn multiple different NLP tasks together, such as machine translation, text summarization, question answering systems, etc. This allows the model to learn broader and more generalized language understanding capabilities.
[0067] (3) Powerful computing resources
[0068] Training large models usually requires hundreds or even thousands of GPUs and a lot of time, usually weeks to months. This can speed up the training process while retaining the capacity of large models.
[0069] (4) Rich data
[0070] Large models require a large amount of data for training, and only a large amount of data can bring out the parameter scale advantage of large models.
[0071] Large models are widely used in the field of natural language processing and are completely changing the state of NLP tasks, giving birth to more powerful and intelligent language technologies. Large models are one of the important directions of AI development. At the same time, large models also have the ability to perform well in various natural language processing tasks, such as text classification, sentiment analysis, summary generation, translation, etc. Large models can be used in multiple application areas such as automatic writing, chatbots, virtual assistants, voice assistants, automatic translation, etc.
[0072] Simply put, large models are divided into four categories: large language models, computer vision (including images and videos), audio, and multimodal large models.
[0073] In the present invention, the merged text is input into a large model, and the large model outputs the corresponding named entity recognition result. In addition, since there is less context in table data, it is difficult to perform good recognition even for a large model. Therefore, a knowledge base search is added to the present invention, thereby utilizing an external knowledge base to enhance the accuracy of named entity recognition and context understanding. Specifically, the required target entity tag is screened out from the recognized text, and matching named entity information, i.e., description information, category information, etc. of the named entity, is searched in the knowledge base based on the target entity tag.
[0074] The protection scope of the multimodal named entity recognition method described in the embodiment of the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0075] An embodiment of the present invention also provides a multimodal named entity recognition system, which can implement the multimodal named entity recognition method described in the present invention. However, the implementation device of the multimodal named entity recognition system described in the present invention includes but is not limited to the structure of the multimodal named entity recognition system listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.
[0076] like Figure 4 As shown, in one embodiment, the multimodal named entity recognition system of the present invention includes a recognition module 41 , a merging module 42 and a processing module 43 .
[0077] The recognition module 41 is used to perform text recognition on the table image to obtain the recognized text.
[0078] The merging module 42 is connected to the recognition module 41 and is used to merge the recognized texts to obtain a merged text.
[0079] The processing module 43 is connected to the merging module 42 and is used to input the merged text into the large model to obtain the named entity recognition result.
[0080] Among them, the structures and principles of the recognition module 41, the merging module 42 and the processing module 43 correspond one to one with the steps in the above-mentioned multimodal named entity recognition method, so they are not repeated here.
[0081] In the several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.
[0082] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, the functional modules / units in the various embodiments of the present invention may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0083] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0084] The embodiment of the present invention also provides a computer-readable storage medium. A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0085] An embodiment of the present invention further provides an electronic device, which includes a processor and a memory.
[0086] The memory is used to store computer programs.
[0087] The memory includes: ROM, RAM, disk, USB flash drive, memory card or CD and other media that can store program codes.
[0088] The processor is connected to the memory and is used to execute the computer program stored in the memory so that the electronic device performs the above-mentioned multimodal named entity recognition method.
[0089] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0090] like Figure 5As shown, the electronic device of the present invention is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors or processing units 51, a memory 52, and a bus 53 connecting different system components (including the memory 52 and the processing unit 51).
[0091] Bus 53 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0092] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0093] The memory 52 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 521 and / or cache memory 522. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 523 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 53 via one or more data medium interfaces. The memory 52 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0094] A program / utility 524 having a set (at least one) of program modules 5241 may be stored, for example, in the memory 52, such program modules 5241 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 5241 generally perform the functions and / or methods of the embodiments described herein.
[0095] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 54. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 55. Figure 5 As shown, the network adapter 55 communicates with other modules of the electronic device via the bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0096] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A multimodal named entity recognition method, characterized in that: The method comprises the following steps: Perform text recognition on the table image to obtain the recognized text; Merging the recognized texts to obtain a merged text; The merged text is input into the large model to obtain the named entity recognition result.
2. The multimodal named entity recognition method according to claim 1, characterized in that: Perform text recognition on images based on the optical character recognition model.
3. The multimodal named entity recognition method according to claim 1, characterized in that: The recognized texts are merged based on the text recognition order.
4. The multimodal named entity recognition method according to claim 1, characterized in that: The method also includes screening target entity tags in the recognized text, and searching for matching named entity information in a knowledge base based on the target entity tags.
5. A multimodal named entity recognition system, characterized in that: The system includes an identification module, a merging module and a processing module; The recognition module is used to perform text recognition on the table image to obtain the recognized text; The merging module is used to merge the recognized texts to obtain a merged text; The processing module is used to input the merged text into a large model to obtain a named entity recognition result.
6. The multimodal named entity recognition system according to claim 5, characterized in that: The recognition module performs text recognition on the image based on an optical character recognition model.
7. The multimodal named entity recognition system according to claim 5, characterized in that: The merging module merges the recognized texts based on the text recognition order.
8. The multimodal named entity recognition system according to claim 5, characterized in that: It also includes a search module, which is used to filter the target entity tag in the recognized text and search for matching named entity information in the knowledge base based on the target entity tag.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the electronic device performs the multimodal named entity recognition method according to any one of claims 1 to 4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by an electronic device, the multimodal named entity recognition method according to any one of claims 1 to 4 is implemented.
