Document searching method and device, computing equipment and readable storage medium

By obtaining the search text, candidate documents and entity relationship diagrams, extracting semantic features and entity features, and using a classifier to determine the matching degree, the problem of document search relying on keywords in the existing technology is solved, and more accurate document search results are achieved.

CN118796769AActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202310439906.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2024-10-18
Estimated Expiration
2043-04-12

AI Technical Summary

Technical Problem

Existing document search methods rely on a small number of keywords, which results in unsatisfactory search results and the inability to fully utilize the information in the search text. It may also lead to the extraction of the same keywords from search texts with different actual meanings, causing the search results to deviate from the intent.

Method used

By obtaining the search text, candidate documents and entity relationship diagram, extract semantic features and entity features, and use the trained classifier to determine the matching degree of the search text and candidate documents based on the fusion features, achieving more accurate document search.

Benefits of technology

Make full use of the information in the search text to improve the accuracy of document search and ensure that the search results are more relevant to the user's intent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796769A_ABST
    Figure CN118796769A_ABST
Patent Text Reader

Abstract

The invention discloses a document searching method and device, computing equipment and a readable storage medium. The document search method comprises the steps of obtaining a search text, a plurality of candidate documents and an entity relation graph; determining an entity corresponding to the search text in the entity relation graph and an associated entity associated with the entity; for each candidate document in the plurality of candidate documents, performing a document matching step to determine whether the candidate document matches the search text; and determining the candidate document matched with the search text as a document search result. The document matching step comprises the following steps of: extracting a first text feature from a search text and a candidate document; extracting a first entity feature from the entity and the associated entity; determining a first fusion feature based on the first text feature and the first entity feature; and determining whether the search text is matched with the candidate document based on the first fusion feature by utilizing a trained classifier. According to the method and the device, the information of the search text can be fully utilized, and accurate document search is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a document search method and apparatus, a computing device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the development of information technology, more and more documents are transmitted and stored. How to accurately search for documents of interest from a large number of documents becomes more and more important.

[0003] Common document search methods will determine keywords based on the search text after receiving the search text, and search for documents containing the keywords from a large number of documents as search results. Although this document search method is easy to use, its search actually relies on a small number of keywords, resulting in search results that are often less than ideal. For example, in the above document search method, only a few shorter keywords can be determined from a longer search text, which will waste some of the information in the search text. In some scenarios, two search texts with very different actual meanings may extract the same keywords, resulting in search results that are consistent with the keywords but still deviate from the search text, making it difficult for existing document search methods to meet search needs. Summary of the invention

[0004] In view of this, the present application provides a document search method and apparatus, a computing device, a computer-readable storage medium, and a computer program product, which are expected to alleviate or overcome some or all of the above-mentioned deficiencies and other possible deficiencies.

[0005] According to one aspect of the present application, a document search method is provided, including: obtaining a search text, a plurality of candidate documents, and an entity relationship graph, wherein the entity relationship graph includes a plurality of entities and associations between the plurality of entities, wherein the plurality of entities include an entity corresponding to the search text; determining an entity corresponding to the search text in the entity relationship graph and an associated entity associated with the entity; for each candidate document in the plurality of candidate documents, performing a document matching step to determine whether the candidate document matches the search text; and determining the candidate document matching the search text as a document search result. The document matching step includes: extracting a first text feature from the search text and the candidate document using a semantic feature extraction network; extracting a first entity feature from the entity and the associated entity using an entity feature extraction network; determining a first fusion feature based on the first text feature and the first entity feature; and determining whether the search text and the candidate document match based on the first fusion feature using a trained classifier.

[0006] According to another aspect of the present application, a document search device is provided, comprising an acquisition module, a first determination module, a document matching module and a second determination module. The acquisition module is configured to acquire a search text, a plurality of candidate documents and an entity relationship graph, wherein the entity relationship graph comprises a plurality of entities and associations between the plurality of entities, and the plurality of entities comprises an entity corresponding to the search text. The first determination module is configured to determine the entity corresponding to the search text in the entity relationship graph and the associated entity associated with the entity. The document matching module is configured to perform a document matching step for each candidate document in the plurality of candidate documents to determine whether the candidate document matches the search text. The second determination module is configured to determine the candidate document matching the search text as the document search result. The document matching step comprises: extracting a first text feature from the search text and the candidate document using a semantic feature extraction network; extracting a first entity feature from the entity and the associated entity using an entity feature extraction network; determining a first fusion feature based on the first text feature and the first entity feature; and determining whether the search text and the candidate document match based on the first fusion feature using a trained classifier.

[0007] In a document search device according to some embodiments of the present application, determining the entity corresponding to the search text in the entity relationship diagram and the associated entity associated with the entity includes: extracting the entity name and entity description from the search text; traversing multiple entities in the entity relationship diagram to determine the candidate entity corresponding to the entity name; determining whether the associated entity of the candidate entity contains the entity description; and, in response to the associated entity of the candidate entity containing the entity description, determining the candidate entity as the entity corresponding to the search text.

[0008] In a document search device according to some embodiments of the present application, extracting a first text feature from a search text and a candidate document using a semantic feature extraction network includes: selecting a candidate document key text from the candidate document; determining a first compound text based on the search text and the candidate document key text; and extracting a first text feature from the first compound text using a semantic feature extraction network.

[0009] In a document search device according to some embodiments of the present application, the candidate document key text includes the document title of the candidate document; determining the first compound text based on the search text and the candidate document key text includes: text splicing the search text and the candidate document key text, and determining the result of the text splicing as the first compound text.

