High-quality interactive system based on large language model based on natural language understanding and reasoning

The high-quality interactive system of large-scale language models through natural language understanding and reasoning solves the problem of deviation in word segmentation results in complex text correction. Through analysis of semantic differences and contextual logical correlation, the optimal word segmentation results are screened out, improving the accuracy of text evaluation. Quality and accuracy of understanding.

CN118520880BActive Publication Date: 2024-09-24LANKING INFORMATION TECH NANJING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410981547.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-09-24
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

In the correction of complex layout texts, traditional word segmentation methods are difficult to fully adapt to the complex context and diverse expressions of Chinese, causing the word segmentation results to deviate from the true semantics, affecting the quality of correction, and giving low-quality text evaluation results.

Method used

Using a large language model high-quality interactive system based on natural language understanding and reasoning, text data is obtained through the data acquisition module, the semantic difference acquisition module screens the word segmentation results, the contextual logical correlation acquisition module analyzes logical correlations, and the semantic independence acquisition module calculates word segmentation Based on the independence of the results, the data interaction module selects reasonable word segmentation results and finally conducts text evaluation.

Benefits of technology

Through the analysis of semantic difference, contextual logical correlation and semantic independence, the optimal word segmentation results are screened out to avoid ambiguous understanding and improve the semantic understanding and text evaluation quality of complex layout texts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520880B
    Figure CN118520880B
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and in particular to a high-quality interactive system for a large language model based on natural language understanding and reasoning, including: a data acquisition module, a semantic difference acquisition module, a contextual logical association acquisition module, a semantic independence acquisition module and a data interaction module; used to obtain text data of an original complex layout text; obtain a reference word segmentation result for each sentence; obtain the semantic difference of each word segmentation result; obtain the contextual logical association of each word segmentation result; obtain the semantic independence of each word segmentation result; screen out reasonable word segmentation results according to semantic independence; interact through reasonable word segmentation results to obtain the optimal word segmentation result; evaluate the complex layout text according to the optimal word segmentation result to obtain a text evaluation result. The present invention obtains a better semantic understanding of the complex layout text by performing high-quality interaction when correcting the complex layout text, thereby obtaining a better text evaluation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a high-quality interaction system of a large language model based on natural language understanding and reasoning. Background Art

[0002] The language big models of natural language understanding reasoning provide a new solution for complex layout text correction; these models can simulate the human language comprehension process and conduct in-depth analysis of the content of complex layout text, thereby realizing automated and standardized correction; however, as a semantically rich and complex language, Chinese faces many challenges in natural language understanding; especially in the specific scenario of complex layout text correction, it is particularly important to understand the subtle differences and deep meanings of the language.

[0003] When annotating complex layout texts, natural semantic processing techniques are usually used to perform word segmentation, syntactic and semantic analysis on the complex layout texts, and then the complex layout texts are scored based on factors such as the overall text structure and vocabulary richness. However, when building a high-quality interactive system based on a large language model of natural language understanding and reasoning, due to the complexity and diversity of Chinese, traditional word segmentation methods may not be able to fully adapt to the complex context and diverse expressions in complex layout texts, which may cause the word segmentation results to deviate from the true semantics of the complex layout texts, thereby affecting the overall understanding and correction quality of the complex layout texts, thereby giving low-quality text evaluation results. Summary of the invention

[0004] The present invention provides a high-quality interactive system of a large language model based on natural language understanding and reasoning to solve the existing problems.

[0005] The language large model high-quality interaction system based on natural language understanding and reasoning of the present invention adopts the following technical solutions:

[0006] Includes the following modules:

[0007] The data acquisition module is used to obtain text data of the original complex layout text; divide the text data into a number of paragraphs, divide each paragraph into a number of sentences, divide each sentence into a number of word segmentation results, and each word segmentation result corresponds to a probability value;

