Text processing method, device, equipment, and computer-readable storage medium

The method simplifies text processing by iteratively deleting sentences based on relevance to keywords, ensuring all keywords are included in a minimal sentence combination, thus optimizing the summary generation process.

JP7784852B2Active Publication Date: 2025-12-12NTT DOCOMO INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2021156713
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-09-27
Filing Date
2021-09-27
Publication Date
2025-12-12
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

Existing text summary generation methods become complex when multiple desired keywords are involved, as they require repeated selection and combination of sentences, leading to inefficiencies.

Method used

A method that deletes sentences from an original text based on relevance to keywords until all keywords are included in a minimized sentence combination, eliminating the need for grammatical consideration.

Benefits of technology

Reduces processing complexity and ensures all keywords are included in the summary while minimizing the number of sentences, without addressing grammatical issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007784852000001
    Figure 0007784852000001
  • Figure 0007784852000002
    Figure 0007784852000002
  • Figure 0007784852000003
    Figure 0007784852000003
Patent Text Reader

Abstract

To provide a text processing method, a device, an apparatus, and a storage medium that can reduce low processing complexity and do not require consideration of grammar issues when all keywords are covered.SOLUTION: A text processing method includes the steps of: receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; determining whether the first processing result includes all keywords; and when the first processing result does not include all keywords, deleting one or more sentences in the original text, continuing deletion processing until a combination of the first processing result and sentences in the original text after deletion processing includes all the keywords and the number of sentences in the original text after processing is minimum, and setting the combination as a final processing result.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present application relates to the field of text processing, and in particular to a text processing method, apparatus, device and computer-readable storage medium. [Background technology]

[0002] Text summary generation involves generating a summary of a text by highly generalizing and abstracting a portion of the text content that has a clear meaning. When a user wants a summary to contain all desired keywords, but the generated summary does not contain all of the desired keywords, a typical approach is to repeatedly select sentences containing the keywords from the original text for each keyword, and then combine the sentences containing the selected keywords with the generated summary to create a new summary. However, this approach becomes increasingly complex as the number of desired keywords increases. Summary of the Invention [Problem to be solved by the invention]

[0003] In view of the above problems, the present disclosure provides a text processing method, apparatus, device, and computer-readable storage medium. [Means for solving the problem]

[0004] According to one aspect of the present disclosure, there is provided a text processing method, the text processing method including the steps of receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; determining whether the first processing result includes all the keywords; and, if the first processing result does not include all the keywords, deleting one or more sentences in the original text, continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all the keywords and the number of sentences in the original text after the deletion process is minimized, and setting the combination as a final processing result.

[0005] According to one example of the present disclosure, the step of deleting one or more sentences in the original text when the first processing result does not include all keywords, and continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, includes the step of deleting sentences in the original text when the first processing result does not include all keywords, based on the relevance of each sentence in the original text to all of the keywords, and continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized.

[0006] According to one example of the present disclosure, the step of deleting sentences in the original text based on the relevance between each sentence of the original text and all of the keywords includes the steps of sorting each sentence of the original text in ascending order of relevance based on the relevance between each sentence of the original text and all of the keywords, and deleting each sentence of the original text based on the sorting.

[0007] According to one example of the present disclosure, the step of deleting each sentence in the original text in ascending order of relevance includes the steps of: after the first sentence of each sentence in the original text is deleted, determining whether a combination of the first processing result and the sentence in the original text after the deletion process includes all keywords; if the combination of the first processing result and the sentence in the original text after the deletion process includes all keywords, deciding to perform a deletion operation and continuing to process the next sentence in the original text; and if the combination of the first processing result and the sentence in the original text after the deletion process does not include all keywords, canceling the deletion operation, leaving the first sentence, and continuing to process the next sentence in the original text.

[0008] According to one example of the present disclosure, after one sentence in the original text is deleted, and before determining whether the combination of the first processing result and the sentence in the original text after the deletion process includes all keywords, the method further includes a step of deleting sentences in the original text that do not include any of the keywords in ascending order of relevance.

[0009] According to one example of the present disclosure, the relevance of each sentence of the original text to all of the keywords is determined based on the number of the one or more keywords contained in each sentence of the original text.