[0010] In a document search device according to some embodiments of the present application, extracting a first entity feature from an entity and an associated entity using an entity feature extraction network includes: determining an entity information text of an entity based on the entity; determining an entity information text of an associated entity and a relationship between an associated entity and an entity based on an associated entity; and, extracting a first entity feature from the entity information text of an entity, an entity information text of an associated entity, and a relationship between an associated entity and an entity using an entity feature extraction network.

[0011] In a document search device according to some embodiments of the present application, determining a first fusion feature based on a first text feature and a first entity feature includes: performing vector concatenation on the first text feature and the first entity feature; and determining a result of the vector concatenation as the first fusion feature.

[0012] In a document search device according to some embodiments of the present application, a trained classifier is trained and determined using a training set, the classifier receives a first fusion feature, and outputs a classification result, the classification result includes the probability of being classified into various matching levels, and the matching levels include mutual matching and mutual non-matching. Using the trained classifier to determine whether the search text and the candidate document match based on the first fusion feature includes: inputting the first fusion feature into the trained classifier; determining the mutual matching probability output by the trained classifier as the matching probability of the search text and the candidate document; and, in response to the matching probability being greater than or equal to a first predetermined threshold, determining that the search text and the candidate document match.

[0013] In a document search device according to some embodiments of the present application, a training set includes a plurality of training sample pairs, the training sample pairs include a first fusion feature and a matching level corresponding thereto, and the matching level is a matching level between a search text corresponding to the first fusion feature and a candidate document. The trained classifier uses the training set to perform a training step on the classifier, and the training step includes: obtaining a training sample pair from the training set, inputting the first fusion feature of the training sample pair into the classifier to obtain an actual output, determining the matching level corresponding to the first fusion feature as an expected output of the classifier, and adjusting the classifier until the gap between the actual output and the expected output is less than a second predetermined threshold.

[0014] In a document search device according to some embodiments of the present application, a trained classifier is trained and determined using a training set, the classifier receives a first fusion feature, and outputs a classification result, the classification result includes the probability of being classified into various matching levels, and the matching levels include highly matched, generally matched, and not matched. Using a trained classifier to determine whether a search text and a candidate document match based on the first fusion feature includes: inputting the first fusion feature into the trained classifier; determining the probability of highly matched and generally matched output by the trained classifier as the highly matched probability and generally matched probability of the search text and the candidate document, respectively; in response to the highly matched probability being greater than or equal to a third predetermined threshold, determining that the search text and the candidate document are highly matched; and, in response to the generally matched probability being greater than or equal to a fourth predetermined threshold, determining that the search text and the candidate document are generally matched.

[0015] According to another aspect of the present application, a computing device is provided, comprising: a memory configured to store computer-executable instructions; and a processor configured to perform steps of a document method according to some embodiments of the present application when the computer-executable instructions are executed by the processor.

[0016] According to another aspect of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are executed, the steps of document search according to some embodiments of the present application are implemented.

[0017] According to another aspect of the present application, a computer program product is provided, including a computer program, which implements the steps of the document search method according to some embodiments of the present application when executed by a processor.

[0018] In the document search method and device according to some embodiments of the present application, a search text, multiple candidate documents and an entity relationship diagram are first obtained, and the entity corresponding to the search text in the entity relationship diagram and the associated entities associated with the entity are determined. This allows the information of the search text to be fully utilized, and more available information is mined from the entity relationship diagram based on the information of the search text. Then, for each candidate document in the multiple candidate documents, a document matching step is performed to determine whether the candidate document matches the search text. Since the information of the corresponding entity is fully utilized in the document matching step, the matching result between the search text and the candidate document is more accurate. Finally, the candidate document matching the search text is determined as the document search result. Therefore, through the document search method and device disclosed in the present application, the information of the search text can be fully utilized to achieve accurate document search.

[0019] These and other advantages of the present application will become apparent from and be elucidated with reference to the embodiments described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Embodiments of the present application will now be described in more detail and with reference to the accompanying drawings, in which:

[0021] Figure 1 An exemplary application scenario of the document search method according to some embodiments of the present application is shown;

[0022] Figure 2A An exemplary flow chart of a document search method according to some embodiments of the present application is shown;

[0023] Figure 2B An exemplary flow chart of a document matching step according to some embodiments of the present application is shown;

[0024] Figure 3 A schematic diagram showing associations between entities according to some embodiments of the present application;

[0025] Figure 4 A schematic diagram showing document matching according to some embodiments of the present application is shown;

[0026] Figure 5 An exemplary flow chart of training a classifier according to some embodiments of the present application is shown;

[0027] Figure 6 An exemplary structural block diagram of a document search device according to some embodiments of the present application is shown; and

[0028] Figure 7 An example system is shown that includes an example computing device that represents one or more systems and / or devices that may implement the various methods described herein. DETAILED DESCRIPTION

[0029] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0030] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0031] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0032] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all promotional information and operations / steps, nor do they necessarily have to be executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0033] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" and similar terms include all combinations of any, multiple, and all of the associated listed items.

[0034] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.

[0035] Before introducing the embodiments of the present application in detail, some terms involved in the embodiments of the present application are first explained to facilitate understanding by those skilled in the art.

[0036] Entity: refers to things in the real world, such as people, companies, groups, institutions, etc.

[0037] Knowledge graph: It is a graph-based data structure, a type of knowledge base, consisting of nodes and edges. Each node represents an "entity" and each edge is a "relationship" between entities. The knowledge graph is essentially a semantic network. The entities in the graph can refer to things in the real world, and the relationships are used to express the connection between different entities.

[0038] BERT model: The full name is Bidirectional Encoder Representations from Transformers, which is a pre-trained language representation model. It emphasizes that it no longer uses the traditional unidirectional language model or the shallow concatenation of two unidirectional language models for pre-training as in the past, but uses a new masked language model (MLM) to generate deep bidirectional language representation. The foundation of the BERT model is Transormer, which is the mainstream feature extractor in the field of Neuro-Linguistic Programming (NLP).