[0008] The semantic difference acquisition module is used to screen all the word segmentation results in each sentence according to the probability value, and obtain the reference word segmentation result of each sentence; according to the similarity between each word segmentation result in each sentence and the reference word segmentation result, the semantic difference of each word segmentation result is obtained;

[0009] A context logic relevance acquisition module is used to acquire the context logic relevance of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence;

[0010] A semantic independence acquisition module is used to acquire the semantic independence of each word segmentation result according to the semantic difference and contextual logical association of each word segmentation result;

[0011] The data interaction module is used to screen out reasonable word segmentation results based on semantic independence; to interact through reasonable word segmentation results to obtain the optimal word segmentation results; to evaluate complex layout texts based on the optimal word segmentation results to obtain text evaluation results.

[0012] Preferably, the method of screening all word segmentation results in each sentence according to the probability value to obtain the reference word segmentation result of each sentence includes the following specific methods:

[0013] For any sentence, the word segmentation result with the largest probability value in the sentence is recorded as the reference word segmentation result of the sentence.

[0014] Preferably, the method of obtaining the semantic difference of each word segmentation result according to the similarity between each word segmentation result in each sentence and the reference word segmentation result includes the following specific methods:

[0015] For the kth word segmentation result in the jth sentence in the ith paragraph in the text data, the kth word segmentation result and the reference word segmentation result of the kth word segmentation result are respectively divided into a plurality of text structures;

[0016] Obtaining the similarity of each text structure between the kth word segmentation result and the reference word segmentation result;

[0017] The average of all text structure similarities between the k-th word segmentation result and the reference word segmentation result is taken as the semantic difference of the k-th word segmentation result.

[0018] Preferably, the obtaining of the similarity of each text structure between the kth word segmentation result and the reference word segmentation result comprises the following specific methods:

[0019] For the reference word segmentation result of the k-th word segmentation result, respectively obtain the word vectors of each text structure of the k-th word segmentation result and the reference word segmentation result;

[0020] For any text structure between the kth word segmentation result and the reference word segmentation result, the cosine similarity between the word vector of the text structure of the kth word segmentation result and the word vector of the text structure of the reference word segmentation result is taken as the similarity of the text structure between the kth word segmentation result and the reference word segmentation result.

[0021] Preferably, the specific method of obtaining the contextual logical relevance of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence includes:

[0022] For the kth word segmentation result in the jth sentence in the ith paragraph in the text data, obtain the neighborhood text data of the kth word segmentation result;

[0023] Get the sentence vector of the k-th word segmentation result and the sentence vector of each sentence in the neighborhood text data of the k-th word segmentation result;

[0024] According to the logical correlation between the sentence vector of the kth word segmentation result and the sentence vectors of different sentences in the neighborhood text data of the kth word segmentation result, the logical association value between the kth word segmentation result and each sentence in its neighborhood text data is obtained;

[0025] The average value of all the logical association values ​​corresponding to the k-th word segmentation result is calculated, and the average value of all the logical association values ​​is used as the contextual logical association degree of the k-th word segmentation result.

[0026] Preferably, the specific method of obtaining the neighborhood text data of the kth word segmentation result includes:

[0027] A neighborhood parameter t is preset, and the text data composed of the t sentences before the j-th sentence and the t sentences after the j-th sentence are used as the neighborhood text data of the k-th word segmentation result in the j-th sentence.

[0028] Preferably, the specific method of obtaining the sentence vector of the k-th word segmentation result and the sentence vector of each sentence in the neighborhood text data of the k-th word segmentation result includes:

[0029] The mean of the word vectors of all text structures of the kth word segmentation result is used as the sentence vector of the kth word segmentation result; for any sentence in the neighborhood text data of the kth word segmentation result, the mean of the word vectors of all text structures of the reference word segmentation results of the sentence is used as the sentence vector of the sentence in the neighborhood text data of the kth word segmentation result.

[0030] Preferably, the specific method of obtaining the logical association value between the kth word segmentation result and each sentence in its neighborhood text data includes:

[0031] For any sentence in the neighborhood text data of the kth word segmentation result, the sentence vector of the kth word segmentation result and the sentence vector of the sentence are input into the trained neural network together. If the output result is implication, 1 is used as the logical association value between the kth word segmentation result and the sentence; if the output result is irrelevant, 0 is used as the logical association value between the kth word segmentation result and the sentence.

[0032] Preferably, the specific method of obtaining the contextual logical relevance of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence includes:

[0033] For any word segmentation result in any sentence, the product of the semantic difference of the word segmentation result and the contextual logical association of the word segmentation result is recorded as the first product; the difference between the probability value of the reference word segmentation result of the sentence and the probability value of the word segmentation result is recorded as the first difference; the ratio of the first product to the first difference is recorded as the first ratio; the value after linear normalization of the first ratio is taken as the semantic independence of the word segmentation result.

[0034] Preferably, the specific method of screening out reasonable word segmentation results according to semantic independence includes:

[0035] A threshold parameter T is preset. For any sentence, for any word segmentation result other than the reference word segmentation result of the sentence, if the semantic independence of the word segmentation result is greater than the threshold parameter T, the word segmentation result is recorded as a reasonable word segmentation result.

[0036] The technical solution of the present invention has the following beneficial effects: the present invention obtains the semantic difference of each word segmentation result according to the similarity between each word segmentation result and the reference word segmentation result in each sentence; obtains the contextual logical association of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence; obtains the semantic independence of each word segmentation result according to the semantic difference and the contextual logical association of each word segmentation result; selects reasonable word segmentation results according to semantic independence; obtains the optimal word segmentation result through interaction through reasonable word segmentation results; evaluates the complex layout text according to the optimal word segmentation result to obtain the text evaluation result; judges whether there are ambiguous segmentation results that are difficult to distinguish when analyzing the complex layout text according to the semantic independence of the word segmentation results, and then outputs different word segmentation situations that may have semantic understanding differences, and the examiner interacts with each other to obtain the optimal word segmentation result according to the interaction result, thereby avoiding the ambiguous understanding of the complex layout text that may be generated when the semantic understanding is performed only according to the word segmentation probability, and obtains a better semantic understanding of the complex layout text by performing high-quality interaction when correcting the complex layout text, thereby obtaining a better text evaluation result. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 This is a structural block diagram of the high-quality interactive system of a language large model based on natural language understanding and reasoning of the present invention;

[0039] Figure 2 This is a feature relationship flow chart of the high-quality interactive system of a large language model based on natural language understanding and reasoning of the present invention. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of the language large model high-quality interaction system based on natural language understanding reasoning proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0042] The specific scheme of the high-quality interactive system of a large language model based on natural language understanding and reasoning provided by the present invention is described in detail below with reference to the accompanying drawings.

[0043] See also Figure 1 , which shows a structural block diagram of a language large model high-quality interaction system based on natural language understanding and reasoning provided by an embodiment of the present invention, the system includes the following modules:

[0044] The data collection module is used to obtain the text data of the original complex layout text.

[0045] It should be noted that complex layout text is usually composed of several paragraphs, which are crucial to the writing structure of complex layout text, and each paragraph is distinguished by a paragraph identifier, so the text is divided into several paragraphs through the paragraph identifiers of the text data; then each paragraph is composed of several sentences, and the sentence division standard is punctuation marks, so each paragraph is divided into several sentences through the punctuation marks in the text data.

[0046] Specifically, we first need to collect the text data of the original complex layout text. The specific process is as follows:

[0047] The complex layout text image uploaded by the student user in the app is called by the smart education platform, and is recognized and converted into text data through OCR technology to obtain the text data of the original complex layout text; the text data is divided into several paragraphs, each paragraph is divided into several sentences, each sentence is divided into several word segmentation results, and each word segmentation result corresponds to a probability value; the specific division method includes:

[0048] The text data is divided into several paragraphs by paragraph identifiers of the text data; each paragraph is divided into several sentences by punctuation marks; each sentence is segmented by an n-gram grammar model with n=3 to obtain several segmentation results.

[0049] Among them, OCR technology and n-gram grammatical model are existing technologies, and this embodiment will not be described in detail here.

[0050] It should be noted that for each sentence, in order to improve the semantic recognition effect and recognition efficiency of the large language model, the text data needs to be segmented first; due to the complexity and diversity of the Chinese context, there are multiple combination relationships between multiple characters, so when segmenting through the n-gram grammar model, multiple segmentation results will be generated; based on the word sequence, the probability of each segmentation result can be obtained in the training corpus. For example: Student Yang likes to drink juice, she thinks milk is not as delicious as juice; the possible segmentation results are:

[0051] Student Yang likes to drink fruit juice. She thinks milk is not as delicious as juice.

[0052] Student Yang likes to drink juice. She thinks milk is not as delicious as juice.

[0053] Both of the above-mentioned word segmentation results are possible. The common practice is to compare the probabilities of different word segmentation results and output the result with a higher probability as the final result. However, this process will produce certain errors. When correcting complex layout texts, there will be a large deviation in the evaluation results of the complex layout texts in terms of semantic understanding, which affects the quality of interaction. When correcting complex layout texts, the above-mentioned word segmentation results can be optimized by combining the logical reasoning relationship between the context. Take the above example: Yang Ruo likes to drink juice, but she thinks milk is not as good as juice. Through semantic analysis, it can be obtained that there is a logical reasoning relationship between "someone likes to drink juice" and "juice is worse than milk", so the word segmentation results can be corrected and judged through the logical reasoning relationship.

[0054] At this point, the text data of the original complex layout text is obtained through the above method.

[0055] The semantic difference acquisition module is used to screen all the word segmentation results in each sentence according to the probability value to obtain the reference word segmentation result of each sentence; and obtain the semantic difference of each word segmentation result according to the similarity between each word segmentation result in each sentence and the reference word segmentation result.

[0056] It should be noted that when there are differences in word segmentation results, the first thing to consider is the semantic differences between the word segmentation results. If the difference between the semantics is greater, it means that different word segmentation results have a greater impact on semantic understanding, and the word segmentation choice here is more important; the semantics of the word segmentation results are mainly reflected in the word vector and the part of speech. The greater the difference in the word vector, the greater the difference in the semantic expression between the word segmentation results; when judging the difference in semantic results, it is usually due to the difference between the word vectors of different words to express the semantic difference, but due to the different results of word segmentation in different word segmentation results, it will inevitably lead to differences in word vectors and the number of words. Therefore, when calculating the difference between different word segmentation results through the average word vector of the sentence, it is difficult to reflect the real semantic difference. Therefore, it is necessary to consider the contribution of the part of speech of different words to the overall sentence semantics, and then better quantify the overall semantic difference and the semantic difference of each word segmentation result.

[0057] Specifically, for any sentence, since the larger the probability value of the word segmentation result is, the more likely it is to be the optimal word segmentation result, the word segmentation result with the largest probability value in the sentence is recorded as the reference word segmentation result of the sentence.

[0058] Preferably, in some implementations of the embodiments of the present invention, the calculation method for obtaining the semantic difference of each word segmentation result is:

[0059] For the kth word segmentation result in the jth sentence in the ith paragraph in the text data, the kth word segmentation result and the reference word segmentation result of the kth word segmentation result are respectively divided into a plurality of text structures;

[0060] Obtaining the similarity of each text structure between the kth word segmentation result and the reference word segmentation result;

[0061] The average of all text structure similarities between the k-th word segmentation result and the reference word segmentation result is used as the semantic difference of the k-th word segmentation result;

[0062] The specific formula is:

[0063] ;