[0010] According to another aspect of the present disclosure, a text processing device is provided, the text processing device including: a receiving unit for receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; a determining unit for determining whether the first processing result includes all the keywords; and a deletion unit for deleting one or more sentences in the original text if the first processing result does not include all the keywords, and continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all the keywords and the number of sentences in the original text after the deletion process is minimized, and setting the combination as a final processing result.

[0011] According to one example of the present disclosure, if the first processing result does not include all keywords, the deletion unit deletes sentences in the original text based on the relevance between each sentence of the original text and all of the keywords, and continues the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized.

[0012] According to one example of the present disclosure, the deletion unit sorts each sentence of the original text in ascending order of relevance based on the relevance between each sentence of the original text and all of the keywords, and deletes each sentence in the original text based on the sorting.

[0013] According to one example of the present disclosure, after the first sentence of each sentence in the original text is deleted, the deletion unit determines whether the combination of the first processing result and the sentence in the original text after the deletion process includes all keywords, and if the combination of the first processing result and the sentence in the original text after the deletion process includes all keywords, decides to perform the deletion operation and continues processing the next sentence in the original text; if the combination of the first processing result and the sentence in the original text after the deletion process does not include all keywords, cancels the deletion operation, leaves the first sentence, and continues processing the next sentence in the original text.

[0014] According to one example of the present disclosure, after one sentence in the original text is deleted and before determining whether the combination of the first processing result and the sentence in the original text after the deletion processing includes all keywords, the deletion unit is further used to delete sentences in the original text that do not include any of the keywords in ascending order of relevance.

[0015] According to another aspect of the present disclosure, a text processing device is provided, the text processing device comprising a processor and a storage device having computer-readable instructions stored therein, wherein when the computer-readable instructions are executed by the processor, the text processing device performs a text processing method including the steps of receiving original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; determining whether the first processing result includes all the keywords; and, if the first processing result does not include all the keywords, deleting one or more sentences in the original text, continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all the keywords and the number of sentences in the original text after the deletion process is minimized, and setting the combination as a final processing result.

[0016] According to another aspect of the present disclosure, there is provided a computer-readable storage medium for storing a computer-readable program, the program causing a computer to perform the text processing method according to any of the previous aspects.

[0017] In the above aspect of the present disclosure, by referring to the first processing result, one or more sentences in the original text are deleted based on the relevance of each sentence in the original text to all keywords, and the deletion process is continued until the combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, and the combination is used as the final processing result, thereby reducing processing complexity and eliminating the need to consider grammatical issues. [Brief explanation of the drawings]

[0018] The above and other objects, features, and advantages of the present disclosure will become more apparent from a more detailed description of the embodiments of the present disclosure with reference to the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, constitute a part of the specification, and are used to explain the present disclosure together with the embodiments of the present disclosure, but are not intended to limit the present disclosure. In the drawings, the same reference numerals generally represent the same elements or steps.

[0019] [Figure 1] 1 is a flowchart of a text processing method according to an embodiment of the present disclosure. [Figure 2] 1 is a flowchart of a method for deleting a sentence in an original text according to an embodiment of the present disclosure. [Figure 3] 10 is another flowchart of a method for deleting a sentence in an original text according to an embodiment of the present disclosure. [Figure 4] FIG. 1 is a configuration diagram of a text processing method according to an embodiment of the present disclosure. [Figure 5] FIG. 1 is a schematic diagram of an example of a text processing method according to an embodiment of the present disclosure. [Figure 6]FIG. 1 is a functional block diagram of a text processing device according to an embodiment of the present disclosure. [Figure 7] FIG. 1 is a functional block diagram of a text processing device according to an embodiment of the present disclosure. [Figure 8] FIG. 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure. [Figure 9] FIG. 1 is a diagram illustrating an example of a hardware structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION

[0020] Hereinafter, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings of the embodiments of the present disclosure. Of course, the described embodiments are only some of the embodiments of the present disclosure, and are not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments that a person skilled in the art can derive without creative efforts shall fall within the scope of protection of the present disclosure.

[0021] This application uses flowcharts to describe steps of methods according to embodiments of this application. It should be understood that the previous or following steps are not necessarily performed in exact order. Instead, various steps can be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes. Or, certain steps or multiple steps may be omitted from these processes.

