Target text determination method and device, equipment and medium
By calculating text priority and disclosure time, target texts related to designated technical fields are determined, solving the problem of obtaining reliable research texts, reducing technology dependence, and promoting industrial innovation and technology maturity prediction.
Patent Information
- Application Number
- CN202411220296.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies make it difficult to effectively obtain reliable research texts related to designated technical fields, making it difficult to grasp the development of this field, and there are highly dependent "stuck" technologies that hinder industrial innovation.
By obtaining the target word object under the category to which the given word object belongs, the relevant text to be processed is obtained from the preset text library, and the text priority is calculated based on the number of target word objects and the disclosure time. When the total priority exceeds the threshold, the relevant text is determined Text, use a large language model to generate query text, and filter out target text related to the specified technical field.
It achieves the determination of target texts with high relevance to texts in designated technical fields, provides a basis for technology maturity prediction, reduces technology dependence, and promotes industrial innovation.
Smart Images

Figure CN118734841A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of text processing, and in particular to a method, device, equipment and medium for determining a target text. Background Art
[0002] Technological innovation is defined as a system of technical fields that require long-term high-investment research and development and are critical and unique. "Neck-stuck" technologies must have common characteristics in key core technology fields, and they are of key significance for breaking through bottlenecks in the technical field of the entire industry. Key core technologies themselves have a high degree of external dependence. Basic processes, key materials and core equipment, and technical field routes are highly dependent on the supply of other companies and the support of other industrial links. In the process of development, enterprises or industries have formed "neck-stuck" technologies that restrict the innovative development of a regional industry or enterprise due to excessive technological dependence or external dependence. Therefore, obtaining reliable research texts related to this technical field is very meaningful for mastering the development of this technical field. Summary of the invention
[0003] The purpose of the present invention is to provide a method, device, equipment and medium for determining a target text, which can obtain a number of target texts with high relevance to a specified technical field, thereby facilitating the prediction of the technical maturity of the specified technical field.
[0004] According to a first aspect of the present invention, a method for determining a target text is provided, comprising the following steps: According to a plurality of target word objects in the category to which a given word object belongs acquired in advance, a plurality of first texts to be processed corresponding to each target word object are acquired from a preset text library, and a plurality of target sentences are determined from each first text to be processed; the target sentence refers to a sentence including at least one target word object acquired from a target paragraph in any first text to be processed; the given word object is the name of any technical field specified by the user.
[0005] For any first text to be processed, the first text priority corresponding to the first text to be processed is obtained according to the quantity information of each target word object in each target sentence in the first text to be processed.
[0006] Obtain several second texts to be processed corresponding to the first text to be processed, and obtain the second text priority corresponding to the first text to be processed based on several target word objects corresponding to each second text to be processed and the duration between the publication time of the first text to be processed and the publication time of each second text to be processed; the second text to be processed refers to any other first text to be processed whose publication time is earlier than that of the first text to be processed.
[0007] When the sum of the first text priority and the second text priority corresponding to the first text to be processed is greater than a preset priority threshold, the first text to be processed is determined as a target text related to the given word object.
[0008] Further, a plurality of target word objects under the category to which the given word object belongs are obtained by the following steps: A given word object is added to a target position in a preset query text template to generate a target query text; the target position refers to a position in the query text template where a missing text exists.
[0009] The target query text is input into a preset large language model to obtain a number of target word objects under the category to which the given word object belongs.
[0010] Further, the target paragraph is determined from the first to-be-processed text by the following steps: A plurality of first to-be-processed texts corresponding to each target word object and a text category identifier of each first to-be-processed text are obtained from a preset text library.
[0011] For any first text to be processed, based on the correspondence between the preset text category identifier and the target paragraph in the first text to be processed, according to the text category identifier of the first text to be processed, the target paragraph is determined from the first text to be processed.
[0012] Further, the first text priority corresponding to the first to-be-processed text is obtained through the following steps: For any target sentence in the first text to be processed, several target word objects in the target sentence are divided into several target phrases; the target phrase refers to any phrase in which the number of target word objects screened out from the currently remaining several target word objects is the largest and each screened out target word object has only one; the currently remaining several target word objects refer to the remaining several target word objects obtained after deleting all the screened out target word objects from the several target word objects in the target sentence.
[0013] For any target phrase corresponding to the target sentence, the first phrase priority corresponding to the target phrase is calculated based on the total number of target word objects in the target phrase and the target number corresponding to the target phrase; the target number corresponding to the target phrase refers to the number of phrases obtained from several target phrases corresponding to the target sentence that are the same as any target phrase.
[0014] According to the same target phrase information in the target phrases corresponding to the target sentence, a plurality of first phrase priorities are deduplicated to obtain a plurality of second phrase priorities.
[0015] The sum of the priorities of the plurality of second phrases is determined as the sentence priority corresponding to the target sentence.
[0016] The sentence priorities corresponding to several target sentences in the first text to be processed are added together to obtain a first text priority corresponding to the first text to be processed.
[0017] Further, the second text priority corresponding to the first to-be-processed text is obtained through the following steps: According to the time between the publication time of the first text to be processed and the publication time of each second text to be processed, each time is normalized to obtain a time proportion parameter corresponding to each second text to be processed.
[0018] For any second text to be processed, the number of target word objects repeated between the second text to be processed and the first text to be processed is obtained according to a number of target word objects corresponding to the second text to be processed.
[0019] The product of the time proportion parameter corresponding to the second text to be processed and the total number of target word objects repeated between the second text to be processed and the first text to be processed is determined as the text weight of the second text to be processed.
[0020] The ratio of the sum of the text weights of each second text to be processed to the number of the second texts to be processed is calculated, and the calculation result is used as the second text priority corresponding to the first text to be processed.
[0021] Furthermore, the method further comprises the following steps: According to a second aspect of the present invention, there is provided a device for determining a target text, the device comprising: The first determination module is used to obtain a number of first texts to be processed corresponding to each target word object from a preset text library according to a number of target word objects under the category to which the given word object belongs obtained in advance, and determine a number of target sentences from each first text to be processed; the target sentence refers to a sentence including at least one target word object obtained from a target paragraph in any first text to be processed; the given word object is the name of any technical field specified by the user.
[0022] The first acquisition module is used to acquire, for any first text to be processed, a first text priority corresponding to the first text to be processed according to the quantity information of each target word object in each target sentence in the first text to be processed.
[0023] The second acquisition module is used to acquire several second texts to be processed corresponding to the first text to be processed, and acquire the second text priority corresponding to the first text to be processed according to several target word objects corresponding to each second text to be processed and the duration between the publication time of the first text to be processed and the publication time of each second text to be processed; the second text to be processed refers to any other first text to be processed whose publication time is earlier than that of the first text to be processed.
[0024] The second determination module is used to determine the first text to be processed as a target text related to a given word object when the sum of the first text priority and the second text priority corresponding to the first text to be processed is greater than a preset priority threshold.
[0025] Furthermore, it also includes a target word object acquisition module, and the target word object acquisition module includes: The generating module is used to add a given word object to a target position in a preset query text template to generate a target query text; the target position refers to a position in the query text template where there is a missing text.
[0026] The third acquisition module is used to input the target query text into a preset large language model to obtain a number of target word objects under the category to which the given word object belongs.
[0027] Furthermore, the first determining module includes: The fourth acquisition module is used to acquire from a preset text library a plurality of first to-be-processed texts corresponding to each target word object and a text category identifier of each first to-be-processed text.
[0028] The third determination module is used to determine the target paragraph from any first text to be processed based on the correspondence between the preset text category identifier and the target paragraph in the first text to be processed and the text category identifier of the first text to be processed.
[0029] Furthermore, the first acquisition module includes: A division module is used to divide a plurality of target word objects in any target sentence in the first to-be-processed text into a plurality of target phrases; the target phrase refers to any phrase in which the number of target word objects screened out from the currently remaining plurality of target word objects is the largest and each screened out target word object has only one; the currently remaining plurality of target word objects refers to the remaining plurality of target word objects obtained after deleting all the screened out target word objects from the plurality of target word objects in the target sentence.
[0030] A calculation module is used to calculate, for any target phrase corresponding to a target sentence, a first phrase priority corresponding to the target phrase based on the total number of target word objects in the target phrase and the target number corresponding to the target phrase; the target number corresponding to the target phrase refers to the number of phrases obtained from a number of target phrases corresponding to the target sentence that are the same as any target phrase.
[0031] The first processing module is used to perform deduplication processing on a plurality of first phrase priorities according to the same target phrase information in a plurality of target phrases corresponding to the target sentence, so as to obtain a plurality of second phrase priorities.
[0032] The fourth determination module is used to determine the sum of the priorities of the plurality of second phrases as the sentence priority corresponding to the target sentence.
[0033] The fifth acquisition module is used to add up the sentence priorities corresponding to several target sentences in the first text to be processed, so as to obtain the first text priority corresponding to the first text to be processed.
[0034] Furthermore, the second acquisition module includes: The second processing module is used to normalize each time length according to the time length between the first text to be processed and the time length between each second text to be processed, so as to obtain a time proportion parameter corresponding to each second text to be processed.
[0035] The sixth acquisition module is used to acquire, for any second text to be processed, the number of repeated target word objects between the second text to be processed and the first text to be processed according to a number of target word objects corresponding to the second text to be processed.
[0036] The fifth determination module is used to determine the product of the time proportion parameter corresponding to the second text to be processed and the total number of repeated target word objects between the second text to be processed and the first text to be processed as the text weight of the second text to be processed.
[0037] The seventh acquisition module is used to calculate the ratio of the sum of the text weights of each second text to be processed to the number of the second text to be processed, and use the calculation result as the second text priority corresponding to the first text to be processed.
[0038] 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 determining a target text when executing the computer program.
[0039] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned method for determining a target text when executed by a processor.
[0040] Compared with the prior art, the present invention has at least the following beneficial effects: The method for determining a target text of the present invention first obtains a plurality of target word objects under the category to which a given word object belongs, and obtains a first text to be processed containing any target word object from a preset text library, and obtains a first text priority of the first text to be processed according to the number information of the target word objects in the target sentence in each first text to be processed. The first text priority can more accurately reflect the importance of the first text to be processed by introducing the combination of target word objects and the number of each combination; then obtains a plurality of second texts to be processed before any first text to be processed, and obtains a second text priority according to the time length between the disclosure time in each second text to be processed and the target word object situation in the second text to be processed. The second text priority also introduces a time dimension as a weight of the number of repeated words in the number of repeated words, which can improve the reliability of the second text priority corresponding to the first text to be processed; when the sum of the first text priority and the second text priority is greater than the preset priority threshold, the corresponding first text to be processed is determined as a target text related to the given word object, and a plurality of target texts with a high degree of relevance to a specified technical field can be determined through multiple dimensions, which is conducive to reflecting the development process of the technical field to a certain extent, thereby providing a strong basis for further predicting the technical maturity of the specified technical field. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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.
[0042] Figure 1 A flowchart of a method for determining a target text provided in Embodiment 1 of the present invention; Figure 2 A flowchart of the steps of obtaining a target word object provided in the first embodiment of the present invention; Figure 3 A flowchart of the steps of determining a target paragraph provided in the first embodiment of the present invention; Figure 4 A flowchart of step S200 provided in the first embodiment of the present invention; Figure 5 A flowchart of step S300 provided in the first embodiment of the present invention; Figure 6 A schematic diagram of the structure of a device for determining a target text provided in Embodiment 2 of the present invention; Figure 7 A schematic diagram of the structure of a target word object acquisition module provided in the second embodiment of the present invention; Figure 8 A partial structural diagram of a first determination module 100 provided in Embodiment 2 of the present invention; Fig. 9 A schematic diagram of the structure of the first acquisition module 200 provided in the second embodiment of the present invention; Fig.10 This is a schematic diagram of the structure of the second acquisition module 300 provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0043] 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.
[0044] Embodiment 1 like Figure 1 As shown, this embodiment 1 provides a method for determining a target text, comprising the following steps: S100, according to a plurality of target word objects in the category to which a given word object belongs that are obtained in advance, a plurality of first to-be-processed texts corresponding to each target word object are obtained from a preset text library, and a plurality of target sentences are determined from each first to-be-processed text.
[0045] Specifically, the target sentence refers to a sentence obtained from a target paragraph in any first text to be processed and including at least one target word object.
[0046] Specifically, the given word object is the name of any technical field specified by the user; it can be understood that: the given word object is the name of any technology specified by the user, for example: image processing technology.
[0047] In a specific embodiment, Figure 2 As shown, before step S100, several target word objects under the category to which the given word object belongs are obtained by the following steps: S001, adding a given word object to a target position in a preset query text template to generate a target query text; the target position refers to a position in the query text template where a missing text exists.
[0048] For example, the query text template is "What are the words related to the technical field of ——", if the given word object is image processing, add image processing to the "——".
[0049] S002, input the target query text into a preset large language model to obtain a number of target word objects under the category to which the given word object belongs. For example, the target word object can be a synonym, an alias, a subordinate word of the same genus, etc. of the given word object. The preset large language model is a model trained in advance for obtaining a number of word objects related to any word object. Those skilled in the art know the specific training process, which will not be described in detail here.
[0050] In a specific embodiment, Figure 3 As shown, step S100 also includes the following steps: S101, obtaining from a preset text library a plurality of first texts to be processed corresponding to each target word object and a text category identifier of each first text to be processed; this can be understood as: obtaining from the preset text library a text containing at least one target word object as the first text to be processed.
[0051] Specifically, the text category identification includes but is not limited to patent text and paper text.
[0052] S102, for any first text to be processed, based on the correspondence between the preset text category identifier and the target paragraph in the first text to be processed, according to the text category identifier of the first text to be processed, determine the target paragraph from the first text to be processed; it can be understood that: the correspondence between the preset text category identifier and the target paragraph in the first text to be processed includes a plurality of groups of one-to-one corresponding text category identifiers and target paragraphs. For example, when the text category identifier is a patent text, considering the repetitiveness of words, the specific implementation method part is used as the target paragraph.
[0053] As described above, by obtaining the first text to be processed based on a number of target word objects, the obtained related text is made more comprehensive, and then the target sentence including the target word object is further determined from the target paragraph of the first text to be processed, so that the number of each target word object in the obtained target sentence can provide a basis for calculating the text priority of the first text to be processed.
[0054] S200, for any first text to be processed, according to the quantity information of each target word object in each target sentence in the first text to be processed, obtaining a first text priority corresponding to the first text to be processed.
[0055] In a specific embodiment, Figure 4 As shown, step S200 also includes the following steps: S201, for any target sentence in the first text to be processed, divide a number of target word objects in the target sentence into a number of target phrases; the target phrase refers to any phrase in which the number of target word objects screened out from the currently remaining number of target word objects is the largest and each screened out target word object has only one; the currently remaining number of target word objects refers to the remaining number of target word objects obtained after deleting all the screened out target word objects from the number of target word objects in the target sentence.
[0056] For a better understanding, an example is given below: when the target word objects in the target sentence include A1, A2, A3, A2, A1, A1, A1, the first screening obtains the target phrase (A1, A2, A3), and the remaining target word objects currently include A2, A1, A1, A1, the second screening obtains the target phrase (A1, A2), and the remaining target word objects currently include A1, A1, the third screening obtains the target phrase (A1), and the remaining target word objects currently are A1, so the last screening obtains the target phrase (A1).
[0057] S202, for any target phrase corresponding to the target sentence, calculate the first phrase priority corresponding to the target phrase based on the total number of target word objects in the target phrase and the target number corresponding to the target phrase; the target number corresponding to the target phrase refers to the number of phrases obtained from several target phrases corresponding to the target sentence that are the same as any target phrase.
[0058] Further, the first phrase priority corresponding to the target phrase is the product of the total number of target word objects in the target phrase and the target number corresponding to the target phrase.
[0059] For example, when the target phrase is (A1, A2, A3), the total number of target word objects in the target phrase is 3, the target number corresponding to the target phrase is 1, and the first phrase priority corresponding to the target phrase is 3; when the target phrase is (A1), the total number of target word objects in the target phrase is 1, the target number corresponding to the target phrase is 2, and the first phrase priority corresponding to the target phrase is 2.
[0060] S203, based on the same target phrase information in the several target phrases corresponding to the target sentence, deduplicate the several first phrase priorities to obtain several second phrase priorities; it can be understood as: deduplicate the target phrases, and also remove the first phrase priorities corresponding to the removed target phrases, because when calculating the first phrase priority of the target phrase, all target phrases identical to the target phrase have been taken into account.
[0061] S204: Determine the sum of the priorities of the plurality of second phrases as the sentence priority corresponding to the target sentence.
[0062] S205 , adding sentence priorities corresponding to a plurality of target sentences in the first text to be processed, to obtain a first text priority corresponding to the first text to be processed.
[0063] As described above, when calculating the first text priority of the first text to be processed, the dimension of the target word objects contained in the first text to be processed is considered. By introducing the combination of target word objects and the number of each combination, the importance of the first text to be processed can be more accurately reflected.
[0064] S300, obtain a number of second texts to be processed corresponding to the first text to be processed, and obtain the second text priority corresponding to the first text to be processed according to a number of target word objects corresponding to each second text to be processed, and the duration between the first text to be processed and the publication time of each second text to be processed; the second text to be processed refers to any other first text to be processed that is published earlier than the first text to be processed. For example, there are five first texts to be processed corresponding to the target word object, which are arranged in order of publication time. When the first text to be processed is the fourth published text, its corresponding number of second texts to be processed are the three first texts to be processed that were published before the first text to be processed itself.
[0065] In a specific embodiment, Figure 5 As shown, step S300 also includes the following steps: S301, according to the time between the publication time of the first to-be-processed text and the publication time of each second to-be-processed text, normalize each time to obtain a time proportion parameter corresponding to each second to-be-processed text.
[0066] S302, for any second text to be processed, according to a number of target word objects corresponding to the second text to be processed, obtain the number of repeated target word objects between the second text to be processed and the first text to be processed; for example, the first text to be processed includes target word objects A1, A2, and A3, and the second text to be processed includes target word objects A1 and A2, then the total number of repeated target word objects is 2.
[0067] S303: Determine the product of the time proportion parameter corresponding to the second text to be processed and the total number of target word objects repeated between the second text to be processed and the first text to be processed as the text weight of the second text to be processed.
[0068] S304, calculating the ratio of the sum of the text weights of each second text to be processed to the number of the second texts to be processed, and using the calculation result as the second text priority corresponding to the first text to be processed.
[0069] As described above, when calculating the second text priority of the first text to be processed, the dimension of several second texts to be processed whose publication time is before the first text to be processed is taken into consideration, and the time dimension is also introduced into the number of repeated words as the weight of the number of repeated words, which can accurately reflect the importance of each second text to be processed to the first text to be processed, thereby improving the reliability of the second text priority corresponding to the first text to be processed.
[0070] S400, when the sum of the first text priority and the corresponding second text priority corresponding to the first text to be processed is greater than the preset priority threshold, the first text to be processed is determined as the target text related to the given word object; it can be understood that: the target text related to the given word object refers to the relevant research text in the technical field to which the given word object belongs.
[0071] As described above, the priority of the text is considered through multiple dimensions, which makes the determination of the target text with high relevance to the technical field to which the given word object belongs more reasonable and reliable, and the several target texts with different disclosure times that are finally determined are conducive to reflecting the development process of the technical field to a certain extent, and provide a strong basis for further predicting the life cycle of the technical field to which the given word object belongs.
[0072] In a specific embodiment, the method further comprises the following steps: S10, obtaining a score influence indicator set corresponding to each target text; the score influence indicator set corresponding to the target text includes a normalized value of a duration parameter corresponding to the target text, a normalized value of the number of target word objects, and an average priority of the target word objects.
[0073] In a specific embodiment, the score impact indicator set corresponding to the target text is obtained by the following steps: S11, according to several target texts corresponding to a given word object, normalize the duration parameter corresponding to each target text to obtain a normalized value of the duration parameter; wherein, the duration parameter corresponding to the target text refers to the duration between the publication time of the target text itself and the publication time of the first text; the first text refers to the target text with the earliest publication time; it can be understood as: normalizing the duration parameter corresponding to each target text to a value between 0 and 1.
[0074] S12, according to a number of target texts corresponding to a given word object, normalize the number of target word objects corresponding to each target text to obtain a normalized value of the number of target word objects; it can be understood as: normalizing the number of target word objects corresponding to each target text to a value between 0 and 1.
[0075] S13, for any target text corresponding to a given word object, calculate the TF-IDF value corresponding to each target word object in the target text, and take the average of several TF-IDF values as the average priority of the target word object to obtain a score influence indicator set corresponding to the target text; those skilled in the art know the specific process of calculating the TF-IDF value, which will not be repeated here.
[0076] As mentioned above, since these three score influencing indicators are all related to the given technical field, these three indicators can reflect the correlation between the corresponding target text and the given technical field, that is, reflect the score of the target text, which is conducive to obtaining the constant value in the subsequent preset life cycle indicator model to obtain the final technology maturity prediction model.
[0077] S20, classifying a plurality of target texts according to text types, and obtaining a plurality of target text sets.
[0078] S30, performing unsupervised clustering on each target text set to obtain a number of key texts, so as to obtain a score influence indicator set corresponding to each key text; the key text refers to the target text corresponding to the center of any target text cluster obtained by unsupervised clustering.
[0079] As mentioned above, by classifying the target texts so that the target texts in the same set are of the same type, the accuracy and reliability of clustering can be improved. By unsupervised clustering and screening out the center of each target text cluster as the screened key text, the number of texts used can be reduced, greatly reducing the subsequent computational complexity.
[0080] S40, taking the normalized value of the duration parameter in the score impact indicator set corresponding to the i-th key text, the normalized value of the number of target word objects, the average priority of the target word objects and the preset score corresponding to the i-th key text as x i1 、x i2 、x i3 and Z i Substitute into the preset life cycle indicator model Z i =ax i1 +bx i2 +cx i3 +d, the to-be-processed lifecycle indicator model corresponding to the i-th key text is obtained, where a, b, c, and d are constants.
[0081] S50, according to the pending life cycle indicator model corresponding to each key text, the values of a, b, c, and d are obtained through a genetic algorithm to obtain a target life cycle indicator model, and the target life cycle indicator model is used as a technology maturity index; it can be understood as: using a genetic algorithm to find the optimal solution for the formulas corresponding to several pending life cycle indicator models to obtain the optimal values of a, b, c, and d; those skilled in the art know the specific implementation method of the genetic algorithm for finding the optimal solution, and the solution process is a prior art and does not belong to the innovative part, so it will not be elaborated here.
[0082] As mentioned above, since the normalized value of the duration parameter, the normalized value of the target word object, and the average priority of the target word object are all close features related to the text and the given technical field, these three indicators are used as variables in the preset life cycle indicator model and a series of calculations are performed to obtain a reasonable technology maturity index corresponding to the given technical field.
[0083] S60, obtaining a technology maturity prediction model corresponding to a given word object according to the technology maturity index and the pre-acquired target growth limit.
[0084] In a specific embodiment, the target growth limit is obtained through the following steps: S61, according to the publication time of each target text, obtain several target text annual growth rates corresponding to several target texts; it can be understood as: calculating the annual text growth rate of the target text in units of years.
[0085] S62, taking the largest target text annual growth rate among several target text annual growth rates as the target growth limit.
[0086] Specifically, the formula corresponding to the technology maturity prediction model meets the following conditions: F=L / (1+e -z ), where F is the technology maturity corresponding to a given word object, L is the maximum text growth rate obtained in advance, and z is the technology maturity index.
[0087] As mentioned above, on the basis of the existing technology maturity curve prediction model, the technology maturity index has been improved through the relevant data of a large number of target texts related to the technical field, so that the technology maturity prediction model corresponding to any technical field can be obtained, and the obtained prediction curve is more accurate and reliable, which is conducive to understanding the development level of the technical field, thereby providing a research basis for the subsequent development direction.
[0088] Embodiment 2 like Figure 6 As shown, this embodiment 2 provides a device for determining a target text, including: The first determination module 100 is used to obtain a plurality of first to-be-processed texts corresponding to each target word object from a preset text library according to a plurality of target word objects in the category to which a given word object belongs obtained in advance, and to determine a plurality of target sentences from each first to-be-processed text.
[0089] Specifically, the target sentence refers to a sentence obtained from a target paragraph in any first text to be processed and including at least one target word object.
[0090] Specifically, the given word object is the name of any technical field specified by the user; it can be understood that: the given word object is the name of any technology specified by the user, for example: the field of image processing technology.
[0091] In a specific embodiment, Figure 7 As shown, the device also includes a target word object acquisition module, and the target word object acquisition module includes: The generating module 001 is used to add a given word object to a target position in a preset query text template to generate a target query text; the target position refers to a position in the query text template where there is a missing text.
[0092] For example, the query text template is "What are the words related to —— technology?", if the given word object is image processing, add image processing to "——".
[0093] The third acquisition module 002 is used to input the target query text into a preset large language model to obtain a number of target word objects under the category to which a given word object belongs. For example, the target word object can be a synonym, an alias, a lower-level relative word of the same genus, etc. of the given word object. The preset large language model is a model trained in advance for obtaining a number of word objects related to any word object. Those skilled in the art know the specific training process, which will not be described in detail here.
[0094] In a specific embodiment, Figure 8 As shown, the first determining module 100 includes: The fourth acquisition module 101 is used to acquire a plurality of first texts to be processed corresponding to each target word object and a text category identifier of each first text to be processed from a preset text library; it can be understood as: acquiring a text containing at least one target word object from the preset text library as the first text to be processed.
[0095] Specifically, the text category identification includes but is not limited to patent text and paper text.
[0096] The third determination module 102 is used to determine the target paragraph from any first text to be processed based on the correspondence between the preset text category identifier and the target paragraph in the first text to be processed, according to the text category identifier of the first text to be processed; it can be understood that: the correspondence between the preset text category identifier and the target paragraph in the first text to be processed includes a plurality of groups of one-to-one corresponding text category identifiers and target paragraphs. For example, when the text category identifier is a patent text, considering the repetitiveness of words, the specific implementation method part is used as the target paragraph.
[0097] As described above, by obtaining the first text to be processed based on a number of target word objects, the obtained related text is made more comprehensive, and then the target sentence including the target word object is further determined from the target paragraph of the first text to be processed, so that the number of each target word object in the obtained target sentence can provide a basis for calculating the text priority of the first text to be processed.
[0098] The first acquisition module 200 is used to acquire, for any first text to be processed, a first text priority corresponding to the first text to be processed according to the quantity information of each target word object in each target sentence in the first text to be processed.
[0099] In a specific embodiment, Fig. 9 As shown, the first acquisition module 200 includes: The division module 201 is used to divide a plurality of target word objects in any target sentence in the first to-be-processed text into a plurality of target phrases; the target phrase refers to any phrase in which the number of target word objects screened out from the currently remaining plurality of target word objects is the largest and each screened out target word object has only one; the currently remaining plurality of target word objects refers to the remaining plurality of target word objects obtained after deleting all the screened out target word objects from the plurality of target word objects in the target sentence.
[0100] For a better understanding, an example is given below: when the target word objects in the target sentence include A1, A2, A3, A2, A1, A1, A1, the first screening obtains the target phrase (A1, A2, A3), and the remaining target word objects currently include A2, A1, A1, A1, the second screening obtains the target phrase (A1, A2), and the remaining target word objects currently include A1, A1, the third screening obtains the target phrase (A1), and the remaining target word objects currently are A1, so the last screening obtains the target phrase (A1).
[0101] The calculation module 202 is used to calculate the first phrase priority corresponding to any target phrase corresponding to the target sentence based on the total number of target word objects in the target phrase and the target number corresponding to the target phrase; the target number corresponding to the target phrase refers to the number of phrases obtained from several target phrases corresponding to the target sentence that are the same as any target phrase.
[0102] Further, the first phrase priority corresponding to the target phrase is the product of the total number of target word objects in the target phrase and the target number corresponding to the target phrase.
[0103] For example, when the target phrase is (A1, A2, A3), the total number of target word objects in the target phrase is 3, the target number corresponding to the target phrase is 1, and the first phrase priority corresponding to the target phrase is 3; when the target phrase is (A1), the total number of target word objects in the target phrase is 1, the target number corresponding to the target phrase is 2, and the first phrase priority corresponding to the target phrase is 2.
[0104] The first processing module 203 is used to deduplicate several first phrase priorities according to the same target phrase information in several target phrases corresponding to the target sentence, so as to obtain several second phrase priorities; it can be understood as: deduplicating the target phrases, and also removing the first phrase priorities corresponding to the removed target phrases, because when calculating the first phrase priority of the target phrase, all target phrases identical to the target phrase have been taken into consideration.
[0105] The fourth determination module 204 is configured to determine the sum of the priorities of the plurality of second phrases as the sentence priority corresponding to the target sentence.
[0106] The fifth acquisition module 205 is used to add up the sentence priorities corresponding to a plurality of target sentences in the first text to be processed, so as to obtain the first text priority corresponding to the first text to be processed.
[0107] As described above, when calculating the first text priority of the first text to be processed, the dimension of the target word objects contained in the first text to be processed is considered. By introducing the combination of target word objects and the number of each combination, the importance of the first text to be processed can be more accurately reflected.
[0108] The second acquisition module 300 is used to acquire a number of second texts to be processed corresponding to the first text to be processed, and acquire the second text priority corresponding to the first text to be processed according to a number of target word objects corresponding to each second text to be processed, and the time between the first text to be processed ...
[0109] In a specific embodiment, Fig.10 As shown, the second acquisition module 300 includes: The second processing module 301 is used to normalize each time length according to the time length between the first to-be-processed text publication time and each second to-be-processed text publication time, so as to obtain a time proportion parameter corresponding to each second to-be-processed text.
[0110] The sixth acquisition module 302 is used to obtain, for any second text to be processed, the number of repeated target word objects between the second text to be processed and the first text to be processed based on a number of target word objects corresponding to the second text to be processed; for example, the first text to be processed includes target word objects A1, A2, and A3, and the second text to be processed includes target word objects A1 and A2, then the total number of repeated target word objects is 2.
[0111] The fifth determination module 303 is used to determine the product of the time proportion parameter corresponding to the second text to be processed and the total number of repeated target word objects between the second text to be processed and the first text to be processed as the text weight of the second text to be processed.
[0112] The seventh acquisition module 304 is used to calculate the ratio of the sum of the text weights of each second text to be processed to the number of the second text to be processed, and use the calculation result as the second text priority corresponding to the first text to be processed.
[0113] As described above, when calculating the second text priority of the first text to be processed, the dimension of several second texts to be processed whose publication time is before the first text to be processed is taken into consideration, and the time dimension is also introduced into the number of repeated words as the weight of the number of repeated words, which can accurately reflect the importance of each second text to be processed to the first text to be processed, thereby improving the reliability of the second text priority corresponding to the first text to be processed.
[0114] The second determination module 400 is used to determine the first text to be processed as a target text related to a given word object when the sum of the first text priority and the corresponding second text priority corresponding to the first text to be processed is greater than a preset priority threshold; it can be understood that: the target text related to the given word object refers to the relevant research text in the technical field to which the given word object belongs.
[0115] As mentioned above, the priority of the text is considered through multiple dimensions, making the determined target text more reasonable and reliable, and the several target texts with different disclosure times that are finally determined are conducive to reflecting the development process of the technical field to a certain extent, and provide a strong basis for further predicting the life cycle of the technical field to which a given word object belongs.
[0116] Embodiment 3 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: According to a plurality of target word objects in the category to which a given word object belongs acquired in advance, a plurality of first texts to be processed corresponding to each target word object are acquired from a preset text library, and a plurality of target sentences are determined from each first text to be processed; the target sentence refers to a sentence including at least one target word object acquired from a target paragraph in any first text to be processed; the given word object is the name of any technical field specified by the user.
[0117] For any first text to be processed, the first text priority corresponding to the first text to be processed is obtained according to the quantity information of each target word object in each target sentence in the first text to be processed.
[0118] Obtain several second texts to be processed corresponding to the first text to be processed, and obtain the second text priority corresponding to the first text to be processed based on several target word objects corresponding to each second text to be processed and the duration between the publication time of the first text to be processed and the publication time of each second text to be processed; the second text to be processed refers to any other first text to be processed whose publication time is earlier than that of the first text to be processed.
[0119] When the sum of the first text priority and the second text priority corresponding to the first text to be processed is greater than a preset priority threshold, the first text to be processed is determined as a target text related to the given word object.
[0120] Embodiment 4 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: According to a plurality of target word objects in the category to which a given word object belongs acquired in advance, a plurality of first texts to be processed corresponding to each target word object are acquired from a preset text library, and a plurality of target sentences are determined from each first text to be processed; the target sentence refers to a sentence including at least one target word object acquired from a target paragraph in any first text to be processed; the given word object is the name of any technical field specified by the user.
[0121] For any first text to be processed, the first text priority corresponding to the first text to be processed is obtained according to the quantity information of each target word object in each target sentence in the first text to be processed.
[0122] Obtain several second texts to be processed corresponding to the first text to be processed, and obtain the second text priority corresponding to the first text to be processed based on several target word objects corresponding to each second text to be processed and the duration between the publication time of the first text to be processed and the publication time of each second text to be processed; the second text to be processed refers to any other first text to be processed whose publication time is earlier than that of the first text to be processed.
[0123] When the sum of the first text priority and the second text priority corresponding to the first text to be processed is greater than a preset priority threshold, the first text to be processed is determined as a target text related to the given word object.
[0124] 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.
[0125] 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.
[0126] 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 determining a target text, It is characterized in that The following steps are involved: According to a plurality of target word objects in the category to which a given word object belongs that are obtained in advance, a plurality of first texts to be processed corresponding to each target word object are obtained from a preset text library, and a plurality of target sentences are determined from each first text to be processed; the target sentence refers to a sentence including at least one target word object obtained from a target paragraph in any first text to be processed; the given word object is the name of any technical field specified by the user; For any first text to be processed, according to the quantity information of each target word object in each target sentence in the first text to be processed, obtaining the first text priority corresponding to the first text to be processed; Obtain a number of second texts to be processed corresponding to the first text to be processed, and obtain the second text priority corresponding to the first text to be processed according to a number of target word objects corresponding to each second text to be processed and the time between the publication time of the first text to be processed and the publication time of each second text to be processed; the second text to be processed refers to any other first text to be processed whose publication time is earlier than that of the first text to be processed; When the sum of the first text priority and the second text priority corresponding to the first text to be processed is greater than a preset priority threshold, the first text to be processed is determined as a target text related to the given word object.
2. The method for determining a target text according to claim 1, It is characterized in that The following steps are performed to obtain a number of target word objects under the category to which the given word object belongs: Adding a given word object to a target position in a preset query text template to generate a target query text; The target position refers to the position where the missing text exists in the query text template; The target query text is input into a preset large language model to obtain a number of target word objects under the category to which the given word object belongs.
3. The method for determining a target text according to claim 1, It is characterized in that The target paragraph is determined from the first to-be-processed text by the following steps: Acquire from a preset text library a plurality of first to-be-processed texts corresponding to each target word object and a text category identifier of each first to-be-processed text; For any first text to be processed, based on the correspondence between the preset text category identifier and the target paragraph in the first text to be processed, according to the text category identifier of the first text to be processed, the target paragraph is determined from the first text to be processed.
4. The method for determining a target text according to claim 1, It is characterized in that The first text priority corresponding to the first to-be-processed text is obtained by following the steps below: For any target sentence in the first to-be-processed text, the target word objects in the target sentence are divided into a plurality of target word groups; the target word group refers to any word group in which the number of target word objects screened out from the currently remaining target word objects is the largest and each screened out target word object has only one; the currently remaining target word objects refer to the remaining target word objects obtained after deleting all the screened out target word objects from the target word objects in the target sentence; For any target phrase corresponding to the target sentence, the first phrase priority corresponding to the target phrase is calculated according to the total number of target word objects in the target phrase and the target number corresponding to the target phrase; The target number corresponding to the target phrase refers to the number of phrases obtained from the target phrases corresponding to the target sentence that are identical to any target phrase; According to the same target phrase information in the target phrases corresponding to the target sentence, a plurality of first phrase priorities are deduplicated to obtain a plurality of second phrase priorities; Determining the sum of the priorities of the plurality of second phrases as the sentence priority corresponding to the target sentence; The sentence priorities corresponding to several target sentences in the first text to be processed are added together to obtain a first text priority corresponding to the first text to be processed.
5. The method for determining a target text according to claim 1, It is characterized in that The second text priority corresponding to the first to-be-processed text is obtained by following the steps below: According to the time between the publication time of the first to-be-processed text and the publication time of each second to-be-processed text, each time is normalized to obtain a time proportion parameter corresponding to each second to-be-processed text; For any second text to be processed, according to a number of target word objects corresponding to the second text to be processed, the number of target word objects repeated between the second text to be processed and the first text to be processed is obtained; Determine the product of the time proportion parameter corresponding to the second text to be processed and the total number of target word objects repeated between the second text to be processed and the first text to be processed as the text weight of the second text to be processed; The ratio of the sum of the text weights of each second text to be processed to the number of the second texts to be processed is calculated, and the calculation result is used as the second text priority corresponding to the first text to be processed.
6. A device for determining a target text, It is characterized in that The device comprises: A first determination module is used to obtain a plurality of first to-be-processed texts corresponding to each target word object from a preset text library according to a plurality of target word objects under the category to which a given word object belongs in advance, and to determine a plurality of target sentences from each first to-be-processed text; the target sentence refers to a sentence including at least one target word object obtained from a target paragraph in any first to-be-processed text; the given word object is the name of any technical field specified by a user; A first acquisition module is used to acquire, for any first to-be-processed text, a first text priority corresponding to the first to-be-processed text according to the quantity information of each target word object in each target sentence in the first to-be-processed text; The second acquisition module is used to acquire a plurality of second texts to be processed corresponding to the first text to be processed, and acquire the second text priority corresponding to the first text to be processed according to a plurality of target word objects corresponding to each second text to be processed and the time between the publication time of the first text to be processed and the publication time of each second text to be processed; the second text to be processed refers to any other first text to be processed whose publication time is earlier than that of the first text to be processed; The second determination module is used to determine the first text to be processed as a target text related to a given word object when the sum of the first text priority and the second text priority corresponding to the first text to be processed is greater than a preset priority threshold.
7. The target text determination device according to claim 6, It is characterized in that It also includes a target word object acquisition module, the target word object acquisition module includes: A generating module, used for adding a given word object to a target position in a preset query text template to generate a target query text; the target position refers to a position in the query text template where a missing text exists; The third acquisition module is used to input the target query text into a preset large language model to obtain a number of target word objects under the category to which the given word object belongs.
8. The target text determination device according to claim 6, It is characterized in that The first determining module comprises: A fourth acquisition module is used to acquire from a preset text library a plurality of first to-be-processed texts corresponding to each target word object and a text category identifier of each first to-be-processed text; The third determination module is used to determine the target paragraph from any first text to be processed based on the correspondence between the preset text category identifier and the target paragraph in the first text to be processed and the text category identifier of the first text to be processed.
9. The target text determination device according to claim 6, It is characterized in that The first acquisition module includes: A division module is used for dividing a plurality of target word objects in a target sentence into a plurality of target word groups for any target sentence in the first to-be-processed text; the target word group refers to any word group in which the number of target word objects screened out from the currently remaining plurality of target word objects is the largest and each screened out target word object has only one; the currently remaining plurality of target word objects refers to the remaining plurality of target word objects obtained after deleting all the screened out target word objects from the plurality of target word objects in the target sentence; a calculation module, for calculating, for any target phrase corresponding to the target sentence, a first phrase priority corresponding to the target phrase according to the total number of target word objects in the target phrase and the target number corresponding to the target phrase; the target number corresponding to the target phrase refers to the number of phrases obtained from a plurality of target phrases corresponding to the target sentence that are identical to any target phrase; A first processing module is used to perform deduplication processing on a plurality of first phrase priorities according to the same target phrase information in a plurality of target phrases corresponding to the target sentence, so as to obtain a plurality of second phrase priorities; A fourth determination module, configured to determine the sum of the priorities of the plurality of second phrases as the sentence priority corresponding to the target sentence; The fifth acquisition module is used to add up the sentence priorities corresponding to several target sentences in the first text to be processed, so as to obtain the first text priority corresponding to the first text to be processed.
10. The target text determination device according to claim 6, It is characterized in that The second acquisition module includes: The second processing module is used to normalize each time length according to the time length between the first to-be-processed text publication time and each second to-be-processed text publication time, so as to obtain a time proportion parameter corresponding to each second to-be-processed text; A sixth acquisition module is used to acquire, for any second text to be processed, the number of target word objects repeated between the second text to be processed and the first text to be processed according to a number of target word objects corresponding to the second text to be processed; A fifth determination module, configured to determine the product of the time proportion parameter corresponding to the second text to be processed and the total number of target word objects repeated between the second text to be processed and the first text to be processed as the text weight of the second text to be processed; The seventh acquisition module is used to calculate the ratio of the sum of the text weights of each second text to be processed to the number of the second text to be processed, and use the calculation result as the second text priority corresponding to the first text to be processed.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method for determining the target text according to any one of claims 1 to 5 is implemented.
12. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method for determining a target text according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Class case text determination method and device and electronic equipment
CN117033584A
Visual recommendation system and method based on scientific research big data prediction
CN117556118A
Retrieval method and system based on semantic similarity and storage medium
CN118170872A
Intelligent question and answer method and device, storage medium and intelligent equipment
CN118349650A
Knowledge database updating method, computer program product and electronic equipment
CN118377789A
