System and method for evaluating predicted weights of statements in natural language processing

CN118891630APending Publication Date: 2024-11-01KONINKLIJKE PHILIPS NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380025921.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-08
Filing Date
2023-03-01
Publication Date
2024-11-01

Smart Images

  • Figure CN118891630A_ABST
    Figure CN118891630A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method for evaluating predicted weights of individual statements in a document and visually representing the statements based on the weights. The document is from a document repository, and variants of the document are generated by excluding a number of statements from the document. Documents and variants are predicted and corresponding confidence scores are determined by using a trained prediction model that provides a confidence score for each prediction. Weights of statements for all statements in the document are determined by using a confidence score relative to a prediction based on each of the document and the variants. The statements in the document are presented in a manner that is visually distinguished by corresponding weights of the statements in the document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to predictive analytics based on machine learning and text classification in natural language processing, and more particularly to computer-implemented systems and methods for evaluating predictive weights of sentences in documents of interest. Background Art

[0002] Traditional artificial intelligence (AI) applications often utilize machine learning algorithms or machine learning models that generate results without explaining why the results have been generated. With the expansion of AI application areas and the need to know why traditional AI produces certain results, explainable AI (XAI) has become a field of AI technology that provides explanations for the results to get rid of traditional black-box AI applications that only provide unreasoned results. When AI applications are applied to application areas with "big data" (which refers to the field of processing analysis, systematic extraction of information, or other ways of processing data sets, these data sets are too large or too complex for traditional data processing application software to handle) (where the misinterpretation of big data can be costly in terms of the time and resources used to interpret the big data, the importance of the consequences, or accountability), such AI applications are often used as recommendation tools for human experts who perform application tasks. Therefore, the interest and need to explain the reasons behind the results of AI applications is growing. Summary of the invention

[0003] According to aspects of the present disclosure, a computer-implemented method includes: obtaining a document from a document repository by one or more processors, the document including multiple sentences; generating multiple variants of the document by excluding a predefined number of sentences from the document by the one or more processors; making predictions by the one or more processors based on the document and each of the variants respectively by using a trained prediction model, the trained prediction model providing a confidence score for each of the predictions, the confidence score indicating the probability that the prediction based on the input is correct; determining, by the one or more processors, sentence weights of all sentences in the document by using the confidence score relative to the prediction based on the document and each of the variants, the sentence weights indicating the average contribution of the sentence to the confidence score of the prediction based on the document; and presenting, by the one or more processors via a user interface and a video output device, the document having different degrees of visual effects determined based on the corresponding weights of the sentences in the document, the different degrees of visual effects being preconfigured for the document.

[0004] In one aspect, the method further includes preparing the trained prediction model by selecting the prediction model based on its performance, training the prediction model using a labeled dataset in an application task compatible with the application task of the document repository, and verifying that the performance of the prediction model is greater than a confidence threshold by using a test dataset in the labeled dataset that has not been used in the training.

[0005] In one aspect, the number of variants of the document, denoted as N, and a predefined number of sentences, denoted as m, to be excluded from the document to make each of the variants are tuned based on a validation dataset in a labeled dataset by: using a grid search method with respect to combinations of N and m for all available combinations, the validation dataset not having been used in training the trained predictive model, thereby improving the corresponding accuracy of the weights of the sentences for all sentences in the document.

[0006] In one aspect, the method further includes: selecting each variant from the plurality of variants that does not include the current statement; calculating a difference between a confidence score based on a prediction of a first variant from each of the selected variants and a confidence score based on the prediction of the document; iteratively calculating the difference with the document for each variant from the selection; adding the corresponding differences from the calculations; dividing a result from the addition by the number of the variants from the document made; and assigning a result from the division as a weight for the current statement.

[0007] In one aspect, the method further comprises: for all sentences in the document, iterating the following steps: selecting each variant from the plurality of variants that does not include the current sentence; calculating a corresponding difference between a corresponding confidence score based on a prediction from each selected variant and the confidence score based on the prediction of the document; adding the corresponding differences from the calculations; dividing a result from the addition by the number of the variants from the document made; and assigning a result from the division as a weight of the current sentence.

[0008] In one aspect, the method further includes: simultaneously performing the following steps for all sentences in the document: selecting each variant from the plurality of variants that does not include the current sentence; calculating a corresponding difference between a corresponding confidence score based on a prediction from each selected variant and the confidence score based on the prediction of the document; adding the corresponding differences from the calculations; dividing a result from the addition by the number of the variants from the document made; and assigning a result from the division as a weight for the current sentence.

[0009] In one aspect, the method further includes: configuring the different degrees of visual effects for the document based on the application task, the different degrees including two or more degrees of representation of the sentences in the document, the visual effects being selected from a group comprising: a heat map of the sentences; and turning the sentences on or off to manipulate font size, text effects, font color and background color, and combinations thereof relative to the sentences according to the weight of each of the sentences in the document, thereby enhancing the visual impression of the sentences with a more predictive weight.

[0010] According to aspects of the present disclosure, the system includes: a memory, one or more processors in communication with the memory, and program instructions, the program instructions being executable by the one or more processors via the memory, the program instructions being configured to: obtain a document from a document repository, the document including a plurality of sentences; generate a plurality of variants of the document by excluding a predefined number of sentences from the document; make predictions based on the document and each of the variants, respectively, by using a trained prediction model, the trained prediction model providing a confidence score for each of the predictions, the confidence score indicating a probability that the prediction based on the input is correct; determine the weights of sentences of all sentences in the document by using the confidence scores relative to the predictions based on the document and each of the variants, the weights of the sentences indicating the average contribution of the sentences to the confidence scores of the predictions based on the document; and present the document via a user interface and a video output device, the document having different degrees of visual effects determined based on the corresponding weights of the sentences in the document, the different degrees of visual effects being preconfigured for the document.

[0011] In one aspect, the system is further configured to prepare the trained prediction model by selecting the prediction model based on its performance, training the prediction model using a labeled dataset in an application task compatible with the application task of the document repository, and verifying that the performance of the prediction model is greater than a confidence threshold by using a test dataset in the labeled dataset that has not been used for the training.

