An information processing method and a computer-readable storage medium

By determining the input source of the text to be processed to analyze its correlation with the target text, the problem of inaccurate correlation analysis between words in the prior art is solved, and the efficiency and accuracy of text processing are improved.

CN115062604BActive Publication Date: 2025-05-27LENOVO (BEIJING) LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210614314.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-05-27
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

The prior art tends to associate unrelated content or analyze unrelated content as unrelated when analyzing the correlation between texts, resulting in inaccurate correlation and reducing text processing efficiency.

Method used

By receiving operation instructions, the input source of the pending text is determined, and the target correlation between the pending text and the target text is determined based on the input source, thereby performing the corresponding operation.

Benefits of technology

It improves the efficiency of text processing, accurately determines the correlation between text, avoids analysis errors, and improves the accuracy and efficiency of text processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115062604B_ABST
    Figure CN115062604B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses an information processing method, the method comprising: receiving an operation instruction for operating on a text to be processed; determining an input source of the text to be processed based on the operation instruction; wherein the input source represents the source of the text to be processed; determining a target relevance between the text to be processed and a target text based on the input source; and performing an operation corresponding to the operation instruction on the target text based on the target relevance. An embodiment of the present application also discloses a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to information processing technology in the field of computers, and particularly relates to an information processing method and a computer-readable storage medium. Background Art

[0002] With the widespread application of electronic products, determining the relevance between words is required in various content recording applications such as notepads, PPTs, or Word, the generation and editing of teaching plans, the editing of meeting whiteboard records, meeting minutes, the editing of collaborative documents, the editing of email content, various code editors, the editing and extraction of table content, signature extraction, the electronicization of test questions, the aggregation and collation of different-source blackboard writings, in-vehicle search, etc. Currently, generally, the natural language understanding word segmentation method is used to analyze the relevance between words. However, this method is prone to associating uncorrelated content or analyzing content that should be related as uncorrelated, making the determined relevance between words inaccurate and reducing the text processing efficiency. Summary of the Invention

[0003] To solve the above technical problems, embodiments of this application are expected to provide a file information processing method and a computer-readable storage medium, which solve the problem of incorrect analysis of the relevance between words in related technologies and improve the text processing efficiency.

[0004] The technical solution of this application is implemented as follows:

[0005] An information processing method, the method includes:

[0006] Receiving an operation instruction for operating on the text to be processed;

[0007] Based on the operation instruction, determining the input source of the text to be processed; wherein, the input source represents the source of the text to be processed;

[0008] Based on the input source, determining the target relevance between the text to be processed and the target text;

[0009] Based on the target relevance, performing an operation corresponding to the operation instruction on the target text.

[0010] In the above solution, determining the input source of the text to be processed includes:

[0011] Determining the input process of the text to be processed;

[0012] Analyzing the input process to obtain the input source of the text to be processed;

[0013] Correspondingly, determining the target relevance between the text to be processed and the target text based on the input source includes:

[0014] Determine the first input source of the target text;

[0015] When it is determined that the first input source is the same as the input source, determine that the target relevance is that there is an association between the text to be processed and the target text.

[0016] In the above solution, determining the target relevance between the text to be processed and the target text based on the input source includes:

[0017] Analyze the input process to obtain the input time of the text to be processed;

[0018] Based on the input source of the text to be processed and the input time of the text to be processed, determine the target relevance between the text to be processed and the target text.

[0019] In the above solution, determining the target relevance between the text to be processed and the target text based on the input source of the text to be processed and the input time of the text to be processed includes:

[0020] Determine the first input time of the target text;

[0021] When it is determined that the first input source is the same as the input source and the difference between the first input time and the input time satisfies the first time threshold, determine the target relevance based on the second input source or the second input time of the reference text corresponding to the target text.

[0022] In the above solution, determining the target relevance based on the second input source or the second input time of the reference text corresponding to the target text includes:

[0023] Based on the logical relationship of the content of the target text where the target text is located, obtain the text adjacent to the target text from the target text to get the reference text;

[0024] Determine the second input source or the second input time of the reference text;

[0025] When it is determined that the second input source is different from the input source, determine that the target relevance is that there is an association between the text to be processed and the target text;

[0026] When it is determined that the difference between the second input time and the input time satisfies the second time threshold, it is determined that the target relevance is that there is an association between the text to be processed and the target text.

[0027] In the above solution, determining the target relevance between the text to be processed and the target text based on the input source includes:

[0028] Performing word segmentation on the text to be processed to obtain the words in the text to be processed;

[0029] Determining the semantic meaning of the words in the text to be processed to obtain the semantic information of the text to be processed;

[0030] Based on the semantic information and the input source, determining the target relevance between the text to be processed and the target text.

[0031] In the above solution, determining the target relevance between the text to be processed and the target text based on the semantic information and the input source includes:

[0032] Based on the semantic information of the text to be processed, determining the first relevance between the text to be processed and the target text;

[0033] Based on the input source of the text to be processed, determining the second relevance between the text to be processed and the target text;

[0034] Based on the first relevance and the second relevance, determining the target relevance between the text to be processed and the target text.

[0035] In the above solution, determining the target relevance between the text to be processed and the target text based on the first relevance and the second relevance includes:

[0036] When both the first relevance and the second relevance indicate that there is an association between the text to be processed and the target text, it is determined that the target relevance is that there is an association between the text to be processed and the target text;

[0037] Or, when the first relevance indicates that there is no association between the text to be processed and the target text, and the second relevance indicates that there is an association between the text to be processed and the target text, it is determined that the target relevance is that there is an association between the text to be processed and the target text.

[0038] In the above solution, performing an operation corresponding to the operation instruction on the target text based on the target relevance includes:

[0039] In the case that the target relevance indicates an association between the text to be processed and the target text, perform an operation corresponding to the operation instruction on the target text based on the text to be processed.

[0040] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information processing method described above.

[0041] The information processing method and computer-readable storage medium provided by the embodiments of the present application receive an operation instruction for operating on the text to be processed, determine the input source of the text to be processed based on the operation instruction, where the input source represents the source of the text to be processed, determine the target relevance between the text to be processed and the target text based on the input source, and perform an operation corresponding to the operation instruction on the target text based on the target relevance. In this way, the relevance between the text to be processed and the target text can be determined according to the input source of the text to be processed, and then the target text can be operated accordingly based on the determined relevance, rather than determining the relevance between the text to be processed and the target text according to the semantic information of the text to be processed, solving the problem of incorrect analysis of the relevance between texts in the related art and improving the text processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic flowchart of an information processing method provided by an embodiment of the present application;

[0043] Figure 2 It is a schematic flowchart of another information processing method provided by an embodiment of the present application;

[0044] Figure 3 It is a schematic flowchart of yet another information processing method provided by an embodiment of the present application;

[0045] Figure 4 It is a schematic flowchart of an information processing method provided by another embodiment of the present application;

[0046] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0047] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application.

[0048] The embodiments of the present application provide an information processing method, which is applied to an electronic device. Referring to Figure 1 as shown, the method includes the following steps:

[0049] Step 101: Receive an operation instruction for operating on the text to be processed.

[0050] In the embodiments of the present application, the text to be processed can be the text on which operations need to be performed; in a feasible implementation, the text to be processed can be the text to be edited in various content recording applications such as a notepad, PPT, or Word, the text corresponding to a teaching plan, the text corresponding to a meeting whiteboard record, the text in a meeting minutes, the text to be edited in a collaborative document, the text in an email content, the text in various code editors, the text obtained by editing and extracting table content, the text corresponding to signature extraction, the text in a document after electronic conversion of test questions, the text in a document after convergence and collation of different source blackboard writings, the text in in-vehicle search, etc. Among them, different source blackboard writings can include large-screen blackboard writings, blackboard writings on a blackboard, or whiteboard writings; it should be noted that the operation instruction can refer to an instruction for performing corresponding processing such as adding, deleting, modifying, querying, or selecting on the text to be processed.

[0051] Step 102: Determine the input source of the text to be processed based on the operation instruction.

[0052] Among them, the input source represents the source of the text to be processed.

[0053] In the embodiments of the present application, the electronic device can analyze the relevant information of the text to be processed in response to the operation instruction to determine the input source of the text to be processed; that is, it can determine how the text to be processed is obtained. In a feasible implementation, the input source can include speech-to-text, keyboard input, handwriting recognition, or copy-paste source, etc.

[0054] Step 103: Determine the target relevance between the text to be processed and the target text based on the input source.

[0055] In the embodiments of the present application, the input source of the text to be processed can be analyzed to determine whether the input source of the text to be processed meets the target source condition; then, based on the judgment result of the input source of the text to be processed, the target relevance between the text to be processed and the target text is determined.