[0064] In the formula, C i,j,k N represents the semantic difference of the kth word segmentation result in the jth sentence in the i-th paragraph of the text data; i,j,kW represents the total number of all text structures of the kth word segmentation result in the jth sentence in the i-th paragraph in the text data; i,j,k,l It represents the similarity of the lth text structure between the kth word segmentation result in the jth sentence in the i-th paragraph in the text data and the reference word segmentation result of the j-th sentence.

[0065] Preferably, in some implementations of the embodiments of the present invention, the specific method of dividing the k-th word segmentation result and the reference word segmentation result of the k-th word segmentation result into a plurality of text structures includes:

[0066] The sentence structures in the kth word segmentation result and the reference word segmentation result of the kth word segmentation result are obtained by a rule-based syntactic analysis algorithm, and modifiers are removed from the sentence structure to obtain several text structures of the kth word segmentation result and the reference word segmentation result.

[0067] It should be noted that, for example, "this door handle is broken" has three word segmentation results: 1. This\door handle\ is broken; 2. This door\handle\ is broken; 3. This door\handle\ is broken. After removing the modifiers, the text structures are: 1. Door handle\ is broken; 2. Handle\ is broken; 3. Door\handle\ is broken; Among them, the rule-based syntactic analysis algorithm is the prior art, and this embodiment will not be elaborated here.

[0068] Preferably, in some implementations of the embodiments of the present invention, obtaining the similarity of each text structure between the kth word segmentation result and the reference word segmentation result includes:

[0069] The word vectors of each text structure of the kth word segmentation result and the reference word segmentation result are obtained respectively through the word2vec algorithm; for any text structure between the kth word segmentation result and the reference word segmentation result, the cosine similarity between the word vector of the text structure of the kth word segmentation result and the word vector of the text structure of the reference word segmentation result is taken as the similarity of the text structure between the kth word segmentation result and the reference word segmentation result.

[0070] The word2vec algorithm and the method for obtaining the cosine similarity are well-known technologies, and will not be described in detail in this embodiment.

[0071] It should be noted that if there is no corresponding text structure between the k-th word segmentation result and the reference word segmentation result of the j-th sentence, then the similarity is set to 0; the word2vec algorithm is a prior art and will not be described in detail in this embodiment.

[0072] So far, the semantic difference of each word segmentation result is obtained through the above method.

[0073] The context logic relevance acquisition module is used to acquire the context logic relevance of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence.

[0074] It should be noted that when there are large semantic differences in the word segmentation results, it is necessary to make a judgment in combination with the reasoning relationship in the text; the specific judgment logic is: if one of the word segmentation results has a logical reasoning relationship with the previous one, then this word segmentation result tends to be regarded as the optimal word segmentation result; if there is no large difference in the reasoning relationship between the word segmentation results, and the semantic difference between the word segmentation results is large, then multiple word segmentation results are input for teachers who are marking complex layout texts to choose from, and the word segmentation results are selected based on the results of the interaction; therefore, it is necessary to obtain the contextual logical relevance of each word segmentation result.

[0075] Preferably, in some implementations of the embodiments of the present invention, the calculation method for obtaining the contextual logical relevance of each word segmentation result is:

[0076] For the kth word segmentation result in the jth sentence in the ith paragraph in the text data, obtain the neighborhood text data of the kth word segmentation result;

[0077] Get the sentence vector of the k-th word segmentation result and the sentence vector of each sentence in the neighborhood text data of the k-th word segmentation result;

[0078] According to the logical correlation between the sentence vector of the kth word segmentation result and the sentence vectors of different sentences in the neighborhood text data of the kth word segmentation result, the logical association value between the kth word segmentation result and each sentence in its neighborhood text data is obtained.

[0079] Calculate the average value of all logical association values ​​corresponding to the k-th word segmentation result, and use the average value of all logical association values ​​as the contextual logical association degree of the k-th word segmentation result;

[0080] The specific formula is:

[0081] ;

[0082] Where, L i,j,k Indicates the contextual logical relevance of the kth word segmentation result in the jth sentence in the i-th paragraph of the text data; NT i,j,k Represents the total number of all sentences in the neighborhood text data of the kth word segmentation result; I i,j,k,z Represents the logical association value between the k-th word segmentation result and the z-th sentence in its neighborhood text data.

[0083] It should be noted that L i,j,k It can also represent the segmentation result D i,j,kThe logical correlation with the context. The larger the value, the better the segmentation result. i,j,k The closer the logical connection with the context, the more the segmentation result conforms to the current context.

[0084] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the neighborhood text data of the kth word segmentation result includes:

[0085] A neighborhood parameter t is preset, wherein this embodiment is described by taking t=3 as an example, and this embodiment is not specifically limited, wherein t is determined according to specific implementation conditions.

[0086] The text data composed of the t sentences before the j-th sentence and the t sentences after the j-th sentence are used as the neighborhood text data of the k-th word segmentation result in the j-th sentence.

[0087] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the sentence vector of the kth word segmentation result and the sentence vector of each sentence in the neighborhood text data of the kth word segmentation result includes:

[0088] The mean of the word vectors of all text structures of the kth word segmentation result is used as the sentence vector of the kth word segmentation result; for any sentence in the neighborhood text data of the kth word segmentation result, the mean of the word vectors of all text structures of the reference word segmentation results of the sentence is used as the sentence vector of the sentence in the neighborhood text data of the kth word segmentation result.

[0089] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the logical association value between the kth word segmentation result and each sentence in its neighborhood text data includes:

[0090] For any sentence in the neighborhood text data of the kth word segmentation result, the sentence vector of the kth word segmentation result and the sentence vector of the sentence are input into the trained RNN neural network model together. If the output result is implication, 1 is used as the logical association value between the kth word segmentation result and the sentence; if the output result is irrelevant, 0 is used as the logical association value between the kth word segmentation result and the sentence.

[0091] It should be noted that the training process of the RNN neural network model is well known and will not be described in detail in this embodiment.

[0092] At this point, the contextual logical relevance of each word segmentation result is obtained through the above method.

[0093] The semantic independence acquisition module is used to obtain the semantic independence of each word segmentation result according to the semantic difference and contextual logical association of each word segmentation result.

[0094] It should be noted that for the same sentence, the greater the conflict between different word segmentation results, the more likely it is that different semantic understandings will be generated. At this time, different word segmentation results will have a greater impact on the semantic understanding, and the more serious the consequences of incorrect word segmentation will be. At this time, it is more necessary to output different word segmentation results and adjust the semantic understanding according to the interaction results. Therefore, the semantic independence of the word segmentation results is obtained based on the semantic difference of the word segmentation results and the logical correlation of the context.

[0095] Preferably, in some implementations of the embodiments of the present invention, the calculation method for obtaining the semantic independence of each word segmentation result is:

[0096] For any word segmentation result in any sentence, the product of the semantic difference of the word segmentation result and the contextual logical association of the word segmentation result is recorded as the first product; the difference between the probability value of the reference word segmentation result of the sentence and the probability value of the word segmentation result is recorded as the first difference; the ratio of the first product to the first difference is recorded as the first ratio; the value after linear normalization of the first ratio is taken as the semantic independence of the word segmentation result;

[0097] The specific formula is:

[0098] ;

[0099] In the formula, DOC represents the semantic independence of the word segmentation result; C represents the semantic difference of the word segmentation result; L represents the contextual logical association of the word segmentation result; P0 represents the probability value of the reference word segmentation result of the sentence; P represents the probability value of the word segmentation result; norm() represents the linear normalization function.