[0012] In one aspect, the system is further configured to tune the number of variants of the document, denoted as N, and a predefined number of statements, denoted as m, to be excluded from the document to make each of the variants based on a validation dataset in a labeled dataset by: using a grid search method with respect to combinations of N and m for all available combinations, the validation dataset not having been used in training the trained predictive model, thereby improving the corresponding accuracy of the weights of the statements for all statements in the document.

[0013] In one aspect, the system is further configured to: select each variant among the multiple variants that does not include the current statement; calculate the difference between a confidence score of a prediction based on a first variant of each variant that has been previously selected and the confidence score of the prediction based on the document; iterate the instructions to calculate the difference between the variants that have been previously selected and the document; add the corresponding differences that have been previously calculated; divide the result from adding the corresponding differences by the number of variants of the document made; and assign the result of dividing the sum of the corresponding differences by the number of variants of the document as the weight of the current statement.

[0014] In one aspect, the system is also configured to: set values ​​of the different degrees of visual effects for the document based on the application task, the different degrees comprising two or more degrees of representation of the sentences in the document, the visual effects being selected from a group comprising: a heat map of the sentences; and turning the sentences on or off to manipulate font size, text effects, font color, and background color, and combinations thereof, relative to the sentences based on the weight of each of the sentences in the document, thereby enhancing the visual impression of the sentences with a more predictive weight.

[0015] According to an aspect of the present disclosure, a computer program product includes: data representing program instructions that can be executed by one or more processors via a memory, the program instructions being configured to: obtain a document from a document repository, the document including multiple sentences; generate multiple variants of the document by excluding a predefined number of sentences from the document; make predictions based on the document and each of the variants respectively by using a trained prediction model, the trained prediction model providing a confidence score for each of the predictions, the confidence score indicating a probability that the prediction based on the input is correct; determine the weights of sentences of all sentences in the document by using the confidence scores of the predictions based on the document and each of the variants, the weights of the sentences indicating the average contribution of the sentences to the confidence scores of the predictions based on the document; and present the document via a user interface and a video output device, the document having different degrees of visual effects determined based on the corresponding weights of the sentences in the document, the different degrees of visual effects being preconfigured for the document.

[0016] In one aspect, the computer program product is further configured to: select each variant from the plurality of variants that does not include the current statement; calculate the difference between a confidence score based on a prediction of a first variant of each variant that has been previously selected and the confidence score based on the prediction of the document; iterate the instructions to calculate the difference between each variant that has been previously selected and the document; add the respective differences that have been previously calculated; divide the result from adding the respective differences by the number of variants of the document made; and assign the result from dividing the sum of the respective differences by the number of variants of the document as the weight of the current statement.

[0017] In one aspect, the computer program product is also configured to: set the values ​​of the different degrees of visual effects of the document based on the application task, the different degrees including two or more degrees of representation of the sentences in the document, the visual effects being selected from a group including: a heat map of the sentences; and turning the sentences on or off to manipulate font size, text effects, font color and background color, and combinations thereof, with respect to the sentences based on the weight of each of the sentences in the document, thereby enhancing the visual impression of the sentences with a more predictive weight.

[0018] Those skilled in the art will appreciate that two or more of the above-mentioned embodiments, implementations and / or optional aspects of the present disclosure may be combined in any manner deemed useful. Those skilled in the art may perform modifications and variations of the system and / or any computer-readable medium based on this specification, which correspond to modifications and variations of the description of the corresponding computer-implemented method. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] These and other aspects of the disclosure will become apparent and be further elucidated with reference to the embodiments described by way of example in the following description and with reference to the accompanying drawings, in which:

[0020] Figure 1 Functional components of a system for evaluating predictive weights of sentences in a document are shown;

[0021] Figure 2 Shows Figure 1 A computer implemented method of a statement evaluation system;

[0022] Figure 3 Shows how to Figure 2 A detailed example of weighting statements in block 240 of FIG. 1 ;

[0023] Figure 4 showing documents and corresponding examples of document and sentence weight tags as generated by a sentence evaluation system; and

[0024] Figure 5 A computer readable medium including data is shown.

[0025] It should be noted that the drawings are purely schematic and not drawn to scale.In the drawings, elements corresponding to elements already described may have the same reference numerals. DETAILED DESCRIPTION

[0026] The present disclosure relates to systems and methods for providing units that are more meaningful than words or phrases in a document, which are evaluated for predictive significance in natural language processing and text classification techniques for explainable AI. The present disclosure also provides techniques for explaining predictions made by machine learning models, which have no restrictions on the types of machine learning models that can be utilized, which will be advantageous to traditional explainable AI that is often limited to specific machine learning models. The present disclosure understands that in certain application areas, such as medical diagnosis, quality assurance, or regulatory compliance, statements with greater predictive significance can be identified. The systems and methods of the present disclosure improve the readability of a document by using an enhanced visual representation of all statements in the document that correspond to the corresponding predictive significance of the statements.

[0027] Figure 1 Functional components of a system for evaluating predictive weights of sentences in a document are shown.

[0028] In the present disclosure, the system for evaluating the prediction weights of all sentences in a document is referred to as a sentence evaluation system 100. The components of the sentence evaluation system 100 may be run on corresponding servers, cloud computing nodes, or any other computing platforms that may be geographically distributed but operatively coupled via digital communication networks and other communication interfaces.

[0029] The sentence evaluation system 100 includes a trained prediction model 110, a document variant generator 120, a sentence weighting and document visualization process 150, and a document repository (DR) 170. The sentence evaluation system 100 also includes a user / data interface and a video output device for presenting output from the sentence weighting and document visualization process 150.

[0030] The trained prediction model 110 utilizes a labeled dataset 105, which indicates a dataset with corresponding data instances manually labeled by a human expert or automatically labeled by a text classification mechanism assisted by other cognitive analysis (CA) mechanisms in natural language processing (NLP) and artificial intelligence (AI) technologies. The labeled dataset 105 is located on an application task compatible with the application tasks of the document 101 and the DR 170.

[0031] Document 101, also referred to as D in this disclosure, includes a plurality of statements 103. The document is stored in DR 170 for application tasks where a human expert will make the final decision but will greatly benefit from the suggestions and explanations made by the predictive model regarding accuracy and reliability. The application tasks indicate the use areas of predictions utilizing machine learning models. Examples of application tasks include, but are not limited to, quality and regulatory (Q&R) compliance investigations for product issues, predictive diagnostics to support clinical decision making.