[0056] Step 104: Perform an operation corresponding to the operation instruction on the target text based on the target relevance.

[0057] In the embodiments of the present application, the target relevance may refer to the association between the text to be processed and the target text, or it may refer to the lack of association between the text to be processed and the target text. It should be noted that, regardless of whether there is an association between the target text and the text to be processed, operations corresponding to the target relevance can be performed on the target text according to the target relevance. In a feasible implementation manner, if the operation instruction refers to adding the text to be processed to the target text, when the target relevance indicates that the text to be processed is associated with the target text in the target text, the text to be processed can be pasted at the position where the target text in the target text is located, or the text to be processed can be pasted immediately after the target text in the target text; when the target relevance indicates that the text to be processed has no association with the target text in the target text, text with other content can be pasted at the position where the target text in the target text is located or at the position immediately after the target text. It should be noted that the target text may include multiple non-adjacent texts in the target text.

[0058] The information processing method provided by the embodiments of the present application receives an operation instruction for operating on the text to be processed, determines the input source of the text to be processed based on the operation instruction, where the input source represents the source of the text to be processed, determines the target relevance between the text to be processed and the target text based on the input source, and performs an operation corresponding to the operation instruction on the target text based on the target relevance. In this way, the relevance between the text to be processed and the target text can be determined according to the input source of the text to be processed, and then corresponding operations can be performed on the target text based on the determined relevance, rather than determining the relevance between the text to be processed and the target text according to the semantic information of the text to be processed, solving the problem of incorrect analysis of the relevance between texts in the related art and improving the processing efficiency of the text.

[0059] Based on the foregoing embodiments, the embodiments of the present application provide an information processing method, as shown in Figure 2 shown, the method includes the following steps:

[0060] Step 201, the electronic device receives an operation instruction for operating on the text to be processed.

[0061] Step 202, the electronic device determines the input process of the text to be processed based on the operation instruction.

[0062] In the embodiments of the present application, the electronic device can respond to the operation instruction and obtain the input process corresponding to the text to be processed; wherein, the input process may refer to the entire process of inputting the text to be processed. It should be noted that during the process of inputting the text to be processed into the electronic device, the electronic device can record the entire process and store it.

[0063] Step 203: The electronic device analyzes the input process to obtain the input source of the text to be processed.

[0064] In the embodiments of the present application, the input process of the text to be processed can be parsed, and the input source of the text to be processed can be determined from the input process.

[0065] Step 204: The electronic device determines the first input source of the target text.

[0066] In the embodiments of the present application, the first input source of the target text can represent the source of the target text; among them, the first input source can determine how the target text is obtained. Similarly, the first input source can include speech-to-text, keyboard input, handwriting recognition, or copy-paste source, etc.

[0067] Step 205: When it is determined that the first input source is the same as the input source, the electronic device determines that the target relevance is that there is an association between the text to be processed and the target text.

[0068] Among them, if the input source of the text to be processed is the same as the first input source of the target text, it means that the text to be processed and the target text are obtained by the same method. At this time, it can be considered that there is an association between the text to be processed and the target text.

[0069] Step 206: When the target relevance indicates that there is an association between the text to be processed and the target text, the electronic device performs an operation corresponding to the operation instruction on the target text based on the text to be processed.

[0070] In the embodiments of the present application, when it is determined that there is an association between the text to be processed and the target text, an operation corresponding to the operation instruction can be performed on the position where the target text is located or the position adjacent to the target text using the text to be processed. In a feasible implementation manner, the text matching the text to be processed can be copied from the target text in the target text.

[0071] It should be noted that for the descriptions of the same or corresponding steps in the embodiments of the present application and other embodiments, reference can be made to the descriptions in other embodiments, and details are not described here again.

[0072] The information processing method provided by the embodiments of the present application can determine the relevance between the text to be processed and the target text according to the input source of the text to be processed, and then perform corresponding operations on the target text according to the determined relevance, rather than determining the relevance between the text to be processed and the target text according to the semantic information of the text to be processed, which solves the problem of incorrect analysis of the relevance between texts in the related art and improves the text processing efficiency.

[0073] Based on the foregoing embodiments, an embodiment of the present application provides an information processing method. Referring to Figure 3 as shown, the method includes the following steps:

[0074] Step 301, the electronic device receives an operation instruction for operating the text to be processed.

[0075] Step 302, the electronic device determines the input process of the text to be processed based on the operation instruction.

