Text processing method and dialogue processing method

By introducing a self-explanation mechanism into the text analysis model, generating sentence explanation text and combining it with the text to be analyzed, it solves the problem of insufficient understanding of large language models in conversational tasks, and improves the model's processing accuracy and conversational understanding capabilities.

CN118586506APending Publication Date: 2024-09-03ZHEJIANG ALIBABA ROBOT CO LTD

Patent Information

Application Number
CN202410046485.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing large language models have insufficient understanding capabilities in conversational tasks. Existing prompting methods focus on reasoning capabilities and ignore conversational understanding capabilities, resulting in poor performance.

Method used

By introducing a self-explanation mechanism into the text analysis model, sentence explanation text is generated and input into the model together with the text to be analyzed to improve dialogue understanding.

Benefits of technology

It improves the processing precision and accuracy of text analysis models, especially in multi-turn dialogue tasks, enhances dialogue understanding capabilities and improves model performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586506A
    Figure CN118586506A
Patent Text Reader

Abstract

The embodiment of the invention provides a text processing method and a dialogue processing method. The text processing method comprises the steps of obtaining a to-be-analyzed text; creating an analysis instruction text for the to-be-analyzed text; the to-be-analyzed text and the analysis instruction text are input into a text analysis model, a text analysis result output by the text analysis model is obtained, and the text analysis result is generated by the text analysis model based on statement interpretation texts corresponding to all text statements in the to-be-analyzed text and the analysis instruction text. The statement interpretation text corresponding to each text statement is generated based on the to-be-analyzed text. Through the method provided by the specification, statement interpretation is performed on each text statement to obtain the statement interpretation information, and the text analysis result of the to-be-analyzed text is obtained according to the statement interpretation information of each text statement, so that the processing precision and accuracy of the text analysis model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular, to a text processing method and a dialogue processing method. Background Art

[0002] With the continuous development of artificial intelligence technology, large language models have made remarkable progress in the field of natural language processing, becoming one of the current research hotspots in the field of natural language processing. Large prediction models are widely used in question-answering systems, writing assistance, machine translation and other scenarios.

[0003] Large Language Models (LLMs) have achieved great success in natural language processing tasks. However, the large parameter size of these models makes it challenging to fine-tune downstream tasks. To overcome these challenges, researchers have proposed various prompting strategies to improve the performance of LLMs. However, most existing prompting methods focus on stimulating the reasoning ability of LLMs while ignoring the dialogue comprehension ability. In particular, dialogue tasks such as task-oriented dialogues require strong comprehension capabilities rather than complex reasoning capabilities. Existing prompting methods perform poorly in dialogue tasks. Therefore, there is an urgent need for a new method to improve the comprehension ability of LLMs in multi-round dialogues. Summary of the invention

[0004] In view of this, the embodiments of this specification provide a text processing method and a conversation processing method. One or more embodiments of this specification also relate to a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a text processing method is provided, including:

[0006] Get the text to be analyzed;

[0007] Creating a parsing instruction text for the text to be analyzed;

[0008] The text to be analyzed and the parsing instruction text are input into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on sentence interpretation texts corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation texts corresponding to each text sentence are generated based on the text to be analyzed.

[0009] According to a second aspect of an embodiment of this specification, a conversation processing method is provided, including:

[0010] Get the conversation text to be analyzed;

[0011] Creating a parsing instruction text for the dialogue text to be analyzed;

[0012] The dialogue text to be analyzed and the parsing instruction text are input into a dialogue text analysis model to obtain a dialogue text analysis result output by the dialogue text analysis model, wherein the dialogue text analysis result is generated by the dialogue text analysis model based on sentence interpretation text corresponding to each dialogue text sentence in the dialogue text to be analyzed and the interpretation instruction text, and the sentence interpretation text corresponding to each dialogue text sentence is generated based on the dialogue text to be analyzed.

[0013] According to a third aspect of an embodiment of this specification, a dialog processing method is provided, including:

[0014] A text processing task sent by a receiving device, wherein the text processing task includes a text to be analyzed;

[0015] Creating a parsing instruction text for the text to be analyzed;

[0016] Input the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed;

[0017] The text analysis result corresponding to the text processing task is sent to the terminal device.

[0018] According to a fourth aspect of the embodiments of this specification, there is provided a text processing device, including:

[0019] An acquisition module, configured to acquire the text to be analyzed;

[0020] A creation module, configured to create a parsing instruction text for the text to be analyzed;

[0021] The processing module is configured to input the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed.

[0022] According to a fifth aspect of an embodiment of this specification, a computing device is provided, including:

[0023] Memory and processor;

[0024] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned text processing method or dialogue processing method are implemented.

[0025] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned text processing method or dialogue processing method are implemented.

[0026] According to a seventh aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned text processing method or dialogue processing method.

[0027] A text processing method provided in an embodiment of the present specification includes obtaining a text to be analyzed; creating a parsing instruction text for the text to be analyzed; inputting the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed. Through the method provided in the embodiment of the present specification, a prompt is provided in the text analysis model through a self-explanation method to generate a final text analysis result, sentence interpretation is performed for each text sentence, sentence interpretation information is obtained, and the text analysis result of the text to be analyzed is obtained based on the sentence interpretation information of each text sentence, thereby improving the processing precision and accuracy of the text analysis model. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is an architecture diagram of a text processing system provided by an embodiment of this specification;

[0029] Figure 2 is a flowchart of a text processing method provided by an embodiment of this specification;

[0030] Figure 3 is a flow chart of a conversation processing method provided by an embodiment of this specification;

[0031] Figure 4 is a flowchart of a text processing method provided by another embodiment of this specification;

[0032] Figure 5 is a structural schematic diagram of a text processing device provided by an embodiment of this specification;