[0032] The document variant generator 120 generates as input variants 125 of the document 101. The variants 125 collectively indicate N variants of the document 101, including variants V_1 127 to variants V_N 129, where N represents a positive integer used to identify the number of variants 125 generated from the document 101. Each of the variants includes the same (sm) number of sentences selected from the document 101, where s indicates a positive integer used to indicate the number of sentences in the document 101, and m indicates a negative integer used to identify the number of sentences excluded from D 101 for each of the variants 125.

[0033] The trained prediction model 110 generates individual predictions based on D 101 and V_1 127 to V_N 129, denoted as prediction (D) 131, prediction (V_1) 137 to prediction (V_N) 139, respectively. Each of prediction (D) 131, prediction (V_1) 137 to prediction (V_N) 139 includes a prediction proposition and a probability corresponding to the prediction proposition when an input is selected from D 101 and V_1 127 to V_N 129, respectively. In the present disclosure, the term probability refers to the likelihood that the prediction result made by the trained prediction model 110 based on a particular input X will be correct, denoted as P(X), ranging between 0.0 and 1.0, so that a larger number indicates a greater reliability of the prediction proposition made by the trained prediction model 110. In the present disclosure, probability P(X) may also be used interchangeably with confidence score, confidence, or accuracy. For the sentence evaluation system 100, prediction (X) indicates the prediction of the trained prediction model 110 based on the input X, as shown by prediction (D) 131, prediction (V_1) 137 to prediction (V_N) 139, which respectively indicate the predictions based on the inputs of D 101 and V_1 127 to V_N 129. Prediction (X) includes a prediction proposition, including a category label or any other type of prediction result, and a probability P(X) corresponding to the prediction proposition made by the trained prediction model 110. Since the prediction proposition is not used when determining the prediction weight of the sentence, prediction (X) can be represented by the probability P(X) in the sentence evaluation system 100.

[0034] The prediction (D) 131 represented by the probability P(D) of the prediction proposition made by the trained prediction model 110 based on the input D 101 will be quite strong, for example, greater than or equal to 0.85.

[0035] The sentence weighting and document visualization process 150 of the sentence evaluation system 100 takes prediction (D) 131, prediction (V_1) 137 to prediction (V_N) 139 as input, and generates a sentence weight labeling document 109 by evaluating the corresponding prediction strength of each of the sentences 103 and visualizing the corresponding prediction strength of each of the sentences 103 in the document 101, also represented as D' in this disclosure.

[0036] D' 109 includes sentences 103 identical to document 101, represented by sentence J 193, and prediction strengths respectively corresponding to sentences 103, represented by weights (J) 195, where J indicates a positive integer used to identify each of sentences 103 in document 101. In the present disclosure, weight (J) 195 may also be referred to as, for example, prediction strength, weight, prediction weight, prediction ability of sentence J 193 to indicate the level of contribution of sentence J 193 to the confidence score of the predicted proposition based on document 101 (represented as P(D) as described above).

[0037] The sentence evaluation system 100 explains why a particular prediction made for a given input document has a particular level of confidence score by quantifying the prediction weights of individual sentences of the input document, which is in contrast to traditional text classification that is often machine-learned through word tagging or keyword appearance methods. In addition, the sentence evaluation system 100 of the present disclosure provides such explanations for predictions by using any trained prediction model, without being limited to the type of machine learning model, as long as the prediction model is trained to meet a particular level of confidence score. In contrast, in order to provide explainable predictions in a traditional manner, a specific type of prediction model, such as a decision tree or an attention mechanism, should have been used, regardless of the inherent performance of the prediction model.

[0038] Explainable AI (XAI) techniques are developing rapidly as predictions based on machine learning become more widely used, and as a result, there is a growing need to know why such predictions were made. Knowing the basis for the predictions of machine learning models will be particularly beneficial in many real-world application tasks that utilize machine learning to learn from big data and assist in making initial decisions about problems represented in the data, but human experts will be needed to review the predictions and ultimately decide on the course of action for those problems.

[0039] For example, when a medical practitioner diagnoses a patient, although a diagnostic machine learning model may be used to analyze patient data, clinical notes, and related medical records, the doctor ultimately diagnoses the patient. Therefore, a diagnostic suggestion predicted by a diagnostic machine learning model with an explanation and reason for the prediction is substantially more useful to the doctor than a prediction without any basis for why such a prediction has been made. Furthermore, the benefit to the doctor will be even greater when the diagnostic prediction is presented in a manner in which the doctor will easily recognize the explanation and reason, such as in a highlighted document.

[0040] For another example, in the field of quality and regulatory (Q&R) applications, when certain statements of the incident description (such as service records and case records) are designated as reasons for the prediction, machine learning predictions of investigation codes that are made based on the incident description to find out an issue with a certain product will be much more useful to the investigator than without any basis for the prediction. Similarly, if a prediction with why such a result has been reached has been presented by visually identifying the basis for the prediction in the input document describing the product and / or regulations, then machine learning predictions made to discover any compliance issues with the product with respect to certain regulations can contribute to identifying any compliance issues. Also in the field of quality assurance, product reviews can be analyzed by a machine learning model that makes predictions about how well the product is accepted, certain statements in the product reviews can be evaluated to carry more weight than other statements, and customer satisfaction with similar products can be estimated by analyzing a different set of product reviews for similar products.

[0041] Figure 2 Shows the description of Figure 1 Flowchart 200 of a computer-implemented method performed by the statement evaluation system 100 .

[0042] The blocks 210 to 250 in the flowchart 200 represent high-level tasks performed by the statement evaluation system 100, respectively. Therefore, each block in the flowchart 200 may include any number of operations that are not shown but are logically and inherently necessary to implement the high-level tasks corresponding to each block. If there are no logical dependencies between the blocks, such as input / output or prerequisites, any number of the blocks in the flowchart 200 may be executed simultaneously.