[0022] First, a text processing method 100 for implementing an embodiment of the present disclosure will be described with reference to Figure 1. The present disclosure refers to a first processing result (e.g., a text summary), deletes one or more sentences from the original text based on the relevance between each sentence of the original text and all keywords, and continues the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, and the combination is used as the final processing result, thereby reducing processing complexity and eliminating the need to consider grammatical issues.

[0023] Hereinafter, embodiments and examples of the present disclosure will be described in detail with reference to the drawings.

[0024] At least one embodiment of the present disclosure provides a text processing method, device, apparatus, and computer-readable storage medium. Hereinafter, a number of examples and embodiments will be used to non-limitingly describe text processing according to at least one embodiment of the present disclosure. As described below, different features of these specific examples and embodiments can be combined with each other, if not mutually contradictory, to obtain new examples and embodiments, and all of these new examples and embodiments fall within the scope of protection of the present disclosure.

[0025] A text processing method according to an embodiment of the present disclosure will be described below with reference to FIGS.

[0026] First, a text processing method according to an embodiment of the present disclosure will be described with reference to FIG. 1. The method may be automatically completed by a computer or the like. For example, the method is applied to text summary generation, text summarization, etc. For example, the text processing acquisition method may be implemented in the form of software, hardware, firmware, or any combination thereof, and may be loaded and executed by a processor in a device such as a mobile phone, a tablet PC, a laptop, a desktop computer, or a network server.

[0027] As shown in FIG. 1, the text processing method includes the following steps S101 to S103.

[0028] In step S101, an original text, one or more keywords contained in the original text, and a first processing result are received.

[0029] In step S102, it is determined whether the first processing result includes all the keywords.

[0030] In step S103, if the first processing result does not include all keywords, one or more sentences in the original text are deleted, and the deletion process is continued until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, and the combination is used as the final processing result.

[0031] In step S101, for example, the original text may be text in any language format (e.g., Chinese, English, Japanese, etc., but is not limited thereto.) For example, the keyword may be one or more characters, words, phrases, or short sentences that the user considers important.

[0032] For example, the first processing result may be one or more sentences obtained by simplifying the original text. As an example, the first processing result may be a text summary. For example, the first processing result may be obtained by a text generation model based on a neural network. The method for obtaining the first processing result may be any appropriate method, and is not limited thereto.

[0033] In step S102, for example, all sentences in the first processing result may be traversed for each of one or more keywords to determine whether the first processing result includes all of the keywords. For example, all sentences in the first processing result may be decomposed into word vectors, and all keywords may also be converted into word vector format, and whether the first processing result includes all of the keywords may be determined using a method based on a neural network. The method for determining whether the first processing result includes all of the keywords is not limited to this, and other appropriate methods may be used to determine whether the first processing result includes all of the keywords, but it should be noted that this is not a limitation.

[0034] In step S103, for example, if the first processing result does not include all keywords, sentences in the original text are deleted based on the relevance between each sentence in the original text and all of the keywords, and the deletion process is continued until the combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized.

[0035] For example, the relevance between each sentence of the original text and all of the keywords is determined based on the number of the one or more keywords included in each sentence of the original text. For example, if sentence A of the original text includes one keyword and sentence B includes three keywords, the relevance between sentence B of the original text and all of the keywords may be considered to be higher than the relevance between sentence A of the original text and all of the keywords.

[0036] Hereinafter, a method for deleting a sentence in an original text according to an embodiment of the present disclosure will be described with reference to FIGS.

[0037] 2 shows a flowchart of a method 200 for deleting sentences in an original text according to an embodiment of the present disclosure. For example, as shown in FIG. 2, deleting sentences in the original text based on the relevance between each sentence in the original text and all of the keywords may include sorting the sentences in the original text in ascending order of relevance between each sentence in the original text and all of the keywords (S201), and deleting each sentence in the original text based on the sorting (S202).

[0038] For example, when sorting original text based on relevance, sentences in the original text are sorted as they are, so grammatical issues do not need to be taken into consideration.