[0039] CNN: Convolutional Neural Networks (CNN) is a type of feedforward neural network that includes convolution calculations and has a deep structure. It is one of the representative algorithms of deep learning.

[0040] GNN: Graph Neural Network (GNN) is a general term for algorithms that use neural networks to learn graph structured data, extract and discover features and patterns in graph structured data, and meet the needs of graph learning tasks such as clustering, classification, prediction, segmentation, and generation.

[0041] Word embedding: The full name is Word Embedding, which can be understood as a mapping. The process is: a word in the text space is mapped or embedded into another numerical vector space through a certain method. This representation method often means a dimensionality reduction.

[0042] Classifier: A device used to classify data, which can be implemented in the form of software (such as mathematical models, etc.), hardware (such as circuits), etc. The concept of classification is to learn a classification function or construct a classification model based on existing data. This function or model can map the data records in the database to one of the given categories, so that it can be applied to data prediction. The methods of classifying samples in data mining can be used for classifiers, such as through decision trees, logistic regression, naive Bayes, neural networks and other algorithms. The role of the classifier: The general task is to use given categories and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data.

[0043] The technical solution provided in the embodiment of the present application involves technologies such as natural language processing and machine learning of artificial intelligence. Artificial Intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science, which attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that involves a wide range of fields, including both hardware-level technology and software-level technology. Basic artificial intelligence technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technology mainly includes several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0044] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0045] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning and other technologies.

[0046] Figure 1An exemplary application scenario 100 of the document search method according to some embodiments of the present application is shown. The application scenario 100 may include a server 110, a terminal device 120, and a terminal device 130. The server 110, the terminal device 120, and the terminal device 130 are communicatively coupled together via a network 140. The network 140 may be, for example, a wide area network (WAN), a local area network (LAN), a wireless network, a public telephone network, an intranet, and any other type of network known to those skilled in the art.

[0047] As an example, on the server 110, a search text, a plurality of candidate documents, and an entity relationship graph may be first obtained. The entity relationship graph includes a plurality of entities and associations between the plurality of entities, and the plurality of entities include entities corresponding to the search text. Then, the entity corresponding to the search text in the entity relationship graph and the associated entity associated with the entity are determined. Then, for each candidate document in the plurality of candidate documents, a document matching step is performed to determine whether the candidate document matches the search text. Finally, the candidate document matching the search text is determined as the document search result. The document matching step includes: extracting a first text feature from the search text and the candidate document using a semantic feature extraction network; extracting a first entity feature from the entity and the associated entity using an entity feature extraction network; determining a first fusion feature based on the first text feature and the first entity feature; and determining whether the search text and the candidate document match based on the first fusion feature using a trained classifier. The search text, the plurality of candidate documents, the entity relationship graph, the semantic feature extraction network, and the entity feature extraction network may be stored in the server 110, or may be obtained from a terminal or other server via the network 140.

[0048] As an example, the document search method can also be executed on the terminal 120 or the terminal 130. It should be noted that the server 110, the terminal device 120 and the terminal device 130 can all include media and / or devices capable of persistently storing information, and / or tangible storage devices. Therefore, a computer-readable storage medium refers to a non-signal bearing medium. Computer-readable storage media include hardware such as volatile and non-volatile, removable and non-removable media and / or storage devices implemented in a method or technology suitable for storing information (such as computer-readable instructions, data structures, program modules, logical elements / circuits or other data). As understood by those of ordinary skill in the art, an instance of the server 110 can be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected by wired or wireless communication, and this application is not limited here. The server 110 can present the data allocation strategy to be determined to the developer through the terminal device 120 and interact with the developer to achieve visual determination of the development strategy.

[0049] The terminal devices 120 and 130 may be any type of mobile computing devices, including mobile computers (e.g., personal digital assistants (PDAs), laptop computers, notebook computers, tablet computers, netbooks, etc.), mobile phones (e.g., cellular phones, smart phones, etc.), wearable computing devices (e.g., smart watches, head-mounted devices, including smart glasses, etc.), or other types of mobile devices. In some embodiments, the terminal devices 120 and 130 may also be fixed computing devices, such as desktop computers, game consoles, smart TVs, etc. In addition, when the application scenario 100 includes multiple terminal devices 130, the multiple terminal devices 130 may be computing devices of the same or different types.

[0050] like Figure 1As shown, the terminal device 120 and the terminal device 130 may include a display screen and a terminal application that can interact with the terminal user via the display screen. The terminal application may be a local application, a web page (Web) application, or a mini-program (LiteApp, such as a mobile phone mini-program, a WeChat mini-program) as a lightweight application. In the case where the terminal application is a local application that needs to be installed, the terminal application can be installed in the terminal device 220 and the terminal device 230. In the case where the terminal application is a Web application, the terminal application can be accessed through a browser. In the case where the terminal application is a mini-program, the terminal application can be directly opened on the user terminal 220 and 230 by searching for relevant information of the terminal application (such as the name of the terminal application, etc.), scanning a graphic code (such as a barcode, a QR code, etc.) of the terminal application, etc., without installing the terminal application.

[0051] In some embodiments, the above-mentioned application scenario 100 can be a distributed system composed of a server 110, and the distributed system can constitute a blockchain system, for example. Blockchain is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods, each of which contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.

[0052] The underlying blockchain platform can include processing modules such as user management, basic services, and smart contracts. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining the generation of public and private keys (account management), key management, and the maintenance of the corresponding relationship between the user's real identity and the blockchain address (authority management), etc., and under authorization, supervises and audits the transaction of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first performs interface adaptation analysis and authentication processing (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management), and transmits it to the shared ledger in a complete and consistent manner after encryption (network communication), and records and stores it; the smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a certain programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, call the key or other events to trigger the execution and complete the contract logic. At the same time, it also provides the function of contract upgrade and cancellation.