[0043] In box 210, the sentence evaluation system 100 prepares the trained prediction model 110 for the application task by using the labeled data set 105. The trained prediction model 110 will generate a class prediction and a confidence score corresponding to the class prediction of the input data. When the class prediction is based on a test data set of the same application task as the labeled data set 105 that was not used for training, the trained prediction model 110 should be trained to the extent that the confidence score of the class prediction or classification made by the trained prediction module 110 will be quite high, so that individual sentence weights can be measured based thereon. Then, the sentence evaluation system 100 proceeds to box 220.

[0044] In some embodiments, the sentence evaluation system 100 in box 210 can prepare a labeled data set 105 by labeling the original data set from the application task using a data labeling tool. DR 170 can correspond to the application task, and the original data set can be obtained from DR 170 together with the document 101. The data labeling tool can be any other classification machine learning model being used, and the label or category describes the content of the data according to the application task and the type of data in the original data set. Therefore, the labeled data set 105 will train the machine learning prediction model more effectively and improve the accuracy of the predictions made by the machine learning prediction model after deployment. The labeled data set 105 is large enough, such as 1000 or more instances, to train the machine learning prediction model until the confidence score of the trained prediction model 110 based on the category prediction of the test data set will be greater than the confidence threshold, such as 0.85, which indicates that 85% of the predictions made by the trained prediction model 110 will be trustworthy. The size of the labeled dataset 105, including a training dataset and a test dataset that is disjoint from the training dataset, the ratio of the training dataset to the test dataset that divides the labeled dataset 105, and the confidence threshold required for the trained prediction model 110, as well as other configuration parameters, will be determined empirically based on the requirements of the application task.

[0045] In some embodiments, the sentence evaluation system 100 can start by selecting any type of machine learning model to train the trained prediction model 110, because the sentences 103 can be evaluated individually to explain the predictions, including prediction (D) 131, prediction (V_1) 137 to prediction (V_N) 139, based only on the predictions without any explainable mechanism in the prediction model. It should be noted that conventional XAI mechanisms often have restrictions on the type of machine learning models and methods used to provide certain reasons for predictions, such as in decision trees or attention mechanisms on neural networks, while the sentence evaluation system 100 can select any type of machine learning model based solely on the performance of the machine learning model, such as support vector machines (SVM), long short-term memory (LSTM) networks, or logistic regression (LR), which often outperform XAI methods and models.

[0046] In some embodiments, the sentence evaluation system 100 provides an explanation of the reasons that were previously unavailable for predictions made by the currently used trained prediction model 110 (which is a classic black box AI model) with strong category prediction performance. Based on the characteristics of the application task and the need to understand the reasons behind the category prediction performance, the sentence evaluation system 100 will improve the understanding of the trained prediction model 110 to further enhance the utility of the trained forecast model 110.

[0047] In block 220, the sentence evaluation system 100 generates variants 125 of the document 101 according to the document repository 170 of the application task by randomly masking a preconfigured number of sentences from the document 101. Each variant in the variants 125 will correspond to a sentence graph, indicating which sentence is present or missing in a particular variant. Then, the sentence evaluation system 100 proceeds to block 230.

[0048] In some embodiments, the document variant generator 120 performs block 220 of the sentence evaluation system 100. The document variant generator 120 takes the document D 101 as input and generates variants 125 of the document 101 by randomly excluding m sentences from the s sentences in the document 101, where s and m are positive integers and m < s. In some embodiments, the document variant generator 120 can be configured to select sentences for masking based on a combination of sentences from the document 103 or based on the number of words in each sentence more uniformly than a random selection based on system selection.

[0049] The greater the number of variants 125 (i.e., N), the more accurately the sentence weight represented by the weight (J) 195 of each sentence J 193, and the computational cost increases. Similarly, the fewer the number of sentences masked from the document 101 (i.e., m), the more accurately the sentence weight represented by the weight (J) 195 of each sentence J 193, and the computational cost increases. In contrast, either or a combination of a smaller N and a larger m results in sentence weights that are noisier and less accurate than sentence weights produced by a larger number of variants and a smaller number of sentences masked by the variants. The number of variants (N) and the number of masked sentences in each variant (m) are hyperparameters that cannot be tuned through training, but affect the performance of the sentence evaluation system 100, which can be empirically configured.

[0050] In certain embodiments where individual sentence weight accuracy is more important than other application tasks, the sentence evaluation system 100 may determine the number of variants (N) and the number of masked sentences (m) in each variant based on the tuning of a grid search method that checks every available combination by using a small-sized validation dataset that is also set aside from the labeled dataset 105. In the same embodiment, the sentence evaluation system 100 divides the labeled dataset 105 into 80:10:10 by the corresponding number of data instances to be used as a training dataset, a validation dataset, and a test dataset, respectively.