[0076] Step 303, the electronic device analyzes the input process to obtain the input source of the text to be processed.

[0077] Step 304, the electronic device analyzes the input process to obtain the input time of the text to be processed.

[0078] In the embodiment of the present application, the input process of the text to be processed can be obtained by using the same method as the input process in the foregoing embodiments. Among them, the input process of the text to be processed can be parsed, and the input time of the text to be processed can be determined from the input process. It should be noted that the input time can refer to the time when the text to be processed is input into the electronic device.

[0079] Step 305, the electronic device determines the target relevance between the text to be processed and the target text based on the input source of the text to be processed and the input time of the text to be processed.

[0080] In the embodiment of the present application, the input source of the text to be processed and the input time of the text to be processed can be jointly used as features to determine whether there is a relevance between the text to be processed and the target text; that is, based on whether the input source meets the target source condition and whether the input time meets the target time condition, it is determined whether there is a relevance between the text to be processed and the target text.

[0081] Among them, step 305 can be implemented in the following manner:

[0082] Step 305a, the electronic device determines the first input source of the target text and the first input time of the target text.

[0083] In the embodiment of the present application, the input process of the target text can be determined, and the input process of the target text can be parsed to determine the first input time of the target text from the input process of the target text. It should be noted that the first input time can refer to the time when the target text is input into the electronic device.

[0084] Step 305b. When it is determined that the first input source is the same as the input source and the difference between the first input time and the input time meets the first time threshold, the electronic device determines the target relevance based on the second input source or the second input time of the reference text corresponding to the target text.

[0085] In the embodiments of the present application, when the first input source of the target text is the same as the input source of the text to be processed and the difference between the first input time of the target text and the input time of the text to be processed is within the range of the first time threshold, it can be considered that there is an association between the text to be processed and the target text; of course, if any of the above conditions is not met, it is considered that there is no association between the text to be processed and the target text. It should be noted that when the first input source of the target text is the same as the input source of the text to be processed and the difference between the first input time of the target text and the input time of the text to be processed is within the range of the first time threshold, the second input source or the second input time of the reference text can be combined to determine the target relevance between the text to be processed and the target text.

[0086] Among them, the fact that the difference between the first input time and the input time meets the first time threshold indicates that the interval duration between the first input time and the input time is not very different. That is to say, the first time threshold is a time threshold range with a relatively small value.

[0087] In other embodiments of the present application, Step 305b can be implemented in the following manner:

[0088] Step 305b1. The electronic device obtains the reference text adjacent to the target text from the target text based on the logical relationship of the content of the target text where the target text is located.

[0089] In the embodiments of the present application, the reference text may refer to the text in the target text where the target text is located, and the text adjacent to the target text in terms of the logical relationship of the content and the position in the target text; in a feasible implementation manner, taking the text including the target text as "Optical Character Recognition (OCR) refers to the process in which an electronic device (such as a scanner or a digital camera) checks the characters printed on paper, determines their shapes by detecting dark and bright patterns, and then translates the shapes into computer text using character recognition methods; that is, for printed characters, the text in a paper document is converted into a black-and-white dot matrix image file in an optical manner, and the text in the image is converted into a text format by an identification software for further editing and processing by a word processing software" as an example: If the target text is the character recognition method and the text to be processed is the image recognition method, then the reference text may be "by detecting dark and bright patterns to determine their shapes, and then using" and "the process of translating the shapes into computer text".

[0090] Step 305b2: The electronic device determines the second input source or the second input time of the reference text.

[0091] In the embodiments of the present application, the electronic device may determine the input process of the reference text, analyze the input process of the reference text, and determine the second input source and the second input time of the reference text from the input process of the reference text. It should be noted that the second input time may refer to the time when the reference text is input into the electronic device. The second input source can determine how the reference text is obtained. Similarly, the second input source may also include speech-to-text, keyboard input, handwriting recognition, or copy-paste source, etc.

[0092] It should be noted that if the second input source of the reference text is determined, then step 305b3 is executed after step 302b2; if the second input time of the reference text is determined, then step 305b4 is executed after step 302b2.

[0093] Step 305b3: In the case where it is determined that the second input source is different from the input source, the electronic device determines that the target relevance is that there is an association between the text to be processed and the target text.

[0094] In the embodiments of the present application, if the second input source is different from the input source (that is, the second input source is also different from the first input source), it indicates that there is no relationship between the reference text and the text to be processed. At this time, it can be determined that there is an association between the text to be processed and the target text.

