Target text processing method
Through the method of prioritizing judgment and extracting priority labels, the problem of heavy workload in target text processing is solved, and the target text accuracy judgment process is realized to reduce the workload while ensuring accuracy.
Patent Information
- Application Number
- CN202410474791.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-19
AI Technical Summary
When processing target text, it is difficult for the existing technology to reduce the workload while ensuring accuracy. Especially when the number of target texts is large, how to balance accuracy and workload is an urgent problem that needs to be solved.
By prioritizing and extracting priority tags, the workload in the accuracy judgment process of the target text is reduced. The specific steps include obtaining the target text and its tags, initializing variables, judging whether the tags can be used for accuracy judgment, and based on Tags extract samples from the target text for accuracy evaluation until a tag that can be used for judgment is found or the maximum number of tags is reached.
It effectively reduces the workload of the target text accuracy judgment process while ensuring accuracy. By giving priority to using tags that can judge the accuracy for extraction, it ensures both accuracy and workload.
Smart Images

Figure CN118535676A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method for processing a target text. Background Art
[0002] When the initial text stored in the database is processed into the target text for storage, the accuracy of the target text must be judged, that is, the consistency between the target text and the initial text must be judged. The higher the consistency between the target text and the initial text, the higher the accuracy of the target text; the lower the consistency between the target text and the initial text, the lower the accuracy of the target text. However, the number of target texts is often large. If the accuracy of the target text is judged by obtaining the accuracy of all target texts, the corresponding workload is too large. How to balance the accuracy of the target text obtained and the workload of the process of obtaining the accuracy of the target text is an urgent problem to be solved. Summary of the invention
[0003] The object of the present invention is to provide a method for processing a target text, which is used to reduce the workload of the process of obtaining the accuracy of the target text as much as possible under the premise of ensuring the accuracy of the obtained target text.
[0004] According to the present invention, a method for processing a target text is characterized by comprising the following steps:
[0005] S100, obtaining target text A, A={a1, a2, …, a i ,…,a n}, a i is the i-th target text, the value range of i is 1 to n, and n is the number of target texts; the target text is obtained by processing the initial text.
[0006] S200, obtain the label B of the target text, B={b1,b2,…,b i ,…,b n}, b i is a i Tags, b i =(b i,1 ,b i,2 ,…,b i,j ,…,b i,m ), b i,j is a i The jth label of b i,j has a higher priority than b i,j+1 The priority of j is in the range of 1 to m, where m is the number of preset tags.
[0007] S300: Initialize a first variable k to 1.
[0008] S400. Determine whether the k-th tag of the target text can be used to judge the accuracy rate of A.
[0009] S500. If the k-th tag of the target text cannot be used to judge the accuracy rate of A and k < m, then k = k + 1, and repeat S400 until the k-th tag of the target text can be used to judge the accuracy rate of A or k = m.
[0010] S600. If the k-th tag of the target text can be used to judge the accuracy rate of A, then extract the target text from the n target texts according to the k-th tag of the target text to judge the accuracy rate of A.
[0011] The present invention has at least the following beneficial effects:
[0012] In the present invention, the number of target texts is n, and each of the n target texts corresponds to m tags. Among them, the priority of the first tag is higher than that of the second tag, the priority of the second tag is higher than that of the third tag, and so on. The present invention first judges whether the first tag can be used to judge the accuracy rate of the n target texts. If it can, then judge the accuracy rate of the n target texts according to the first tag. If not, then judge whether the second tag can be used to judge the accuracy rate of the n target texts. If the second tag can, then judge the accuracy rate of the n target texts according to the second tag. If not, then judge whether the third tag can be used to judge the accuracy rate of the n target texts. And so on, until one of the tags can be used to judge the accuracy rate of the n target texts or none of the m tags can be used to judge the accuracy rate of the n target texts. In the case where one of the tags can be used to judge the accuracy rate of the n target texts, extract the target text from the n target texts according to this tag to judge the accuracy rate of the n target texts. Since the number of extractions is less than n, the present invention reduces the workload of the process of obtaining the accuracy rate of the target text. And since the present invention extracts the target text according to the tag that can be used to judge the accuracy rate of the n target texts, the present invention can also ensure the accuracy of determining the accuracy rate of the n target texts based on the extracted target text, thereby achieving the purpose of taking into account both the accuracy of the obtained accuracy rate of the target text and the workload of the process of obtaining the accuracy rate of the target text. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0014] Figure 1A flowchart of a method for processing a target text provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0016] According to the present invention, a method for processing a target text is provided, such as Figure 1 As shown, including:
[0017] S100, obtaining target text A, A={a1, a2, …, a i ,…,a n}, a i is the i-th target text, the value range of i is 1 to n, and n is the number of target texts; the target text is obtained by processing the initial text.
[0018] In this embodiment, the target text and the initial text are both known texts, and the target text is obtained by processing the initial text. The purpose of this embodiment includes determining the accuracy of the target text, that is, determining the consistency between the target text and the initial text.
[0019] As a specific implementation, the initial text is the patient's medical data stored in the first database, and the target text is the patient's medical data stored in the second database. The patient's medical data stored in the second database is obtained by parsing the patient's medical data stored in the first database. Optionally, the parsing process includes natural language processing (NLP) and regularization processing.
[0020] S200, obtain the label B of the target text, B={b1,b2,…,b i ,…,b n}, b i is a i Tags, b i =(b i,1 ,b i,2 ,…,b i,j ,…,b i,m ), b i,j is a i The jth label of b i,j has a higher priority than b i,j+1 The priority of j is in the range of 1 to m, where m is the number of preset tags.
[0021] Optional, b i,jThe priority of b is the manually preset priority. i,j The higher the priority of b i,j In b i The closer the position is to the front.
[0022] As a specific implementation, the target text is the patient's medical data, and the preset labels include the patient's gender, department and medical time, etc. The medical data includes the patient's name, age, department, medical time, medical medication information and examination information, etc.
[0023] S300: Initialize a first variable k to 1.
[0024] S400, determining whether the kth label of the target text can be used to determine the accuracy of A.
[0025] Optionally, S400 includes:
[0026] S410: extract q1 target texts according to the kth label of the target text and append them to the first text set H k,1 , q1 is the preset first extraction quantity, H k,1 is initialized to an empty set.
[0027] Optionally, q1 is an empirical value, or q1 = z 2 ×(0.5) 2 / (w1) 2 , z is the quantile corresponding to the preset confidence level, w1 is the preset first sampling error; when the preset confidence level is 95%, z=1.96; when w1=10%, q1=96.
[0028] Optionally, S410 includes:
[0029] S411, divide the n target texts according to the kth label of the target text to obtain a division result G, G = {g1, g2, ..., g x ,…,g y}, g x is the xth type of target text obtained by division, the value range of x is 1 to y, and y is the number of classes of the target text obtained by division; different g x The k-th label corresponding to the target text is different, and the same g x The k-th label corresponding to the target text in is the same.
[0030] As a specific implementation method, the target text is the patient's medical data, and the kth label is the department. Then, after dividing the n target texts, each category of target text obtained belongs to the target text of a department, different categories of target texts belong to the target texts of different departments, and the same category of target texts belongs to the target text of the same department.
[0031] S412, traverse G, get g x The corresponding number of extractions f x , f x =round(q1×qua x / n),qua x g x The number of target texts included. round() is used to round the value to an integer.
[0032] S413, traverse G, from g x Extract f x Append the target text to H k,1 .
[0033] Those skilled in the art know that any extraction method in the prior art falls within the protection scope of the present invention. Optionally, the extraction method is random extraction or systematic extraction.
[0034] S414, if H k,1 The number of target texts included is q1, then H k,1 Determined as the final H k,1 ; if H k,1 If the number of target texts included is greater than q1, then k,1 Random deletion (∑ y x=1 f x )-q1 target text, and delete the H k,1 Determined as the final H k,1 ; if H k,1 If the number of target texts included is less than q1, then a random selection (∑ y x=1 f x )-q1 target text is appended to H k,1 , and the added H k,1 Determined as the final H k,1 ; The first remaining target text is the other target texts among the n target texts except the extracted target text.
[0035] In this embodiment, the first remaining target text is AH k,1 .
[0036] S420, obtain H k,1 The corresponding target text error rate l k,1 , l k,1 By comparing H k,1 The corresponding target text and initial text are obtained.
[0037] In this embodiment, each a i Includes several fields, lk,1 =u / u', u is H k,1 The total number of error fields in the corresponding target text, u' is H k,1 The total number of fields in the corresponding target text.
[0038] As a specific implementation, each a i It includes t fields, u'=t×q1, u is also H k,1 The sum of the number of error fields in each target text in H; optionally, manually determined H k,1 The number of error fields for each target text in .
[0039] S430, according to l k,1 Get the first confidence interval [l - k,1 ,l + k,1 ],l - k,1 According to l k,1 The error rate lower limit of A is obtained, l + k,1 According to l k,1 The obtained error rate upper limit of A.
[0040] In this embodiment, l - k,1 = l k,1 -z×((1-u' / u1)×s1 / u') 0.5 , l + k,1 = l k,1 +z×((1-u' / u1)×s1 / u') 0.5 , z is the quantile corresponding to the preset confidence level, s1 is H k,1 The corresponding error rate variance, u' is H k,1 The total number of fields of the corresponding target text, u1 is the total number of fields of n target texts.
[0041] In this embodiment, s1 is H k,1 The error rate of each target text in l k,1 The error rate of a target text is the ratio of the number of error fields in the target text to the total number of fields in the target text.
[0042] S440: extract q2 target texts according to the kth label of the target text and append them to the second text set H k,2 , q2 is the preset second extraction quantity, H k,2 is initialized to an empty set.
[0043] Optionally, q2 is an empirical value, and q2>q1; or, q2=z 2 × k,1 ×(1-l k,1 ) / (w2) 2 , w2 is the preset second sampling error, w2 <w1。
[0044] In this embodiment, q2 target texts are extracted according to the kth label of the target text and appended to the second text set H k,2 In the process, from g x Extract from and append to H k,2 The number of target texts is round(q2×qua x / n).
[0045] S450, get H k,2 The corresponding target text error rate l k,2 , l k,2 By comparing H k,2 The corresponding target text and initial text are obtained.
[0046] This embodiment obtains l k,2 The process of obtaining l is as follows: k,1 The process is similar and will not be described here.
[0047] S460, according to l k,2 Get the second confidence interval [l - k,2 ,l + k,2 ],l - k,2 According to l k,2 The error rate lower limit of A is obtained, l + k,2 According to l k,2 The obtained error rate upper limit of A.
[0048] In this embodiment, l - k,2 = l k,2 -z×((1-u2 / u1)×s2 / u2) 0.5 , l + k,2 = l k,2 +z×((1-u2 / u1)×s2 / u2) 0.5 , z is the quantile corresponding to the preset confidence level, s2 is H k,2 The corresponding error rate variance, u2 is H k,2 The total number of fields of the corresponding target text, u1 is the total number of fields of n target texts. In this embodiment, s2 is H k,2 The error rate of each target text in lk,2 The mean of the square of the difference. Optionally, H is determined manually. k,2 The number of error fields in each target text in H. The error rate of a certain target text is the ratio of the number of error fields in the target text to the total number of fields in the target text.
[0049] S470. According to [l - k,1 ,l + k,1 and [l - k,2 ,l + k,2 determine whether the k-th label of the target text can be used to judge the accuracy rate of A.
[0050] S500. If the k-th label of the target text cannot be used to judge the accuracy rate of A and k < m, then k = k + 1, and S400 is repeated until the k-th label of the target text can be used to judge the accuracy rate of A or k = m.
[0051] S600. If the k-th label of the target text can be used to judge the accuracy rate of A, then the accuracy rate of A is judged by extracting the target text from the n target texts according to the k-th label of the target text.
[0052] In this embodiment, S600 further includes: if k = m and the k-th label of the target text cannot be used to judge the accuracy rate of A, then q4 target texts are extracted from the n target texts by using a random sampling or systematic sampling method to judge the accuracy rate of A, where q4 is a preset fourth extraction quantity. As an optional specific implementation manner, q4 is an empirical value, q4 > q3 and q4 > v × n, where v is a preset proportionality coefficient.
[0053] As a first preferred specific implementation manner, S470 includes: if l - k,1 <l - k,2 and l + k,2 <l + k,1 , then it is judged that the k-th label of the target text can be used to judge the accuracy rate of A; otherwise, it is judged that the k-th label of the target text cannot be used to judge the accuracy rate of A. In the first preferred specific implementation manner, if the conditions of l - k,1 <l - k,2 and l + k,2 <l + k,1This means that the confidence interval obtained when stratified sampling is performed based on the k-th label does not narrow as the number of samples increases. It is determined that the k-th label cannot be used as a stratification factor for reference in stratified sampling. In this case, the k-th label of the target text cannot be used to determine the accuracy of A.
[0054] In a first preferred specific implementation, the accuracy of A is determined by extracting the target text from n target texts according to the kth label of the target text, including: if l - k,1 <l - k,2 , l + k,2 <l + k,1 And l + k,2 -l - k,2 ≤Δl, or l - k,1 <l - k,2 , l + k,2 <l + k,1 , l + k,2 -l - k,2 >Δl and (l + k,1 -l - k,1 -l + k,2 +l - k,2 ) / ((q2-q1)×η))<β, then 1-l + k,2 Determined as the accuracy of A; if l - k,1 <l - k,2 , l + k,2 <l + k,1 , l + k,2 -l - k,2 >Δl and (l + k,1 -l - k,1 -l + k,2 +l - k,2) / ((q2-q1)×η))≥β, then according to the kth label of the target text, target texts greater than q2 are extracted from the n target texts to determine the accuracy of A; Δl is the preset interval width, η is the preset difficulty coefficient for determining the accuracy of the target sample, 0<η<1, and β is the preset sampling loss threshold. The first preferred specific implementation method is to set l + k,1 -l - k,1 -l + k,2 +l - k,2 As the width reduction of the confidence interval corresponding to the second sampling, (q2-q1)×η is taken as the workload of the second sampling, and (l + k,1 -l - k,1 -l + k,2 +l - k,2 ) / ((q2-q1)×η)) to measure the loss of the second sampling. If (l + k,1 -l - k,1 -l + k,2 +l - k,2 ) / ((q2-q1)×η))<β, then it is determined that the loss of continuing sampling is large, so no more sampling is done, and 1-l + k,2 Determine the accuracy of A; if (l + k,1 -l - k,1 -l + k,2 +l - k,2 ) / ((q2-q1)×η))≥β, then it is determined that the loss of continuing sampling is small, and in l + k,2 -l - k,2 >Δl, continue sampling; this preferred specific implementation achieves the purpose of taking into account both the accuracy of the final accuracy of A and the workload of continued sampling.
[0055] As a second preferred specific implementation, S470 includes:
[0056] S471, extract q3 target texts according to the kth label of the target text and add them to the third text set H k,3 , q3 is the preset third extraction quantity, Hk,3 is initialized to an empty set.
[0057] Optionally, q3 is an empirical value, and q3>q2; or, q3=z 2 × k,2 ×(1-l k,2 ) / (w3) 2 , w3 is the preset third sampling error, w3 <w2。
[0058] In a second preferred embodiment, q3 target texts are extracted according to the kth label of the target text and appended to the third text set H k,3 In the process, from g x Extract from and append to H k,3 The number of target texts is round(q3×qua x / n).
[0059] S472, Get H k,3 The corresponding target text error rate l k,3 , l k,3 By comparing H k,3 The corresponding target text and initial text are obtained.
[0060] The second preferred specific implementation method obtains l k,3 The process of obtaining l is as follows: k,1 The process is similar and will not be described here.
[0061] S473, according to l k,3 Get the third confidence interval [l - k,3 ,l + k,3 ],l - k,3 According to l k,3 The error rate lower limit of A is obtained, l + k,3 According to l k,3 The obtained error rate upper limit of A.
[0062] In a second preferred embodiment, - k,3 = l k,3 -z×((1-u3 / u1)×s3 / u3) 0.5 , l + k,3 = l k,3 +z×((1-u3 / u1)×s3 / u3) 0.5 , z is the quantile corresponding to the preset confidence level, s3 is H k,3 The corresponding error rate variance, u3 is H k,3The total number of fields of the corresponding target text, u1 is the total number of fields of the n target texts. k,3 The error rate of each target text in l k,3 The mean of the squares of the differences, optional, determined manually H k,3 The error rate of a target text is the ratio of the number of error fields in the target text to the total number of fields in the target text.
[0063] S474, if l - k,1 <l - k,2 <l - k,3 And l + k,3 <l + k,2 <l + k,1 , then the kth label of the target text can be used to judge the accuracy of A; otherwise, the kth label of the target text cannot be used to judge the accuracy of A.
[0064] In a second preferred specific implementation, the accuracy of A is determined by extracting the target text from n target texts according to the kth label of the target text, including: if l - k,2 <l - k,3 , l + k,3 <l + k,2 And l + k,3 -l - k,3 ≤Δl, or l - k,2 <l - k,3 , l + k,3 <l + k,2 And l + k,3 -l - k,3 >Δl and Then 1-l + k,3 Determined as the accuracy of A; if l - k,2 <l - k,3 , l + k,3 <l +k,2 And l + k,3 -l - k,3 >Δl and Then, according to the kth label of the target text, target texts greater than q3 are extracted from the n target texts to determine the accuracy of A; Δl is the preset interval width, η is the preset difficulty coefficient for determining the accuracy of the target sample, 0<η<1, and β is the preset sampling loss threshold. The second preferred specific implementation method is to As the width reduction of the confidence interval corresponding to the third sampling, (q3-q2)×η is taken as the workload of the third sampling, through To measure the loss of the third sampling, if If it is determined that the loss of continuing sampling is large, no more sampling will be done, and 1-l + k,3 Determined as the accuracy of A; if It is determined that the loss of continuing sampling is small. + k,3 -l - k,3 >Δl, continue sampling; the second preferred specific implementation achieves the purpose of taking into account both the accuracy of the final A and the workload of continuing sampling.
[0065] In this embodiment, the number of target texts is n, and each of the n target texts corresponds to m labels, wherein the priority of the first label is higher than the priority of the second label, the priority of the second label is higher than the priority of the third label, and so on; in this embodiment, it is first determined whether the first label can be used to determine the accuracy of the n target texts. If so, the accuracy of the n target texts is determined according to the first label; if not, it is determined whether the second label can be used to determine the accuracy of the n target texts; if the second label is, the accuracy of the n target texts is determined according to the second label; if not, it is determined whether the third label can be used to determine the accuracy of the n target texts; and so on, until one label can be used to determine the accuracy of the n target texts or none of the m labels can be used to determine the accuracy of the n target texts. In this embodiment, when a certain label can be used to judge the accuracy of n target texts, the target text is extracted from the n target texts according to the label to judge the accuracy of the n target texts. Since the number of extractions is less than n, the workload of the process of obtaining the accuracy of the target text is reduced in this embodiment. Moreover, the target text is extracted according to the label that can be used to judge the accuracy of the n target texts. Therefore, the accuracy of determining the accuracy of the n target texts according to the extracted target text is also ensured in this embodiment, thereby achieving the purpose of taking into account both the accuracy of the acquired target text and the workload of the process of acquiring the accuracy of the target text.
[0066] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A method for processing a target text, characterized in that: It includes the following steps: S100, obtaining target text A, A={a1, a2, …, a i ,…,a n }, a i is the i-th target text, i ranges from 1 to n, and n is the number of target texts; the target text is obtained by processing the initial text; S200, obtain the label B of the target text, B={b1,b2,…,b i ,…,b n }, b i is a i Tags, b i =(b i,1 ,b i,2 ,…,b i,j ,…,b i,m ), b i,j is a i The jth label of b i,j has a higher priority than b i,j+1 The priority of j ranges from 1 to m, where m is the number of preset tags; S300, initialize the first variable k to 1; S400, determine whether the k-th tag of the target text can be used to judge the accuracy rate of A; S500, if the k-th tag of the target text cannot be used to judge the accuracy rate of A and k < m, then k = k + 1, repeat S400 until the k-th tag of the target text can be used to judge the accuracy rate of A or k = m; S600, if the k-th tag of the target text can be used to judge the accuracy rate of A, then extract the target text from the n target texts according to the k-th tag of the target text to judge the accuracy rate of A.
2. The target text processing method according to claim 1, characterized in that: S400 includes: S410: extract q1 target texts according to the kth label of the target text and append them to the first text set H k,1 , q1 is the preset first extraction quantity, H k,1 is initialized to an empty set; S420, obtain H k,1 The corresponding target text error rate l k,1 , l k,1 By comparing H k,1 The corresponding target text and initial text are obtained; S430, according to l k,1 Get the first confidence interval [l - k,1 ,l + k,1 ],l - k,1 According to l k,1 The error rate lower limit of A is obtained, l + k,1 According to l k,1 The error rate upper limit of A obtained; S440: extract q2 target texts according to the kth label of the target text and append them to the second text set H k,2 , q2 is the preset second extraction quantity, H k,2 is initialized to an empty set; S450, get H k,2 The corresponding target text error rate l k,2 , l k,2 By comparing H k,2 The corresponding target text and initial text are obtained; S460, according to l k,2 Get the second confidence interval [l - k,2 ,l + k,2 ],l - k,2 According to l k,2 The error rate lower limit of A is obtained, l + k,2 According to l k,2 The error rate upper limit of A obtained; S470, according to [l - k,1 ,l + k,1 ] and [l - k,2 ,l + k,2 ] Determine whether the kth label of the target text can be used to determine the accuracy of A.
3. The target text processing method according to claim 2, characterized in that: S470 includes: If l - k,1 <l - k,2 And l + k,2 <l + k,1 , then the kth label of the target text can be used to judge the accuracy of A; otherwise, the kth label of the target text cannot be used to judge the accuracy of A.
4. The method for processing target text according to claim 2, characterized in that: S470 includes: S471, extract q3 target texts according to the kth label of the target text and add them to the third text set H k,3 , q3 is the preset third extraction quantity, H k,3 is initialized to an empty set; S472, Get H k,3 The corresponding target text error rate l k,3 , l k,3 By comparing H k,3 The corresponding target text and initial text are obtained; S473, according to l k,3 Get the third confidence interval [l - k,3 ,l + k,3 ],l - k,3 According to l k,3 The error rate lower limit of A is obtained, l + k,3 According to l k,3 The error rate upper limit of A obtained; S474, if l - k,1 <l - k,2 <l - k,3 And l + k,3 <l + k,2 <l + k,1 , then the kth label of the target text can be used to judge the accuracy of A; otherwise, the kth label of the target text cannot be used to judge the accuracy of A.
5. The method for processing target text according to claim 2, characterized in that: Each i Includes several fields, l k,1 =u / u', u is H k,1 The total number of error fields in the corresponding target text, u' is H k,1 The total number of fields in the corresponding target text.
6. The method for processing target text according to claim 2, characterized in that: l - k,1 = l k,1 -z×((1-u' / u1)×s1 / u') 0.5 , l + k,1 = l k,1 +z×((1-u' / u1)×s1 / u') 0.5 , z is the quantile corresponding to the preset confidence level, s1 is H k,1 The corresponding error rate variance, u' is H k,1 The total number of fields of the corresponding target text, u1 is the total number of fields of n target texts.
7. The method for processing a target text according to claim 1, characterized in that: S600 further includes: if k = m and the k-th tag of the target text cannot be used to judge the accuracy rate of A, then use the random sampling or systematic sampling method to extract q4 target texts from the n target texts to judge the accuracy rate of A, where q4 is the preset fourth extraction quantity.
8. The method for processing target text according to claim 2, characterized in that: S410 includes: S411, divide the n target texts according to the kth label of the target text to obtain a division result G, G = {g1, g2, ..., g x ,…,g y }, g x is the xth type of target text obtained by division, the value range of x is 1 to y, and y is the number of classes of the target text obtained by division; different g x The k-th label corresponding to the target text is different, and the same g x The k-th label corresponding to the target text in is the same; S412, traverse G, get g x The corresponding number of extractions f x , f x =round(q1×qua x / n),qua x g x The number of target texts included, round() is rounded to the nearest integer; S413, traverse G, from g x Extract f x Append the target text to H k,1 ; S414, if H k,1 The number of target texts included is q1, then H k,1 Determined as the final H k,1 ; if H k,1 If the number of target texts included is greater than q1, then k,1 Random deletion (∑ y x=1 f x )-q1 target text, and delete the H k,1 Determined as the final H k,1 ; if H k,1 If the number of target texts included is less than q1, then a random selection (∑ y x=1 f x )-q1 target text is appended to H k,1 , and the added H k,1 Determined as the final H k,1 ; The first remaining target text is the other target texts among the n target texts except the extracted target text.
9. The method for processing target text according to claim 4, characterized in that:q3 > q2 > q1.
Citation Information
Patent Citations
A sampling and sampling data management system for massive amounts of data.
CN102262678A
Confidence level-based oil and gas resource quantity calculation method and system
CN113987416A
Method for training information extraction model, information extraction method and corresponding device
CN115718830A
Method for identifying cancer miRNA marker
CN117153261A
OSM building integrity evaluation method based on layered random sampling
CN117808359A