[0039] 3 illustrates another flowchart of a method 300 for deleting sentences in an original text according to an embodiment of the present disclosure. For example, as shown in FIG. 3, deleting each sentence in the original text in ascending order of relevance may include: determining whether a combination of the first processing result and the sentence in the original text after the deletion process contains all keywords after the first sentence of each sentence in the original text is deleted (S301); determining whether a combination of the first processing result and the sentence in the original text after the deletion process contains all keywords (S302); and canceling the deletion operation, leaving the first sentence, and continuing to process a next sentence in the original text (S303) if a combination of the first processing result and the sentence in the original text after the deletion process does not contain all keywords.

[0040] For example, assuming that the received keyword set is {m, n, p, q}, the received first processing result is G (G may include one or more sentences), and the original text sorted in ascending order of the relevance between each sentence (A, B, C, D, E, F) of the original text and all of the keywords is BDFACE, the text processing method based on FIG. 3 may include the steps of: after sentence B is deleted, determining whether a combination GDFACE of G and sentence DDFACE of the original text after the deletion process contains all of the keywords {m, n, p, q}; and if GDFACE contains all of the keywords {m, n, p, q}, determining a deletion operation for sentence B (i.e., deleting sentence B from the original text), and continuing to process the next sentence D of the original text according to step S301 until the combination of the first processing result G and the sentence in the original text after the deletion process contains all of the keywords {m, n, p, q} and the number of sentences in the original text after the deletion process is minimized, and determining the combination as a final processing result. On the other hand, if GDFACE does not contain all of the keywords {m, n, p, q}, the reduction operation for sentence B is canceled, sentence B in the original text is left, and the next sentence D in the original text is processed according to step S301 until the combination of the first processing result G and the sentence in the original text after the deletion process contains all of the keywords {m, n, p, q} and the number of sentences in the original text after the deletion process is minimized, and the combination is used as the final processing result.

[0041] Alternatively, after a first sentence in the original text is deleted and before determining whether a combination of the first processing result and the sentences in the original text after the deletion processing includes all of the keywords, the method may further include a step of deleting sentences in the original text that do not include any of the keywords in ascending order of relevance. In this process, first, sentences in the original text that do not include any of the keywords are deleted, and then steps S301 to S303 are performed on sentences remaining in the original text that include one or more keywords, thereby reducing the complexity of the process.

[0042] FIG. 4 shows a block diagram 400 of a text processing method according to an embodiment of the present disclosure. As shown in FIG. 4, the text processing method according to the present disclosure mainly includes the steps of: receiving an original text, one or more keywords contained in the original text, and a first processing result (S401); determining whether the first processing result includes all the keywords (S402); and, if the first processing result includes all the keywords, designating the first processing result as the final processing result (S403); and, if the first processing result does not include all the keywords, sorting each sentence of the original text in ascending order of relevance based on the relevance between each sentence of the original text and all the keywords, and deleting each sentence from the original text based on the sorting (S404). Then, after the first sentence of each sentence in the original text is deleted, determining whether a combination of the first processing result and the sentence in the original text after the deletion process includes all the keywords (S405). If the combination of the first processing result and the sentence in the original text after the deletion process contains all the keywords, a deletion operation is determined, and the process continues with the next sentence in the original text according to steps S404 to S405 (S406) until the combination of the first processing result and the sentence in the original text after the deletion process contains all the keywords and the number of sentences in the original text after the deletion process is minimized (S408), and the combination is designated as the final processing result (S409).On the other hand, if the combination of the first processing result and the sentence in the original text after the deletion process does not contain all the keywords, the deletion operation is canceled, the first sentence is left, and the process continues with the next sentence in the original text according to steps S404 to S405 (S407) until the combination of the first processing result and the sentence in the original text after the deletion process contains all the keywords and the number of sentences in the original text after the deletion process is minimized (S408), and the combination is designated as the final processing result (S409).