[0095] Or, in step 305b4, when it is determined that the difference between the second input time and the input time satisfies the second time threshold, the electronic device determines that the target relevance is that there is an association between the to-be-processed text and the target text.

[0096] In the embodiments of the present application, if the difference between the second input time and the input time satisfies the second time threshold (that is, the difference between the second input time and the first input time also satisfies the second time threshold), it indicates that there is no relationship between the reference text and the to-be-processed text. At this time, it can be determined that there is an association between the to-be-processed text and the target text. Among them, the second time threshold can be greater than the first time threshold; the fact that the difference between the second input time and the input time satisfies the second time threshold indicates that the interval duration between the second input time and the input time is relatively large. That is to say, the second time threshold is a time threshold range with a relatively large value.

[0097] Step 306, when the target relevance indicates that there is an association between the to-be-processed text and the target text, the electronic device performs an operation corresponding to the operation instruction on the target text based on the to-be-processed text.

[0098] In the embodiments of the present application, when determining the target relevance between the to-be-processed text and the target text, the second input source / second input time of the reference text corresponding to the target text is further combined. At this time, the result of the determined target relevance between the to-be-processed text and the target text will be more accurate, and it greatly guarantees the processing efficiency when processing the target text based on the target relevance subsequently, avoiding waste of resources.

[0099] It should be noted that the descriptions of the same or corresponding steps in the embodiments of the present application and other embodiments can refer to the descriptions in other embodiments, and will not be repeated here.

[0100] The information processing method provided by the embodiments of the present application can determine the relevance between the to-be-processed text and the target text according to the input source of the to-be-processed text, and then perform corresponding operations on the target text according to the determined relevance, rather than determining the relevance between the to-be-processed text and the target text according to the semantic information of the to-be-processed text, which solves the problem of incorrect analysis of the relevance between texts in the related art and improves the processing efficiency of the text.

[0101] Based on the foregoing embodiments, the embodiments of the present application provide an information processing method. Referring to Figure 4 as shown, the method includes the following steps:

[0102] Step 401, the electronic device receives an operation instruction for operating on the to-be-processed text.

[0103] Step 402: The electronic device determines the input source of the text to be processed based on the operation instruction.

[0104] Step 403: The electronic device performs word segmentation on the text to be processed to obtain the words in the text to be processed.

[0105] In the embodiment of the present application, natural language processing technology can be used to perform word segmentation on the text to be processed to obtain the words in the text to be processed.

[0106] Step 404: The electronic device determines the semantic meaning of the words in the text to be processed to obtain the semantic information of the text to be processed.

[0107] In the embodiment of the present application, natural language processing technology can be used to determine the semantic meaning of each word, and then obtain the semantic information of the text to be processed.

[0108] Step 405: The electronic device determines the target relevance between the text to be processed and the target text based on the semantic information and the input source.

[0109] In the embodiment of the present application, the semantic information of the text to be processed and the input source of the text to be processed can be used together as features to determine whether there is a relevance between the text to be processed and the target text. That is to say, when the semantic information meets the semantic conditions and the input source meets the target source conditions, it can be considered that there is a relevance between the text to be processed and the target text. It should be noted that by combining the input source of the text to be processed on the basis of the semantic information of the text to be processed to determine the target relevance, it can avoid the errors and inaccuracies that occur when only determining the target relevance according to the semantic information in the related art, and greatly improve the accuracy of the determined target relevance; moreover, it expands the scope of determining the target relevance.

[0110] Among them, step 405 can be implemented in the following way:

[0111] Step 405a: The electronic device determines the first relevance between the text to be processed and the target text based on the semantic information of the text to be processed.

[0112] Step 405b: The electronic device determines the second relevance between the text to be processed and the target text based on the input source of the text to be processed.

[0113] In an embodiment of the present application, when the electronic device determines the second relevance based on the input source of the text to be processed, it may also use the input time of the text to be processed as another feature for joint determination; that is to say, the second relevance may be determined only based on the input source of the text to be processed, or may be determined jointly based on the input source of the text to be processed and the input time of the text to be processed; it should be noted that in the embodiments of the present application, the method for determining the second relevance based on the input source of the text to be processed, and the method for determining the second relevance based on the input source of the text to be processed and the input time of the text to be processed, may refer to the description of the relevant steps in the above embodiments, and will not be specifically elaborated here.