[0053] The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can superimpose business features based on these basic capabilities to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.

[0054] Figure 2A FIG. 2 shows an exemplary flow chart of a document search method 200 according to some embodiments of the present application. Figure 2A As shown, method 200 includes step S210, step S220, step S230 and step S240.

[0055] In step S210, a search text, multiple candidate documents, and an entity relationship diagram are obtained. The entity relationship diagram includes multiple entities and the associations between the multiple entities, and the multiple entities include entities corresponding to the search text. As an example, the entity relationship diagram is used to show the association relationship between multiple entities. In some embodiments, the entity relationship diagram can be a knowledge graph of an entity, etc.

[0056] In step S220, the entity corresponding to the search text in the entity relationship graph and the associated entities associated with the entity are determined. As an example, the entity corresponding to the search text in the entity relationship graph can be determined by using common entity recognition tools, such as using some open source semantic-based entity recognition tools to identify the entity corresponding to the search text from the knowledge graph. The associated entity of the entity can be determined by the association relationship in the entity relationship graph.

[0057] In step S230, for each candidate document in the plurality of candidate documents, a document matching step is performed to determine whether the candidate document matches the search text. As an example, the document matching step may include: Figure 2B Steps S230a, S230b, S230c and S230d are shown.

[0058] In step S230a, a semantic feature extraction network is used to extract a first text feature from the search text and the candidate document. As an example, the semantic feature extraction network may be a neural network such as CNN or BERT.

[0059] In step S230b, the first entity feature is extracted from the entity and the associated entity using an entity feature extraction network. As an example, the entity feature extraction network may be a neural network such as a GNN.

[0060] In step S230c, a first fusion feature is determined based on the first text feature and the first entity feature. Therefore, the first fusion feature includes information of the first text feature and the first entity feature, and can more comprehensively represent the key information of the search text, the entity corresponding to the search text, and the candidate document.

[0061] In step S230d, the trained classifier is used to determine whether the search text and the candidate document match based on the first fusion feature. As an example, the classifier may be a CNN-based classifier, a softmax classifier, or the like.

[0062] In step S240, candidate documents matching the search text are determined as document search results. As an example, multiple candidate documents may be determined to match the search text in step S230, and these candidate documents are determined as document search results in step S240.

[0063] Therefore, method 200 can make full use of the information of the search text and mine more available information from the entity relationship diagram based on the information of the search text. Then, for each candidate document in the multiple candidate documents, a document matching step is performed to determine whether the candidate document matches the search text. Since the information of the corresponding entity is fully utilized in the document matching step, the matching result between the search text and the candidate document is more accurate. It can be seen that method 200 achieves accurate document search by making full use of the information of the search text.

[0064] In some embodiments, determining the entity corresponding to the search text in the entity relationship graph and the associated entities associated with the entity may include the following steps. First, extract the entity name and entity description from the search text. Then, traverse the multiple entities in the entity relationship graph to determine the candidate entity corresponding to the entity name. Then, determine whether the associated entity of the candidate entity contains the entity description. In response to the associated entity of the candidate entity containing the entity description, the candidate entity is determined as the entity corresponding to the search text. As an example, the search text is "Beijing Wang Moumou", then the entity name "Wang Moumou" and the entity description "Beijing" are extracted from it. Then, traverse the multiple entities in the entity relationship graph to determine the candidate entity corresponding to "Wang Moumou". Then, determine whether the associated entity of the candidate entity contains the entity description "Beijing". In response to the associated entity of the candidate entity containing the entity description "Beijing", the candidate entity is determined as the entity corresponding to the search text "Beijing Wang Moumou".

[0065] As an example, the entity relationship graph can be a knowledge graph. The associated entity of an entity in the knowledge graph can be an entity directly connected to the entity, or an entity connected through one entity or a predetermined number of entities. For example, when the associated entity of an entity is set to an entity directly connected to the entity, the associated entities of the entity all have a direct association characteristic with the entity. Figure 3 A schematic diagram showing the association between entities according to some embodiments of the present application is shown. Figure 3 As shown, there is a direct association between the entity "Wang Moumou" and the entity "Beijing", that is, the birthplace of the entity "Wang Moumou" is the entity "Beijing".

[0066] In some embodiments, extracting the first text feature from the search text and the candidate document using a semantic feature extraction network may include the following steps. First, select the candidate document key text from the candidate document. As an example, the key text may include the document title, document keywords, etc., and may also include the key sentences, key paragraphs, etc. of the document. Then, determine the first composite text based on the search text and the candidate document key text. As an example, the search text and the candidate document key text may be text-concatenated, for example, the search text and the candidate document key text may be combined together through punctuation marks or separators. Finally, the first text feature is extracted from the first composite text using a semantic feature extraction network. As an example, the semantic feature extraction network may be a neural network of various structures, such as BERT, CNN and other neural networks, which are not limited here.

[0067] In some embodiments, the candidate document key text includes the document title of the candidate document. Determining the first composite text based on the search text and the candidate document key text includes: performing text splicing on the search text and the candidate document key text, and determining the result of the text splicing as the first composite text. For example, the search text is placed in front and the candidate document key text is placed in the back, and they are connected by a separator to achieve text splicing.

[0068] In some embodiments, extracting the first entity feature from an entity and an associated entity using an entity feature extraction network includes the following steps. First, the entity information text of the entity is determined based on the entity. For example, the entity "Wang" includes entity information text: "Entity attribute - natural person, entity name - Wang, entity year - 62 years old". Then, based on the associated entity, the entity information text of the associated entity and the relationship between the associated entity and the entity are determined. Finally, the first entity feature is extracted from the entity information text of the entity, the entity information text of the associated entity, and the relationship between the associated entity and the entity using the entity feature extraction network. For example, from Figure 3 The first entity feature of the entity "Wang Moumou" is extracted from the schematic diagram of the association between entities.

