A method, device, equipment and medium for obtaining target text labels

By calculating the initial text score and the number of key text tag coverages, combined with the importance of the text, the target text tags are filtered out, which solves the problem of insufficient reliability of tag screening in the existing technology and achieves more efficient text tag optimization.

CN118503434BActive Publication Date: 2024-09-20BEIJING RUIQI INFORMATION TECH CO LTD +3
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410966836.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-20
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

When the existing technology screens high-value text tags, the method is relatively simple, the reliability of high-value tag screening is insufficient, and it is difficult to effectively optimize the tag system.

Method used

By obtaining the intermediate information set of keywords of the initial text, the initial text score is calculated, and combined with the coverage quantity and importance of the key text tags on the initial text, the target text tags are screened out to improve the reliability and effectiveness of tag screening.

Benefits of technology

It improves the reliability and effectiveness of filtering target text tags, makes the tag filtering process more scientific and reasonable, can better reflect the importance of text, and improves the optimization effect of the tag system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503434B
    Figure CN118503434B
Patent Text Reader

Abstract

The present invention relates to the technical field of text label processing, and in particular to a method, device, equipment and medium for obtaining a target text label. The method comprises the following steps: firstly, obtaining an initial text score of each initial text according to the number of characters in the initial text and a keyword intermediate information set, then obtaining the number of initial texts corresponding to each key text label, obtaining a score of each key text label according to the above two, and when the score of the key text label is not less than a preset label score, determining the key text label as a target text label; it can be seen that the present invention can screen out the target text label in combination with the importance of the text and the usage of the key text label, so that the screened text labels are more reliable and effective, and thus have higher value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of text label processing, and in particular to a method, device, equipment and medium for acquiring a target text label. Background Art

[0002] As the application of big data becomes more and more extensive, the collected text data is growing exponentially. In order to facilitate the management of text data, text storage platforms usually build a label system for text classification and entity recognition. As a highly detailed description of a certain information subject, labels can free people from a large amount of redundant information, and can also summarize and classify data from various platforms.

[0003] To facilitate text analysis and processing, the labeling systems of different text storage platforms usually have their own set standards. Even for the same business, there will be different customized labels. The value of many labels in the labeling system varies. Therefore, it is crucial to select high-value labels from several labels to optimize the labeling system.

[0004] At present, when screening high-value tags, tags in the existing tag system are usually screened through a text database. For example, a patent document with application number "2022110849118" and name "A real estate industry tag system optimization method, system, device and storage medium" proposes a real estate industry tag system optimization method. Tags are screened according to tag optimization parameters and set tag optimization thresholds. When determining the tag optimization parameters, it is only extended based on the number of hits of the leaf node for the text. The screening direction is relatively single, and the reliability of high-value tag screening needs to be improved. Summary of the invention

[0005] In view of the above technical problems, the technical solution adopted by the present invention is:

[0006] According to a first aspect of the present invention, a method for obtaining a target text label is provided, the method comprising the following steps:

[0007] S100, obtaining an initial text score corresponding to each initial text according to each initial text among a plurality of pre-stored initial texts and a keyword intermediate information set pre-obtained from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters of the initial text keywords, and the number of characters of the intermediate text fragment between each two adjacent initial text keywords.

[0008] S200 , labeling each initial text based on a plurality of preset key text labels, and obtaining a plurality of initial texts corresponding to each key text label.

[0009] S300 , obtaining a second text tag score corresponding to each key text tag according to an initial text score corresponding to each initial text and a number of initial texts corresponding to each key text tag.

[0010] S400: When there is a second text tag whose score is not less than the preset tag score, a key text tag corresponding to the second text tag whose score is not less than the preset tag score is obtained as a target text tag.

[0011] According to a second aspect of the present invention, a device for acquiring a target text label is provided, the device comprising:

[0012] The first acquisition module is used to obtain the initial text score corresponding to each initial text based on each initial text in a plurality of pre-stored initial texts and a keyword intermediate information set pre-acquired from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters in the initial text keywords, and the number of characters in the intermediate text fragment between each two adjacent initial text keywords.

[0013] The second acquisition module is used to label each initial text based on a plurality of preset key text labels, and acquire a plurality of initial texts corresponding to each key text label.

[0014] The third acquisition module is used to acquire a second text tag score corresponding to each key text tag according to the initial text score corresponding to each initial text and a number of initial texts corresponding to each key text tag.

[0015] The fourth acquisition module is used to acquire a key text tag whose corresponding second text tag score is not less than the preset tag score as a target text tag when there is a second text tag score not less than the preset tag score.

[0016] According to a third aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for acquiring a target text label when executing the computer program.

[0017] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for obtaining a target text label is implemented.

[0018] Compared with the prior art, the present invention has obvious beneficial effects. By means of the above technical solution, the method for obtaining a target text label provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:

[0019] The present invention provides a method for obtaining a target text label. First, a corresponding keyword intermediate information set is obtained from each initial text, and an initial text score of each initial text is obtained according to the number of characters in the initial text and the keyword intermediate information set. Then, a key text label is used to label each initial text to obtain the number of initial texts covered by each key text label. The score of each key text label is obtained according to the initial text score of each initial text and the number of initial texts corresponding to each key text label. When calculating the score, the importance of different texts is taken into consideration on the basis of the number of texts covered by each key text label. Finally, when the score of the key text label is not less than a preset label score, the key text label is screened out and used as the target text label. Through this screening method, on the basis of the usage of the key text label, the importance of the text is also combined, so that the screened target text label has higher reliability and validity, and thus has higher value. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 A flowchart of a method for acquiring a target text label provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] 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.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0024] Embodiment 1

[0025] This embodiment provides a method for obtaining a target text label, such as Figure 1 As shown, the method comprises the following steps:

[0026] S100, obtaining an initial text score corresponding to each initial text according to each initial text among a plurality of pre-stored initial texts and a keyword intermediate information set pre-obtained from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters of the initial text keywords, and the number of characters of the intermediate text fragment between each two adjacent initial text keywords.