[0114] Step 405c: The electronic device determines the target relevance between the text to be processed and the target text based on the first relevance and the second relevance.

[0115] In an embodiment of the present application, when the electronic device determines the target relevance, it may be jointly implemented based on the semantic information of the text to be processed, the input source of the text to be processed, and the input time of the text to be processed.

[0116] Among them, step 405c may be implemented in the following manner:

[0117] Step 405c1: When both the first relevance and the second relevance indicate that there is an association between the text to be processed and the target text, the electronic device determines that the target relevance is that there is an association between the text to be processed and the target text.

[0118] In an embodiment of the present application, if both the first relevance and the second relevance indicate that there is an association between the text to be processed and the target text, it indicates that the degree of association between the text to be processed and the target text is very high at this time, and it further indicates that there is an association between the text to be processed and the target text, so as to avoid mis-determining non-associated texts as associated.

[0119] Alternatively, step 405c2: When the first relevance indicates that there is no association between the text to be processed and the target text, and the second relevance indicates that there is an association between the text to be processed and the target text, the electronic device determines that the target relevance is that there is an association between the text to be processed and the target text.

[0120] In an embodiment of the present application, if the first relevance indicates that there is no association between the text to be processed and the target text, but the second relevance indicates that there is an association between the text to be processed and the target text. At this time, although the text to be processed determined according to the semantic information has no association with the target text, because the result determined according to the semantic information may be inaccurate, and at this time, according to the input source, it is determined that there is an association between the text to be processed and the target text, then it can still be considered that there is an association between the text to be processed and the target text, so as to avoid mis-determining associated texts as non-associated.

[0121] Step 406: When the target relevance indicates that there is an association between the text to be processed and the target text, the electronic device performs an operation corresponding to the operation instruction on the target text based on the text to be processed.

[0122] In an embodiment of the present application, for the extraction of table information, copying item by item is too cumbersome. Since the name of each item is made in advance and the specific content is filled in later; at the same time, after all are selected, these parts will be automatically separated into two parts: name and content, or can be separated into multiple parts with different names and different contents. Also, for the scenario of electronic test questions, when teachers are electronicizing test questions and modifying questions, there is a need to modify the OCR recognition results and manually input results. Also, for search scenarios such as in-vehicle search, the search input content is mostly composed of speech recognition, manual input, and copying and pasting from other sources. Therefore, in the above scenarios, when processing a table, modifying test questions, or modifying search content, if using conventional operation methods, it will be more troublesome and need to be processed one by one; however, using the information processing method provided in the present application, after determining all the target texts associated with the text to be processed that needs to be operated, corresponding processing can be performed on all the associated target texts at one time, saving processing time and improving processing efficiency.

[0123] It should be noted that the descriptions of the same or corresponding steps in the embodiments of the present application and other embodiments can refer to the descriptions in other embodiments and will not be repeated here.

[0124] The information processing method provided by the embodiments of the present application can determine the relevance between the text to be processed and the target text according to the input source of the text to be processed, and then perform corresponding operations on the target text according to the determined relevance, rather than determining the relevance between the text to be processed and the target text according to the semantic information of the text to be processed, solving the problem of incorrect analysis of the relevance between texts in the related art and improving the processing efficiency of the text.

[0125] Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which can be applied to Figures 1 to 4In the information processing method provided by the corresponding embodiment, with reference to Figure 5 As shown, the electronic device 5 may include: a processor 51, a memory 52, and a communication bus 53, where:

[0126] The communication bus 53 is used to implement the communication connection between the processor 51 and the memory 52;

[0127] The processor 51 is used to execute the information processing program in the memory 52 to implement the following steps:

[0128] Receive an operation instruction for operating on the text to be processed;

[0129] Based on the operation instruction, determine the input source of the text to be processed; where the input source represents the source of the text to be processed;

[0130] Based on the input source, determine the target relevance between the text to be processed and the target text;

[0131] Based on the target relevance, perform an operation corresponding to the operation instruction on the target text.

[0132] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52 to determine the input source of the text to be processed based on the operation instruction to implement the following steps:

[0133] Based on the operation instruction, determine the input process of the text to be processed;

[0134] Analyze the input process to obtain the input source of the text to be processed;

[0135] Correspondingly, the processor 51 is used to execute the information processing program in the memory 52 to determine the target relevance between the text to be processed and the target text based on the input source to implement the following steps:

[0136] Determine the first input source of the target text;