[0069] As an example, determining the first fusion feature based on the first text feature and the first entity feature includes: performing vector splicing on the first text feature and the first entity feature; and determining the result of the vector splicing as the first fusion feature. For example, the vector splicing is performed with the first text feature in front and the first entity feature in the back.

[0070] Figure 4 FIG. 4 shows a schematic diagram of document matching according to some embodiments. Figure 4As shown, firstly, the search text and the candidate document key text are obtained. As an example, the candidate document key text can be the title of the candidate document. Then, they are concatenated to obtain the first composite text. For example, the search text is in front and the candidate document is in the back, and they are separated by the "#" sign, such as: "search text#candidate document title". Then, the first text feature is extracted from the first composite text using a semantic feature extraction network. The semantic feature extraction network can be a neural network such as BERT and CNN. In addition, the entity corresponding to the search text is determined in the entity relationship graph, and the entity associated with the entity is extracted as an entity relationship subgraph. Then, the first entity feature is extracted from the entity relationship subgraph using an entity feature extraction network. As an example, the entity feature extraction network can be GNN, etc. Then, the first text feature and the first entity feature are concatenated vectors to obtain the first fusion feature. As an example, the first fusion feature can be in the form of "[first text feature, first entity feature]". Finally, the first fusion feature is input into the trained classifier, and it is determined whether the search text and the candidate document match based on the output of the classifier. As an example, the classifier may classify the input and output a corresponding classifier, such as outputting 1 to represent the classification into the matching class and outputting 0 to represent the classification into the non-matching class. In other embodiments, the classifier may also output corresponding classification probabilities, such as the probability of being classified into the matching class and the probability of being classified into the non-matching class.

[0071] In some embodiments, the trained classifier uses a training set to train the classifier. The classifier receives the first fusion feature and outputs a classification result. As an example, the classifier can choose a classifier using algorithms such as decision trees, logistic regression, naive Bayes, neural networks, etc., which are not limited here. The classification result includes the probability of being divided into various matching levels, and the matching levels include mutual matching and mutual mismatching. Using a trained classifier to determine whether the search text and the candidate document match based on the first fusion feature includes the following steps. First, the first fusion feature is input into the trained classifier. Then, the probability of mutual matching output by the trained classifier is determined as the matching probability of the search text and the candidate document. Finally, in response to the matching probability being greater than or equal to the first predetermined threshold, it is determined that the search text and the candidate document match.

[0072] In some embodiments, the training set includes a plurality of training sample pairs, and the training sample pairs include a first fusion feature and a matching level corresponding thereto. The matching level is a matching level between the search text and the candidate document corresponding to the first fusion feature. The trained classifier can use the training set to perform a training step on the classifier to determine. As an example, the training step may include Figure 5 Steps shown. Figure 5 An exemplary flow chart of training a classifier according to some embodiments of the present application is shown. Figure 5 As shown, the training step includes step S510, step S520, step S530 and step S540.

[0073] In step S510, a training sample pair is obtained from a training set. For example, the training set contains 1000 training sample pairs, each of which contains a matching search text and a candidate document.

[0074] In step S520, the first fusion feature of the training sample pair is input into the classifier to obtain an actual output. As an example, the first fusion feature of the training sample pair can be determined by the method described above.

[0075] In step S530, the matching level corresponding to the first fusion feature is determined as the expected output of the classifier. For example, if the matching level corresponding to the first fusion feature is match, the expected output is set to the probability of match is 1 and the probability of mismatch is 0.

[0076] In step S540, the classifier is adjusted until the gap between the actual output and the expected output is less than the second predetermined threshold. For example, the actual output of the classifier is: the probability that the first fusion feature is classified as a mismatch is 0.2, and the probability that it is classified as a match is 0.8. Then the classifier is adjusted until the gap between the actual output and the expected output is less than the second predetermined threshold. As an example, the gap can be characterized by a loss function. That is, the actual output and the expected output are input together as the loss function, and the output of the loss function is determined as the gap value. The classifier is adjusted until the output of the loss function is less than the second predetermined threshold.

[0077] As an example, the loss function can adopt a negative logarithmic loss function, the formula is as follows:

[0078]

[0079] Among them, loss is the loss function, n is the number of training data, y i represents the category (for example, it can be 0 or 1, 1 represents a match, 0 represents a mismatch), a i is the probability of being assigned to the corresponding category.

[0080] In some embodiments, the matching levels include mutual high match, mutual general match and mutual mismatch. Using a trained classifier to determine whether the search text and the candidate document match based on the first fusion feature includes the following steps. First, the first fusion feature is input into the trained classifier. Then, the probability of mutual high match and the probability of mutual general match output by the trained classifier are respectively determined as the high match probability and the general match probability of the search text and the candidate document. Then, in response to the high match probability being greater than or equal to the third predetermined threshold, it is determined that the search text and the candidate document are highly matched. In response to the general match probability being greater than or equal to the fourth predetermined threshold, it is determined that the search text and the candidate document are generally matched. As an example, a two-dimensional vector can be used to identify categories, such as "y i =(0,0)" indicates mismatch, "y i =(0,1)" indicates a general match, "y i =(1,1)" indicates a high degree of match.

[0081] Figure 6 FIG. 6 shows an exemplary structural block diagram of a document search device 600 according to some embodiments of the present application. Figure 6 As shown, the document search device 600 includes an acquisition module 610 , a first determination module 620 , a document matching module 630 and a second determination module 640 .