[0033] Figure 6 is a flow chart of a problem handling method provided by an embodiment of this specification;

[0034] Figure 7 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0035] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0036] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0037] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0038] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions, and corresponding operation entrances shall be provided for users to choose to authorize or refuse.

[0039] The large model in one or more embodiments of this specification specifically refers to a deep learning model with large-scale model parameters, which usually contains hundreds of millions, tens of billions, or even hundreds of billions of model parameters. The large model can also be called a foundation model / foundation model. The large model is pre-trained with large-scale unlabeled corpus to produce a pre-trained model with more than 100 million parameters. This model can adapt to a wide range of downstream tasks, and the model has good generalization ability, such as large-scale language models (LLMs), multi-modal pre-training models, etc.

[0040] When the big model is used in practice, only a small number of samples are needed to fine-tune the pre-trained model and it can be applied to different tasks. The big model can be widely used in natural language processing (NLP), computer vision and other fields. Specifically, it can be applied to computer vision tasks such as visual question answering (VQA), image caption (IC), image generation, as well as natural language processing tasks such as text-based sentiment classification, text summary generation, and machine translation. The main application scenarios of the big model include digital assistants, intelligent robots, search, online education, office software, e-commerce, intelligent design, etc.

[0041] First, the terms involved in one or more embodiments of this specification are explained.

[0042] Large prediction model: A neural network model with a large number of parameters. Its main function is to generate dialogues and output dialogue responses that meet user needs based on the input dialogue scenario.

[0043] Task-based dialogue: Task-oriented dialogue refers to multi-round dialogue used to perform various activities.

[0044] Zero-shot hinting: hinting methods that do not require providing examples.

[0045] Few-shot hinting: hinting methods that require a small number of examples.

[0046] In recent years, large language models (LLMs) have achieved great success in natural language processing tasks. However, the large size of the parameters of these models makes the fine-tuning process of downstream tasks challenging. In order to overcome these challenges, researchers have proposed various prompting strategies to improve the performance of LLMs. However, most existing prompting methods focus on stimulating the reasoning ability of LLMs, while ignoring the dialogue comprehension ability. In particular, dialogue tasks such as task-oriented dialogues require strong comprehension ability rather than complex reasoning ability. Existing prompting methods perform poorly in dialogue tasks, and a new method is needed to improve the comprehension ability of LLMs.

[0047] Based on this, in this specification, a text processing method and a dialogue processing method are provided. This specification also involves a computing device and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0048] See also Figure 1 , Figure 1 An architecture diagram of a text processing system provided by an embodiment of the present specification is shown. The text processing system may include a client 100 and a server 200;

[0049] The client 100 is used to send the text to be analyzed to the server 200;

[0050] The server 200 is used to create a parsing instruction text for the text to be analyzed;

[0051] Input the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed; send the text analysis result to the client 100;

[0052] The client 100 is also used to receive the text analysis result sent by the server 200.

[0053] Apply the scheme of the embodiment of this specification to obtain the text to be analyzed; create a parsing instruction text for the text to be analyzed; input the text to be analyzed and the parsing instruction text into the text analysis model to obtain the text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed. Through the method provided in the embodiment of this specification, a prompt is provided in the text analysis model for generating the final text analysis result through a self-explanation method, and the text analysis result of the text to be analyzed is obtained according to the sentence interpretation information of each text sentence, thereby improving the processing precision and accuracy of the text analysis model.

[0054] The text processing system may include multiple clients 100 and a server 200, wherein the client 100 may be referred to as a terminal device and the server 200 may be referred to as a cloud device. Multiple clients 100 may establish a communication connection through the server 200. In the text processing scenario, the server 200 is used to provide text processing services between multiple clients 100. Multiple clients 100 may serve as a sender or a receiver respectively and realize communication through the server 200.

[0055] The user can interact with the server 200 through the client 100 to receive data sent by other clients 100, or send data to other clients 100, etc. In the text processing scenario, the user can publish a data stream to the server 200 through the client 100, and the server 200 generates a text analysis result based on the data stream and pushes the text analysis result to other clients that have established communication.

[0056] The client 100 and the server 200 are connected via a network. The network provides a medium for a communication link between the client 100 and the server 200. The network may include various connection types, such as wired or wireless communication links or optical fiber cables, etc. The data transmitted by the client 100 may need to be encoded, transcoded, compressed, etc. before being released to the server 200.

[0057] The client 100 can be a browser, an APP (Application), or a web application such as an H5 (HyperText Markup Language 5, Hypertext Markup Language Version 5) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The client 100 can be based on the software development kit (SDK, Software Development Kit) of the corresponding service provided by the server 200, such as based on the real-time communication (RTC, Real Time Communication) SDK development and acquisition. The client 100 can be deployed in an electronic device, and needs to rely on the device to run or some APPs in the device to run. For example, the electronic device can have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. Various other types of applications can also be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0058] The server 200 may include servers that provide various services, such as servers that provide communication services to multiple clients, servers for background training that provide support for models used on clients, and servers that process data sent by clients. It should be noted that the server 200 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0059] It is worth noting that the text processing method provided in the embodiments of this specification is generally executed by the server, but in other embodiments of this specification, the client may also have similar functions to the server, thereby executing the text processing method provided in the embodiments of this specification. In other embodiments, the text processing method provided in the embodiments of this specification may also be executed jointly by the client and the server.

[0060] See also Figure 2 , Figure 2 A flowchart of a text processing method provided by an embodiment of the present specification is shown, which specifically includes the following steps:

[0061] Step 202: Obtain the text to be analyzed.

[0062] The text to be analyzed specifically refers to the text that needs to be analyzed in the embodiments of this specification. For example, if a text T needs to be analyzed, the text T is the text to be analyzed.