[0043] An example of a text processing method according to an embodiment of the present disclosure will now be described with reference to Fig. 5. As shown in Fig. 5, an original text 50, a plurality of keywords 52, and a first processing result are first received (e.g., a summary 51 is generated from the original text 50 using a conventional text generation model, etc.). As can be seen from Fig. 5, if the summary 51 generated by the model does not include all keywords (the keyword "Coubertin" is missing), the method of the present disclosure can obtain a new summary 53 as the final processing result, which includes all keywords 52 and the summary 51 generated by the model. As can be seen from the above, by using the model-generated summary 51 as a reference and gradually deleting sentences in the original text 50 based on the idea of ​​"deletion," and combining the sentences in the original text after the deletion process (e.g., "1,500 years after the end of the ancient Olympic Games, the Frenchman Coubertin proposed hosting the modern Olympic Games at the end of the 19th century" in FIG. 5) with the model-generated summary 51 to obtain the final processed result (processed summary 53 in FIG. 5), the final processed result includes all keywords, the sentences in the final processed result are not duplicated, and the number of sentences included is minimized compared to combinations of the model-generated summary 51 and other sentences in the original text. Note that the above method of the present disclosure reduces computational complexity because it eliminates the need to consider the number of keywords and grammatical issues between sentences.

[0044] Based on the idea of ​​"reduction," the present disclosure reduces computational complexity by combining the summary with the entire original text and then deleting sentences in the original text with reference to the summary until a set of sentences containing all keywords with the smallest number is generated.

[0045] The text processing method according to the embodiment of the present disclosure has been described above with reference to the drawings. The text processing device according to the embodiment of the present disclosure will now be described.

[0046] FIG. 6 is a functional block diagram illustrating a text processing device according to an embodiment of the present disclosure. As shown in FIG. 6, a text processing device 1000 according to an embodiment of the present disclosure includes a receiving unit 1010, a determining unit 1020, and a deleting unit 1030. Each of the above modules can perform each step of the text processing method according to the embodiment of the present disclosure described above with reference to FIGS. 1 to 5. Those skilled in the art will recognize that these unit modules may be implemented in various forms, such as solely hardware, solely software, or a combination thereof, and the present disclosure is not limited to any of these. For example, these units may be implemented by a central processing unit (CPU), a text processor (GPU), a tensor processor (TPU), a field programmable gate array (FPGA), or other types of processing units having data processing capabilities and / or instruction execution capabilities and corresponding computer instructions.

[0047] For example, the receiving unit 1010 is used to receive an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text.

[0048] For example, the first processing result may be one or more sentences obtained by simplifying the original text. As an example, the first processing result may be a text summary. For example, the first processing result may be obtained by a text generation model based on a neural network. The method for obtaining the first processing result may be any appropriate method, and is not limited thereto.

[0049] For example, the determining unit 1020 is used to determine whether the first processing result includes all keywords.

[0050] For example, the determination unit 1020 may determine whether the first processing result includes all keywords by traversing all sentences of the first processing result for each of one or more keywords. For example, the determination unit 1020 may determine whether the first processing result includes all keywords using a method based on a neural network. The method by which the determination unit 1020 determines whether the first processing result includes all keywords is not limited to this. The determination unit 1020 may use other appropriate methods to determine whether the first processing result includes all keywords, but this is not limited thereto.

[0051] For example, the deletion unit 1030 is used to delete one or more sentences in the original text if the first processing result does not contain all keywords, and continue the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process contains all keywords and the number of sentences in the original text after the deletion process is minimized, and the combination is used as the final processing result.

[0052] For example, if the first processing result does not include all keywords, the deletion unit 1030 may delete sentences in the original text based on the relevance of each sentence in the original text to all of the keywords, and continue the deletion process until the combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized.

[0053] For example, the relevance between each sentence of the original text and all of the keywords is determined based on the number of the one or more keywords included in each sentence of the original text.

[0054] For example, the deletion unit 1030 may sort each sentence of the original text in ascending order of relevance based on the relevance between each sentence of the original text and all of the keywords, and delete each sentence in the original text based on the sorting.

[0055] For example, after the first sentence of each sentence in the original text is deleted, the deletion unit 1030 may determine whether the combination of the first processing result and the sentence in the original text after the deletion process contains all keywords, and if the combination of the first processing result and the sentence in the original text after the deletion process contains all keywords, decide to perform the deletion operation and continue processing the next sentence in the original text; if the combination of the first processing result and the sentence in the original text after the deletion process does not contain all keywords, cancel the deletion operation, leave the first sentence, and continue processing the next sentence in the original text.