[0027] Specifically, the set of the initial texts is the initial text list set TE, TE={TE 1 ,TE 2 ,……,TE r ,……,TE g},TE r It refers to the rth initial text, r=1, 2,…, g, where g is the number of initial texts.

[0028] Specifically, the set of the preset key text tags is a key text tag set TA, TA={TA 1 ,TA 2 ,……,TA a ,……,TA c},TA a It refers to the ath key text label, a=1, 2, ..., c, c is the number of key text labels.

[0029] To facilitate understanding, an example is given for the keyword intermediate information set: r Get TE r The corresponding keyword intermediate information set; the TE rThe corresponding keyword intermediate information set includes TE r The number of initial text keywords in z r TE r The number of initial text keywords repeated in r 、z r The average number of characters of initial text keywords z 0 r and the number of characters in the intermediate text segment between each two adjacent initial text keywords.

[0030] Specifically, the initial text list set refers to a collection of m initial text lists obtained from the preset m second service platforms, each of which includes several initial texts. It can be understood that the second service platform corresponds to the initial text list one by one.

[0031] Specifically, the keyword extraction model is used to extract the TE r Several initial text keywords are extracted from the text. Those skilled in the art are aware of any keyword extraction model in the prior art that can extract keywords from a text, and will not be described in detail here.

[0032] For a better understanding, the number of repeated initial text keywords is given as an example: r When there are six initial text keywords in total, they are: initial text keyword 1, initial text keyword 1, initial text keyword 1, initial text keyword 2, initial text keyword 2, initial text keyword 3, among which initial text keyword 1 is repeated twice and initial text keyword 2 is repeated once, so the total number of repetitions is 2+1=3; it can also be understood as: for TE r The number of initial text keywords that need to be deleted when deduplicating the initial text keywords in the .

[0033] In a specific embodiment, in step S100, the number of characters in the intermediate text segment between each two adjacent initial text keywords is obtained by the following steps:

[0034] S101, for any initial text, obtaining position information of a plurality of initial text keywords in the initial text.

[0035] S102, according to the position information of each initial text keyword, obtain the intermediate text segment between each two adjacent initial text keywords in the initial text; the intermediate text segment is also the pre-processed text segment obtained above.

[0036] S103: According to the intermediate text segment between each two adjacent initial text keywords in the initial text, the number of characters of the intermediate text segment between each two adjacent initial text keywords in the initial text is obtained.

[0037] Specifically, the key text tag set refers to a set consisting of a number of text tags obtained from m second service platforms.

[0038] In a specific embodiment, each of the second service platforms is respectively provided with a preset label model for labeling text, and the method further comprises the following steps:

[0039] S001, receiving a plurality of first predicted text tags marked by a target user for any preset text in a preset text set.

[0040] Specifically, the preset text refers to any initial text in the initial text list set or any text among several initial texts randomly selected from the initial text list set.

[0041] S002, input any of the preset texts into several preset label models, and obtain several second predicted text labels marked by each preset label model for the any of the preset texts; it can be understood that: any of the preset texts here refers to the preset text marked with several first preset text labels in step S001.

[0042] S003, according to the plurality of first predicted text labels and the plurality of second predicted text labels marked by each preset label model for any preset text, obtaining a label overlap rate corresponding to each preset label model.

[0043] In a specific embodiment, in step S003, the label overlap rate corresponding to any preset label model is obtained through the following steps:

[0044] S0031, traverse a number of first predicted text labels, and obtain a third predicted text label from a number of second predicted text labels corresponding to any of the preset label models; the third predicted text label refers to a second predicted text label that is the same as any first predicted text label among the number of second predicted text labels corresponding to any of the preset label models.

[0045] Specifically, the plurality of second predicted text labels corresponding to the preset label model refer to the plurality of second predicted text labels marked by the preset label model for any preset text.

[0046] S0032: Obtain a label overlap rate corresponding to any one of the preset label models according to the number of the third predicted text labels and the number of the first predicted text labels.

[0047] Specifically, the label overlap rate corresponding to any of the preset label models meets the following conditions:

[0048] RE v=φ v / φ, where RE v It refers to the label overlap rate corresponding to the vth preset label model, φ v refers to the same number of the second predicted text labels as the first predicted text labels, and φ refers to the number of the first predicted text labels.

[0049] As mentioned above, for a preset text, each preset label model can obtain a corresponding label overlap rate. The higher the label overlap rate, the higher the label accuracy of the preset label model, which is conducive to obtaining the priority of several preset label models according to the preset text set.

[0050] In a specific embodiment, the key text tag set TA can also be obtained through the following steps:

[0051] S1, according to the number of preset texts in the preset text set, obtain several label overlap rates corresponding to any preset label model; it can be understood that: any preset label model labels each preset text respectively, and several label overlap rates corresponding to the preset label model will be obtained.

[0052] S2, normalize the label overlap rates corresponding to each preset label model to obtain the label model priority corresponding to each preset label model; those skilled in the art are aware of any implementation method of normalization in the prior art, for example, a method of averaging the label overlap rates, which will not be described here.

[0053] S3, when g≥γ, the preset label model with the highest corresponding label model priority is determined as the target label model, and several text labels in the second service platform corresponding to the target label model are all used as key text labels, where γ is a preset quantity threshold.

[0054] S4, when g<γ, a preset number of preset label models are screened out according to the label model priority, and text labels in a plurality of second service platforms corresponding to the preset number of preset label models are all used as key text labels.

[0055] As mentioned above, taking into account the amount of initial text, when the amount of initial text is small, the text tags in several second service platforms corresponding to the multiple preset tag models screened out are used as key text tags to increase the number of key text tags, making the tags for the initial text more comprehensive. When the amount of initial text is large, using a preset tag model can reduce the complexity of operations and improve tagging efficiency.