[0137] In the case where it is determined that the first input source is the same as the input source, determine that the target relevance is that there is an association between the text to be processed and the target text.

[0138] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52 to determine the target relevance between the text to be processed and the target text based on the input source to implement the following steps:

[0139] Analyze the input process to obtain the input time of the text to be processed;

[0140] Based on the input source of the text to be processed and the input time of the text to be processed, determine the target relevance between the text to be processed and the target text.

[0141] In other embodiments of the present application, the processor 51 is configured to execute the information processing program in the memory 52 to determine the target relevance between the text to be processed and the target text based on the input source of the text to be processed and the input time of the text to be processed, so as to implement the following steps:

[0142] Determine the first input time of the target text;

[0143] When it is determined that the first input source is the same as the input source and the difference between the first input time and the input time satisfies the first time threshold, determine the target relevance based on the second input source or the second input time of the reference text corresponding to the target text.

[0144] In other embodiments of the present application, the processor 51 is configured to execute the information processing program in the memory 52 to determine the target relevance based on the second input source or the second input time of the reference text corresponding to the target text, so as to implement the following steps:

[0145] Based on the logical relationship of the content of the target text where the target text is located, obtain the text adjacent to the target text from the target text to obtain the reference text;

[0146] Determine the second input source or the second input time of the reference text;

[0147] When it is determined that the second input source is different from the input source, determine that the target relevance is that there is an association between the text to be processed and the target text;

[0148] When it is determined that the difference between the second input time and the input time satisfies the second time threshold, determine that the target relevance is that there is an association between the text to be processed and the target text.

[0149] In other embodiments of the present application, the processor 51 is configured to execute the information processing program in the memory 52 to determine the target relevance between the text to be processed and the target text based on the input source, so as to implement the following steps:

[0150] Perform word segmentation on the text to be processed to obtain the words in the text to be processed;

[0151] Determine the semantic meaning of the words in the text to be processed to obtain the semantic information of the text to be processed;

[0152] Based on the semantic information and the input source, determine the target relevance between the text to be processed and the target text.

[0153] In other embodiments of the present application, the processor 51 is configured to execute the information processing program in the memory 52 to determine the target relevance between the text to be processed and the target text based on semantic information and the input source, so as to implement the following steps:

[0154] Based on the semantic information of the text to be processed, determine the first relevance between the text to be processed and the target text;

[0155] Based on the input source of the text to be processed, determine the second relevance between the text to be processed and the target text;

[0156] Based on the first relevance and the second relevance, determine the target relevance between the text to be processed and the target text.

[0157] In other embodiments of the present application, the processor 51 is configured to execute the information processing program in the memory 52 to determine the target relevance between the text to be processed and the target text based on the first relevance and the second relevance, so as to implement the following steps:

[0158] In the case where both the first relevance and the second relevance indicate that there is a relevance between the text to be processed and the target text, determine that the target relevance is that there is a relevance between the text to be processed and the target text;

[0159] Or, in the case where the first relevance indicates that there is no relevance between the text to be processed and the target text, and the second relevance indicates that there is a relevance between the text to be processed and the target text, determine that the target relevance is that there is a relevance between the text to be processed and the target text.

[0160] In other embodiments of the present application, the processor 51 is configured to execute the information processing program in the memory 52 to perform an operation corresponding to the operation instruction on the target text based on the target relevance, so as to implement the following steps:

[0161] In the case where the target relevance indicates that there is a relevance between the text to be processed and the target text, perform an operation corresponding to the operation instruction on the target text based on the text to be processed.

[0162] It should be noted that for the specific implementation process of the steps executed by the processor in this embodiment, reference can be made to Figures 1 to 4 the implementation process in the information processing method provided in the corresponding embodiment, which will not be elaborated here.

[0163] The electronic device provided by the embodiments of the present application can determine the relevance between the text to be processed and the target text according to the input source of the text to be processed, and then perform corresponding operations on the target text according to the determined relevance, rather than determining the relevance between the text to be processed and the target text according to the semantic information of the text to be processed, which solves the problem of incorrect analysis of the relevance between texts in the related art and improves the processing efficiency of the text.

[0164] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information processing method provided by the corresponding embodiments as Figures 1 to 4 described.

[0165] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0166] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0167] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby the instructions executed on the computer or other programmable apparatus provide steps for realizing the functions specified in one process or a plurality of processes and / or one block or a plurality of blocks Figure 1 one process or a plurality of processes and / or Figure 1 one block or a plurality of blocks