[0056] Alternatively, after one sentence in the original text is deleted and before determining whether the combination of the first processing result and the sentence in the original text after the deletion processing includes all keywords, the deletion unit 1030 may delete sentences in the original text that do not include any of the keywords in ascending order of relevance. In this processing, the deletion unit 1030 first deletes sentences in the original text that do not include any of the keywords, and then performs the above processing on sentences remaining in the original text that include one or more keywords, thereby reducing the complexity of the processing.

[0057] A text processing device 1100 according to an embodiment of the present disclosure will now be described with reference to Fig. 7. Fig. 7 is a schematic diagram of a text processing device according to an embodiment of the present disclosure. The function of the text processing device of this embodiment is similar to the details of the method described above with reference to Fig. 1, and therefore, detailed description of the same content will be omitted here for convenience.

[0058] The text processing device of the present disclosure includes a processor 1102 and a storage device 1101 storing computer-readable instructions, and when the computer-readable instructions are executed by the processor, the device performs a text processing method including the steps of receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text, determining whether the first processing result includes all the keywords, and, if the first processing result does not include all the keywords, deleting one or more sentences from the original text, continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all the keywords and the number of sentences in the original text after the deletion process is minimized, and setting the combination as a final processing result.

[0059] For the technical effects of the text processing device 1000 and the text processing device 1100 in each embodiment, reference may be made to the technical effects of the text processing method according to the embodiments of the present disclosure, and they will not be repeated here.

[0060] The text processing device 1000 and the text processing device 1100 may be applied to a variety of suitable electronic devices.

[0061] FIG. 8 is a schematic diagram of a computer-readable storage medium 1200 according to an embodiment of the present disclosure.

[0062] As shown in FIG. 8 , the present disclosure further includes a computer-readable storage medium 1200 having computer-readable instructions 1201 stored therein, which, when executed by a computer, performs a computer text processing method, including the steps of receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; determining whether the first processing result includes all the keywords; and, if the first processing result does not include all the keywords, deleting one or more sentences in the original text, continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all the keywords and the number of sentences in the original text after the deletion process is minimized, and setting the combination as a final processing result.

[0063] <Hardware structure> The block diagrams used to explain the above embodiments show functional blocks. These functional blocks (structural units) are realized by any combination of hardware and / or software. Furthermore, the means for realizing each functional block is not particularly limited. That is, each functional block may be realized by a single device that is physically and / or logically coupled, or may be realized by two or more physically and / or logically separated devices that are connected directly and / or indirectly (for example, wired and / or wirelessly) to each other.

[0064] For example, an electronic device according to an embodiment of the present disclosure may function as a computer that executes the processing of the text processing method of the present disclosure. Fig. 9 is a diagram showing an example of the hardware structure of an electronic device according to an embodiment of the present disclosure. The electronic device 10 may be physically configured as a computer device including a processor 1001, a memory 1002, a storage 1003, a communication device 1004, an input device 1005, an output device 1006, a bus 1007, etc.

[0065] In the following description, the term "apparatus" can be replaced with circuit, device, unit, etc. The hardware structure of the electronic device 10 may include one or more of the apparatuses shown in the drawings, or may not include some of the apparatuses.

[0066] For example, although only one processor 1001 is shown in the figure, multiple processors may be provided. Furthermore, processing may be performed by one processor, or by one or more processors simultaneously, sequentially, or otherwise. Additionally, processor 1001 may be implemented by one or more chips.

[0067] Each function of the electronic device 10 is realized, for example, by loading a specified software (program) onto hardware such as the processor 1001 and memory 1002, causing the processor 1001 to perform calculations and control communication via the communication device 1004 and the reading and / or writing of data in the memory 1002 and storage 1003.

[0068] The processor 1001, for example, runs an operating system to control the entire computer, and may be configured as a central processing unit (CPU) including an interface with peripheral devices, a control unit, an arithmetic unit, a register, etc.

[0069] The processor 1001 reads programs (program codes), software modules, data, etc. from the storage 1003 and / or the communication device 1004 into the memory 1002 and executes various processes in accordance with the programs. The programs used are those that cause a computer to execute at least some of the operations described in the above embodiments. For example, the control unit 401 of the electronic device 10 may be implemented by a control program stored in the memory 1002 and run by the processor 1001, and the other functional blocks may be implemented in a similar manner.