[0100] It should be noted that, the smaller the first difference is, the smaller the difference between the word segmentation result and the word segmentation result with the highest probability value of the sentence is, and the more likely the word segmentation result is to be a reasonable word segmentation result; the greater the semantic independence of the word segmentation result is, the more semantically independent the word segmentation result is, and the more it fits the context of the context, and the more likely the word segmentation result is to be a reasonable result.

[0101] So far, the semantic independence of each word segmentation result is obtained through the above method.

[0102] The data interaction module is used to screen out reasonable word segmentation results based on semantic independence; to interact through reasonable word segmentation results to obtain the optimal word segmentation results; to evaluate complex layout texts based on the optimal word segmentation results to obtain text evaluation results.

[0103] Specifically, a threshold parameter T is preset, wherein this embodiment is described by taking T=0.5 as an example, and this embodiment is not specifically limited, wherein T is determined according to specific implementation conditions.

[0104] For any sentence, for any word segmentation result other than the reference word segmentation result of the sentence, if the semantic independence of the word segmentation result is greater than the threshold parameter T, the word segmentation result is recorded as a reasonable word segmentation result, and all reasonable word segmentation results in the sentence are transmitted to the review office, which interacts with each other to obtain interactive results; the optimal word segmentation result of the sentence is selected according to the interactive results; and the complex layout text is evaluated according to the optimal word segmentation result to obtain a text evaluation result.

[0105] It should be noted that the evaluation process is: by summarizing the optimal word segmentation results of all sentences in the complex layout text, the text structure and word richness in the complex layout text are obtained, and then the text evaluation result is obtained through reasoning.

[0106] See also Figure 2 , which shows a feature relationship flow chart of a high-quality interactive system of a large language model based on natural language understanding reasoning.

[0107] At this point, this embodiment is completed.