[0082] The acquisition module 610 is configured to acquire the search text, multiple candidate documents and an entity relationship diagram. The entity relationship diagram includes multiple entities and the associations between the multiple entities, and the multiple entities include entities corresponding to the search text. As an example, the entity relationship diagram is used to show the association relationship between multiple entities. In some embodiments, the entity relationship diagram can be a knowledge graph of an entity, etc.

[0083] The first determination module 620 is configured to determine the entity corresponding to the search text in the entity relationship graph and the associated entity associated with the entity. As an example, determining the entity corresponding to the search text in the entity relationship graph can be performed using common entity recognition tools, such as using some open source semantic-based entity recognition tools to identify the entity corresponding to the search text from the knowledge graph. The associated entity of the entity can be determined by the association relationship in the entity relationship graph.

[0084] The document matching module 630 is configured to perform a document matching step for each candidate document in a plurality of candidate documents to determine whether the candidate document matches the search text. As an example, the document matching step may include the following steps. First, a semantic feature extraction network is used to extract a first text feature from the search text and the candidate document. As an example, the semantic feature extraction network may be a neural network such as CNN, BERT, etc. Then, an entity feature extraction network is used to extract a first entity feature from an entity and an associated entity. As an example, the entity feature extraction network may be a neural network such as GNN. Then, a first fusion feature is determined based on the first text feature and the first entity feature. Therefore, the first fusion feature contains information about the first text feature and the first entity feature, and can more comprehensively characterize the key information of the search text, the entity corresponding to the search text, and the candidate document. Finally, a trained classifier is used to determine whether the search text and the candidate document match based on the first fusion feature. As an example, the classifier may adopt a CNN-based classifier, a softmax classifier, etc.

[0085] The second determination module 640 is configured to determine the candidate documents matching the search text as the document search results. As an example, there may be one or more candidate documents matching the search text, and the second determination module 640 determines these candidate documents as the document search results.

[0086] Therefore, the document search device 600 can make full use of the information of the search text and mine more available information from the entity relationship diagram based on the information of the search text. Then, for each candidate document among the multiple candidate documents, a document matching step is performed to determine whether the candidate document matches the search text. Since the information of the corresponding entity is fully utilized in the document matching step, the matching result between the search text and the candidate document is more accurate. It can be seen that since the document search device 600 makes full use of the information of the search text, accurate document search can be achieved using the document search device 600.

[0087] Figure 7 An example system 700 is illustrated, which includes an example computing device 710 that represents one or more systems and / or devices that can implement the various methods described herein. Computing device 710 can be, for example, a server of a service provider, a device associated with a server, a system on a chip, and / or any other suitable computing device or computing system. Figure 6 The depicted document search apparatus 600 may take the form of a computing device 710. Alternatively, the document search apparatus 600 may be implemented as a computer program in the form of an application 716.

[0088] The example computing device 710 as shown includes a processing system 711, one or more computer-readable media 712, and one or more I / O interfaces 713 that are communicatively coupled to each other. Although not shown, the computing device 710 may also include a system bus or other data and command transmission system that couples various components to each other. The system bus may include any one or combination of different bus structures, such as a memory bus or memory controller, a peripheral bus, a universal serial bus, and / or a processor or local bus utilizing any one of a variety of bus architectures. Various other examples are also contemplated, such as control and data lines.

[0089] Processing system 711 represents the functionality of performing one or more operations using hardware. Thus, processing system 711 is illustrated as including hardware elements 714 that may be configured as processors, functional blocks, and the like. This may include other logic devices implemented in hardware as application specific integrated circuits or formed using one or more semiconductors. Hardware elements 714 are not limited by the materials from which they are formed or the processing mechanisms employed therein. For example, a processor may be composed of (multiple) semiconductors and / or transistors (e.g., electronic integrated circuits (ICs)). In such a context, processor executable instructions may be electronic executable instructions.

[0090] Computer readable media 712 is illustrated as including memory / storage 716. Memory / storage 716 represents memory / storage capacity associated with one or more computer readable media. Memory / storage 716 may include volatile media (such as random access memory (RAM)) and / or non-volatile media (such as read-only memory (ROM), flash memory, optical disks, magnetic disks, etc.). Memory / storage 716 may include fixed media (e.g., RAM, ROM, fixed hard drive, etc.) and removable media (e.g., flash memory, removable hard drive, optical disk, etc.). Computer readable media 712 may be configured in various other ways as further described below.

[0091] One or more I / O interfaces 713 represent functionality that allows a user to input commands and information to the computing device 710 using various input devices and optionally also allows information to be presented to the user and / or other components or devices using various output devices. Examples of input devices include a keyboard, a cursor control device (e.g., a mouse), a microphone (e.g., for voice input), a scanner, touch functionality (e.g., a capacitive or other sensor configured to detect physical touch), a camera (e.g., which can detect motion that does not involve touch as gestures using visible or invisible wavelengths (such as infrared frequencies)), and the like. Examples of output devices include a display device, a speaker, a printer, a network card, a tactile response device, and the like. Thus, the computing device 710 can be configured in various ways as further described below to support user interaction.

[0092] The computing device 710 also includes an application 716. The application 716 may be, for example, a software instance for the document search apparatus 600 and, in combination with other elements in the computing device 710, implement the techniques described herein.

[0093] The present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computing device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computing device executes the document search method provided in the above-mentioned various optional implementations.

[0094] Various techniques may be described herein in the general context of software hardware elements or program modules. Generally, these modules include routines, programs, objects, elements, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The terms "module", "function" and "component" as used herein generally represent software, firmware, hardware or a combination thereof. The features of the techniques described herein are platform-independent, meaning that these techniques can be implemented on a variety of computing platforms with a variety of processors.