[0056] In another specific embodiment, the rationality of the preset second predicted text label can also be verified, that is, after step S003, the following steps are also included:

[0057] S004, obtaining the credibility priority of each second predicted text label according to a number of second predicted text labels of each preset label model for any preset text label, the label overlap rate corresponding to each preset label model and the preset model credibility of each preset label model; it can be understood that: the preset label model is an open source label model carrying credibility information, and the model credibility can also be tested through samples.

[0058] In a specific embodiment, in step S004, the credibility priority of any second predicted text label is obtained through the following steps:

[0059] S0041, obtaining the target model credibility of each preset label model according to the preset model credibility of each preset label model and a number of second predicted text labels corresponding to each preset label model.

[0060] Among them, the target model credibility of any preset label model meets the following conditions:

[0061] CR 0 v =CR v ×(QU 1 / QU), where CR 0 v is the target model credibility of the vth preset label model, CR v is the preset model credibility of the vth preset label model, QU 1 To mark the number of preset label models of any second predicted text label, QU is the number of preset label models.

[0062] S0042, obtaining the credibility priority of any second predicted text label according to the label overlap rate corresponding to each preset label model and the target model credibility of each preset label model.

[0063] Specifically, the credibility priority of any second predicted text label meets the following conditions:

[0064] ω=∑ QU v=1 (RE v ×CR 0 v ).

[0065] As described above, the preset model credibility of each preset label model is adjusted by marking the number of preset label models of any second predicted text label and the total number of preset label models. That is, the fewer the number of preset label models that type out a second predicted text label, the less credible the typed second predicted text label is, which will reduce the credibility of the preset label model that types out the second predicted text label. Therefore, the credibility of the preset label model needs to be adjusted to make the calculated credibility priority more accurate.

[0066] S005, when there is a second predicted text label whose credibility priority is greater than a preset credibility priority threshold, verify that the result of the second predicted text label whose corresponding credibility priority is greater than the preset credibility priority threshold meets the preset requirements; it can be understood that: verifying that the result of the second predicted text label meets the preset requirements means that the second predicted text label is a reasonable label.

[0067] In a specific embodiment, the credibility priority threshold is obtained through the following steps:

[0068] S0051, receiving a plurality of target processing texts and obtaining the credibility priority of each fourth predicted text label among a plurality of fourth predicted text labels corresponding to each target processing text; the credibility priority of the fourth predicted text label is obtained in the same manner as the credibility priority of the second predicted text label.

[0069] Specifically, the target processing text refers to any initial text randomly selected from the initial text list set.

[0070] S0052, sorting the credibility priorities of a plurality of fourth predicted text labels from small to large to obtain a priority sorting result.

[0071] S0053: Determine the credibility priority level at the target ranking position in the priority ranking result as a credibility priority threshold.

[0072] As mentioned above, by taking several target processed texts as sample sets, several corresponding fourth predicted text labels and the credibility priority of each fourth predicted text label are obtained, and a credibility priority threshold is determined according to several credibility priorities, so that the set credibility priority threshold is more reasonable, which can improve the accuracy and rationality of label verification.

[0073] Specifically, in step S100, the initial text score corresponding to the initial text meets the following conditions:

[0074] ψ r =(z r ×ρ r × 0r ) / (z 00 r ×(ζ r +1)), where ψ r is the initial text score corresponding to the rth initial text, ρ r is the target number of characters corresponding to the rth initial text, z 00 r is the average number of characters in several intermediate text segments corresponding to the rth initial text.

[0075] In this embodiment, TE r The corresponding target number of characters refers to TE r The number of characters.

[0076] In another specific embodiment, ρ can also be determined by the following steps: r :

[0077] S110, obtaining the number of characters of each initial text.

[0078] S120, normalizing the number of characters in the rth initial text to between 0 and λ according to the number of characters in the initial texts, and determining the normalized result as ρ r , where λ is the preset normalization threshold.

[0079] As mentioned above, when calculating the initial text score, taking into account the situation that other parameters are small and relatively close, while the number of characters in the initial text is large, the method of normalizing the number of characters in the initial text is adopted. This can effectively reduce the influence of the number of characters in the initial text on the calculated initial text score and improve the rationality of calculating the initial text score.

[0080] S200 , labeling each initial text based on a plurality of preset key text labels, and obtaining a plurality of initial texts corresponding to each key text label.

[0081] The specific steps are as follows: based on TA, label each initial text in TE and obtain the second text list set B 2 ={B 2 1 , B 2 2 , ..., B 2 a , ..., B 2 c}, where B 2 a It refers to the ath second text list, and the ath second text list refers to a list composed of several initial texts corresponding to the ath key text tag.

[0082] S300 , obtaining a second text tag score corresponding to each key text tag according to an initial text score corresponding to each initial text and a number of initial texts corresponding to each key text tag.

[0083] The specific steps are as follows: 2 , get the second text label score set ST corresponding to TA = {ST 1 ,ST 2 , ..., ST a , ..., ST c}, where ST a For TA a The corresponding second text label score.

[0084] Specifically, ST a Meet the following conditions:

[0085] ST a =(ξ(a) / g)×log(g / ∑ g r=1 (λ ar / ψ r )), where ξ(a) is the number of initial texts corresponding to the a-th key text label, λ ar The value of is 0 or 1. When the rth initial text is marked with the ath key text label, λ ar is 1, otherwise, λ ar is 0.

[0086] Among them, when ∑ g r=1 (λ ar / ψ r ) = 0, ST a =0.

[0087] S400: When there is a second text tag whose score is not less than the preset tag score, a key text tag corresponding to the second text tag whose score is not less than the preset tag score is obtained as a target text tag.

[0088] As mentioned above, by using the intermediate information set of keywords in the initial text, the relevant parameters of each keyword in the initial text are obtained, and the score of the initial text is calculated separately according to the number of characters in the initial text and the parameters of each keyword. The score can reflect the importance of the first text label, which is conducive to the comprehensive evaluation of the importance of the label.