[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A high-quality interactive system based on a large language model based on natural language understanding and reasoning. It is characterized in that The system includes the following modules: The data acquisition module is used to obtain text data of the original complex layout text; divide the text data into a number of paragraphs, divide each paragraph into a number of sentences, divide each sentence into a number of word segmentation results, and each word segmentation result corresponds to a probability value; The semantic difference acquisition module is used to filter all the word segmentation results in each sentence according to the probability value and obtain the reference word segmentation result of each sentence; According to the similarity between each word segmentation result in each sentence and the reference word segmentation result, the semantic difference degree of each word segmentation result is obtained; A context logic relevance acquisition module is used to acquire the context logic relevance of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence; A semantic independence acquisition module is used to acquire the semantic independence of each word segmentation result according to the semantic difference and contextual logical association of each word segmentation result; Data interaction module, used to filter out reasonable word segmentation results based on semantic independence; The optimal word segmentation result is obtained by interacting with reasonable word segmentation results; the complex layout text is evaluated according to the optimal word segmentation result to obtain the text evaluation result.

2. According to the language large model high-quality interaction system based on natural language understanding and reasoning according to claim 1, It is characterized in that The specific method of screening all the word segmentation results in each sentence according to the probability value to obtain the reference word segmentation result of each sentence includes: For any sentence, the word segmentation result with the largest probability value in the sentence is recorded as the reference word segmentation result of the sentence.

3. According to the language large model high-quality interaction system based on natural language understanding and reasoning according to claim 1, It is characterized in that The specific method of obtaining the semantic difference of each word segmentation result according to the similarity between each word segmentation result in each sentence and the reference word segmentation result is as follows: For the kth word segmentation result in the jth sentence in the ith paragraph in the text data, the kth word segmentation result and the reference word segmentation result of the kth word segmentation result are respectively divided into a plurality of text structures; Obtaining the similarity of each text structure between the kth word segmentation result and the reference word segmentation result; The average of all text structure similarities between the k-th word segmentation result and the reference word segmentation result is taken as the semantic difference of the k-th word segmentation result.

4. According to claim 3, the language large model high-quality interaction system based on natural language understanding and reasoning, It is characterized in that The specific method of obtaining the similarity of each text structure between the kth word segmentation result and the reference word segmentation result is as follows: For the reference word segmentation result of the k-th word segmentation result, respectively obtain the word vectors of each text structure of the k-th word segmentation result and the reference word segmentation result; For any text structure between the kth word segmentation result and the reference word segmentation result, the cosine similarity between the word vector of the text structure of the kth word segmentation result and the word vector of the text structure of the reference word segmentation result is taken as the similarity of the text structure between the kth word segmentation result and the reference word segmentation result.

5. According to claim 1, the language large model high-quality interaction system based on natural language understanding and reasoning, It is characterized in that The specific method of obtaining the contextual logical relevance of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence is as follows: For the kth word segmentation result in the jth sentence in the ith paragraph in the text data, obtain the neighborhood text data of the kth word segmentation result; Get the sentence vector of the k-th word segmentation result and the sentence vector of each sentence in the neighborhood text data of the k-th word segmentation result; According to the logical correlation between the sentence vector of the kth word segmentation result and the sentence vectors of different sentences in the neighborhood text data of the kth word segmentation result, the logical association value between the kth word segmentation result and each sentence in its neighborhood text data is obtained; The average value of all the logical association values ​​corresponding to the k-th word segmentation result is calculated, and the average value of all the logical association values ​​is used as the contextual logical association degree of the k-th word segmentation result.

6. According to claim 5, the language large model high-quality interaction system based on natural language understanding and reasoning, It is characterized in that The specific method of obtaining the neighborhood text data of the kth word segmentation result includes: A neighborhood parameter t is preset, and the text data composed of the t sentences before the j-th sentence and the t sentences after the j-th sentence are used as the neighborhood text data of the k-th word segmentation result in the j-th sentence.

7. According to claim 5, the language large model high-quality interaction system based on natural language understanding and reasoning, It is characterized in that The specific method of obtaining the sentence vector of the k-th word segmentation result and the sentence vector of each sentence in the neighborhood text data of the k-th word segmentation result is as follows: The mean of the word vectors of all text structures of the kth word segmentation result is used as the sentence vector of the kth word segmentation result; for any sentence in the neighborhood text data of the kth word segmentation result, the mean of the word vectors of all text structures of the reference word segmentation results of the sentence is used as the sentence vector of the sentence in the neighborhood text data of the kth word segmentation result.

8. According to claim 5, the language large model high-quality interaction system based on natural language understanding and reasoning, It is characterized in that The specific method of obtaining the logical association value between the kth word segmentation result and each sentence in the neighboring text data includes: For any sentence in the neighborhood text data of the kth word segmentation result, the sentence vector of the kth word segmentation result and the sentence vector of the sentence are input into the trained neural network together. If the output result is implication, 1 is used as the logical association value between the kth word segmentation result and the sentence; if the output result is irrelevant, 0 is used as the logical association value between the kth word segmentation result and the sentence.

9. According to claim 1, the language large model high-quality interaction system based on natural language understanding and reasoning, It is characterized in that The specific method of obtaining the contextual logical relevance of each word segmentation result according to the logical correlation between each word segmentation result and the context sentence in each sentence is as follows: For any word segmentation result in any sentence, the product of the semantic difference of the word segmentation result and the contextual logical association of the word segmentation result is recorded as the first product; the difference between the probability value of the reference word segmentation result of the sentence and the probability value of the word segmentation result is recorded as the first difference; The ratio of the first product to the first difference is recorded as the first ratio; The value obtained by linearly normalizing the first ratio is used as the semantic independence of the word segmentation result.

10. According to claim 1, the language large model high-quality interaction system based on natural language understanding and reasoning, It is characterized in that The specific method of selecting reasonable word segmentation results according to semantic independence includes: A threshold parameter T is preset. For any sentence, for any word segmentation result other than the reference word segmentation result of the sentence, if the semantic independence of the word segmentation result is greater than the threshold parameter T, the word segmentation result is recorded as a reasonable word segmentation result.