[0095] An implementation of the described modules and techniques may be stored on or transmitted across some form of computer-readable media. Computer-readable media may include various media accessible by computing device 710. By way of example and not limitation, computer-readable media may include “computer-readable storage media” and “computer-readable signal media.”

[0096] In contrast to a simple signal transmission, carrier wave, or signal itself, "computer-readable storage medium" refers to a medium and / or device capable of persistently storing information, and / or a tangible storage device. Therefore, a computer-readable storage medium refers to a non-signal-bearing medium. Computer-readable storage media include hardware such as volatile and non-volatile, removable and non-removable media and / or storage devices implemented in a method or technology suitable for storing information (such as computer-readable instructions, data structures, program modules, logic elements / circuits, or other data). Examples of computer-readable storage media may include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage device, hard disk, cassette, magnetic tape, magnetic disk storage device or other magnetic storage device, or other storage device, tangible medium, or article of manufacture suitable for storing desired information and accessible by a computer.

[0097] "Computer-readable signal media" refers to signal-bearing media that is configured to send instructions to the hardware of the computing device 710, such as via a network. Signal media typically can embody computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave, data signal, or other transport mechanism. Signal media also include any information delivery media. The term "modulated data signal" refers to a signal that has one or more of its characteristics set or changed so as to encode information into the signal. By way of example and not limitation, communication media include wired media such as a wired network or direct connection and wireless media such as acoustic, RF, infrared, and other wireless media.

[0098] As before, hardware elements 714 and computer-readable media 712 represent instructions, modules, programmable device logic and / or fixed device logic implemented in hardware form, which in some embodiments can be used to implement at least some aspects of the technology described herein. Hardware elements can include integrated circuits or systems on a chip, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), and other implementations in silicon or components of other hardware devices. In this context, hardware elements can be used as processing devices for executing program tasks defined by instructions, modules and / or logic embodied by hardware elements, as well as hardware devices for storing instructions for execution, such as the computer-readable storage media described previously.

[0099] The aforementioned combination may also be used to implement various techniques and modules herein. Therefore, software, hardware or program modules and other program modules may be implemented as one or more instructions and / or logic embodied on some form of computer-readable storage medium and / or by one or more hardware elements 714. Computing device 710 may be configured to implement specific instructions and / or functions corresponding to software and / or hardware modules. Therefore, for example, by using a computer-readable storage medium and / or hardware element 714 of a processing system, a module may be implemented as a module executable by computing device 710 as software, at least in part, in hardware. Instructions and / or functions may be executable / operable by one or more articles (e.g., one or more computing devices 710 and / or processing systems 711) to implement the techniques, modules and examples described herein.

[0100] In various embodiments, computing device 710 can be implemented in various configurations. For example, computing device 710 can be implemented as a computer-type device including a personal computer, a desktop computer, a multi-screen computer, a laptop computer, a netbook, etc. Computing device 710 can also be implemented as a mobile device-type device including mobile devices such as mobile phones, portable music players, portable game devices, tablet computers, multi-screen computers, etc. Computing device 710 can also be implemented as a television-type device, which includes a device with or connected to a generally larger screen in a casual viewing environment. These devices include televisions, set-top boxes, game consoles, etc.

[0101] The techniques described herein may be supported by these various configurations of computing device 710 and are not limited to the specific examples of the techniques described herein. Functionality may also be implemented in whole or in part on the "cloud" 720 by using a distributed system, such as through platform 722 as described below.

[0102] Cloud 720 includes and / or represents a platform 722 for resources 724. Platform 722 abstracts the underlying functionality of the hardware (e.g., servers) and software resources of cloud 720. Resources 724 may include applications and / or data that may be used when executing computer processing on a server remote from computing device 710. Resources 724 may also include services provided over the Internet and / or over a subscriber network such as a cellular or Wi-Fi network.

[0103] The platform 722 may abstract resources and functionality to connect the computing device 710 with other computing devices. The platform 722 may also be used to abstract hierarchies of resources to provide hierarchies of corresponding levels of demand encountered for resources 724 implemented via the platform 722. Thus, in an interconnected device embodiment, implementation of the functionality described herein may be distributed throughout the system 700. For example, functionality may be implemented in part on the computing device 710 and through the platform 722 that abstracts functionality of the cloud 720.

[0104] It should be understood that, for the sake of clarity, embodiments of the present application are described with reference to different functional units. However, it will be apparent that, without departing from the present application, the functionality of each functional unit can be implemented in a single unit, in multiple units or as a part of other functional units. For example, the functionality that is described as being performed by a single unit can be performed by multiple different units. Therefore, reference to a specific functional unit is only considered as a reference to the appropriate unit for providing the described functionality, rather than indicating a strict logical or physical structure or organization. Therefore, the present application can be implemented in a single unit, or can be physically and functionally distributed between different units and circuits.

[0105] Although the present application has been described in conjunction with some embodiments, it is not intended to be limited to the specific form set forth herein. On the contrary, the scope of the present application is limited only by the appended claims. Additionally, although individual features may be included in different claims, these may possibly be advantageously combined, and the inclusion in different claims does not imply that the combination of features is not feasible and / or advantageous. The order of features in the claims does not imply any specific order in which the features must work. In addition, in the claims, the word "comprising" does not exclude other elements, and the term "one" or "an" does not exclude a plurality. The figure marks in the claims are provided only as clear examples and should not be interpreted as limiting the scope of the claims in any way.

[0106] It is understandable that in the specific implementation of this application, entity-related data such as entity default information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

Claims