[0063] In actual applications, the text to be analyzed can be pre-stored in a specified location in the terminal. Based on the text acquisition instruction, the text to be analyzed can be obtained from the specified location. For example, the text to be analyzed is saved in a specified folder of a specified drive letter, and the text processing system obtains the text to be analyzed from the specified folder. Furthermore, the text to be analyzed can be saved in the form of a file. After the text processing system obtains the file from the specified location, the text to be analyzed stored in the file can be obtained by parsing the file.

[0064] In another specific implementation manner provided in the present specification, the text to be analyzed may also be uploaded by the user. Specifically, the terminal displays a text input interface to the user. There is a text upload control in the text input interface. The user can input the text to be analyzed into the text upload control and send the text to be analyzed to the terminal.

[0065] Step 204: Create a parsing instruction text for the text to be analyzed.

[0066] The parsing instruction text is specifically a prompt text pointing to the text to be analyzed. In actual applications, when the text to be analyzed may perform multiple analysis directions, such as conversation content analysis, user intent analysis, etc., when it is input into the big model for text analysis, it is necessary to inform the big model which aspect of the analysis needs to be performed on the text to be analyzed. Therefore, it is necessary to generate a parsing instruction text for the text to be analyzed.

[0067] For example, when it is necessary to perform user intent analysis on the text to be analyzed, a parsing instruction text can be generated such as "analyze the user's intent based on the meaning of each sentence in the text to be analyzed"; when it is necessary to perform conversation content analysis on the text to be analyzed, a parsing instruction text can be generated such as "determine when the user leaves based on the meaning of each sentence in the conversation text", and so on.

[0068] Specifically, creating a parsing instruction text for the text to be analyzed includes:

[0069] Parsing the text to be analyzed to obtain the analysis intent corresponding to the text to be analyzed;

[0070] According to the analysis intention and the preset prompt text, a parsing instruction text corresponding to the text to be analyzed is generated.

[0071] In practical applications, the analysis intent corresponding to the text to be analyzed can be obtained by parsing the text to be analyzed. Specifically, the text to be analyzed can be processed by an intent analysis model to obtain the analysis intent of the text to be analyzed.

[0072] After obtaining the analysis intention, the parsing instruction text corresponding to the text to be analyzed can be generated according to the preset analysis intention and the preset prompt text.

[0073] In the specific implementation manner provided in this specification, the preset prompt text includes text for parsing the text to be analyzed sentence by sentence. For example, the preset prompt text is "analyze each sentence in the above text sentence by sentence, explain each sentence, and then output *** based on the explanation of each sentence". The analysis intention is the purpose of analyzing the text to be analyzed. If it is hoped to obtain the user's intention in the text by analyzing the text to be analyzed, the analysis intention is "the user's intention". The preset prompt text and the analysis intention can form a parsing instruction text "analyze each sentence in the above text sentence by sentence, explain each sentence, and then output the user's intention based on the explanation of each sentence".

[0074] Step 206: Input the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed.

[0075] After obtaining the text to be analyzed and the parsing instruction text, the two can be concatenated and input into the text analysis model, so that the text analysis model performs text analysis on the text to be analyzed through the parsing instruction, thereby obtaining the final text analysis result.

[0076] It should be noted that in the method provided in this specification, when the text analysis model analyzes the text to be analyzed, it first analyzes each text sentence in the text to be analyzed, obtains the sentence interpretation text corresponding to each text sentence, and then obtains the final text analysis result based on the sentence interpretation text corresponding to each text sentence.

[0077] In the process of LLMs model analyzing text, the text analysis task can be decomposed into four parts, namely context, questions, intermediate steps and final answers. Among them, context and questions belong to the input of the LLMs model, while intermediate steps and final answers belong to the output generated by the LLMs model.

[0078] In the implementation provided in this specification, context can be represented by C, that is, the context provides a descriptive framework that outlines the problem setting and background. For reasoning tasks, this context C describes a specific scenario. For task-oriented dialogue tasks, the context C is usually a multi-round dialogue.

[0079] In the implementation mode provided in this specification, the question can be represented by Q. The question is a query about the relevant information of context C. In the field of reasoning tasks, question Q usually requires a value to be obtained from multiple steps of calculation, which means that the solution is not easy to obtain in context C. In task-oriented dialogue tasks, question Q is relatively simple, usually asking whether specific information exists. This type of response can be extracted from context C.

[0080] When a context C and a question Q are provided, the task of LLMs is to generate the corresponding answer A, which follows the probability distribution of Formula 1:

[0081] A~P(a|Q,C) Formula 1

[0082] Among them, A is the final answer A, P represents the probability, and a represents the elements that make up the answer A. Q is the question, and C is the context.

[0083] The step of generating answer A as shown in formula 1 is to directly generate the answer based on context C and question Q. For some content with strong logic or complicated steps, it is easy to make mistakes if the answer is directly obtained from context C and question Q. The method provided in the embodiment of this specification provides more detailed prompts for guidance. For the LLMs model, more surprising prompts can guide the model to use some intermediate problem-solving steps when generating the final answer, thereby improving the performance of LLMs, that is, directly generating answer A, and prompting the model to generate a series of intermediate problem-solving steps I based on context C and question Q, where I is represented by the following formula 2:

[0084] I~P(i|Q,C) formula 2

[0085] Among them, I is the intermediate step generated based on context C and question Q, and i is the component element of the intermediate step. The format or content of the intermediate step I has different manifestations in different tasks. For example, in the reasoning task, the intermediate step I is a plurality of reasoning steps; for the understanding task, the intermediate step I can be the explanation of the context C. The process of obtaining the answer A through the context C and the question Q becomes to first obtain the intermediate step I, and then generate the answer A based on the intermediate step I, context C and question Q, see the following formula 3:

[0086] A~P(a|I,Q,C) Formula 3

[0087] By introducing intermediate steps in the LLMs model, not only can the model understand the problem more deeply, but it can also provide greater transparency, making its problem-solving process easier to explain, which can improve the performance of the LLMs model in various tasks.

[0088] Specifically, the text analysis model includes a text sentence segmentation unit, a sentence interpretation unit and an interpretation fusion unit;

[0089] Inputting the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, including S2062-S2066:

[0090] S2062: Input the text to be analyzed and the parsing instruction text into a text sentence segmentation unit of a text analysis model to obtain at least one text sentence corresponding to the text to be analyzed.

[0091] The text sentence unit specifically refers to a module for performing sentence splitting on the text to be analyzed. After the text to be analyzed is input into the text sentence unit, the text sentence unit can split the text to be analyzed into at least one text sentence.

[0092] Specifically, the text to be analyzed and the parsing instruction text are input into a text sentence unit of a text analysis model to obtain at least one text sentence corresponding to the text to be analyzed, including:

[0093] Get the preset sentence identifier;

[0094] Searching the text to be analyzed according to the preset sentence identifier, and determining at least one target sentence identifier in the text to be analyzed;

[0095] The text to be analyzed is split according to each target sentence identifier to obtain at least one text sentence.

[0096] The preset sentence identifier is a preset identifier for sentence splitting, such as a period, a question mark, an exclamation mark, etc. After obtaining the text to be analyzed, the text to be analyzed is sequentially identified, a target sentence identifier is determined in the text to be analyzed, and the text to be analyzed is split according to the target sentence identifier, thereby obtaining at least one text sentence.

[0097] For example, the preset sentence markers are a period, a semicolon, a question mark, and an exclamation mark. Search the text to be analyzed and find the period, semicolon, question mark, and exclamation mark in the text to be analyzed as target sentence markers. The text to be analyzed is split into multiple text sentences by the target sentence markers.

[0098] In another specific implementation provided in this specification, the preset sentence identifier can also be a speaker in the dialogue text. For example, if the text to be analyzed is a dialogue, including speaker 1 and speaker 2, then speaker 1 and speaker 2 are target sentence identifiers, and the dialogue text is split into multiple text sentences through speaker 1 and speaker 2.

[0099] In a specific implementation manner provided in the present specification, an article is taken as an example for explanation, and the text to be analyzed is segmented into sentences by preset sentence identifiers to obtain multiple text sentences “T1, T2, T3…Tn”.

[0100] S2064: Input each text sentence into the sentence interpretation unit of the text analysis model to obtain a sentence interpretation text corresponding to each text sentence.

[0101] The sentence interpretation unit specifically refers to a unit used to understand and interpret each text sentence. By inputting each text sentence into the sentence interpretation unit, the sentence interpretation text corresponding to each text sentence can be obtained, that is, through the sentence interpretation unit, the sentence interpretation information corresponding to each text sentence can be obtained.

[0102] Specifically, each text sentence is input into the sentence interpretation unit of the text analysis model to obtain the sentence interpretation text corresponding to each text sentence, including:

[0103] Determining a target text sentence and a reference sentence interpretation text corresponding to the target text sentence, wherein the target text sentence is any one of the text sentences;

[0104] The target text sentence and the reference sentence interpretation text are input into a sentence interpretation unit of a text analysis model to obtain a sentence interpretation text corresponding to the target text sentence.

[0105] The target text sentence specifically refers to the text sentence that needs to be interpreted currently, and the reference sentence interpretation text specifically refers to the interpretation text corresponding to the target text sentence. The reference sentence interpretation text can be understood as the sentence interpretation text corresponding to the target text sentence.

[0106] In the process of interpreting a target text sentence, in addition to referring to the content of the target text sentence itself, you can also refer to the reference sentence corresponding to the target text sentence. Sometimes the reference sentence interpretation text corresponding to the reference sentence in the context is helpful for interpreting the target text sentence.

[0107] In the process of generating sentence explanation text of text sentences, a greedy decoding method is selected, and beam search decoding is used to generate a more extensive explanation for the text sentences.

[0108] In a specific implementation manner provided in the present specification, an explanation is given by taking T as the text sentence and D as the explanation text. For text sentence T1, it is input into the sentence interpretation unit to obtain the sentence interpretation text D1 corresponding to text sentence T1; for text sentence T2, its corresponding reference sentence interpretation text may be D1, then the text sentence T2 and the sentence interpretation text D1 are input into the sentence interpretation unit to obtain the sentence interpretation text D2 corresponding to text sentence T2; ... and so on. In actual applications, the number of reference sentence interpretation texts can be set according to actual conditions. For example, the n sentences before the text sentence are used as reference sentences, and the explanation text corresponding to the reference sentence is used as the reference sentence interpretation text.

[0109] After obtaining the target text sentence and the reference sentence interpretation text corresponding to the target text sentence, both are inputted together into the sentence interpretation unit of the text analysis model to obtain the sentence interpretation text corresponding to the target text sentence.

[0110] S2066: Input the parsing instruction text and each sentence interpretation text into the interpretation fusion unit of the text analysis model to obtain a text analysis result.

[0111] After obtaining the sentence interpretation text corresponding to each text sentence, the parsing instruction text and each sentence interpretation text are input together into the interpretation fusion unit of the text analysis model. The interpretation fusion unit specifically refers to a module used to perform understanding analysis based on each sentence interpretation text to generate the final text analysis result.

[0112] After obtaining the sentence explanation text corresponding to each text sentence, using the sentence explanation text as the prompt text of the text sentence can better obtain the true meaning of the text sentence from the text sentence, which can better assist the LLMs model in text analysis.