[0089] In another specific embodiment, the method further provides a first service platform, wherein the first service platform stores a first text tag set B={B 1 , B 2 , ..., Bj , ..., B n}, B j It refers to the jth first text label, j=1, 2, ..., n, where n is the number of first text labels.

[0090] In this embodiment, the target text label can also be obtained through the following steps:

[0091] M100, obtains the text priority of each initial text according to the content data information of each initial text; the content data information of the initial text includes several keywords in the initial text itself, the total number of characters in the initial text itself, the average number of characters of several initial texts in TE and the creation time of the initial text itself.

[0092] Specifically, the text priority of the initial text meets the following conditions:

[0093] W = ε 1 ×(K 1 / K 2 )+ε 2 ×(K 2 / K 3 )+ε 3 ×(1 / K 4 ), where W refers to the text priority of the corresponding initial text, K 1 is the total number of characters of several keywords in the corresponding initial text, K 2 is the total number of characters of the corresponding initial text, K 3 is the average number of characters of several initial texts in TE, K 4 is the difference between the current time and the creation time of the corresponding initial text, ε 1 is the preset first weight coefficient, ε 2 is the preset second weight coefficient, ε 3 is the preset third weight coefficient.

[0094] Specifically, the several keywords in the initial text refer to several keywords obtained from the initial text through a keyword extraction model.

[0095] M200: Input each initial text in TE to the first service platform for labeling, and obtain the first text list set B 1 ={B 1 1 , B 1 2 , ..., B 1 j , ..., B 1 n}, B 1 j ={B1 j1 , B 1 j2 , ..., B 1 jd , ..., B 1 jh(j)}, where B 1 jd It refers to the dth initial text corresponding to the jth first text label, d=1, 2, ..., h(j), h(j) is the number of initial texts corresponding to the jth first text label; it can be understood that: the first text refers to any initial text marked with any first text label.

[0096] Specifically, the initial text list set is TE={TE 1 ,TE 2 ,……,TE r ,……,TE g}, where TE r It refers to the rth initial text, r=1, 2,…, g, where g is the number of initial texts.

[0097] As mentioned above, by inputting each initial text into the first service platform for labeling, several first text labels corresponding to each initial text can be obtained, and therefore several initial texts corresponding to each first text label can also be obtained. By obtaining the number of initial texts corresponding to each first text label, it is helpful to measure the importance of each first text label.

[0098] M300, based on the text priority of each initial text and B 1 , get the first text label score set B corresponding to B 0 ={B 0 1 , B 0 2 , ..., B 0 j , ..., B 0 n}, where B 0 j For B j The corresponding first text label score.

[0099] Among them, B 0 j Meet the following conditions:

[0100] B 0 j =(h(j) / g)×log(g / ∑ g r=1 (λ jr / W r)), where W r refers to the text priority of the rth initial text, λ jr The value of is 0 or 1. When the rth initial text tag has the jth first text tag, λ jr is 1, otherwise, λ jr is 0.

[0101] In another embodiment of step S400, the preset tag score is a score set by a person skilled in the art according to actual needs or experience. In a parallel embodiment, by replacing the text priority in step S100 with the initial text score, that is, replacing W r Replace with ψ r The target label score obtained after calculating the first text label score is used as the preset target label score. The calculation process is the same and will not be repeated here.

[0102] As described above, by obtaining the number of initial texts corresponding to each first text label and the priority of each initial text, the score of each first text label can be calculated. The score can reflect the importance of the first text label, which is conducive to achieving a comprehensive evaluation of the importance of the label.

[0103] M400, for B 0 The n first text label scores in the set are sorted, and the target label score is determined according to a preset score determination condition.

[0104] Specifically, the preset score determination condition refers to: determining the value at the target position in the sorting result as the target tag score.

[0105] M500: Input each initial text in TE to m second service platforms for labeling, and obtain the second text list set B 2 ={B 2 1 , B 2 2 , ..., B 2 a , ..., B 2 c}, where B 2 a It refers to the ath second text list, and the ath second text list refers to a list composed of several initial texts corresponding to the ath key text tag; it can be understood that: the m second service platforms all receive g initial texts in the initial text list set.

[0106] M600, based on the text priority of each initial text and B 2 , get the second text label score set TA corresponding to TA 0={TA 0 1 ,TA 0 2 ,……,TA 0 a ,……,TA 0 c}, where TA 0 a For TA a The corresponding second text label score.

[0107] Specifically, the method for obtaining the second text label score is the same as the method for obtaining the first text label score, which will not be described in detail here.

[0108] M700, when TA 0 a When the score of the target tag is not less than that of the target tag, a Determine the target text label.

[0109] As described above, by inputting the initial text into the first service platform for labeling, and calculating several first text label scores according to the labeling result and the text priority of the initial text, the set target label score is made more reasonable, which is conducive to screening out more valuable target text labels.

[0110] In a specific embodiment, the following steps are also included after step M700:

[0111] M800, traverse B and several target text labels determined from TA, and when there is a target text label that is the same as any first text label in B, delete the target text label that is the same as any first text label in B.

[0112] M900 combines the remaining target text labels with B to construct a new label system.

[0113] As described above, by filtering out the target text tags that are the same as any first text tag from the filtered target text tags, there are no duplicate tags in the constructed new tag system, thus avoiding duplicate storage of tags.

[0114] In another specific embodiment, the key text label is obtained by the following steps:

[0115] M001: Input the initial texts in TE to m second service platforms for labeling, and obtain the second label usage frequency list set F corresponding to the initial text list set. 2 ={F 2 1 , F 2 2 , ..., F2 i , ..., F 2 m}, F 2 i ={F 2 i1 , F 2 i2 , ..., F 2 iu , ..., F 2 iq(i)}, F 2 iu ={F 2 iu1 , F 2 iu2 , ..., F 2 iux , ..., F 2 ium}, where F 2 iux It refers to the tag usage frequency of the u-th second text tag in the i-th second text tag set in the x-th initial text list, u=1, 2,..., q(i), q(i) is the number of second text tags in the i-th second text tag set, x=1, 2,..., m; the i-th second text tag set refers to a set of several text tags corresponding to the i-th second service platform.