[0070] The memory 1002 is a computer-readable recording medium and may be composed of, for example, at least one of a read-only memory (ROM), a programmable read-only memory (EPROM), an electrically programmable read-only memory (EEPROM), a random access memory (RAM), and other suitable storage media. The memory 1002 may also be referred to as a register, a cache, a main memory, etc. The memory 1002 may store an executable program (program code), a software module, etc. for implementing a wireless communication method according to one embodiment of the present disclosure.

[0071] Storage 1003 is a computer-readable recording medium and may be composed of at least one of, for example, a flexible disk, a floppy disk, a magneto-optical disk (e.g., a compact disc (CD-ROM), a digital universal disc, a Blu-ray disc), a removable disk, a hard drive, a smart card, a flash memory device (e.g., a card, a stick, a key driver), a magnetic strip, a database, a server, and other suitable storage media. Storage 1003 may also be referred to as an auxiliary storage device.

[0072] The communication device 1004 is hardware (transmitting and receiving equipment) for communicating between computers via a wired and / or wireless network, and is also called, for example, a network device, a network controller, a network card, or a communication module.

[0073] The input device 1005 is an input device (for example, a keyboard, a mouse, a microphone, a switch, a button, a sensor, etc.) that receives input from the outside. The output device 1006 is an output device (for example, a display, a speaker, a light emitting diode (LED) lamp, etc.) that outputs to the outside. The input device 1005 and the output device 1006 may be integrated into one structure (for example, a touch panel).

[0074] Each device, such as the processor 1001 and the memory 1002, is connected via a bus 1007 for communicating information. The bus 1007 may be configured as a single bus, or may be configured as different buses between the devices.

[0075] The electronic device 10 may include hardware such as a microprocessor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD), and a field programmable gate array (FPGA), and some or all of the functional blocks may be realized through the hardware. For example, the processor 1001 may be installed by at least one of these pieces of hardware.

[0076] Software shall be construed broadly to mean commands, command sets, code, code segments, program code, programs, subprograms, software modules, applications, software applications, software packages, routines, subroutines, objects, executable files, threads of execution, steps, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise.

[0077] It should be noted that software, commands, information, etc. may be transmitted or received via a transmission medium. For example, if the software is transmitted from a website, server, or other remote source using wired technologies (such as coaxial cable, optical cable, twisted pair, Digital Subscriber Line (DSL)), and / or wireless technologies (such as infrared, microwave, etc.), these wired and / or wireless technologies are included within the definition of transmission media.

[0078] Each aspect / embodiment described herein may be used alone or in combination, and may be switched during execution. The processing steps, sequences, flowcharts, etc. of each method / embodiment described herein may be rearranged as long as there is no contradiction. For example, with respect to the methods described herein, various step units are given in an exemplary order, but are not limited to the given specific order.

[0079] As used herein, "based on" does not mean "based only on," unless expressly stated otherwise. That is, the phrase "based on" means both "based only on" and "based at least on."

[0080] As used herein, any reference to units using names such as "first," "second," etc., does not generally limit the quantity or order of those units. These names may be used herein as a convenient way to distinguish between two or more units. Thus, a reference to a first unit and a second unit does not imply that only two units may be employed therein, or that the first unit must precede the second unit.

[0081] To the extent that the terms "including," "comprising," and variations thereof are used herein or in the claims, these terms are intended to be inclusive, similar to the term "comprising." Furthermore, the term "or" as used herein or in the claims does not mean an exclusive or.

[0082] Those skilled in the art will appreciate that various aspects of the present application can be illustrated and described through several patentable categories or contexts, including any new and useful process, machine, manufacture, or combination of matter, or any combination thereof, or any new and useful improvement thereof. Accordingly, various aspects of the present application may be implemented entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. Any such hardware or software may be referred to as a "data block," "module," "engine," "unit," "assembly," or "system." It should be noted that various aspects of the present application may be embodied as a computer product provided on one or more computer-readable medium(s), the product including computer-readable program code.