[0113] Specifically, the parsing instruction text and each sentence interpretation text are input into the interpretation fusion unit of the text analysis model to obtain the text analysis result, including:

[0114] Determine the logical order of the text of each sentence explanation text;

[0115] Extracting text knowledge information corresponding to each sentence explanation text according to the text logical order;

[0116] Generate text analysis results based on the knowledge information of each text.

[0117] In practical applications, the textual logic order of each sentence explanation text is first determined. In practical applications, the order of sentences in the text to be analyzed may be reversed. After determining each sentence explanation text, the textual logic order between each sentence explanation text is first determined, and then the corresponding textual knowledge information is extracted from each sentence explanation text according to the textual logic order. By extracting textual knowledge information from each sentence explanation text through the textual logic order, the situation in which the textual knowledge information obtained is incorrect due to textual logic confusion can be avoided, thereby improving the accuracy of obtaining textual knowledge information. Among them, textual knowledge information specifically refers to the knowledge information contained in the sentence explanation text, that is, the knowledge information that can be obtained from the sentence explanation text.

[0118] After acquiring the text knowledge information of each text sentence, the text analysis result can be obtained according to each text knowledge information, thereby realizing the function of generating the text analysis result based on the text analysis model.

[0119] In a specific implementation provided in this specification, the method further includes:

[0120] Sending the text analysis result to a terminal so that the terminal displays the text analysis result according to a display requirement;

[0121] Receive adjustment information for the text analysis result, and adjust the text analysis result according to the adjustment information.

[0122] In actual applications, after obtaining the text analysis results based on the text analysis model, the text analysis results can also be sent to the terminal, and the text analysis results can be displayed to the user at the terminal. Furthermore, the form of displaying the text analysis results in the terminal can be adjusted accordingly according to the display requirements of the user. For example, if the user wants to see the display of entity types, the text analysis results can be displayed according to the entity type; if the user wants to display in a structured form, the text analysis results can be displayed in a structured display form. In the method provided in this specification, the display form of the text analysis results is not limited, and it shall be subject to the actual application.

[0123] The user can also send adjustment information for the text analysis result at the terminal, for example, to adjust the display form of the text analysis result, adjust the order of the text analysis result, adjust the content information in the text analysis result, etc. In the specific implementation mode provided in this specification, the specific form of the adjustment information is not limited. After receiving the adjustment information for the text analysis result, the terminal can adjust the text analysis result according to the adjustment information, so that the text analysis result better meets the needs of the user.

[0124] The method provided in the embodiment of this specification generates a parsing instruction text for the text to be analyzed when the text to be analyzed is input into the text analysis model for analysis. The parsing instruction text is used as the prompt information of the text to be analyzed and is input into the text analysis model together with the text to be analyzed, so that the text analysis model first determines the sentence interpretation text corresponding to each text sentence in the text to be analyzed during the text analysis of the text to be analyzed, and then generates the final text analysis result according to each sentence interpretation text. In the process of interpreting each text sentence and generating the sentence interpretation text, a deeper understanding of natural language is performed, so that the text analysis is more targeted. By interpreting each text sentence in a self-explanatory manner and reflecting the intermediate steps of solving the problem in the form of sentence interpretation text, the text analysis result can be better inferred, thereby making the text analysis model more accurate in the process of generating the text analysis result.

[0125] The following combination Figure 3 , taking the application of the text processing method provided in this specification to the conversation text as an example, the text processing method is further described. Among them, Figure 3 A flowchart of a process of a dialogue processing method provided by an embodiment of the present specification is shown, which specifically includes the following steps:

[0126] Step 302: Obtain the conversation text to be analyzed.

[0127] In the specific implementation provided in this specification, the dialogue text to be analyzed is "This is a dialogue between the user and the system. 'User: I want to book a train from A after 13:15. System: The first train departs at 15:00 and there is one every 50 minutes. User: I want to go to B on Thursday and leave after 13:45. Are there any options?' Please output the dialogue status of the above dialogue between the user and the system."

[0128] Step 304: Create a parsing instruction text for the dialogue text to be analyzed.

[0129] In the specific implementation manner provided in this specification, after analyzing the above text to be analyzed, a parsing instruction text is created: "First, analyze the discourse of the conversation sentence by sentence, explain each sentence, and then output the conversation status of the above conversation based on the explanation of each sentence."

[0130] Step 306: Input the dialogue text to be analyzed and the parsing instruction text into the dialogue text analysis model to obtain a dialogue text analysis result output by the dialogue text analysis model, wherein the dialogue text analysis result is generated by the dialogue text analysis model based on the sentence interpretation text corresponding to each dialogue text sentence in the dialogue text to be analyzed and the interpretation instruction text, and the sentence interpretation text corresponding to each dialogue text sentence is generated based on the dialogue text to be analyzed.

[0131] In the specific implementation manner provided in this specification, the dialogue text to be analyzed and the parsing instruction text are input into the dialogue text analysis model for processing.

[0132] According to the parsed instruction text, the dialogue analysis model first divides the dialogue content in the dialogue text to be analyzed into sentences, and obtains dialogue sentence T1 "User: I want to book a train from A after 13:15.", dialogue sentence T2 "System: The first train departs at 15:00 and there is one every 50 minutes.", and dialogue sentence T3 "User: I want to go to B on Thursday and leave after 13:45. Are there any options?".

[0133] After interpreting each dialogue sentence separately, the sentence interpretation text D1 corresponding to dialogue sentence T1 is obtained: "The user actively initiates a dialogue, expressing the intention to book a train departing from A after 13:15."; the sentence interpretation text D2 corresponding to dialogue sentence T2: "In the system's response, information about the train schedule was provided, but no explicit request was made or new information about the user's preferences was provided."; the sentence interpretation text D3 corresponding to dialogue sentence T3: "In the user's next dialogue, it is specified that they want to go to B on Thursday and want to leave after 13:45. This is an update to their previous request. They previously only specified that they wanted to leave A after 13:15."

