Document processing method and device, equipment and storage medium
By constructing a document hypergraph and sorting based on weight, document summaries are automatically generated, which solves the problem of inaccurate information content in traditional methods, improves the accuracy of document summaries, and reduces the need for users to view the full text.
Patent Information
- Application Number
- CN202311618438.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2024-10-18
AI Technical Summary
Traditional document summary extraction methods rely on keywords, resulting in low accuracy of information content. Users need to frequently view the full text to determine whether the information meets their needs.
Construct a hypergraph of documents, determine node and hyperedge weights based on sentence features and associations, and automatically generate document summaries through importance ranking.
The generated document summary more accurately expresses the information content and reduces the frequency of users viewing the full text.
Smart Images

Figure CN118797035A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a document processing method, device, equipment and storage medium. Background Art
[0002] Today, the Internet generates a large amount of information every day. It is particularly important to improve the efficiency of information screening by reading document summaries of information.
[0003] With the development of artificial intelligence, document summarization based on machine automation has been increasingly applied. The traditional approach is to extract keywords from documents and provide them to users as document summaries. However, practice has shown that the accuracy of information expressed by keywords is not high, and users still often have to read the full text to determine whether it is the information they want.
[0004] Therefore, how to extract document summaries more accurately is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of this application is to provide a document processing method, apparatus, device and storage medium, which can find key sentences in a document to automatically generate a document summary based on the feature information of the sentences themselves and the association between the sentences.
[0006] In order to achieve the above purpose, the embodiment of the present application is implemented as follows:
[0007] In a first aspect, a document processing method is provided, comprising:
[0008] Constructing a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent sentences of the target document, and the hyperedges in the hypergraph are used to represent associations between sentences of the target document;
[0009] Determine the weight of the node based on the sentence feature corresponding to the node; and determine the weight of the hyperedge based on the association relationship feature corresponding to the hyperedge;
[0010] Sorting the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph;
[0011] According to the order of importance from high to low, sentences corresponding to some of the nodes are selected from the hypergraph to extract the document summary of the target document.
[0012] In a second aspect, a document processing device is provided, comprising:
[0013] A hypergraph construction module, used to construct a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document;
[0014] A weight determination module, configured to determine the weight of the node based on the sentence feature corresponding to the node; and determine the weight of the hyperedge based on the association relationship feature corresponding to the hyperedge;
[0015] An importance ranking module, used to rank the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph;
[0016] The summary generation module is used to select sentences corresponding to some of the nodes in the hypergraph according to the order of importance from high to low, and extract the document summary of the target document.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory configured to store computer-executable instructions, wherein the computer-executable instructions, when executed, cause the processor to execute the method described in the first aspect.
[0018] According to a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store computer-executable instructions, and the computer-executable instructions implement the method described in the first aspect when executed by a processor.
[0019] In the process of generating the document summary of the target document, the present application first constructs a hypergraph of the target document, wherein the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document. Next, the node weight is determined based on the sentence features corresponding to the nodes, and the hyperedge weight is determined based on the association relationship features corresponding to the hyperedges. Afterwards, the sentences of the target document are analyzed and sorted by importance according to the weights of the nodes and hyperedges, and finally, the sentences corresponding to some of the nodes are selected in descending order of importance to extract the document summary of the target document. Compared with the traditional solution of using keywords as document summaries, the document summary generated by the present application makes it easier for users to accurately understand the information content, so there is no need to frequently check the full text of the document. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 This is a schematic diagram of the first flow chart of the document processing method according to an embodiment of the present application.
[0022] Figure 2 This is a second flow chart of the document processing method according to an embodiment of the present application.
[0023] Figure 3 A schematic diagram of the structure of a document processing device according to an embodiment of the present application.
[0024] Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] As mentioned above, the traditional way of extracting document summaries is to determine the keywords in the document as document summaries to provide to users. However, the accuracy of the information content that can be expressed by keywords is not high, and users often have to read the full text to determine whether it is the information they want.
[0026] In view of this, the present application aims to propose a document processing solution that can find key sentences in a document based on the feature information of the sentences themselves and the correlation between the sentences to automatically generate a document summary. Compared with keywords, the information content expressed by key sentences is more specific and easier for users to understand.
[0027] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0028] On the one hand, an embodiment of the present application provides a document processing method. Figure 1 The flowchart of the document processing method of this embodiment includes:
[0029] S102, constructing a hypergraph of the target document; wherein the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document.
[0030] A hypergraph refers to a special relationship graph in which one edge can correspond to multiple nodes, so the relationships that can be expressed are more diverse, that is, there can be multiple types of hyperedges.
[0031] As an exemplary introduction, the hyperedge types of this embodiment may include, but are not limited to: a first type, a second type, a third type, a fourth type, and a fifth type.
[0032] in:
[0033] The first type E1 indicates that the same words exist in all corresponding nodes, which belongs to the word-sentence level dimension.
[0034] The second type E2 indicates that all corresponding nodes have the same named entity and / or similar named entities, which belongs to the word-sentence level dimension.
[0035] The third type E3 indicates that all corresponding nodes belong to the same cluster and belong to the category-sentence level dimension.
[0036] The fourth type E4 indicates that the similarity of the document vectors of all corresponding nodes meets the preset similarity requirement, which belongs to the sentence-sentence level dimension.
[0037] The fifth type E5 indicates that the document vectors of all corresponding nodes belong to the same document type and belong to the document-sentence level dimension.
[0038] S104, determining the weight of the node based on the sentence features corresponding to the node; and determining the weight of the hyperedge based on the association relationship features corresponding to the hyperedge.
[0039] In this embodiment, corresponding weights are set for nodes and hyperedges in the hypergraph, wherein the weight of a node reflects the importance of a sentence in the target document, and the weight of a hyperedge reflects the importance of the contextual connection of a sentence.
[0040] The weight of a node (sentence) is determined by the sentence features of the node itself, which may include but are not limited to: sentence frequency features, sentence position features, and sentence length features. In addition, if it is for query-oriented document summary generation, the sentence features of the node itself may also include: sentence query matching features, which may be determined based on the text vector similarity between the sentence and the query input information.
[0041] The weight of a hyperedge is determined by the characteristics of the association relationship corresponding to the hyperedge. As an example:
[0042] The weights of the hyperedges of the first type E1 and the second type E2 are determined based on the TF-IDF values of all corresponding nodes; TF-IDF (term frequency-inverse document frequency) is a commonly used weighting technique for information retrieval and data mining. TF stands for term frequency, and IDF stands for inverse document frequency.
[0043] The weight of the third type E3 hyperedge is determined based on the document vector similarity between the clusters to which all corresponding nodes belong and the target document.
[0044] The weight of the fourth type E4 hyperedge is determined based on the document vector similarity between all corresponding nodes.
[0045] The weight of the fifth type E5 hyperedge is determined based on the document vector similarity between the target document and the corpus.
[0046] The above document vector similarity can be expressed by the cosine angle.
[0047] S106, sorting the sentences of the target document by importance based on the weights of the nodes and hyperedges in the hypergraph.
[0048] This embodiment can determine the probability distribution of the nodes in the hypergraph based on a random walk algorithm; wherein, in the random walk algorithm, the probability of the node being walked corresponds to the weight of the node, and the probability of the hyperedge being walked corresponds to the weight of the hyperedge; then, the sentences of the target document are sorted in importance according to the probability distribution of the nodes in the hypergraph from large to small.
[0049] The basic idea of the random walk algorithm is to traverse a graph from one or a series of vertices. At any vertex, the traverser will walk to the neighboring vertices of this vertex with probability 1-a, and randomly jump to any vertex in the graph with probability a, which is called the jump occurrence probability. After each walk, a probability distribution is obtained, which describes the probability of each vertex in the graph being visited. Use this probability distribution as the input for the next walk and iterate this process repeatedly. When certain preconditions are met, this probability distribution will tend to converge. After convergence, a stable probability distribution can be obtained.
[0050] S108, sorting by importance from high to low, selecting sentences corresponding to some nodes from the hypergraph, and extracting a document summary of the target document.
[0051] As an exemplary introduction, this embodiment can fuse the sentences corresponding to the selected partial nodes to obtain the document summary of the target document. It should be understood that the document summary obtained by fusion expresses the information content at the sentence level granularity, which is more accurate than expressing the information content with keywords.
[0052] In actual application scenarios, the method of this embodiment can be applied to the query-oriented field. For the corresponding process, refer to Figure 2 As shown:
[0053] First, input the target document, corpus, and query input information.
[0054] Next, the input target document is preprocessed, including: word segmentation, determining the co-occurring words between sentences, sentence clustering and text vector encoding (feature extraction).
[0055] After that, a hypergraph with hyperedge weights and node weights is constructed for the target document. The specific process is as follows:
[0056] S1, in the hypergraph for each sentence S i Build a node.
[0057] S2, if the sentence S i and S j If there are the same words between them, a hyperedge is used to connect them on the corresponding nodes, and the weight of the hyperedge is represented by the co-occurrence word TF-IDF.
[0058] S3, if the sentence S i and S j There are identical named entities between them, and the processing steps are shown in S2.
[0059] S4, for cluster C t Each sentence in Add a hyperedge to the corresponding node, and the weight of the hyperedge is cos(C t ,D), this value is cluster C t The cosine angle with the document set D.
[0060] S5, if the sentence S i With sentence S j If the cosine angle between them is greater than zero, a hyperedge is connected to the corresponding node, and the weight of the hyperedge is cos(S i ,S j ).
[0061] S6, connects the corresponding node of the sentence from the same document with a hyperedge, and the weight value is the cosine angle cos(d,D) of the entire corpus, which is the cosine angle between the corpus d and the document set D.
[0062] S7, determining the weight of the node according to the sentence word frequency feature, sentence position feature, sentence length feature and sentence query matching feature (text vector similarity between the sentence and the query input information) corresponding to the node.
[0063] After the hypergraph is constructed, the random walk algorithm is used to sort the nodes (sentences) in the hypergraph by importance.
[0064] Finally, some sentences are selected according to the importance and merged into the document summary.
[0065] On the other hand, an embodiment of the present application further provides a document processing device. Figure 3 : is a schematic diagram of the structure of the document processing device 300, comprising:
[0066] The hypergraph construction module 310 is used to construct a hypergraph of the target document; wherein the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document.
[0067] The weight determination module 320 is used to determine the weight of the node based on the sentence feature corresponding to the node; and to determine the weight of the hyperedge based on the association relationship feature corresponding to the hyperedge.
[0068] The importance ranking module 330 is used to rank the sentences of the target document according to the importance based on the weights of the nodes and the hyperedges in the hypergraph.
[0069] The summary generation module 340 is used to select sentences corresponding to some of the nodes in the hypergraph in descending order of importance to extract the document summary of the target document.
[0070] The device of this embodiment first constructs a hypergraph of the target document, in which the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document. Next, the node weight is determined based on the sentence features corresponding to the nodes, and the hyperedge weight is determined based on the association relationship features corresponding to the hyperedges. Afterwards, the sentences of the target document are analyzed and sorted by importance according to the weights of the nodes and hyperedges, and finally, the sentences corresponding to some of the nodes are selected in descending order of importance to extract the document summary of the target document. Compared with the traditional solution of using keywords as document summaries, the document summary generated by the present application makes it easier for users to accurately understand the information content, so there is no need to frequently check the full text of the document.
[0071] Optionally, the hyperedge types in the hypergraph include: a first type, a second type, a third type, a fourth type and a fifth type; wherein the first type indicates that the same words exist in all the corresponding nodes; the second type indicates that the same named entities and / or similar named entities exist in all the corresponding nodes; the third type indicates that all the corresponding nodes belong to the same cluster; the fourth type indicates that the similarity of the document vectors of all the corresponding nodes meets a preset similarity requirement; the fifth type indicates that the document vectors of all the corresponding nodes belong to the same document type.
[0072] Optionally, the weights of the first type and the second type of hyperedges are determined based on the term frequency-inverse document frequency index TF-IDF values of all the corresponding nodes; the weight of the third type of hyperedges is determined based on the document vector similarity between the clusters to which all the corresponding nodes belong and the target document; the weight of the fourth type of hyperedges is determined based on the document vector similarity between all the corresponding nodes; and the weight of the fifth type of hyperedges is determined based on the document vector similarity between the target document and a corpus.
[0073] Optionally, the sentence feature corresponding to the node includes: at least one of a sentence word frequency feature, a sentence position feature and a sentence length feature.
[0074] Optionally, the sentence feature corresponding to the node further includes: a sentence query matching feature; wherein the sentence query matching feature is determined based on the text vector similarity between the sentence and the query input information.
[0075] Optionally, the importance sorting module 330 sorts the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph, including: determining the probability distribution of the nodes in the hypergraph based on a random walk algorithm; wherein, in the random walk algorithm, the probability of the node being walked corresponds to the weight of the node, and the probability of the hyperedge being walked corresponds to the weight of the hyperedge; and sorting the sentences of the target document by importance in descending order of the probability distribution of the nodes in the hypergraph.
[0076] Optionally, the document processing device of this embodiment further includes a preprocessing module for preprocessing the target document before constructing the hypergraph of the target document; wherein the preprocessing includes: at least one of word segmentation, sentence clustering and text vector encoding.
[0077] It should be understood that the document processing device of this embodiment can be used as Figure 1 The execution subject of the method shown can thus realize Figure 1The steps and functions in the method shown.
[0078] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Figure 4 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0079] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0080] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes computer operation instructions. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to perform the following operations:
[0081] Constructing a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document.
[0082] The weight of the node is determined based on the sentence feature corresponding to the node; and the weight of the hyperedge is determined based on the association relationship feature corresponding to the hyperedge.
[0083] Based on the weights of the nodes and the hyperedges in the hypergraph, the sentences of the target document are ranked by importance.
[0084] According to the order of importance from high to low, sentences corresponding to some of the nodes are selected from the hypergraph to extract the document summary of the target document.
[0085] The electronic device of this embodiment first constructs a hypergraph of the target document, in which the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document. Next, the node weight is determined based on the sentence features corresponding to the nodes, and the hyperedge weight is determined based on the association relationship features corresponding to the hyperedges. Afterwards, the sentences of the target document are analyzed and sorted according to the weights of the nodes and hyperedges, and finally, the sentences corresponding to some of the nodes are selected in descending order of importance to extract the document summary of the target document. Compared with the traditional solution of using keywords as document summaries, the document summary generated by the present application makes it easier for users to accurately understand the information content, so there is no need to frequently check the full text of the document.
[0086] The document processing method disclosed in the above-mentioned embodiment as shown in this specification can be applied to a processor and implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned 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. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0087] Of course, in addition to software implementation, the electronic device of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0088] In addition, an embodiment of the present application also proposes a computer-readable storage medium, which stores one or more programs, and the one or more programs include instructions.
[0089] Optionally, when the above instructions are executed by a portable electronic device including a plurality of application programs, the portable electronic device can execute Figure 1 The steps of the method shown include:
[0090] Constructing a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document.
[0091] The weight of the node is determined based on the sentence feature corresponding to the node; and the weight of the hyperedge is determined based on the association relationship feature corresponding to the hyperedge.
[0092] Based on the weights of the nodes and the hyperedges in the hypergraph, the sentences of the target document are ranked by importance.
[0093] According to the order of importance from high to low, sentences corresponding to some of the nodes are selected from the hypergraph to extract the document summary of the target document.
[0094] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0095] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0096] The above are only embodiments of this specification and are not intended to limit this specification. For those skilled in the art, this specification may be subject to various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the scope of the claims of this specification. In addition, all other embodiments obtained by ordinary technicians in this field without creative work shall fall within the scope of protection of this document.
Claims
1. A document processing method, characterized in that: include: Constructing a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent sentences of the target document, and the hyperedges in the hypergraph are used to represent associations between sentences of the target document; Determine the weight of the node based on the sentence feature corresponding to the node; and determine the weight of the hyperedge based on the association relationship feature corresponding to the hyperedge; Sorting the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph; According to the order of importance from high to low, sentences corresponding to some of the nodes are selected from the hypergraph to extract the document summary of the target document.
2. The method according to claim 1, characterized in that The hyperedge types in the hypergraph include: a first type, a second type, a third type, a fourth type and a fifth type; wherein the first type indicates that the same words exist in all the corresponding nodes; the second type indicates that the same named entities and / or similar named entities exist in all the corresponding nodes; the third type indicates that all the corresponding nodes belong to the same cluster; the fourth type indicates that the similarity of the document vectors of all the corresponding nodes meets a preset similarity requirement; the fifth type indicates that the document vectors of all the corresponding nodes belong to the same document type.
3. The method according to claim 2, characterized in that The weights of the first type and the second type of hyperedges are determined based on the term frequency-inverse document frequency index TF-IDF values of all the corresponding nodes; The weight of the third type of hyperedge is determined based on the document vector similarity between the corresponding clusters to which all the nodes belong and the target document; The weight of the fourth type of hyperedge is determined based on the document vector similarity between all corresponding nodes; The weight of the fifth type of hyperedge is determined based on the document vector similarity between the target document and the corpus.
4. The method according to any one of claims 1 to 3, characterized in that The sentence features corresponding to the nodes include: at least one of sentence word frequency features, sentence position features, and sentence length features.
5. The method according to any one of claims 1 to 3, characterized in that The sentence features corresponding to the node also include: sentence query matching features; wherein the sentence query matching features are determined based on the text vector similarity between the sentence and the query input information.
6. The method according to any one of claims 1 to 3, characterized in that Sorting the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph, including: Based on a random walk algorithm, determining the probability distribution of the nodes in the hypergraph; wherein, in the random walk algorithm, the probability of the node being walked corresponds to the weight of the node, and the probability of the hyperedge being walked corresponds to the weight of the hyperedge; The sentences of the target document are ranked in order of importance according to the probability distribution of the nodes in the hypergraph from large to small.
7. The method according to claim 2, characterized in that Before constructing the hypergraph of the target document, the method further includes: The target document is preprocessed; wherein the preprocessing includes: at least one of word segmentation, sentence clustering and text vector encoding.
8. A document processing device, characterized in that: include: A hypergraph construction module, used to construct a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent the sentences of the target document, and the hyperedges in the hypergraph are used to represent the association relationship between the sentences of the target document; A weight determination module, configured to determine the weight of the node based on the sentence feature corresponding to the node; and determine the weight of the hyperedge based on the association relationship feature corresponding to the hyperedge; An importance ranking module, used to rank the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph; The summary generation module is used to select sentences corresponding to some of the nodes in the hypergraph according to the order of importance from high to low, and extract the document summary of the target document.
9. An electronic device, comprising: processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to perform the following operations: Constructing a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent sentences of the target document, and the hyperedges in the hypergraph are used to represent associations between sentences of the target document; Determine the weight of the node based on the sentence feature corresponding to the node; and determine the weight of the hyperedge based on the association relationship feature corresponding to the hyperedge; Sorting the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph; According to the order of importance from high to low, sentences corresponding to some of the nodes are selected from the hypergraph to extract the document summary of the target document.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the following steps are implemented: Constructing a hypergraph of a target document; wherein the nodes in the hypergraph are used to represent sentences of the target document, and the hyperedges in the hypergraph are used to represent associations between sentences of the target document; Determine the weight of the node based on the sentence feature corresponding to the node; and determine the weight of the hyperedge based on the association relationship feature corresponding to the hyperedge; Sorting the sentences of the target document by importance based on the weights of the nodes and the hyperedges in the hypergraph; According to the order of importance from high to low, sentences corresponding to some of the nodes are selected from the hypergraph to extract the document summary of the target document.
Citation Information
Patent Citations
Abstract extraction method and device based on heterogeneous graph network, terminal equipment and medium
CN113935314A
Document keyword extraction method based on hypergraph random walk
CN114065758A
Abstract extraction method and device, electronic equipment and storage medium
CN115905504A
Method and system for extracting sentences
KR1020170030434A