[0116] Specifically, F 2 iux Meet the following conditions:

[0117] F 2 iux =L 2 iux / L 2 x , where L 2 iux is the number of times the uth second text label in the ith second text label set is used in the xth initial text list, L 2 x is the number of initial texts in the xth initial text list.

[0118] M002, from F 2 iu y third label usage frequencies are obtained from the y third label usage frequencies; the third label usage frequency refers to F 2 iu Any second tag usage frequency in which is greater than the target tag usage frequency.

[0119] In a specific embodiment, the target tag usage frequency is obtained through the following steps:

[0120] E100, input each target text sample in the obtained m target text sample sets into the first service platform for labeling, and obtain a first label usage frequency list set F corresponding to the m target text sample sets 1 ={F 1 1 , F 1 2 , ..., F 1 i , ..., F 1 m}, F 1 i ={F 1 i1 , F 1 i2 , ..., F 1 ij , ..., F 1 in}, F 1 ij For B j The frequency of label usage in the i-th target text sample set, i=1, 2, ..., m.

[0121] Specifically, the first service platform refers to the parent platform of the second service platform; it can be understood that: the label system in the second service platform is constructed with reference to the first service platform, and is expanded with other text labels according to its own region or service characteristics.

[0122] Specifically, F 1 ij Meet the following conditions:

[0123] F 1 ij =L 1 ij / L 1 i , where L 1 ij For B j The number of uses in the i-th target text sample set, L 1 i is the number of target text samples in the i-th target text sample set.

[0124] Specifically, the m target text sample sets are obtained from m second service platforms, and the target text sample sets correspond to the second service platforms one by one.

[0125] In a specific embodiment, the target text sample set is obtained through the following steps:

[0126] E001, obtaining an initial text list pre-stored in each second service platform; the initial text list includes a plurality of initial texts.

[0127] Specifically, the initial text refers to any text pre-stored in any second service platform; it can be understood that: a number of initial texts is the sum of the initial texts in m second service platforms.

[0128] E002, according to the preset screening conditions, a number of initial texts are screened out from any initial text list and combined into a target text sample set; it can be understood as: according to any initial text list stored in the second service platform, the corresponding target text sample set is obtained after screening.

[0129] In a specific implementation, in step E002, the target text sample is determined by the following steps:

[0130] The text priorities corresponding to the initial texts are sorted from high to low, and the initial texts corresponding to the first n text priorities are determined as target text samples, where n is a preset text screening quantity threshold.

[0131] As described above, by calculating the text priorities of all initial texts in all initial text lists, a text screening quantity threshold number of initial texts can be screened out as target text samples according to the text priorities, so that the screened target text samples are at the forefront of priority, which is conducive to the analysis of text data.

[0132] In another specific embodiment, in step E002, the target text sample can also be determined by the following steps:

[0133] E0021, according to a preset text priority threshold, select a number of intermediate texts corresponding to the initial text list from each initial text list; the intermediate text refers to any initial text whose corresponding text priority is greater than the preset text priority threshold.

[0134] E0022, determining the number of target texts according to the number of intermediate texts corresponding to each initial text list.

[0135] Specifically, the target text quantity refers to a quantity that is not greater than the minimum intermediate text quantity, wherein the minimum intermediate text quantity refers to the minimum value of the m intermediate text quantities screened out from the m initial text lists; it can be understood that: each initial text list corresponds to an intermediate text quantity.

[0136] E0023, sorting the text priorities of several initial texts corresponding to any initial text list, and determining the intermediate texts corresponding to the text priorities of the first target text as the target text samples.

[0137] As described above, by determining the number of target texts and taking the number of target texts as the standard, the same number of initial texts can be screened out from each initial text list as target text samples, so that the same number of samples can be selected according to the differences in texts between different second service platforms to ensure the comprehensiveness of text analysis.

[0138] In another specific embodiment, the target text sample can also be obtained through the following steps:

[0139] R100, based on the received initial text list set, obtain an initial text keyword set corresponding to the initial text itself from each initial text in the initial text list set; the initial text list set includes a plurality of initial texts; the initial texts correspond one-to-one to the initial text keyword set; the initial text keyword set includes a plurality of initial text keywords.

[0140] In a specific embodiment, the R100 step includes the following steps:

[0141] R101, based on the keyword extraction model, extract several initial text keywords corresponding to the initial text itself from each initial text. Those skilled in the art are aware of any keyword extraction model in the prior art that can extract keywords from text, which will not be described in detail here.

[0142] R102, performing deduplication processing on the several initial text keywords, and combining the remaining initial text keywords into an initial text keyword set.

[0143] R200, removing a plurality of initial text keywords corresponding to each initial text from the corresponding initial text, and obtaining an initial text segment set corresponding to each initial text; the initial text segment set includes a plurality of initial text segments.

[0144] In a specific embodiment, the R200 step also includes the following steps:

[0145] R201, removing a plurality of initial text keywords corresponding to each initial text from the corresponding initial text, and obtaining a plurality of pre-processed text segments corresponding to each initial text.

[0146] R202, according to a preset redundant word list, searching for a plurality of target redundant words from a plurality of preprocessed text segments corresponding to each initial text.

[0147] Specifically, the preset redundant word table refers to a data table recording a number of preset redundant words; for example, commonly used modal particles.

[0148] Specifically, the target redundant word refers to a word in the preprocessed text segment that is consistent with any preset redundant word.

[0149] R203, deleting the plurality of target redundant words from the plurality of preprocessed text segments, and obtaining an initial text segment corresponding to each preprocessed text segment.