1. A document search method, comprising: Acquire a search text, a plurality of candidate documents, and an entity relationship diagram, wherein the entity relationship diagram includes a plurality of entities and relationships between the plurality of entities, and the plurality of entities include an entity corresponding to the search text; Determine an entity corresponding to the search text in the entity relationship diagram and an associated entity associated with the entity; For each candidate document in the plurality of candidate documents, performing a document matching step to determine whether the candidate document matches the search text; as well as, Determine candidate documents matching the search text as document search results; Wherein, the document matching step includes: Extracting a first text feature from the search text and the candidate document using a semantic feature extraction network; extracting a first entity feature from the entity and the associated entity using an entity feature extraction network; Determine a first fusion feature based on the first text feature and the first entity feature; A trained classifier is used to determine whether the search text and the candidate document match based on the first fused feature.

2. The method according to claim 1, wherein determining the entity to which the search text corresponds in the entity relationship diagram and the associated entity associated with the entity comprises: extracting entity names and entity descriptions from the search text; Traversing multiple entities in the entity relationship graph to determine candidate entities corresponding to the entity names; determining whether an associated entity of the candidate entity contains the entity description; and, In response to an associated entity of the candidate entity containing the entity description, the candidate entity is determined as the entity corresponding to the search text.

3. The method according to claim 1, wherein extracting the first text feature from the search text and the candidate document using a semantic feature extraction network comprises: Selecting candidate document key text from the candidate documents; Determine a first compound text based on the search text and the candidate document key text; as well as, A first text feature is extracted from the first compound text using a semantic feature extraction network.

4. The method according to claim 3, wherein the candidate document key text comprises a document title of the candidate document; and the determining the first composite text based on the search text and the candidate document key text comprises: The search text and the candidate document key text are concatenated, and the result of the concatenated text is determined as a first composite text.

5. The method according to claim 1, wherein extracting the first entity feature from the entity and the associated entity using an entity feature extraction network comprises: Determining entity information text of the entity based on the entity; Determine, based on the associated entity, entity information text of the associated entity and a relationship between the associated entity and the entity; as well as, The first entity feature is extracted from the entity information text of the entity, the entity information text of the associated entity, and the relationship between the associated entity and the entity by using an entity feature extraction network.

6. The method according to claim 1, wherein determining a first fusion feature based on the first text feature and the first entity feature comprises: Performing vector concatenation of the first text feature and the first entity feature; as well as, The result of concatenating the vectors is determined as the first fusion feature.

7. The method according to claim 1, wherein the trained classifier is trained and determined using a training set, the classifier receives the first fusion feature, and outputs a classification result, the classification result includes a probability of being classified into each matching level, and the matching level includes mutual matching and mutual mismatching; Wherein, using the trained classifier to determine whether the search text and the candidate document match based on the first fusion feature includes: Inputting the first fusion feature into the trained classifier; determining the mutual matching probability output by the trained classifier as the matching probability of the search text and the candidate document; and, In response to the matching probability being greater than or equal to a first predetermined threshold, it is determined that the search text matches the candidate document.

8. The method according to claim 7, wherein the training set comprises a plurality of training sample pairs, wherein the training sample pairs comprise a first fusion feature and a matching level corresponding thereto, wherein the matching level is a matching level between a search text corresponding to the first fusion feature and a candidate document; The trained classifier is determined by performing a training step on the classifier using a training set, the training step comprising: Obtain training sample pairs from the training set, Inputting the first fusion feature of the training sample pair into the classifier to obtain an actual output, determining the matching level corresponding to the first fusion feature as the expected output of the classifier, and The classifier is adjusted until the difference between the actual output and the expected output is smaller than a second predetermined threshold.

9. The method according to claim 1, wherein the trained classifier is trained and determined using a training set, the classifier receives the first fusion feature, and outputs a classification result, wherein the classification result includes a probability of being classified into each matching level, and the matching level includes a mutual high match, a mutual general match, and a mutual mismatch; Wherein, using the trained classifier to determine whether the search text and the candidate document match based on the first fusion feature comprises: Inputting the first fusion feature into the trained classifier; Determining the mutual high-matching probability and the mutual general-matching probability output by the trained classifier as the high-matching probability and the general-matching probability of the search text and the candidate document respectively; In response to the high matching probability being greater than or equal to a third predetermined threshold, determining that the search text and the candidate document are highly matched; and, In response to the general match probability being greater than or equal to a fourth predetermined threshold, it is determined that the search text and the candidate document generally match.

10. A document search device, comprising: An acquisition module configured to acquire a search text, a plurality of candidate documents, and an entity relationship diagram, wherein the entity relationship diagram includes a plurality of entities and associations between the plurality of entities, and the plurality of entities includes an entity corresponding to the search text; A first determination module configured to determine an entity corresponding to the search text in the entity relationship diagram and an associated entity associated with the entity; a document matching module configured to perform a document matching step for each candidate document in the plurality of candidate documents to determine whether the candidate document matches the search text; and A second determination module is configured to determine a candidate document matching the search text as a document search result; Wherein, the document matching step includes: Extracting a first text feature from the search text and the candidate document using a semantic feature extraction network; extracting a first entity feature from the entity and the associated entity using an entity feature extraction network; Determine a first fusion feature based on the first text feature and the first entity feature; A trained classifier is used to determine whether the search text and the candidate document match based on the first fused feature.

11. A computing device comprising: a memory configured to store computer-executable instructions; as well as A processor configured to perform a method according to any one of claims 1-9 when the computer executable instructions are executed by the processor.

12. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions implement the method according to any one of claims 1 to 9 when executed.

13. A computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method for matching entity-based text data and XML files

    CN105677740A

  • Food retrieval method and device

    CN108563766A

  • Search processing method, device and equipment

    CN111309872A

  • Entity relationship extraction method, device and equipment and storage medium thereof

    CN111709240A

  • Document query method and device, electronic equipment and storage medium

    CN112507068A