[0134] After obtaining the interpretation text of each sentence, the interpretation text of each sentence is comprehensively understood and analyzed according to the parsing instruction text, and the dialogue text analysis result is generated as "Train departure place: A; Train departure time: after 13:45; Train destination: B; Train departure date: Thursday". Thus, the above dialogue text analysis result can be obtained from the dialogue.

[0135] In a specific implementation provided in this specification, the dialogue text analysis model includes a text sentence segmentation unit, a sentence interpretation unit, and an interpretation fusion unit;

[0136] Inputting the dialogue text to be analyzed and the parsing instruction text into a dialogue text analysis model to obtain a dialogue text analysis result output by the dialogue text analysis model includes:

[0137] Inputting the dialogue text to be analyzed and the parsing instruction text into a text sentence segmentation unit of a dialogue text analysis model to obtain at least one text sentence corresponding to the dialogue text to be analyzed;

[0138] Input each text sentence into the sentence interpretation unit of the dialogue text analysis model to obtain the sentence interpretation text corresponding to each text sentence;

[0139] The parsing instruction text and each sentence interpretation text are input into the interpretation fusion unit of the dialogue text analysis model to obtain the dialogue text analysis result.

[0140] In a specific implementation manner provided in this specification, the dialogue text to be analyzed and the parsing instruction text are input into a text sentence unit of a dialogue text analysis model to obtain at least one text sentence corresponding to the dialogue text to be analyzed, including:

[0141] Get the preset sentence identifier;

[0142] Searching the dialogue text to be analyzed according to the preset sentence identifier, and determining at least one target sentence identifier in the dialogue text to be analyzed;

[0143] The dialogue text to be analyzed is split according to each target sentence identifier to obtain at least one text sentence.

[0144] In a specific implementation manner provided in this specification, each text sentence is input into a sentence interpretation unit of a dialogue text analysis model to obtain a sentence interpretation text corresponding to each text sentence, including:

[0145] Determining a target text sentence and a reference sentence interpretation text corresponding to the target text sentence, wherein the target text sentence is any one of the text sentences;

[0146] The target text sentence and the reference sentence interpretation text are input into the sentence interpretation unit of the dialogue text analysis model to obtain the sentence interpretation text corresponding to the target text sentence.

[0147] In a specific implementation manner provided in this specification, the parsing instruction text and each sentence interpretation text are input into the interpretation fusion unit of the dialogue text analysis model to obtain the dialogue text analysis result, including:

[0148] Determine the logical order of the text of each sentence explanation text;

[0149] Extracting the dialogue text knowledge information corresponding to each sentence explanation text according to the text logical sequence;

[0150] Generate conversation text analysis results based on the knowledge information of each conversation text.

[0151] In a specific implementation manner provided in this specification, creating a parsing instruction text for the dialogue text to be analyzed includes:

[0152] Parsing the dialogue text to be analyzed to obtain the analysis intent corresponding to the dialogue text to be analyzed;

[0153] According to the analysis intention and the preset prompt text, a parsing instruction text corresponding to the dialogue text to be analyzed is generated.

[0154] In a specific implementation provided in this specification, it also includes:

[0155] Sending the conversation text analysis result to a terminal so that the terminal displays the conversation text analysis result according to a display requirement;

[0156] Receive adjustment information for the conversation text analysis result, and adjust the conversation text analysis result according to the adjustment information.

[0157] The method provided in the embodiment of this specification generates a parsing instruction text for the dialogue text to be analyzed when the dialogue text to be analyzed is input into the dialogue text analysis model for analysis. The parsing instruction text is used as the prompt information of the dialogue text to be analyzed and is input into the text analysis model together with the dialogue text to be analyzed, so that the dialogue text analysis model first determines the sentence interpretation text corresponding to each dialogue text sentence in the dialogue text to be analyzed during the analysis of the dialogue text to be analyzed, and then generates the final dialogue text analysis result according to each sentence interpretation text. In the process of interpreting each dialogue text sentence and generating the sentence interpretation text, a deeper understanding of natural language is performed, so that the text analysis is more targeted. By interpreting each dialogue text sentence in a self-explanatory manner and reflecting the intermediate steps of processing the problem in the form of sentence interpretation text, the text analysis result can be better inferred, thereby making the dialogue text analysis model more accurate in the process of generating the text analysis result.

[0158] See also Figure 4 , Figure 4 A flowchart of a text processing method provided in an embodiment of the present specification is shown, including:

[0159] Step 402: receiving a text processing task sent by a terminal-side device, wherein the text processing task includes a text to be analyzed.

[0160] Step 404: Create a parsing instruction text for the text to be analyzed.

[0161] Step 406: Input the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on sentence interpretation texts corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation texts corresponding to each text sentence are generated based on the text to be analyzed.

[0162] Step 408: Send the text analysis result corresponding to the text processing task to the terminal device.

[0163] It should be noted that the specific implementation of step 402 to step 406 is the same as the implementation of the above-mentioned step 202 to step 206, and will not be repeated in the embodiments of this specification.

[0164] In a specific implementation provided in this specification, it also includes:

[0165] The receiving device adjusts the text according to the analysis result of the corresponding text;

[0166] A text adjustment instruction is determined in response to the adjustment text, and the text analysis result is adjusted based on the text adjustment instruction.