[0150] As mentioned above, after obtaining the initial text keywords, the preprocessed text fragments in the initial text are also obtained and converted into standard initial text fragments. Through the combination of the initial text keywords and the initial text fragments, the generated key text is more accurate and more in line with the original meaning of the initial text, and the standardized text is conducive to processing and analysis.

[0151] R300, inputting the initial text keyword set and the initial text segment set corresponding to each initial text into a preset language processing model to obtain the key text corresponding to each initial text.

[0152] In another specific embodiment, the key text can also be obtained through the following steps:

[0153] L100, the CE in the keyword set CE of the text to be processed α Add to the preset keyword sequence and add CE α Remove from CE and get new CE.

[0154] Specifically, the to-be-processed text keyword refers to any keyword collected by the target user based on the target person's verbal statement text information.

[0155] Specifically, the preset keyword sequence refers to a sequence for sequentially storing keywords of the text to be processed that are removed from the CE.

[0156] Specifically, CE={CE 1 , C.E. 2 ,……,CE α ,……,CE β}, where CE α is the αth text keyword to be processed, α=1, 2,…, β, β is the number of text keywords to be processed.

[0157] L200, traverse the text keywords to be processed in the new CE, calculate the correlation between each text keyword to be processed in the new CE and the CE α The co-occurrence probability of CE; that is, by constructing a co-occurrence matrix, find the co-occurrence probability of CE from the new CE. α The vector distance of the text to be processed is the closest and most reasonable. Those skilled in the art are aware of the specific implementation method of calculating the co-occurrence probability in the prior art, which will not be repeated here.

[0158] L300, according to each to-be-processed text keyword in the new CE and CE α The co-occurrence probability determines the maximum co-occurrence probability, and CE α Update to the to-be-processed text keyword corresponding to the maximum co-occurrence probability, return to execute L100, until the new CE is an empty set, and obtain CE α The corresponding maximum co-occurrence probabilities.

[0159] As described above, since a maximum co-occurrence probability is obtained in each cycle, when the new CE is an empty set, it has cycled β-1 times and obtained β-1 maximum co-occurrence probabilities.

[0160] L400, according to the maximum co-occurrence probabilities corresponding to each keyword of the text to be processed, obtain the first maximum co-occurrence probability list set P corresponding to CE={P 1 , P 2 , ..., P α , ..., P β}, where P α ={P α1 , P α2 , ..., P αe , ..., P α(β-1)}, P αe For CE α The e-th maximum co-occurrence probability corresponding to the first keyword to be processed in the preset keyword sequence, e=1, 2, ..., β-1.

[0161] As mentioned above, by inputting β keywords of the text to be processed as starting keywords into the preset keyword sequence in turn, β maximum co-occurrence probability lists can be obtained, which is conducive to calculating the priority of each maximum co-occurrence probability list separately, so as to find the most reasonable order of sorting several keywords of the text to be processed and realize the order correction of keywords.

[0162] L500, according to P, obtain a first target co-occurrence probability list from β first maximum co-occurrence probability lists.

[0163] Specifically, in step L500, the first target co-occurrence probability list is obtained through the following steps:

[0164] L501, obtain CE α The co-occurrence probability list priority CS of the corresponding maximum co-occurrence probability list α ; can be understood as: CE α The corresponding maximum co-occurrence probability list refers to CE α The maximum co-occurrence probability list corresponding to when the starting keyword is added to the preset keyword sequence.

[0165] Among them, CS α Meet the following conditions:

[0166] CS α =∑ β-1 e=1 P αe .

[0167] L502, according to the co-occurrence probability list priority corresponding to each to-be-processed text keyword, determine the maximum co-occurrence probability list corresponding to the maximum co-occurrence probability list priority as the first target co-occurrence probability list.

[0168] As mentioned above, by adding up several co-occurrence probabilities in each maximum co-occurrence probability list respectively, the calculation result with the largest value can be found and the result can be used as the priority of the corresponding co-occurrence probability list. The larger the overall co-occurrence probability, the closer the average distance of several preset keywords is, and the most reasonable keyword sorting order can be found.

[0169] In another specific embodiment, the method further comprises the following steps:

[0170] L01, if CE α When only one text keyword to be processed remains in the new CE after being removed from the CE, the remaining text keyword to be processed is added to the preset keyword sequence and the CE is obtained. α The corresponding β-2 maximum co-occurrence probabilities.

[0171] L02, according to the β-2 maximum co-occurrence probabilities corresponding to each keyword in the text to be processed, obtain the second maximum co-occurrence probability list set corresponding to CE; the second maximum co-occurrence probability list set includes β second maximum co-occurrence probability lists, and each second maximum co-occurrence probability list includes β-2 maximum co-occurrence probabilities.

[0172] L03, according to the second maximum co-occurrence probability list set, obtaining a second target co-occurrence probability list from the second maximum co-occurrence probability list set.

[0173] Specifically, the method for acquiring the second target co-occurrence probability list is consistent with the method for acquiring the first target co-occurrence probability list.

[0174] As mentioned above, when there is only one keyword left in the keyword set, there is no other keyword in the keyword set. Therefore, there is no need to calculate and compare to find the maximum co-occurrence probability. It can be directly added to the preset keyword sequence.

[0175] L600, input the keywords of the text to be processed in the preset keyword sequence corresponding to the first target co-occurrence probability list into the preset language processing model in the order of addition to the preset keyword sequence, so as to obtain the key text corresponding to CE; those skilled in the art are aware of any language processing model in the prior art that can output corresponding text according to several keywords, which will not be repeated here.

[0176] In another specific embodiment, in step L600, the first target co-occurrence probability list is replaced with the second target co-occurrence probability list to obtain the key text corresponding to CE.

[0177] In the above, by obtaining a reasonable arrangement order of several keywords of the text to be processed, the order correction of several keywords of the text to be processed is realized, and several preset keywords are input into the preset language processing model in sequence according to the corrected order to generate standardized processed text to realize the management and complete storage of the text.