[0169] As described above, only the preferred embodiments of the present application are provided, and they are not intended to limit the protection scope of the present application.

Claims

1. An information processing method, the method comprises: receiving an operation instruction for operating on the text to be processed; wherein, the operation instruction represents an instruction for adding, deleting, modifying, querying or selecting the text to be processed; determining the input source of the text to be processed based on the operation instruction; wherein, the input source represents the source of the text to be processed; the input source is speech-to-text, keyboard input, handwriting recognition or copy-paste source; determining the target relevance between the text to be processed and the target text based on the input source and input time of the text to be processed, or, the input source and semantic information of the text to be processed; performing an operation corresponding to the operation instruction on the target text based on the target relevance; wherein, the target text is multiple non-adjacent texts in the target document.

2. The method according to claim 1, wherein determining the input source of the text to be processed based on the operation instruction comprises: determining the input process of the text to be processed based on the operation instruction; analyzing the input process to obtain the input source of the text to be processed; Correspondingly, determining the target relevance between the text to be processed and the target text based on the input source, comprises: determining the first input source of the target text; when it is determined that the first input source is the same as the input source, determining that the target relevance is that there is an association between the text to be processed and the target text.

3. The method according to claim 2, wherein determining the target relevance between the text to be processed and the target text based on the input source and input time of the text to be processed, or, the input source and semantic information of the text to be processed, comprises: analyzing the input process to obtain the input time of the text to be processed; determining the target relevance between the text to be processed and the target text based on the input source and input time of the text to be processed.

4. The method according to claim 3, wherein determining the target relevance between the text to be processed and the target text based on the input source and input time of the text to be processed, comprises: determining the first input time of the target text; when it is determined that the first input source is the same as the input source and the difference between the first input time and the input time satisfies a first time threshold, determining the target relevance based on the second input source or second input time of the reference text corresponding to the target text.

5. The method according to claim 4, wherein determining the target relevance based on the second input source or second input time of the reference text corresponding to the target text, comprises: obtaining the reference text by acquiring the text adjacent to the target text from the target text based on the logical relationship of the content of the target text where the target text is located; determining the second input source or second input time of the reference text; In the case where it is determined that the second input source is different from the input source, determine that the target relevance is that there is an association between the text to be processed and the target text; In the case where it is determined that the difference between the second input time and the input time satisfies a second time threshold, determine that the target relevance is that there is an association between the text to be processed and the target text.

6. The method according to claim 1, wherein the target relevance between the text to be processed and the target text is determined based on the input source of the text to be processed and the input time of the text to be processed, or, the input source of the text to be processed and the semantic information of the text to be processed, comprises: Perform word segmentation on the text to be processed to obtain words in the text to be processed; Determine the meanings of the words in the text to be processed to obtain the semantic information of the text to be processed; Based on the semantic information and the input source, determine the target relevance between the text to be processed and the target text.

7. The method according to claim 6, wherein the target relevance between the text to be processed and the target text is determined based on the semantic information and the input source, comprises: Based on the semantic information of the text to be processed, determine the first relevance between the text to be processed and the target text; Based on the input source of the text to be processed, determine the second relevance between the text to be processed and the target text; Based on the first relevance and the second relevance, determine the target relevance between the text to be processed and the target text.

8. The method according to claim 7, wherein the target relevance between the text to be processed and the target text is determined based on the first relevance and the second relevance, comprises: In the case where both the first relevance and the second relevance indicate that there is an association between the text to be processed and the target text, determine that the target relevance is that there is an association between the text to be processed and the target text; Or, in the case where the first relevance indicates that there is no association between the text to be processed and the target text, and the second relevance indicates that there is an association between the text to be processed and the target text, determine that the target relevance is that there is an association between the text to be processed and the target text.

9. The method according to claim 1, wherein based on the target relevance, an operation corresponding to the operation instruction is performed on the target text, comprises: In the case where the target relevance indicates that there is an association between the text to be processed and the target text, perform an operation corresponding to the operation instruction on the target text based on the text to be processed.

10. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the information processing method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Response method and device, storage medium and electronic equipment

    CN109815322A

  • Text scoring method, electronic equipment and computer readable storage medium

    CN112784568A

  • Speech summary generation method and device of a conference spokesman, equipment and a storage medium

    CN113779234A

  • Conference summary generation method and device, storage medium and electronic equipment

    CN114065720A