[0167] The method provided in the embodiment of this specification generates a parsing instruction text for the text to be analyzed when the text to be analyzed is input into the text analysis model for analysis. The parsing instruction text is used as the prompt information of the text to be analyzed and is input into the text analysis model together with the text to be analyzed, so that the text analysis model first determines the sentence interpretation text corresponding to each text sentence in the text to be analyzed during the text analysis of the text to be analyzed, and then generates the final text analysis result according to each sentence interpretation text. In the process of interpreting each text sentence and generating the sentence interpretation text, a deeper understanding of natural language is performed, so that the text analysis is more targeted. By interpreting each text sentence in a self-explanatory manner and reflecting the intermediate steps of solving the problem in the form of sentence interpretation text, the text analysis result can be better inferred, thereby making the text analysis model more accurate in the process of generating the text analysis result.

[0168] Corresponding to the above method embodiment, this specification also provides a text processing device embodiment, Figure 5 FIG. 1 shows a schematic diagram of the structure of a text processing device provided by an embodiment of the present specification. Figure 5 As shown, the device comprises:

[0169] An acquisition module 502 is configured to acquire a text to be analyzed;

[0170] A creation module 504 is configured to create a parsing instruction text for the text to be analyzed;

[0171] Processing module 506 is configured to input the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed.

[0172] Optionally, the text analysis model includes a text sentence segmentation unit, a sentence interpretation unit and an interpretation fusion unit;

[0173] The processing module 506 is further configured to:

[0174] Inputting the text to be analyzed and the parsing instruction text into a text sentence segmentation unit of a text analysis model to obtain at least one text sentence corresponding to the text to be analyzed;

[0175] Input each text sentence into the sentence interpretation unit of the text analysis model to obtain the sentence interpretation text corresponding to each text sentence;

[0176] The parsing instruction text and each sentence interpretation text are input into the interpretation fusion unit of the text analysis model to obtain a text analysis result.

[0177] Optionally, the processing module 506 is further configured to:

[0178] Get the preset sentence identifier;

[0179] Searching the text to be analyzed according to the preset sentence identifier, and determining at least one target sentence identifier in the text to be analyzed;

[0180] The text to be analyzed is split according to each target sentence identifier to obtain at least one text sentence.

[0181] Optionally, the processing module 506 is further configured to:

[0182] Determining a target text sentence and a reference sentence interpretation text corresponding to the target text sentence, wherein the target text sentence is any one of the text sentences;

[0183] The target text sentence and the reference sentence interpretation text are input into a sentence interpretation unit of a text analysis model to obtain a sentence interpretation text corresponding to the target text sentence.

[0184] Optionally, the processing module 506 is further configured to:

[0185] Determine the logical order of the text of each sentence explanation text;

[0186] Extracting text knowledge information corresponding to each sentence explanation text according to the text logical order;

[0187] Generate text analysis results based on the knowledge information of each text.

[0188] Optionally, the creation module 504 is further configured to:

[0189] Parsing the text to be analyzed to obtain the analysis intent corresponding to the text to be analyzed;

[0190] According to the analysis intention and the preset prompt text, a parsing instruction text corresponding to the text to be analyzed is generated.

[0191] Optionally, the device further comprises:

[0192] A sending module, configured to send the text analysis result to a terminal, so that the terminal displays the text analysis result according to a display requirement;

[0193] The adjustment module is configured to receive adjustment information for the text analysis result and adjust the text analysis result according to the adjustment information.

[0194] The device provided in the embodiment of this specification generates a parsing instruction text for the text to be analyzed when the text to be analyzed is input into the text analysis model for analysis. The parsing instruction text is used as the prompt information of the text to be analyzed and is input into the text analysis model together with the text to be analyzed, so that the text analysis model first determines the sentence interpretation text corresponding to each text sentence in the text to be analyzed during the text analysis of the text to be analyzed, and then generates the final text analysis result according to each sentence interpretation text. In the process of interpreting each text sentence and generating the sentence interpretation text, a deeper understanding of natural language is performed, so that the text analysis is more targeted. By interpreting each text sentence in a self-explanatory manner and reflecting the intermediate steps of solving the problem in the form of sentence interpretation text, the text analysis result can be better inferred, thereby making the text analysis model more accurate in the process of generating the text analysis result.

[0195] The above is a schematic scheme of a text processing device of this embodiment. It should be noted that the technical scheme of the text processing device and the technical scheme of the above text processing method belong to the same concept, and the details not described in detail in the technical scheme of the text processing device can be referred to the description of the technical scheme of the above text processing method.

[0196] See also Figure 6 , Figure 6 A flowchart of a problem handling method provided by an embodiment of this specification is shown, including:

[0197] Step 602: Obtain the question text to be analyzed.

[0198] Step 604: Create a parsing instruction text for the question text to be analyzed.

[0199] Step 606: Input the question text to be analyzed and the parsing instruction text into the question text analysis model to obtain the question answer output by the question text analysis model, wherein the question answer is generated by the question text analysis model based on the sentence interpretation text corresponding to each question sentence in the question text to be analyzed and the interpretation instruction text, and the sentence interpretation text corresponding to each question sentence is generated based on the question text to be analyzed.

[0200] It should be noted that the specific implementation of step 602 to step 606 is the same as the implementation of the above-mentioned step 202 to step 206, and will not be repeated in the embodiments of this specification.

[0201] Optionally, obtain the question text to be analyzed, including:

[0202] In response to a user's call request, display a question input interface for the user;

[0203] Receive the question text to be analyzed input by the user in the question input interface.

[0204] Optionally, the method further includes:

[0205] The answer to the question is sent to the user and displayed on the user's terminal display device.

[0206] Through the method provided in the embodiments of this specification, a self-explanation method is used in the question text analysis model to provide prompts for generating the final answer to the question, sentence interpretation is performed for each question sentence, and a sentence interpretation text is obtained. The answer to the question text to be analyzed is obtained based on the sentence interpretation text of each question sentence, thereby improving the processing precision and accuracy of the question text analysis model.