[0178] In another specific embodiment, the method further comprises the following steps:

[0179] L001, determining the initial text keyword set as a new text keyword set to be processed.

[0180] L002, according to the new to-be-processed text keyword set, obtain the key text corresponding to the initial text keyword set.

[0181] The above provides another form of obtaining standardized text, that is, when the data information collected by the target user is in text form rather than one-sided keywords, it is possible to extract several initial text keywords from the text and generate corresponding standardized text based on the several initial text keywords.

[0182] R400, according to a plurality of initial texts, an initial text keyword set corresponding to each initial text, and a key text corresponding to each initial text, a text weight corresponding to each initial text is obtained.

[0183] Specifically, the text weight corresponding to the initial text meets the following conditions:

[0184] W 00 r =W 0 r / max(W 0 1 ,W 0 2 ,……,W 0 r ,……,W 0 g ), where W00 r is the text weight corresponding to the rth initial text in the initial text list, W 0 r =δ r1 ×N r ×δ r2 ×(δ r1 / δ rg ), δ r1 is the number of characters in the rth initial text, N r is the number of initial text keywords corresponding to the rth initial text, δ r2 is the number of characters of the key text corresponding to the rth initial text, the value range of r is 1 to g, and g is the number of initial texts in the initial text list set.

[0185] R500, when there is an initial text whose corresponding text weight is greater than a preset text weight threshold, the initial text whose corresponding text weight is greater than the preset text weight threshold is determined as the target text.

[0186] The above provides a technical solution for obtaining the corresponding key text based on the initial text keywords and the initial text fragments, and then calculating the text weight of the corresponding initial text based on the initial text and the key text. This calculation method makes full use of the structure and content information of the text to achieve a comprehensive evaluation of the text, and can quickly determine the effective and high-value target text, which is conducive to the processing and analysis of large amounts of text data.

[0187] In a specific embodiment, in step R500, the preset text weight threshold is obtained by the following steps:

[0188] R501, receiving a plurality of preprocessed texts and obtaining a text weight corresponding to each preprocessed text; the method for obtaining the text weight corresponding to the preprocessed text is consistent with the method for obtaining the text weight corresponding to the initial text.

[0189] R502, sorting the text weights corresponding to the plurality of preprocessed texts from small to large to obtain a weight sorting result.

[0190] R503, determining the weight of the text at the target sorting position in the weight sorting result as a preset text weight threshold.

[0191] Specifically, the target ranking position refers to the position determined by technicians in this field in the weight ranking results according to actual needs; for example, it can be the middle position or the value at the 80% position.

[0192] In the above, by taking a number of preprocessed texts as sample sets and determining the text weight threshold according to the text weights of the preprocessed texts, the set text weight threshold is made more reasonable, which is conducive to selecting effective target texts.

[0193] E200, for F 1 i The n first tag usage frequencies are sorted, and the target tag usage frequency corresponding to the i-th second service platform is determined according to a preset frequency determination condition.

[0194] Specifically, the preset frequency determination condition refers to: determining the value at the target position in the sorting result as the target tag usage frequency.

[0195] Specifically, the target position refers to a position determined by those skilled in the art in the art in the sorting result of the first tag usage frequency according to actual needs; for example, the target position may be the lower quartile in the sorting result of the first tag usage frequency.

[0196] M003, when y / m≥θ, F 2 iu The corresponding second text label is determined as the key text label, where θ is a preset ratio threshold; for example, 80%.

[0197] As mentioned above, when the proportion of the number of second tag usage frequencies that are greater than the target tag usage frequency among the several second tag usage frequencies corresponding to any second text tag is not less than a preset ratio threshold, this second text tag is considered to be an important tag, and then this second text tag is added to the first text tag set to construct a more comprehensive and effective new tag system.

[0198] Embodiment 2

[0199] This embodiment provides a device for obtaining a target text label, the device comprising:

[0200] The first acquisition module is used to obtain the initial text score corresponding to each initial text based on each initial text in a plurality of pre-stored initial texts and a keyword intermediate information set pre-acquired from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters in the initial text keywords, and the number of characters in the intermediate text fragment between each two adjacent initial text keywords.

[0201] The second acquisition module is used to label each initial text based on a plurality of preset key text labels, and acquire a plurality of initial texts corresponding to each key text label.

[0202] The third acquisition module is used to acquire a second text tag score corresponding to each key text tag according to the initial text score corresponding to each initial text and a number of initial texts corresponding to each key text tag.

[0203] The fourth acquisition module is used to acquire a key text tag whose corresponding second text tag score is not less than the preset tag score as a target text tag when there is a second text tag score not less than the preset tag score.

[0204] The specific implementation method of the device during implementation is the same as that of Example 1, and will not be repeated here.

[0205] Embodiment 3

[0206] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0207] S100, obtaining an initial text score corresponding to each initial text according to each initial text among a plurality of pre-stored initial texts and a keyword intermediate information set pre-obtained from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters of the initial text keywords, and the number of characters of the intermediate text fragment between each two adjacent initial text keywords.

[0208] S200 , labeling each initial text based on a plurality of preset key text labels, and obtaining a plurality of initial texts corresponding to each key text label.

[0209] S300 , obtaining a second text tag score corresponding to each key text tag according to an initial text score corresponding to each initial text and a number of initial texts corresponding to each key text tag.

[0210] S400: When there is a second text tag whose score is not less than the preset tag score, a key text tag corresponding to the second text tag whose score is not less than the preset tag score is obtained as a target text tag.

[0211] Embodiment 4

[0212] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0213] S100, obtaining an initial text score corresponding to each initial text according to each initial text among a plurality of pre-stored initial texts and a keyword intermediate information set pre-obtained from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters of the initial text keywords, and the number of characters of the intermediate text fragment between each two adjacent initial text keywords.

[0214] S200 , labeling each initial text based on a plurality of preset key text labels, and obtaining a plurality of initial texts corresponding to each key text label.