[0051] In block 230, the sentence evaluation system 100 uses the trained prediction model 110 to respectively predict the categories of prediction (D) 131, prediction (V_1) 137 to prediction (V_N) 139 for the inputs of document D 101 and variants 125 (including V_1 127 to V_N 129). As described above, the trained prediction model 110 predicts the category and the confidence score corresponding to the category prediction based on the input (for D 101 and inputs of V_1 127 to V_N 129 (expressed as prediction (input)). Then, the sentence evaluation system 100 proceeds to 240.

[0052] The sentence evaluation system 100 generates predictions based on the input of the document 101 and the variants (i.e., prediction (D) 131, prediction (V_1) 137 to prediction (V_N) 139) to compare the confidence score of the prediction based on each variant (prediction (V_1) 137 to prediction (V_N) 138) with the confidence score of the prediction based on the document. Based on this comparison, the sentence evaluation system 100 can determine any difference in the corresponding confidence score caused by the exclusion of the sentence in each of the variants 125 present in the document 101, which will be the basis for determining the prediction weight of the individual sentence in the document 101, as shown in blocks 240 and Figure 3 shown.

[0053] In some embodiments, the sentence evaluation system 100 performs prediction (D) 131 and prediction (V_1) 137 to prediction (V_N) 139 simultaneously, because the inputs of D 101 and V_1 127 to V_N 129 are independent after being generated. In other embodiments, after the trained prediction model 110 is ready in block 210, the sentence evaluation system 100 generates prediction (D) 131 and prediction (V_1) 137 to prediction (V_N) 139 in any order or in any concurrent manner to improve both computational efficiency and processing time performance.

[0054] In block 240, the sentence evaluation system 100, using the sentence weighting and document visualization process 150, uses the trained prediction model 110 to evaluate the predictive contribution of each sentence in the document 101 to the prediction made based on the input of the document 101 by comparing the confidence scores of the predictions (V_1) 137 through the predictions (V_N) 139 based on the variants 125 with the confidence scores of the predictions (D) 131 based on the document D 101. The corresponding weights of the sentences 103 of the document 101 as calculated in block 240 will result in a weight (J) 195 for the sentence J 193, as shown in the sentence weight labeled document (D') 109, which is the output of the sentence evaluation system 100. Figure 3 The detailed operation of the sentence weighting as performed in block 240 is presented in and the corresponding description. Then, the sentence evaluation system 100 proceeds to 250.

[0055] In block 250, the sentence evaluation system 100 generates a sentence weight labeled document (D') 109 that visualizes the sentence 103 based on the corresponding weight of each sentence in the document D 101, the weight (J) 195 of the sentence J 193, as described above. The sentence evaluation system 100 then terminates the evaluation of the sentence 103 in the document D 101.

[0056] In some embodiments, the sentence evaluation system 100 turns on or off sentence weight tagging for each sentence J 193 in the document (D') 109 based on comparing the value of the weight (J) 195 to a tag weight threshold (e.g., 0.5), such that any sentence with a weight greater than 0.5 will be presented in D'109, but others will be masked. As with the number (N) of variants 125 or the number of masked sentences in each of the variants 125 (m as described above), the tag weight threshold can be empirically tuned based on a validation dataset that is relatively small relative to the training dataset. In other embodiments, the sentence evaluation system 100 will present each sentence of D'109 as a heat map based on two or more weight value ranges by distinguishing the sentences based on corresponding weights relative to font size, text effects, font color, and background color, and combinations thereof, wherein the color indicates a color effect, including but not limited to color gradients, grayscale, tagging, or masking of the sentence text by setting the same or different colors, and wherein the text effects of the sentence include but are not limited to underline, bold, italic, shadow, animation, and any available effects. The sentence evaluation system 100 presents the above-mentioned visual effect to the document D′ 109 marked with sentence weights, so that sentences with larger prediction weights in the document 101 are more visible than sentences with smaller prediction weights.

[0057] Regarding the output of the statement evaluation system 100 as indicated in block 250, Figure 4A document D 101 and corresponding examples of a sentence weight labeled document D'109 are shown. A first document 401 is an example of document D 101. The first document 401 includes 9 sentences, represented as S_1 411, S_2 412, S_3 413, S_4 414, S_5 415, S_6 416, S_7 417, S_8 418, and S_9 419, which are visually unified within the first document 401. A second document 409 is an example of a sentence weight labeled document D'109. The second document 409 includes the same 9 sentences as the first document 401, represented as S_1 491, S_2 492, S_3 493, S_4 494, S_5 495, S_6 496, S_7 497, S_8 498 and S_9 499, which are represented in four visually different forms, as represented by: sentences S_1491, S_2 491, S_6 496 and S_7 497 and S_8 498 without different labels that may correspond to the minimum weight value range, sentences S_3 493 and S_4 494 with heavy boundaries that may correspond to the highest weight value range, sentence S_5 495 and sentence S_9 499 corresponding to the corresponding weight value range in the middle of the visualization scale.

[0058] Figure 3 Shows how to Figure 2 A detailed example of weighting statements in block 240 of FIG.

[0059] In block 310, the sentence evaluation system 100 obtains the document D 101 from the document repository 170, obtains the variants 125 denoted as V and the corresponding sentence graph corresponding to each of the variants 125 from block 220, and obtains the confidence score of the prediction based on D 101 and V 125 from block 230. Then, the sentence evaluation system 100 proceeds to 320.

[0060] For each statement in document D 101 (denoted as statement J 193 or J when used as a parameter) execute Figure 3 195. After executing blocks 320 to 350 (as a unit) for all the statements in document D 101, the statement evaluation system 100 proceeds to 360. In the case of sufficient computing resources, the units of blocks 320 to 350 for each statement in document 101 may be executed simultaneously for all the statements in document 101, with the number of execution threads being s. Alternatively, the statement evaluation system 100 may process each statement in document 101 one by one sequentially.

[0061] In block 320, the statement evaluation system 100 selects all variants of the exclusion statement J 193, indicating the current statement for which the weight is being determined. As noted, because each variant corresponds to a statement graph that identifies which statement is present or absent in the variant, the statement evaluation system 100 can complete the selection of the exclusion statement J 193 variant by scanning the N statement graphs that correspond to each of the N variants 125, respectively.

[0062] Sentence J 193 in document D' 109 labeled with sentence weights represents sentence 103 in document D 101, and except for the visual representation, sentence 103 and sentence J 193 are identical. Sentence J 193 is labeled with a sentence index, i.e., J, because sentence J 193 is used as a parameter of a weight function to represent the predicted weight of sentence J 193, as indicated by weight (J) 195. Then, the sentence evaluation system 100 proceeds to 330.

[0063] For each variant selected in block 320 that does not include the current statement (represented as statement J 193), execute Figure 3 Block 330 of excluding each variant of the current statement may be performed simultaneously for all variants selected from block 320, where computing resources are sufficient. Alternatively, the statement evaluation system 100 may sequentially process each variant excluding the current statement one by one.

[0064] In box 330, the sentence evaluation system 100 determines the difference between the confidence score of the prediction based on D 101 and the confidence score of the prediction based on the current variant I, represented as (P(D)-P(I)). The difference in confidence scores (P(D)-P(I)) may represent the reduced confidence caused by excluding m statements (including the current statement). Therefore, when the number N of variants 125 is large enough and the number m of statements excluded from the document 101 is small enough, the sentence evaluation system 100 can measure the predictive contribution of individual statements fairly reliably, as described above. The sentence evaluation system 100 then either continues to the next variant in sequential processing or continues to box 340 in parallel processing, where all variants are processed simultaneously.

[0065] In block 340 , the sentence evaluation system 100 adds all the confidence score differences (P(D)-P(I)) from block 330 for all variants determined from block 320 , and divides the sum of all the confidence score differences (P(D)-P(I)) by the number of all variants, N. The sentence evaluation system 100 then proceeds to 350 .

[0066] In block 340, it should be noted that the number of variants from block 320 that are determined to exclude the current statement, statement J, will be less than or equal to N, the number of all variants of document D 101. It should also be noted that the confidence score difference (P(D)-P(I)) reflects the collective effect of the m excluded statements, not just the current statement, statement J. The result of block 340 indicates how much the probability (i.e., confidence score) of the predictions made when statement J was not present in the input document 101 has been reduced on average, and conversely, the average predicted contribution of statement J toward the predictions made by the input including statement J.

[0067] In block 350, the statement evaluation system 100 assigns the value generated from block 340 as a predicted weight for the current statement, statement J, represented as weight (J) 195. The statement evaluation system 100 then either proceeds to the next statement in sequential processing or proceeds to block 360 in parallel processing, where all statements are processed simultaneously.

[0068] In block 360, the sentence evaluation system 100 generates predicted weights for all sentences in the document D 101, denoted as weight(J) for J=[1,s], where J is a closed interval from 1 to s, including 1 and s, where s indicates the number of all sentences in the document D 101. The sentence evaluation system 100 then proceeds to Figure 2 Box 250.

[0069] Figure 5 An optical disk 80 is shown as an example of a computer-readable medium including data.

[0070] The methods operating in the statement evaluation system 100 may be implemented on a computer as a computer-implemented method, dedicated hardware, firmware, or a combination thereof. Figure 5 As illustrated, computer instructions, such as executable code, may be stored on a computer readable medium 80, for example, in the form of a series 81 of machine-readable physical indicia and / or as a series of elements having different electrical, such as magnetic or optical properties or values. The medium 80 may be transient or non-transient. Examples of computer readable media include memory devices, optical storage devices, integrated circuits, servers, online software, etc.

[0071] Examples, embodiments or optional features, whether or not indicated as non-limiting, should not be construed as limiting the disclosure as claimed.

[0072] While the disclosure has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive; the disclosure is not limited to the disclosed embodiments.

[0073] For example, the present disclosure may be operated in an embodiment, wherein a computer-implemented method includes: preparing a trained prediction model by: selecting a prediction model based on performance of the prediction model, training the prediction model using a labeled dataset in an application task compatible with an application task of a document repository, and verifying that the performance of the prediction model is greater than a confidence threshold by using a test dataset that has not been used in training in the labeled dataset, combining the validation dataset that has not been used in training in the labeled dataset with the prediction model by tuning the number of variants of the document (denoted as N) and a predefined number of sentences (denoted as m) to be excluded from the document to make each of the variants by using a grid search method relative to a combination of N and m for all available combinations, and selecting each of the multiple variants that does not include the current sentence. variants; calculating the difference between the predicted confidence scores from the selections based on the document and the confidence scores based on the first variant in each variant; iterating the step of calculating the difference for each variant from the selection for the document; adding the corresponding differences from the calculations; dividing the result from the addition by the number of variants from the document made, and combining the degree of variation of the visual effect for the document based on the application task configuration, the degree of variation including two or more degrees of representation of the sentences of the document, the visual effect is selected from the group including the following items: a heat map of the sentences; and turning the sentences on or off to manipulate the font size, text effects, font color and background color relative to the sentences according to the weight of each of the sentences in the document, and combinations thereof, thereby enhancing the visual impression of the sentences with more predictive weights.

[0074] It should be understood that all combinations of the above concepts and additional concepts discussed in more detail below (as long as these concepts are not mutually inconsistent) are considered part of the inventive subject matter disclosed herein. In particular, all combinations of the claimed subject matter appearing at the end of this disclosure are considered part of the inventive subject matter disclosed herein. It should also be understood that terms explicitly used herein, which may also appear in any disclosure incorporated by reference, should be given the meaning most consistent with the specific concepts disclosed herein.

[0075] All definitions, as defined and used herein, should be understood to control over dictionary definitions, definitions in documents incorporated by reference, and / or ordinary meanings of the defined terms.

[0076] Unless expressly indicated to the contrary, the terms "a" and "an" as used in the specification and claims herein should be understood to mean "at least one."

[0077] As used in the specification and claims herein, the phrase "and / or" should be understood to mean "either or both" of the elements so combined, i.e., elements that are present in combination in some cases and separately in other cases. Multiple elements listed with "and / or" should be interpreted in the same manner, i.e., "one or more" of the elements so combined. In addition to the elements specifically identified by the "and / or" clause, other elements may optionally be present, whether related or unrelated to those elements specifically identified.

[0078] "Or" as used in the specification and claims herein should be understood to have the same meaning as "and / or" as defined above. For example, when separating items in a list, "or" or "and / or" should be interpreted as inclusive, that is, including at least one, but also including more than one element of a plurality of elements or a list of elements and optionally additional unlisted items. Only terms that clearly indicate the opposite, such as "only one of..." or "exactly one of...", or, when used in the claims, "consisting of..." will refer to including exactly one element of a plurality of elements or a list of elements. Generally, the term "or" as used herein should be interpreted as indicating an exclusive alternative (i.e., "one or the other but not two") only when it is preceded by an exclusive term (e.g., "any one of...", "one of...", "only one of...", or "exactly one of...").

[0079] The phrase "at least one" as used in the specification and claims herein referring to a list of one or more elements should be understood to mean at least one element selected from any one or more elements in the list of elements, but not necessarily including at least one element of each and every element specifically listed in the list of elements, and not excluding any combination of elements in the list of elements. This definition also allows that elements may optionally be present in addition to the elements specifically identified in the list of elements to which the phrase "at least one" refers, whether related or unrelated to those elements specifically identified.

[0080] In the claims and the preceding description, all transitional phrases, such as "comprises," "comprising," "carrying," "having," "containing," "involving," "holding," "including," etc., should be understood as open-ended, i.e., meaning including but not limited to. Only the transitional phrases "consisting of" and "consisting essentially of" should be closed or semi-closed transitional phrases, respectively.

[0081] It should also be understood that in any method claimed herein that includes multiple steps or actions, the order of the steps or actions of the method is not necessarily limited to the order in which the steps or actions of the method are described unless explicitly stated to the contrary.

[0082] The above examples of the described subject matter can be implemented in any of a variety of ways. For example, some aspects can be implemented using hardware, software, or a combination thereof. When any aspect is implemented at least in part in software, the software code can be executed on any suitable processor or set of processors, whether provided in a single device or computer or distributed among multiple devices / computers.

[0083] The present disclosure may be implemented as a system, method and / or computer program product at any possible level of technical detail integration. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon to cause a processor to perform aspects of the present disclosure.

[0084] Computer readable storage medium can be a tangible device that can maintain and store instructions for use by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage medium includes the following: a portable computer floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanical encoding device (such as a punch card or a pull-up structure in a groove with instructions recorded thereon) and any suitable combination of the foregoing. As used herein, a computer readable storage medium will not be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse passing through an optical fiber cable) or an electrical signal transmitted by wiring.

[0085] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in the corresponding computing / processing device.

[0086] The computer-readable program instructions for performing the operations of the present disclosure may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or object code written in any combination of either source code or in one or more programming languages ​​(including object-oriented programming languages ​​(such as Smalltalk, C++, etc.) and procedural programming languages ​​(such as "C" programming language or similar programming languages)). The computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server as a stand-alone software package. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or a connection may be made to an external computer (e.g., via the Internet using an Internet service provider). In some examples, electronic circuits including, for example, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) may execute computer-readable program instructions by utilizing state information of the computer-readable program instructions to personalize the electronic circuits so as to perform various aspects of the present disclosure.

[0087] Various aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to examples of the present disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams and combinations of blocks in the flowchart illustrations and / or block diagrams can be implemented by computer-readable program instructions.

[0088] The computer program instructions may be provided to a processor of a special-purpose computer or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device create a module for implementing the functions / actions specified in the flowchart and / or one or more block diagram blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium, which may direct a computer, a programmable data processing device, and / or other equipment to operate in a particular manner, such that the computer-readable storage medium having the instructions stored therein includes an article of manufacture containing instructions for implementing aspects of the functions / actions specified in the flowchart and / or block diagram or block.

[0089] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operating steps to be executed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in the flowchart and / or one or more block diagram blocks.

[0090] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functions and operations of possible implementations of the systems, methods and computer program products according to various examples of the present disclosure. In this respect, each frame in the flowchart or block diagram can represent a module, segment or part of an instruction, which includes one or more executable instructions for implementing (one or more) specified logical functions. In some alternative embodiments, the functions indicated in the frame can occur out of the order indicated in the accompanying drawings. For example, the two frames shown in succession can actually be executed substantially simultaneously, or the frames can sometimes be executed in reverse order, depending on the functionality involved. It will also be noted that each frame and the combination of frames in the frame diagram and / or the flow chart diagram can be implemented by a system based on dedicated hardware that performs a specified function or action or performs a combination of dedicated hardware and computer instructions.

[0091] Other implementations are within the scope of the following claims and other claims to which the applicant may be entitled.

[0092] Although several inventive embodiments have been described and illustrated herein, it will be readily apparent to those of ordinary skill in the art that various other modules and / or structures for performing functions and / or obtaining results and / or one or more of the advantages described herein will be considered to be within the scope of the inventive embodiments described herein, and each of such variations and / or modifications is considered to be within the scope of the inventive embodiments described herein. More generally, it will be readily understood by those skilled in the art that all parameters, dimensions, materials, and configurations described herein are intended to be exemplary, and that actual parameters, dimensions, materials, and / or configurations will depend on one or more specific applications using the invention teachings. Those skilled in the art will recognize or be able to determine many equivalents of the specific inventive embodiments described herein using experimental means that do not exceed conventional means. Therefore, it should be understood that the foregoing embodiments are presented only by way of example, and within the scope of the claims and their equivalents, the inventive embodiments may be practiced in a manner different from that specifically described and claimed. The inventive embodiments of the present disclosure relate to each individual feature, system, article, material, kit, and / or method described herein. In addition, if such features, systems, articles, materials, kits, and / or methods do not contradict each other, any combination of two or more such features, systems, articles, materials, kits, and / or methods is included within the scope of the invention of the present disclosure.

Claims

1. A computer-implemented method (200), comprising: Obtaining (210) a document (101) from a document repository (170) by one or more processors, the document comprising a plurality of sentences (103); generating (220), by the one or more processors, a plurality of variations (125) of the document by excluding a predefined number of statements from the document; making (230), by the one or more processors, predictions (131, 137, 139), respectively, based on the document and each of the variants by using a trained prediction model (110), the trained prediction model providing a confidence score for each of the predictions, the confidence score indicating a probability that the prediction is correct based on the input; determining (240), by the one or more processors, weights of statements for all statements in the document by using the confidence scores for the predictions based on the document and each of the variants, the weights of the statements indicating an average contribution of the statements to the confidence scores for the predictions based on the document; and The document is presented (250) by the one or more processors via a user interface and a video output device, the document having different degrees of visual effects (109) determined based on the corresponding weights of the sentences in the document, the different degrees of the visual effects being pre-configured for the document.

2. The computer-implemented method of claim 1 , further comprising: The trained prediction model (110) is prepared by selecting the prediction model based on its performance, training the prediction model using a labeled dataset (105) in an application task compatible with the application task of the document repository, and verifying that the performance of the prediction model is greater than a confidence threshold by using a test dataset in the labeled dataset that has not been used in the training.

3. The computer-implemented method (200) of claim 1, further comprising: Based on a validation dataset in a labeled dataset (105) that has not been used in training the trained predictive model (110), the corresponding accuracy of the weights of the statements for all statements in the document (220) are improved by tuning the number of variants of the document (120), denoted as N, and a predefined number of statements, denoted as m, to be excluded from the document to make each of the variants by using a grid search method on combinations of N and m for all available combinations.

4. The computer-implemented method (200) of claim 1, said determining comprising: selecting each variation among the plurality of variations that does not include the current statement (320); calculating a difference between a confidence score based on a prediction of a first variant from each variant of the selection and the confidence score based on the prediction of the document (330); iteratively calculating said difference with said document for each variant from said selection; summing corresponding differences from the calculations (340); dividing the result from said adding by the number of said variations from said making of said document (340); and The result from the division is assigned as the weight of the current statement (350).

5. The computer-implemented method (200) of claim 1, said determining comprising: For all sentences in the document (360), iterate the following steps: selecting each variation among the plurality of variations that does not include the current statement (320); calculating a respective difference between a respective confidence score based on a prediction for each variant from the selection and the confidence score based on the prediction for the document (330); adding the corresponding differences from the calculations (340); dividing the result from said adding by the number of said variations from said making of said document (340); and The result from the division is assigned as the weight of the current statement (350).

6. The computer-implemented method of claim 1 , wherein the determining comprises: The following steps are performed simultaneously for all sentences in the document (310, 360): selecting each variation among the plurality of variations that does not include the current statement (320); calculating a respective difference between a respective confidence score based on a prediction for each variant from the selection and the confidence score based on the prediction for the document (330); adding the corresponding differences from the calculations (340); dividing the result from said adding by the number of said variations from said making of said document (340); and The result from the division is assigned as the weight of the current statement (350).

7. The computer-implemented method of claim 1 , wherein presenting comprises: configuring the different degrees of the visual effect for the document based on the application task (150, 250), the different degrees comprising two or more degrees of representation of the sentence in the document, the visual effect being selected from the group consisting of: a heat map of the sentence; and turning the sentences on or off to manipulate font size, text effects, font color and background color, and combinations thereof, with respect to the sentences according to the weight of each of the sentences in the document, thereby enhancing the visual impression of the sentences with a more predictive weight.

8. A system (100) comprising a memory, one or more processors in communication with the memory, and program instructions, the program instructions being executable by the one or more processors via the memory, the program instructions being configured to: Obtaining a document (101) from a document repository (170), the document comprising a plurality of sentences (210); generating a plurality of variants (125) of the document by excluding a predefined number of statements from the document (220); making predictions based on the document and each of the variants, respectively, using a trained prediction model (110), the trained prediction model providing a confidence score for each of the predictions, the confidence score indicating a probability that the prediction based on the input is correct; determining weights of sentences for all sentences in the document by using the confidence scores for the predictions based on the document and each of the variants, the weights of the sentences indicating an average contribution of the sentences to the confidence scores for the predictions based on the document (240); and The document is presented via a user interface and a video output device, the document having different degrees of visual effects determined based on the respective weights of the sentences in the document, the different degrees of visual effects being pre-configured for the document (150, 250).

9. The system (100) according to claim 8, wherein: The program instructions executable by the one or more processors via the memory are further configured to: The trained prediction model (110) is prepared by selecting the prediction model based on its performance, training the prediction model using a labeled dataset (105) in an application task compatible with the application task of the document repository, and verifying that the performance of the prediction model is greater than a confidence threshold by using a test dataset in the labeled dataset that has not been used for the training.

10. The system (100) according to claim 8, wherein: The program instructions executable by the one or more processors via the memory are further configured to: The number of variants of the document (120), denoted as N, and a predefined number of sentences, denoted as m, to be excluded from the document to make each of the variants are tuned based on a validation dataset in a labeled dataset (105) that has not been used in training the trained prediction model (110) to improve the corresponding accuracy of the weights of the sentences for all sentences in the document by using a grid search method on combinations of N and m for all available combinations.

11. The system (100) of claim 8, wherein: The program instructions executable by the one or more processors via the memory are further configured to: selecting each variation among the plurality of variations that does not include the current statement (320); calculating a difference between a confidence score of a prediction based on a first variant of each variant that has been previously selected and the confidence score of the prediction based on the document (330); iterating said instructions to calculate said difference between each variant that has been previously selected and said document; Adding the corresponding differences that have been previously calculated (340); dividing the result from adding the corresponding differences by the number of variations of the document made (340); and A result of dividing the sum of the corresponding differences by the number of the variants of the document is assigned as a weight of the current sentence (350).

12. The system (100) of claim 8, wherein: The program instructions executable by the one or more processors via the memory are further configured to: setting values ​​of the different degrees of the visual effect for the document based on the application task (150, 250), the different degrees comprising two or more degrees of representation of the sentence in the document, the visual effect selected from the group consisting of: a heat map of the sentence; and turning the sentences on or off to manipulate font size, text effects, font color and background color, and combinations thereof relative to the sentences according to the weight of each of the sentences in the document, thereby enhancing the visual impression of the sentences with a more predictive weight.

13. A computer program product (80) comprising data (81) representing program instructions (200) executable by one or more processors via a memory, the program instructions being configured to: Obtaining a document from a document repository (210), the document comprising a plurality of sentences; generating a plurality of variations of the document (220) by excluding a predefined number of statements from the document; making predictions based on the document and each of the variants (230), respectively, using a trained prediction model (110), the trained prediction model providing a confidence score for each of the predictions, the confidence score indicating a probability that the prediction based on the input is correct; determining weights of sentences for all sentences in the document (240, 300) by using the confidence scores for the predictions based on the document and each of the variants, the weights of the sentences indicating an average contribution of the sentences to the confidence scores for the predictions based on the document; and The document is presented via a user interface and a video output device, the document having different degrees of visual effects determined based on the respective weights of the sentences in the document (250), the different degrees of the visual effects being pre-configured for the document.

14. The computer program product (80, 81) according to claim 13, wherein: The program instructions (200) executable by the one or more processors via the memory are further configured to: selecting each variation among the plurality of variations that does not include the current statement (320); calculating a difference between a confidence score of a prediction based on a first variant of each selected variant and the confidence score of the prediction based on the document (330); iterating the instructions to calculate the difference between each selected variant and the document; adding the calculated corresponding differences (340); dividing the result from summing the corresponding differences by the number of variations of the document made (340); and A result of dividing the sum of the corresponding differences by the number of the variants of the document is assigned as the weight of the current sentence (350).

15. The computer program product (80, 81) according to claim 13, wherein: The program instructions (200) executable by the one or more processors via the memory are further configured to: setting values ​​of the different degrees of visual effects for the document based on the application task (150, 250), the different degrees comprising two or more degrees of representation of the sentence in the document, the visual effect selected from the group consisting of: a heat map of the sentence; and turning the sentences on or off to manipulate font size, text effects, font color and background color, and combinations thereof relative to the sentences according to the weight of each of the sentences in the document, thereby enhancing the visual impression of the sentences with a more predictive weight.