[0207] Figure 7 The block diagram of a computing device 700 according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.

[0208] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0209] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0210] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 700 may also be a mobile or stationary server.

[0211] The processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned text processing method or dialogue processing method.

[0212] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned text processing method or dialogue processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned text processing method or dialogue processing method.

[0213] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned text processing method or dialogue processing method.

[0214] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned text processing method or dialogue processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned text processing method or dialogue processing method.

[0215] An embodiment of the present specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned text processing method or dialogue processing method.

[0216] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the above-mentioned text processing method or dialogue processing method belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be referred to the description of the technical scheme of the above-mentioned text processing method or dialogue processing method.

[0217] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0218] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0219] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0220] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0221] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A text processing method, comprising: Get the text to be analyzed; Creating a parsing instruction text for the text to be analyzed; The text to be analyzed and the parsing instruction text are input into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed.

2. The method according to claim 1, wherein the text analysis model comprises a text sentence segmentation unit, a sentence interpretation unit and an interpretation fusion unit; Inputting the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model includes: Inputting the text to be analyzed and the parsing instruction text into a text sentence segmentation unit of a text analysis model to obtain at least one text sentence corresponding to the text to be analyzed; Input each text sentence into the sentence interpretation unit of the text analysis model to obtain the sentence interpretation text corresponding to each text sentence; The parsing instruction text and each sentence interpretation text are input into the interpretation fusion unit of the text analysis model to obtain a text analysis result.

3. The method according to claim 2, inputting the text to be analyzed and the parsing instruction text into a text sentence unit of a text analysis model to obtain at least one text sentence corresponding to the text to be analyzed, comprising: Get the preset sentence identifier; Searching the text to be analyzed according to the preset sentence identifier, and determining at least one target sentence identifier in the text to be analyzed; The text to be analyzed is split according to each target sentence identifier to obtain at least one text sentence.

4. The method according to claim 2, wherein each text sentence is input into the sentence interpretation unit of the text analysis model to obtain the sentence interpretation text corresponding to each text sentence, including: Determining a target text sentence and a reference sentence interpretation text corresponding to the target text sentence, wherein the target text sentence is any one of the text sentences; The target text sentence and the reference sentence interpretation text are input into a sentence interpretation unit of a text analysis model to obtain a sentence interpretation text corresponding to the target text sentence.

5. The method according to claim 2, inputting the parsing instruction text and each sentence interpretation text into the interpretation fusion unit of the text analysis model to obtain the text analysis result, comprising: Determine the logical order of the text of each sentence explanation text; Extracting text knowledge information corresponding to each sentence explanation text according to the text logical order; Generate text analysis results based on the knowledge information of each text.

6. The method according to claim 1, creating a parsing instruction text for the text to be analyzed, comprising: Parsing the text to be analyzed to obtain the analysis intent corresponding to the text to be analyzed; According to the analysis intention and the preset prompt text, a parsing instruction text corresponding to the text to be analyzed is generated.

7. The method of claim 1, further comprising: Sending the text analysis result to a terminal so that the terminal displays the text analysis result according to a display requirement; Receive adjustment information for the text analysis result, and adjust the text analysis result according to the adjustment information.

8. A method for processing a conversation, comprising: Get the conversation text to be analyzed; Creating a parsing instruction text for the dialogue text to be analyzed; The dialogue text to be analyzed and the parsing instruction text are input into a dialogue text analysis model to obtain a dialogue text analysis result output by the dialogue text analysis model, wherein the dialogue text analysis result is generated by the dialogue text analysis model based on sentence interpretation text corresponding to each dialogue text sentence in the dialogue text to be analyzed and the interpretation instruction text, and the sentence interpretation text corresponding to each dialogue text sentence is generated based on the dialogue text to be analyzed.

9. A problem handling method comprising: Get the question text to be analyzed; Creating a parsing instruction text for the problem text to be analyzed; The question text to be analyzed and the parsing instruction text are input into the question text analysis model to obtain the question answer output by the question text analysis model, wherein the question answer is generated by the question text analysis model based on the sentence interpretation text corresponding to each question sentence in the question text to be analyzed and the interpretation instruction text, and the sentence interpretation text corresponding to each question sentence is generated based on the question text to be analyzed.

10. The method according to claim 9, obtaining the question text to be analyzed, comprising: In response to a user's call request, display a question input interface for the user; Receive the question text to be analyzed input by the user in the question input interface.

11. The method of claim 10, further comprising: The answer to the question is sent to the user and displayed on the user's terminal display device.

12. A text processing method, comprising: A text processing task sent by a receiving end-side device, wherein the text processing task includes a text to be analyzed; Creating a parsing instruction text for the text to be analyzed; Input the text to be analyzed and the parsing instruction text into a text analysis model to obtain a text analysis result output by the text analysis model, wherein the text analysis result is generated by the text analysis model based on the sentence interpretation text corresponding to each text sentence in the text to be analyzed and the parsing instruction text, and the sentence interpretation text corresponding to each text sentence is generated based on the text to be analyzed; The text analysis result corresponding to the text processing task is sent to the terminal device.

13. The method of claim 12, further comprising: The receiving device adjusts the text according to the analysis result of the corresponding text; A text adjustment instruction is determined in response to the adjustment text, and the text analysis result is adjusted based on the text adjustment instruction.

14. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the method described in any one of claims 1 to 13 are implemented.

15. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Improved utterance parsing

    CN114902230A

  • Semantic analysis method, device and system for vehicle

    CN115293166A

  • Method for providing association model based decision making service using cognitive neural network

    KR101976841B1

Cited By

  • Document analysis method and system based on dialogue reasoning

    CN121212119A

  • A document parsing method and system based on dialogue reasoning

    CN121212119B