[0215] S300 , obtaining a second text tag score corresponding to each key text tag according to an initial text score corresponding to each initial text and a number of initial texts corresponding to each key text tag.

[0216] S400: When there is a second text tag whose score is not less than the preset tag score, a key text tag corresponding to the second text tag whose score is not less than the preset tag score is obtained as a target text tag.

[0217] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0218] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0219] 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 obtaining a target text label, characterized in that: The method comprises the following steps: S100, obtaining an initial text score corresponding to each initial text according to each initial text among a plurality of pre-stored initial texts and a keyword intermediate information set pre-obtained from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters of initial text keywords, and the number of characters of intermediate text segments between each two adjacent initial text keywords; The number of characters in the intermediate text segment between each two adjacent initial text keywords is obtained by the following steps: S101, for any initial text, obtaining position information of several initial text keywords in the initial text; S102, acquiring an intermediate text segment between every two adjacent initial text keywords in the initial text according to the position information of each initial text keyword; S103, obtaining the number of characters of the intermediate text segment between each two adjacent initial text keywords in the initial text according to the intermediate text segment between each two adjacent initial text keywords in the initial text; The initial text score corresponding to the initial text meets the following conditions: ψ r =(z r ×ρ r × 0 r ) / (z 00 r ×(ζ r +1)), where ψ r is the initial text score corresponding to the rth initial text, z r is the number of initial text keywords in the rth initial text, ρ r is the target number of characters corresponding to the rth initial text, z 0 r For z r The average number of characters of initial text keywords, z 00 r is the average number of characters in several intermediate text segments corresponding to the rth initial text, ζ r is the number of initial text keywords repeated in the rth initial text; S200, labeling each initial text based on a plurality of preset key text labels, and obtaining a plurality of initial texts corresponding to each key text label; S300, obtaining a second text tag score corresponding to each key text tag according to the initial text score corresponding to each initial text and a number of initial texts corresponding to each key text tag; The score of the second text label corresponding to the key text label meets the following conditions: ST a =(ξ(a) / g)×log(g / ∑ g r=1 (λ ar / ψ r )), among which, ST a is the score of the second text label corresponding to the a-th key text label, ξ(a) is the number of initial texts corresponding to the a-th key text label, g is the total number of initial texts, and λ ar The value of is 0 or 1. When the rth initial text is marked with the ath key text label, λ ar is 1, otherwise, λ ar is 0; S400: When there is a second text tag whose score is not less than the preset tag score, a key text tag corresponding to the second text tag whose score is not less than the preset tag score is obtained as a target text tag.

2. The method for obtaining a target text label according to claim 1, characterized in that: Determine ρ by following the steps below r : S110, obtaining the number of characters of each initial text; S120, normalizing the number of characters in the rth initial text to between 0 and λ according to the number of characters in the initial texts, and determining the normalized result as ρ r , where λ is the preset normalization threshold.

3. A device for acquiring a target text label, characterized in that: The device comprises: A first acquisition module is used to acquire an initial text score corresponding to each initial text according to each initial text in a plurality of pre-stored initial texts and a keyword intermediate information set pre-acquired from each initial text; the keyword intermediate information set includes the number of initial text keywords, the number of repeated initial text keywords, the average number of characters of initial text keywords, and the number of characters of intermediate text segments between each two adjacent initial text keywords; The first acquisition module includes: A fifth acquisition module, for acquiring, for any initial text, position information of a plurality of initial text keywords in the initial text; A sixth acquisition module, configured to acquire, according to the position information of each initial text keyword, an intermediate text segment between each adjacent two initial text keywords in the initial text; A seventh acquisition module, configured to acquire the number of characters of the intermediate text segment between each two adjacent initial text keywords in the initial text according to the intermediate text segment between each two adjacent initial text keywords in the initial text; The initial text score corresponding to the initial text meets the following conditions: ψ r =(z r ×ρ r × 0 r ) / (z 00 r ×(ζ r +1)), where ψ r is the initial text score corresponding to the rth initial text, z r is the number of initial text keywords in the rth initial text, ρ r is the target number of characters corresponding to the rth initial text, z 0 r For z r The average number of characters of initial text keywords, z 00 r is the average number of characters in several intermediate text segments corresponding to the rth initial text, ζ r is the number of initial text keywords repeated in the rth initial text; The second acquisition module is used to label each initial text based on a plurality of preset key text labels, and acquire a plurality of initial texts corresponding to each key text label; A third acquisition module is used to acquire a second text label score corresponding to each key text label according to the initial text score corresponding to each initial text and a number of initial texts corresponding to each key text label; The second text label score corresponding to the key text label meets the following conditions: ST a =(ξ(a) / g)×log(g / ∑ g r=1 (λ ar / ψ r )), among which, ST a is the score of the second text label corresponding to the a-th key text label, ξ(a) is the number of initial texts corresponding to the a-th key text label, g is the total number of initial texts, and λ ar The value of is 0 or 1. When the rth initial text is marked with the ath key text label, λ ar is 1, otherwise, λ ar is 0; The fourth acquisition module is used to acquire a key text tag whose corresponding second text tag score is not less than the preset tag score as a target text tag when there is a second text tag score not less than the preset tag score.

4. The device for acquiring a target text label according to claim 3, characterized in that: The first acquisition module also includes: An eighth acquisition module, used for acquiring the number of characters of each initial text; A determination module is used to normalize the number of characters of the rth initial text to between 0 and λ according to the number of characters of the initial texts, and determine the normalized result as ρ r , where λ is the preset normalization threshold.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for obtaining the target text label according to any one of claims 1 to 2 is implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for obtaining a target text label according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Label acquisition method, electronic equipment and storage medium

    CN116805044A

  • Data processing system for determining specific words

    CN116956872A

  • Data processing system for obtaining text labels

    CN118193735A

  • Quality test method, apparatus and device for customer service recording, and storage medium

    WO2021169423A1