[0083] The present application uses certain words to describe embodiments of the present application. For example, "one embodiment," "one embodiment," and / or "some embodiments" refer to particular features, structures, or characteristics associated with at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment," "one embodiment," or "one alternative embodiment" referenced two or more times in different places in this specification do not necessarily refer to the same embodiment. It should be noted that some features, structures, or characteristics in one or more embodiments of the present application may be combined as appropriate.

[0084] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains. It should also be understood that terms as defined in conventional dictionaries should be interpreted as having a meaning consistent with the meaning in the context of the relevant art, and should not be interpreted in an idealized or overly formalized sense unless expressly stated herein.

[0085] Although the present disclosure has been described in detail above, it is clear to those skilled in the art that the present disclosure is not limited to the embodiments described in this specification. The present disclosure can be implemented in modified and altered forms without departing from the spirit and scope of the present disclosure, which are determined by the description of the claims. Therefore, the description in this specification is intended to be illustrative and explanatory and does not have any limiting meaning on the present disclosure.

Claims

1. 1. A text processing method comprising: a text processing device receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; the text processing device determines whether the first processing result includes all keywords; a step in which, if the first processing result does not include all keywords, the text processing device deletes one or more sentences in the original text, continues the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, and designates the combination as a final processing result.

2. When the first processing result does not include all keywords, the text processing device deletes one or more sentences in the original text, and continues the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, 2. The text processing method according to claim 1, further comprising the step of: if the first processing result does not include all of the keywords, the text processing device deletes sentences in the original text based on the relevance between each sentence of the original text and all of the keywords; and continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all of the keywords and the number of sentences in the original text after the deletion process is minimized.

3. The step of the text processing device deleting sentences in the original text based on the relevance between each sentence of the original text and all of the keywords comprises: the text processing device sorts the sentences of the original text in ascending order of relevance based on the relevance between each sentence of the original text and all of the keywords; The text processing method according to claim 2 , further comprising the step of: the text processing device deleting each sentence in the original text based on the sorting.

4. The step of deleting sentences from the original text in ascending order of relevance of the text processing device comprises: After the first sentence of each sentence in the original text is deleted, the text processing device determines whether a combination of the first processing result and the sentence in the original text after the deletion process includes all keywords; If the combination of the first processing result and the sentence in the original text after the deletion processing contains all the keywords, the text processing device determines a deletion operation and continues processing the next sentence in the original text; 4. The text processing method according to claim 3, further comprising the step of: if the combination of the first processing result and the sentence in the original text after the deletion processing does not contain all of the keywords, the text processing device cancels the deletion operation, leaves the first sentence, and continues processing the next sentence in the original text.

5. After one sentence is deleted from the original text, the text processing device performs the following steps before determining whether a combination of the first processing result and the sentence in the original text after the deletion process includes all keywords: The text processing method according to claim 4 , further comprising the step of: deleting sentences in the original text that do not contain any of the keywords in ascending order of relevance.

6. A text processing method according to any one of claims 2 to 5, wherein the relevance between each sentence of the original text and all of the keywords is determined by the text processing device based on the number of the one or more keywords contained in each sentence of the original text.

7. A text processing device, comprising: a receiving unit for receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; a judging unit for judging whether the first processing result includes all keywords; a deletion unit for deleting one or more sentences in the original text if the first processing result does not include all keywords, continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, and setting the combination as a final processing result.

8. a processor; a storage device having computer-readable instructions stored thereon, The computer-readable instructions, when executed by the processor, receiving an original text, one or more keywords contained in the original text, and a first processing result obtained by simplifying the original text; determining whether the first processing result includes all keywords; If the first processing result does not include all keywords, deleting one or more sentences in the original text, continuing the deletion process until a combination of the first processing result and the sentences in the original text after the deletion process includes all keywords and the number of sentences in the original text after the deletion process is minimized, and setting the combination as a final processing result.

9. A computer-readable storage medium for storing a computer-readable program, A computer-readable storage medium that causes a computer to execute the text processing method according to any one of claims 1 to 6 by means of the program.

Citation Information

Patent Citations

  • Automatic summary preparing device and recording medium

    JP2001184352A

  • Conversation summary generation system and conversation summary generation program

    JP2013167985A