Large-scale keyword multimode matching method, device and equipment
A multi-modal matching and keyword technology, applied in the field of multi-modal matching, can solve the problem of low keyword retrieval efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] A large-scale keyword multi-mode matching method provided by the embodiment of the present invention, such as figure 1 shown, including:
[0029] Step S102, scanning the text to be tested according to a preset state machine, wherein the preset state machine is generated by a preset keyword set.
[0030] In addition, before scanning the text to be tested according to the preset state machine, it also includes the configuration method of the preset state machine, such as figure 2 shown, including:
[0031] Step S202, generating a preset state machine according to the preset keyword set, and setting a unique identification value less than or equal to the total number of keywords for each keyword in the preset keyword set.
[0032] Since there may be a large number of repeated keywords in the original keyword set, it is necessary to remove the repeated keywords in the original keyword set to obtain the preset keyword set. Assuming that the number of keywords in the prese...
Embodiment 2
[0068] An embodiment of the present invention provides a large-scale keyword multi-mode matching device, such as image 3 As shown, it includes: a scanning module 30 , a recording module 31 and an output module 32 .
[0069] Specifically, the scanning module 30 is used to scan the text to be tested according to the preset state machine, wherein the preset state machine is generated by a preset keyword set; the recording module 31 is used to synthesize the current input state value and the current byte value The first character string is calculated based on the first character string using a perfect hash function to obtain an index value; based on the current input state value and the current byte value, a hash function is used to obtain a hash value; and the hash value is judged to be Whether the preset hash value is equal, where the preset hash value is stored in an array subscripted by the index value; if the hash value is equal to the preset hash value, the acquisition corr...
Embodiment 3
[0072] Embodiments of the present invention provide a large-scale keyword multi-mode matching device, such as Figure 4 As shown, the large-scale keyword multi-mode matching device 4 includes a memory 41 and a processor 42, wherein a computer program that can run on the processor is stored in the memory, and when the processor executes the computer program, the above-mentioned The steps of the method provided by Embodiment 1.
[0073] see Figure 4 , the large-scale keyword multimode matching device also includes: a bus 43 and a communication interface 44, the processor 42, the communication interface 44 and the memory 41 are connected through the bus 43; the processor 42 is used to execute the executable module stored in the memory 41, for example Computer program.
[0074] Wherein, the memory 41 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The ...
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