Object processing method and device based on large language model, computer equipment, storage medium and program product
The historical resource acquisition rate and text data of financial objects are processed through a large language model, combined with enhanced objects, to predict the future resource acquisition rate of financial objects, solving the problem of low accuracy of financial object evaluation and improving the credibility and accuracy of the evaluation. .
Patent Information
- Application Number
- CN202410767681.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-03
AI Technical Summary
The evaluation and screening process of financial objects in the financial field is complex and existing financial indicators cannot comprehensively and accurately measure the actual situation of financial objects, resulting in low accuracy and low credibility of evaluation results.
Using an object processing method based on a large language model, by obtaining the historical resource acquisition rate and text data of the objects to be screened, calculating the resource persistence characteristics and emotional characteristics, and inputting them into the trained resource acquisition prediction model to predict the future resource acquisition rate, Combine the enhanced objects to expand the sample set and determine the target object combination.
It improves the prediction accuracy of the resource acquisition model, solves the problem of sample scarcity, and improves the credibility and quality of the target object combination.
Smart Images

Figure CN118585684A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to an object processing method, apparatus, computer equipment, storage medium and computer program product based on a large language model. Background Art
[0002] In the financial field, the evaluation and screening of financial objects is a complex and diverse process. Investors often rely on financial practitioners to conduct comprehensive evaluations of numerous financial objects. Based on the evaluation results of financial objects, financial practitioners select appropriate target financial objects from a large number of financial objects and provide them to investors.
[0003] At present, financial practitioners often evaluate financial objects through some simple financial indicators, such as yield and other financial indicators. However, these financial indicators do not adequately describe the characteristics of financial objects and cannot comprehensively and accurately measure the actual situation of financial objects, resulting in low accuracy in the evaluation results of financial objects and low credibility of the target financial objects decided. Summary of the invention
[0004] Based on this, it is necessary to provide an object processing method, apparatus, computer device, computer-readable storage medium and computer program product based on a large language model to address the above technical problems.
[0005] In a first aspect, the present application provides an object processing method based on a large language model. The method comprises:
[0006] Obtaining resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target duration;
[0007] Obtaining the sentiment features corresponding to each of the objects to be screened based on the text data of each of the objects to be screened through a large language model;
[0008] The resource persistence feature and the emotional feature are input into a trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each of the objects to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each of the objects to be screened and each enhanced object; the first category of each of the objects to be screened and the second category of each of the enhanced objects meet a category similarity condition; the resource acquisition attributes of the objects to be screened and the enhanced objects are different;
[0009] According to the size of the predicted resource acquisition rate, a plurality of target objects are determined from the plurality of objects to be screened to obtain a target object combination.
[0010] In one embodiment, the resource continuity characteristics of each object to be screened are obtained according to the historical resource acquisition rate of each object to be screened during the target duration, including:
[0011] According to the first number of times that the historical resource acquisition rate of the object to be screened is higher than the reference value for a plurality of consecutive target durations and the second number of times that the resource acquisition rate is lower than the reference value for a plurality of consecutive target durations, continuous information of the object to be screened is obtained; the reference value is determined according to the quantile of the historical resource acquisition rate;
[0012] Obtaining non-continuous information of the object to be screened according to the number of reversals of the relative size between the historical resource acquisition rate and the reference value in a plurality of consecutive target durations;
[0013] The resource persistence feature of the object to be screened is obtained according to the persistence information and the non-persistence information.
[0014] In one embodiment, the emotional features corresponding to each of the objects to be screened are obtained according to the text data of each of the objects to be screened through a large language model, including:
[0015] Based on the text data of each of the objects to be screened, a search result of a vector knowledge base is obtained; the vector knowledge base contains knowledge associated with the objects to be screened;
[0016] Input the search result and the text data as input data into the large language model, and obtain the sentiment classification result of the text data output by the large language model;
[0017] The emotional feature corresponding to the object to be screened is obtained according to the emotion classification result.
[0018] In one embodiment, before inputting the resource duration feature and the sentiment feature into the trained resource acquisition prediction model, the method further includes:
[0019] The sample set is obtained according to the first resource continuous feature sample, the first emotion feature sample and the first resource statistical feature sample of each of the objects to be screened, and the second resource continuous feature sample, the second emotion feature sample and the second resource statistical feature sample of each of the enhanced objects;
[0020] Performing standardization processing on the sample set to obtain a standardized sample set;
[0021] The resource acquisition prediction model to be trained is trained based on the standardized sample set.
[0022] In one of the embodiments, before obtaining the sample set according to the first resource continuous feature sample, the first emotion feature sample and the first resource statistical feature sample of each of the objects to be screened, and the second resource continuous feature sample, the second emotion feature sample and the second resource statistical feature sample of each of the enhanced objects, the further comprising:
[0023] The object classification model to be trained is trained according to the first resource statistical feature samples of each of the objects to be screened and the third resource statistical feature samples of multiple candidate objects to obtain the trained object classification model; the resource acquisition attributes of the objects to be screened and the candidate objects are different;
[0024] Classifying the plurality of candidate objects by using the trained object classification model to obtain a third category of the plurality of candidate objects;
[0025] According to the third category of the candidate object and the first category of the object to be screened, the candidate object that meets the category similarity condition is screened from a plurality of the candidate objects and determined as the enhanced object.
[0026] In one of the embodiments, after determining a plurality of target objects from a plurality of the objects to be screened to obtain a target object combination according to the predicted resource acquisition rate, the method further includes:
[0027] According to the predicted resource acquisition rate, a first feature contribution of the resource persistence feature, a second feature contribution of the emotional feature, and a third feature contribution of the resource statistical feature of the object to be screened are obtained;
[0028] According to the first feature contribution, the second feature contribution and the third feature contribution, a plurality of target features are determined from the resource persistence feature, the emotion feature and the resource statistical feature.
[0029] In a second aspect, the present application also provides an object processing device based on a large language model. The device comprises:
[0030] A resource feature acquisition module, used to obtain resource continuity features of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target time period;
[0031] The emotion feature acquisition module is used to acquire the emotion feature corresponding to each of the objects to be screened according to the text data of each of the objects to be screened through a large language model;
[0032] A resource acquisition rate prediction module, used for inputting the resource duration feature and the emotional feature into a trained resource acquisition prediction model, and obtaining the predicted resource acquisition rate of each of the objects to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each of the objects to be screened and each enhanced object; the first category of each of the objects to be screened and the second category of each of the enhanced objects meet a category similarity condition; the resource acquisition attributes of the objects to be screened and the enhanced objects are different;
[0033] The object combination determination module is used to determine a plurality of target objects from the plurality of objects to be screened to obtain a target object combination according to the size of the predicted resource acquisition rate.
[0034] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0035] Obtaining resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target duration;
[0036] Obtaining the sentiment features corresponding to each of the objects to be screened based on the text data of each of the objects to be screened through a large language model;
[0037] The resource persistence feature and the emotional feature are input into a trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each of the objects to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each of the objects to be screened and each enhanced object; the first category of each of the objects to be screened and the second category of each of the enhanced objects meet a category similarity condition; the resource acquisition attributes of the objects to be screened and the enhanced objects are different;
[0038] According to the size of the predicted resource acquisition rate, a plurality of target objects are determined from the plurality of objects to be screened to obtain a target object combination.
[0039] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0040] Obtaining resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target duration;
[0041] Obtaining the sentiment features corresponding to each of the objects to be screened based on the text data of each of the objects to be screened through a large language model;
[0042] The resource persistence feature and the emotional feature are input into a trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each of the objects to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each of the objects to be screened and each enhanced object; the first category of each of the objects to be screened and the second category of each of the enhanced objects meet a category similarity condition; the resource acquisition attributes of the objects to be screened and the enhanced objects are different;
[0043] According to the size of the predicted resource acquisition rate, a plurality of target objects are determined from the plurality of objects to be screened to obtain a target object combination.
[0044] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0045] Obtaining resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target duration;
[0046] Obtaining the sentiment features corresponding to each of the objects to be screened based on the text data of each of the objects to be screened through a large language model;
[0047] The resource persistence feature and the emotional feature are input into a trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each of the objects to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each of the objects to be screened and each enhanced object; the first category of each of the objects to be screened and the second category of each of the enhanced objects meet a category similarity condition; the resource acquisition attributes of the objects to be screened and the enhanced objects are different;
[0048] According to the size of the predicted resource acquisition rate, a plurality of target objects are determined from the plurality of objects to be screened to obtain a target object combination.
[0049] The above-mentioned object processing method, device, computer equipment, storage medium and computer program product based on the large language model obtain the resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened in the target time; through the large language model, the emotional characteristics corresponding to each object to be screened are obtained according to the text data of each object to be screened; the resource continuity characteristics and the emotional characteristics are input into the trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each object to be screened in the future time output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each object to be screened and each enhanced object; the first category of each object to be screened and the second category of each enhanced object meet the category similarity condition; the resource acquisition attributes of the object to be screened and the enhanced object are different; according to the size of the predicted resource acquisition rate, multiple target objects are determined from multiple objects to be screened to obtain a target object combination.
[0050] The beneficial effects of the present application are as follows: through resource persistence characteristics and sentiment characteristics, more comprehensive analysis data is provided for the resource acquisition prediction model to predict the resource acquisition rate, thereby improving the accuracy of the predicted resource acquisition rate output by the resource acquisition model. Enhanced objects are also used to expand the sample set, solving the problem of insufficient model training samples due to the scarcity of samples of objects to be screened, effectively improving the training effect of the resource acquisition model, and further improving the accuracy of the predicted resource acquisition rate obtained by processing, thereby greatly improving the credibility and quality of the target object combination determined based on the predicted resource acquisition rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is an application environment diagram of an object processing method based on a large language model in one embodiment;
[0052] Figure 2 is a flow chart of an object processing method based on a large language model in one embodiment;
[0053] Figure 3 A schematic diagram of a flow chart of a step of obtaining resource persistence characteristics of each object to be screened in an embodiment;
[0054] Figure 4 is a flow chart of an object processing method based on a large language model in another embodiment;
[0055] Figure 5 is a flowchart of an object processing method based on a large language model in yet another embodiment;
[0056] Figure 6 is a structural block diagram of an object processing device based on a large language model in one embodiment;
[0057] Figure 7FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0060] The object processing method based on the large language model provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the first terminal 101 communicates with the second terminal 102 through the network. The data storage system can store the data that the first terminal 101 needs to process. The data storage system can be integrated on the server, or it can be placed on the cloud or other network servers. The first terminal 101 obtains the resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened in the target time; through the large language model, according to the text data of each object to be screened, the emotional characteristics corresponding to each object to be screened are obtained; the resource continuity characteristics and emotional characteristics are input into the trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each object to be screened in the future time output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on the sample set composed of each object to be screened and each enhanced object; the first category of each object to be screened and the second category of each enhanced object meet the category similarity condition; the resource acquisition attributes of the object to be screened and the enhanced object are different; according to the size of the predicted resource acquisition rate, multiple target objects are determined from multiple objects to be screened to obtain a target object combination; in addition, the first terminal 101 can also send the target object combination to the second terminal 102. The first terminal refers to a terminal device used to implement the above-mentioned object processing method based on a large language model; the second terminal 102 refers to a terminal device used by an investor or a relevant regulatory department of the object to be screened. The first terminal 101 and the second terminal 102 can be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices.
[0061] In one embodiment, Figure 2 As shown, a method for object processing based on a large language model is provided, and the method is applied to Figure 1Taking the first terminal in the example as an example, the method includes the following steps:
[0062] Step S201 , obtaining resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened in a target time period.
[0063] The object to be screened may be a private equity fund in the financial field. The target duration refers to the set duration; for example, the target duration may be 1 month, 2 months, etc. The historical resource acquisition rate is used to characterize the acquisition of a resource by the object to be screened in historical time. The resource continuity feature is used to reflect the continuity and volatility of the historical resource acquisition rate of an object (such as the object to be screened).
[0064] Specifically, the first terminal obtains multiple objects to be screened and the historical resource acquisition rate of each object to be screened under the target duration. The first terminal calculates the resource continuity characteristics of each object to be screened based on the size change of the resource acquisition rate of each object to be screened under multiple consecutive target durations.
[0065] Step S202: using a large language model, based on the text data of each object to be screened, obtain the sentiment feature corresponding to each object to be screened.
[0066] The text data may be text data on public opinion related to the object to be screened.
[0067] Among them, the Large Language Model (LLM) is a deep learning model trained based on massive text data. The LLM can not only generate natural language text, but also deeply understand the meaning of text data and handle various natural language tasks, such as sentiment classification. For example, the LLM can be a large neural network model.
[0068] It should be noted that the existing object identification method in the financial field relies on structured data and ignores important information in unstructured data. For example, unstructured data may include text data such as market sentiment, news reports, and social media dynamics. However, the information in these text data is crucial for a comprehensive and real-time understanding of the dynamics of each object to be screened. Therefore, this embodiment also uses the text data of each object to be screened for analysis and processing.
[0069] Specifically, the first terminal can collect text data of each object to be screened from multiple social platforms in a legal manner; for example, the text data may include news articles, market analysis reports, social media posts, market comments, and investment research reports of the object to be screened. Then, sentiment classification processing is performed based on the text data through the trained large language model. For example, the sentiment represented by the text data can be divided into three categories: positive, neutral, and negative; and then the first terminal obtains the sentiment characteristics of each object to be screened based on the sentiment classification results.
[0070] Step S203, input the resource continuity characteristics and emotional characteristics into the trained resource acquisition prediction model, and obtain the predicted resource acquisition rate of each object to be screened in the future time output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each object to be screened and each enhanced object; the first category of each object to be screened and the second category of each enhanced object meet the category similarity condition; the resource acquisition attributes of the object to be screened and the enhanced object are different.
[0071] Among them, the sentiment feature is used to reflect the sentiment information of an object (such as the object to be screened) in terms of public opinion.
[0072] The resource acquisition prediction model refers to a model used to predict the resource acquisition rate in a future time period. The resource acquisition prediction model can be constructed based on a machine learning algorithm.
[0073] Specifically, the first terminal determines, based on the resource acquisition attributes of the object to be screened, a plurality of enhanced objects that have different resource acquisition attributes from the object to be screened but satisfy the category similarity condition between categories. For example, the object to be screened is assumed to include category A funds of private funds and category B funds of private funds, then the enhanced objects include category a funds of public funds and category b funds of public funds, the resource acquisition attributes of private funds and public funds are different, but category A funds and category a funds satisfy the category similarity condition, and category B funds and category b funds satisfy the category similarity condition.
[0074] Furthermore, the first terminal can fuse the data of each object to be screened and each enhanced object in the historical time period based on transfer learning to construct a sample set, and then use the sample set to train the resource acquisition prediction model to be trained to obtain a trained resource acquisition model. The first terminal uses the data of each object to be screened that is different from the sample set to extract resource continuity characteristics, emotional characteristics and resource statistical characteristics; then the first terminal inputs the resource continuity characteristics, emotional characteristics and resource statistical characteristics into the trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each object to be screened in the future time period (such as X months later) output by the resource acquisition prediction model. Among them, the resource statistical characteristics are used to reflect the statistical characteristics of the object to be screened in terms of resource acquisition, risk, risk adjustment, stock selection and timing, etc.
[0075] Step S204: According to the predicted resource acquisition rate, multiple target objects are determined from the multiple objects to be screened to obtain a target object combination.
[0076] Specifically, the first terminal determines multiple target objects from multiple objects to be screened according to the size of the predicted resource acquisition rate to obtain a target object combination. The first terminal may first sort the objects to be screened in order from large to small according to the predicted resource acquisition rate, and then the first terminal sets the first preset number (for example, the first 20%) of sorted objects to be screened as target objects. The predicted resource acquisition rate may include the predicted resource acquisition rate for each unit time in the future time period (for the convenience of distinction, the predicted resource acquisition rate per unit time may be referred to as a sub-acquisition rate). The first terminal determines multiple target objects from multiple objects to be screened, and may also set a cross-sectional date for the future time period, and determine the cross-sectional resource acquisition rate of each object to be screened based on the sub-acquisition rate of each object to be screened within the cross-sectional date, wherein the cross-sectional resource acquisition rate represents the sum of all sub-acquisition rates of each object to be screened within the cross-sectional date, and then sort the objects to be screened in order from large to small according to the cross-sectional resource acquisition rate, and then the first terminal sets the first preset number (for example, the first 20%) of sorted objects to be screened as target objects.
[0077] Furthermore, the first terminal constructs the determined multiple target objects into a target object combination, and may also send the target object combination to the second terminal so that the holder of the second terminal can view the target object combination.
[0078] In the above-mentioned object processing method based on the large language model, the resource continuity feature of each object to be screened is obtained according to the historical resource acquisition rate of each object to be screened in the target time; through the large language model, the emotional feature corresponding to each object to be screened is obtained according to the text data of each object to be screened; the resource continuity feature and the emotional feature are input into the trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each object to be screened in the future time output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each object to be screened and each enhanced object; the first category of each object to be screened and the second category of each enhanced object meet the category similarity condition; the resource acquisition attributes of the object to be screened and the enhanced object are different; according to the size of the predicted resource acquisition rate, multiple target objects are determined from multiple objects to be screened to obtain a target object combination. The beneficial effects of the present application are as follows: through resource persistence characteristics and sentiment characteristics, more comprehensive analysis data is provided for the resource acquisition prediction model to predict the resource acquisition rate, thereby improving the accuracy of the predicted resource acquisition rate output by the resource acquisition model. Enhanced objects are also used to expand the sample set, solving the problem of insufficient model training samples due to the scarcity of samples of objects to be screened, effectively improving the training effect of the resource acquisition model, and further improving the accuracy of the predicted resource acquisition rate obtained by processing, thereby greatly improving the credibility and quality of the target object combination determined based on the predicted resource acquisition rate.
[0079] In one embodiment, Figure 3 As shown, the above step S201 obtains the resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target duration, which specifically includes the following contents:
[0080] Step S301, obtain continuous information of the object to be screened based on the first number of times that the historical resource acquisition rate of the object to be screened is higher than the reference value for multiple target durations and the second number of times that the resource acquisition rate is lower than the reference value for multiple target durations; the reference value is determined based on the quantile of the historical resource acquisition rate.
[0081] Specifically, the first terminal determines a reference value of the historical resource acquisition rate based on the percentile of the historical resource acquisition rate; and sets a first weight and a second weight respectively for the first number of times the historical resource acquisition rate is higher than the reference value for multiple target durations (for example, two consecutive months) and the second number of times the historical resource acquisition rate is lower than the reference value for multiple target durations (for example, two consecutive months); and then the first terminal calculates the continuous information of the object to be screened based on the first number, the first weight, the second number and the second weight.
[0082] In practical applications, the persistence information can be calculated by the following formula:
[0083]
[0084] In the formula, Indicates continuous information; Indicates the duration of resource sustainability inspection; Indicates the historical resource acquisition rate of the i-th target duration. Similarly Indicates the historical resource acquisition rate of the i+1th target duration; Indicates reference value; Indicates the first time that the duration of two consecutive targets is higher than the reference value; Indicates the second number of times that the duration of two consecutive targets is lower than the reference value; W win represents the first weight; W lose Represents the second weight; I( ) represents the indicator function, which is 1 when the condition in the brackets is true, otherwise it is 0.
[0085] Step S302 , obtaining non-continuous information of the object to be screened according to the number of relative size reversals between the historical resource acquisition rate and the reference value in a plurality of consecutive target durations.
[0086] Specifically, the first terminal may set the number of times that the historical resource acquisition rate under the previous target duration is higher than the reference value and the number of times that the historical resource acquisition rate under the subsequent target duration is lower than the reference value as the third number; set the number of times that the historical resource acquisition rate under the previous target duration is lower than the reference value and the number of times that the historical resource acquisition rate under the subsequent target duration is higher than the reference value as the fourth number; and then the first terminal calculates the non-continuous information of the object to be screened based on the sum of the third number and the fourth number.
[0087] In practical applications, non-persistent information can be calculated using the following formula:
[0088]
[0089] In the formula, Indicates non-persistent information.
[0090] Step S303, obtaining resource persistence characteristics of the object to be screened according to the persistence information and the non-persistence information.
[0091] Specifically, the first terminal obtains the resource persistence feature of the object to be screened according to the ratio between the persistence information and the non-persistence information. In practical applications, the resource persistence feature can be expressed by the following formula:
[0092]
[0093] Where f represents the resource sustainability characteristic.
[0094] In this embodiment, the continuity information of the object to be screened is obtained by the first number of times that the historical resource acquisition rate of the object to be screened is higher than the reference value for multiple target durations and the second number of times that the resource acquisition rate is lower than the reference value for multiple target durations; and the non-continuity information of the object to be screened is obtained by the number of reversals between the relative sizes of the historical resource acquisition rate and the reference value for multiple target durations; finally, the resource continuity characteristics of the object to be screened are obtained based on the ratio between the continuity information and the non-continuity information, and the use of the continuity information and the non-continuity information to determine the resource continuity characteristics can more accurately feedback the long-term resource acquisition situation of the object to be screened, thereby providing more comprehensive and accurate information for the resource acquisition prediction model.
[0095] In one embodiment, the above step S202, through the large language model, obtains the emotional features corresponding to each object to be screened according to the text data of each object to be screened, and specifically includes the following contents: based on the text data of each object to be screened, obtains the retrieval results of the vector knowledge base; the vector knowledge base contains knowledge associated with the object to be screened; the retrieval results and the text data are input as input data into the large language model to obtain the emotional classification results of the text data output by the large language model; according to the emotional classification results, the emotional features corresponding to the object to be screened are obtained.
[0096] The vector knowledge base may include domain knowledge and professional terms associated with multiple objects to be screened.
[0097] Specifically, the first terminal can perform data preprocessing on the collected text data, such as deduplication and data cleaning of the text data, to ensure the quality of the text data. The first terminal selects a suitable large language model, such as the LLAMA model (a large language model), and then fine-tunes the large language model. During the fine-tuning process, the large language model is trained using an annotated text data set so that the trained large language model can recognize and classify text content with different emotions (such as positive, neutral, and negative). The first terminal can also add a vector knowledge base to the large language model to reduce the large language model's forgetting of learned knowledge and improve its processing capability for low-frequency data, thereby improving the accuracy of the large language model. The first terminal can construct a vector knowledge base in an embedding manner, which includes domain knowledge and professional terms related to the objects to be screened. The first terminal can retrieve the vector knowledge base based on the text data of each object to be screened or a question text constructed based on the text data of each object to be screened to obtain the retrieval results of the vector knowledge base. Using the retrieval results of the vector knowledge base as part of the input of the large language model can improve the accuracy and reliability of the large language model in processing professional financial data. The first terminal can also find the optimal input data setting after multiple rounds of testing and adjustment to ensure that the large language model can efficiently process and analyze unstructured text data. The first terminal inputs the text data and the retrieval results into the trained large language model, so that the text data is subjected to sentiment classification processing for public opinion based on the retrieval results through the trained large language model, and then outputs the sentiment classification results of the text data for public opinion. The first terminal determines the emotion quantization value corresponding to the emotion classification result of each object to be screened, and determines the quantile of the emotion quantization value of each object to be screened; and obtains the emotion feature corresponding to each object to be screened according to the quantile of each object to be screened.
[0098] For example, assuming that the sentiment classification results of the text data of the object to be screened include three categories: positive, neutral and negative, +1, 0, and -1 can be used as the sentiment quantification values corresponding to each sentiment classification result, that is, the sentiment quantification value of the text data can be expressed as:
[0099]
[0100] In the formula, Represents the sentiment quantification value of the j-th text data.
[0101] Then, the first terminal sets the quantile of the emotion quantization value of each object to be screened as the emotion feature of the object to be screened, that is, the emotion feature can be expressed by the following formula:
[0102]
[0103] In the formula, represents the emotional characteristics of the object to be screened; N represents the total amount of text data of the object to be screened.
[0104] In this embodiment, sentiment classification is performed on the text data of the object to be screened and the retrieval results through the trained large language model, and the sentiment classification results of the text data are output; then, based on the sentiment classification results, the sentiment features corresponding to the object to be screened are obtained, thereby achieving the reasonable acquisition of the sentiment features, providing reliable data support for the subsequent prediction of the resource acquisition rate, and effectively reducing the forgetting of the learned knowledge by the large language model by plugging in a vector knowledge base to the large language model, improving the processing capability of low-frequency data, and further improving the model performance of the trained large language model.
[0105] In one embodiment, in the above step S203, before inputting the resource continuous features and emotional features into the trained resource acquisition prediction model, it also includes: obtaining a sample set based on the first resource continuous feature sample, the first emotional feature sample and the first resource statistical feature sample of each object to be screened, and the second resource continuous feature sample, the second emotional feature sample and the second resource statistical feature sample of each enhanced object; standardizing the sample set to obtain a standardized sample set; and training the resource acquisition prediction model to be trained based on the standardized sample set.
[0106] Among them, the resource statistical feature samples (including the first resource statistical feature samples and the second resource statistical feature samples) are used to reflect the statistical information of the object in terms of resource acquisition, risk, risk adjustment, stock selection and timing, etc.
[0107] Specifically, the sample data of the objects to be screened are scarce, the available historical data are usually very limited, and some historical data must be divided out as input data for the above step S203, which makes it difficult for the resource acquisition prediction model to obtain enough samples for training. Therefore, the present application also obtains an enhanced object that meets the category similarity condition with the first category of the object to be screened, and then the first terminal divides the historical data of each object to be screened into training data and test data, and uses the historical resource acquisition rate in the training data to obtain the first resource continuous feature sample for training the model, and uses the text data in the training data to obtain the first emotional feature sample for training the model, and also obtains the first resource statistical feature sample for training the model based on the resource statistical data in the training data. Similarly, the first terminal obtains the second resource continuous feature sample for training the model based on the historical resource acquisition rate of each enhanced object, and obtains the second emotional feature sample for training the model based on the text data of each enhanced object, and also obtains the second resource statistical feature sample for training the model based on the resource statistical data of each enhanced object. The terminal combines the first resource continuous feature sample, the first emotional feature sample and the first resource statistical feature sample of each object to be screened, and the second resource continuous feature sample, the second emotional feature sample and the second resource statistical feature sample of each enhanced object to construct a sample set. The first terminal standardizes the sample set by using the Median Absolute Deviation (MAD) method to obtain a standardized sample set; based on the standardized sample set, the resource acquisition prediction model to be trained is trained by using a rolling window cross-training method to obtain a trained resource acquisition prediction model.
[0108] In this embodiment, a sample set is constructed based on the first resource continuous feature sample, the first emotion feature sample and the first resource statistical feature sample of each object to be screened, and the second resource continuous feature sample, the second emotion feature sample and the second resource statistical feature sample of each enhanced object, so that the constructed sample set is richer and more diverse, which solves the problem of scarcity of samples of objects to be screened, and is also beneficial to improving the generalization ability of the trained resource prediction model; based on the standardized sample set, the resource acquisition prediction model to be trained is trained, which can also improve the robustness of the trained resource prediction model and further improve the model performance of the trained resource prediction model.
[0109] In one embodiment, before obtaining a sample set based on the first resource continuous feature samples, the first emotional feature samples and the first resource statistical feature samples of each object to be screened, and the second resource continuous feature samples, the second emotional feature samples and the second resource statistical feature samples of each enhanced object, it also includes: training an object classification model to be trained based on the first resource statistical feature samples of each object to be screened and the third resource statistical feature samples of multiple candidate objects to obtain a trained object classification model; the resource acquisition attributes of the object to be screened and the candidate objects are different; classifying multiple candidate objects through the trained object classification model to obtain a third category of multiple candidate objects; and screening candidate objects that meet the category similarity condition from multiple candidate objects according to the third category of the candidate objects and the first category of the object to be screened to be determined as enhanced objects.
[0110] The object classification model is used to classify the categories of candidate objects. For example, the object classification model may be a decision tree classification model.
[0111] Specifically, the first terminal obtains multiple objects with different resource acquisition attributes from the object to be screened but similar types as candidate objects; the first resource statistical feature samples of each object to be screened and the third resource statistical feature samples of multiple candidate objects are mixed to obtain mixed samples; the mixed samples are cross-validated to divide the training set, the validation set and the test set; the object classification model to be trained is trained through the training set, the validation set and the test set to obtain a trained object classification model; all candidate objects are classified through the trained object classification model to obtain the third category of multiple candidate objects, and the trained object classification model can also output the score of the third category of the candidate object. The terminal calculates the category similarity between the first category of the object to be screened and the third category of the candidate object, and then based on the category similarity, the candidate object that meets the category similarity condition is screened from the multiple candidate objects to be determined as the enhanced object.
[0112] For example, assuming that the objects to be screened are N private funds, the first terminal can screen out M public funds with similar categories as candidate objects. The first terminal uses the first resource statistical feature samples of N private funds and the third resource statistical feature samples of M public funds to train a trained object classification model, and after outputting the third category of the M public funds using the trained object classification model, the M public funds are sorted in order from large to small in terms of category similarity, and the first (K-1) N public funds are screened out from the sorted M public funds as enhancement objects, and then the terminal obtains a total of KN funds to construct a sample set.
[0113] In this embodiment, a trained object classification model is first trained through the first resource statistical feature samples of each object to be screened and the third resource statistical feature samples of multiple candidate objects; then, the multiple candidate objects are classified through the trained object classification model to obtain the third categories of the multiple candidate objects; finally, based on the third categories of the candidate objects and the first categories of the objects to be screened, candidate objects that meet the category similarity conditions are screened from the multiple candidate objects and determined as enhanced objects, thereby achieving effective expansion of the sample set, solving the problem of sample scarcity in the financial field, and improving the diversity of the sample set.
[0114] In one embodiment, in the above step S204, after determining multiple target objects from multiple objects to be screened to obtain a target object combination based on the size of the predicted resource acquisition rate, it also includes: obtaining a first feature contribution of the resource continuity feature, a second feature contribution of the emotional feature, and a third feature contribution of the resource statistical feature of the object to be screened based on the predicted resource acquisition rate; and determining multiple target features from the resource continuity feature, the emotional feature, and the resource statistical feature based on the sizes of the first feature contribution, the second feature contribution, and the third feature contribution.
[0115] After obtaining the target object combination, the first terminal can also attribute the decision result of the target object combination. Specifically, for each target object in the target object combination, the first terminal uses the predicted resource acquisition rate of the target object to calculate the feature contribution of each input feature (including the resource continuity feature, emotional feature and resource statistical feature of the object to be screened), which can be to calculate the SHAP (SHapley Additive exPlanations) value of each input feature and take the absolute value of the SHAP value, so that the first terminal obtains the first feature contribution of the resource continuity feature, the second feature contribution of the emotional feature and the third feature contribution of the resource statistical feature. The first terminal determines multiple target features from the resource continuity feature, the emotional feature and the resource statistical feature according to the size of the first feature contribution, the second feature contribution and the third feature contribution. For example, the first 10 features ranked by the absolute value of the SHAP value can be selected as the target features. The first terminal uses the determined multiple target features as the explanation attribution of the target object combination. If the SHAP value is positive, it means that the target feature has a positive effect on the resource acquisition rate, that is, the target feature is a positive factor. If the SHAP value is negative, it means that the target feature has a negative effect on the resource acquisition rate, that is, the target feature is a negative factor. In practical applications, the first terminal can also use LIME (Local Interpretable Model-Agnostic Explanations, an explanation method based on local linear models) to calculate the feature contribution of each input feature.
[0116] Furthermore, the first terminal forms decision result attribution information of the target object combination based on the target features and the feature contribution of the target features, and sends the decision result attribution information and the target object combination to the second terminal for the holder of the second terminal to view the decision result attribution information and the target object combination.
[0117] In this embodiment, based on the first feature contribution of the resource continuous feature, the second feature contribution of the emotional feature and the third feature contribution of the resource statistical feature of the object to be screened, multiple target features are determined from the resource continuous features, emotional features and resource statistical features, and the attribution of decision factors for the target object combination is achieved, providing a scientific and reasonable decision explanation for the target object combination.
[0118] In one embodiment, Figure 4 As shown, another object processing method based on a large language model is provided, which is applied to Figure 1 Taking the first terminal in the example as an example, the method includes the following steps:
[0119] Step S401, obtaining continuous information of the object to be screened according to the first number of times that the historical resource acquisition rate of the object to be screened is higher than the reference value for multiple target durations and the second number of times that the historical resource acquisition rate is lower than the reference value for multiple target durations.
[0120] Among them, the reference value is determined based on the quantile of historical resource acquisition rate.
[0121] Step S402 , obtaining non-continuous information of the object to be screened according to the number of relative size reversals between the historical resource acquisition rate and the reference value in a plurality of consecutive target durations.
[0122] Step S403, obtaining resource persistence characteristics of the object to be screened according to the persistence information and the non-persistence information.
[0123] Step S404, based on the text data of each object to be screened, obtain the search results of the vector knowledge base; use the search results and the text data as input data, input them into the large language model, and obtain the sentiment classification results of the text data output by the large language model.
[0124] Step S405: obtaining the emotion characteristics corresponding to the object to be screened according to the emotion classification result.
[0125] Step S406, inputting the resource duration feature and the sentiment feature into the trained resource acquisition prediction model, and obtaining the predicted resource acquisition rate of each to-be-screened object in the future output by the resource acquisition prediction model.
[0126] Among them, the trained resource acquisition prediction model is trained based on a sample set consisting of each object to be screened and each enhanced object; the first category of each object to be screened and the second category of each enhanced object meet the category similarity condition; the resource acquisition attributes of the object to be screened and the enhanced object are different.
[0127] Step S407 , according to the predicted resource acquisition rate, multiple target objects are determined from the multiple objects to be screened to obtain a target object combination.
[0128] Step S408, according to the predicted resource acquisition rate, obtain the first feature contribution of the resource persistence feature, the second feature contribution of the emotional feature, and the third feature contribution of the resource statistical feature of the object to be screened.
[0129] Step S409, according to the first feature contribution, the second feature contribution and the third feature contribution, a plurality of target features are determined from the resource persistence features, the sentiment features and the resource statistical features.
[0130] The above-mentioned object processing method based on the large language model can achieve the following beneficial effects: through the continuous characteristics of resources and emotional characteristics, it provides more comprehensive analysis data for the resource acquisition prediction model to predict the resource acquisition rate, improves the accuracy of the predicted resource acquisition rate output by the resource acquisition model, and also uses enhanced objects to expand the sample set, solving the problem of insufficient model training samples due to the scarcity of samples of objects to be screened, effectively improving the training effect of the resource acquisition model, and further improving the accuracy of the predicted resource acquisition rate obtained by processing, thereby greatly improving the credibility and quality of the target object combination determined based on the predicted resource acquisition rate.
[0131] In order to more clearly illustrate the object processing method based on a large language model provided by the embodiment of the present disclosure, the object processing method based on a large language model is specifically described below with a specific embodiment. Figure 5 As shown, another object processing method based on a large language model is provided, which can be applied to Figure 1 The first terminal in the embodiment specifically includes the following contents:
[0132] Assuming that the objects to be screened are N private funds, the first terminal can screen out M public funds with similar categories as candidate objects. The first terminal uses the first resource statistical feature samples of N private funds and the third resource statistical feature samples of M public funds to train a trained object classification model, and after using the trained object classification model to output the third category of M public funds, the M public funds are sorted in order from large to small according to the category similarity, and the first (K-1) N public funds are screened out from the sorted M public funds as enhanced objects, and then the terminal obtains a total of KN funds to construct a sample set. The sample set of KN funds is standardized by the absolute median method to obtain a standardized sample set; based on the standardized sample set, the resource acquisition prediction model to be trained is trained by the rolling window cross-training method to obtain a trained resource acquisition prediction model.
[0133] The first terminal calculates the resource continuity characteristics of K private equity funds based on the historical resource acquisition rates of K private equity funds. The sentiment characteristics of K private equity funds are obtained based on the text data of K private equity funds. The resource statistical characteristics of K private equity funds are also calculated. Then, the first terminal inputs the resource continuity characteristics, sentiment characteristics and resource statistical characteristics into the trained resource acquisition prediction model, and obtains the predicted resource acquisition rate of K private equity funds in the future time period (for example, X months later) output by the resource acquisition prediction model. The first terminal selects Y private equity funds from K private equity funds as target objects based on the predicted resource acquisition rate, and generates a target object combination.
[0134] Private equity funds are investment funds in the financial industry that raise funds from specific investors in a non-public manner and use specific targets as investment targets. In traditional technologies, investors often use fund managers to comprehensively evaluate and select private equity funds. Fund managers select multiple better private equity funds based on financial indicators such as historical performance, risk and rate of return, and provide them to investors so that investors can decide which private equity funds they need to invest in. However, this method of selecting fund objects through fund managers relies on the personal experience and subjective judgment of fund managers, lacks objective judgment of fund objects, and ultimately provides investors with low credibility of private equity funds. To solve this problem, the first terminal can also calculate the SHAP value of each input feature based on the predicted resource acquisition rate; select the top 10 features ranked by the absolute value of the SHAP value as the target feature. The first terminal forms a decision result attribution report of the target object combination based on the target feature and the SHAP value of the target feature, and sends the decision result attribution report and the target object combination to the second terminal (of the investor) to provide a scientific, reasonable and reliable explanation for the determination of the target object combination through the decision result attribution report.
[0135] In this embodiment, resource persistence characteristics and sentiment characteristics are used to provide more comprehensive analysis data for resource acquisition prediction model to predict resource acquisition rate, thereby improving the accuracy of the predicted resource acquisition rate output by the resource acquisition model. Enhanced objects are also used to expand the sample set, solving the problem of insufficient model training samples due to scarce samples of objects to be screened, effectively improving the training effect of the resource acquisition model, and further improving the accuracy of the predicted resource acquisition rate obtained through processing, thereby greatly improving the credibility and quality of the target object combination determined based on the predicted resource acquisition rate.
[0136] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0137] Based on the same inventive concept, the embodiment of the present application also provides an object processing device for implementing the object processing method based on a large language model involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more object processing device embodiments provided below can refer to the limitations of the object processing method based on a large language model above, and will not be repeated here.
[0138] In one embodiment, Figure 6 As shown, an object processing device 600 based on a large language model is provided, comprising:
[0139] The resource feature acquisition module 601 is used to obtain the resource continuity feature of each object to be screened according to the historical resource acquisition rate of each object to be screened in the target duration.
[0140] The sentiment feature acquisition module 602 is used to acquire the sentiment feature corresponding to each object to be screened according to the text data of each object to be screened through a large language model.
[0141] The resource acquisition rate prediction module 603 is used to input the resource duration characteristics and emotional characteristics into the trained resource acquisition prediction model, and obtain the predicted resource acquisition rate of each object to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each object to be screened and each enhanced object; the first category of each object to be screened and the second category of each enhanced object meet the category similarity condition; the resource acquisition attributes of the object to be screened and the enhanced object are different.
[0142] The object combination determination module 604 is used to determine a plurality of target objects from a plurality of objects to be screened to obtain a target object combination according to the size of the predicted resource acquisition rate.
[0143] In one embodiment, the resource feature acquisition module 601 is also used to obtain the continuity information of the object to be screened based on the first number of times that the historical resource acquisition rate of the object to be screened is higher than the reference value for multiple consecutive target durations and the second number of times that the resource acquisition rate is lower than the reference value for multiple consecutive target durations; the reference value is determined based on the quantile of the historical resource acquisition rate in the target duration; the non-continuity information of the object to be screened is obtained based on the number of reversals between the relative size of the historical resource acquisition rate and the reference value in multiple consecutive target durations; and the resource continuity characteristics of the object to be screened are obtained based on the continuity information and the non-continuity information.
[0144] In one embodiment, the sentiment feature acquisition module 602 is also used to obtain the retrieval results of the vector knowledge base based on the text data of each object to be screened; the vector knowledge base contains knowledge associated with the object to be screened; the retrieval results and the text data are used as input data, input into the large language model, and the sentiment classification results of the text data output by the large language model are obtained; according to the sentiment classification results, the sentiment features corresponding to the object to be screened are obtained.
[0145] In one embodiment, the object processing device based on the large language model also includes a prediction model training module, which is used to obtain a sample set based on the first resource continuous feature sample, the first emotional feature sample and the first resource statistical feature sample of each object to be screened, and the second resource continuous feature sample, the second emotional feature sample and the second resource statistical feature sample of each enhanced object; standardize the sample set to obtain a standardized sample set; and train the resource acquisition prediction model to be trained based on the standardized sample set.
[0146] In one embodiment, the object processing device based on the large language model also includes an enhanced object determination module, which is used to train the object classification model to be trained according to the first resource statistical feature samples of each object to be screened and the third resource statistical feature samples of multiple candidate objects to obtain a trained object classification model; the resource acquisition attributes of the object to be screened and the candidate objects are different; the multiple candidate objects are classified by the trained object classification model to obtain a third category of multiple candidate objects; according to the third category of the candidate objects and the first category of the object to be screened, the candidate objects that meet the category similarity conditions are screened from the multiple candidate objects to be determined as enhanced objects.
[0147] In one embodiment, the object processing device based on the large language model also includes a target feature determination module, which is used to obtain a first feature contribution of a resource persistence feature, a second feature contribution of an emotional feature, and a third feature contribution of a first resource statistical feature of the object to be screened according to the predicted resource acquisition rate; and determine multiple target features from the resource persistence feature, the emotional feature, and the first resource statistical feature according to the size of the first feature contribution, the second feature contribution, and the third feature contribution.
[0148] Each module in the above-mentioned object processing device based on a large language model can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0149] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for object processing based on a large language model is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0150] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0152] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0153] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0154] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed 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 the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An object processing method based on a large language model, characterized in that: The method comprises: Obtaining resource continuity characteristics of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target duration; Obtaining the sentiment features corresponding to each of the objects to be screened based on the text data of each of the objects to be screened through a large language model; The resource persistence feature and the emotional feature are input into a trained resource acquisition prediction model to obtain the predicted resource acquisition rate of each of the objects to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each of the objects to be screened and each enhanced object; the first category of each of the objects to be screened and the second category of each of the enhanced objects meet a category similarity condition; the resource acquisition attributes of the objects to be screened and the enhanced objects are different; According to the size of the predicted resource acquisition rate, a plurality of target objects are determined from the plurality of objects to be screened to obtain a target object combination.
2. The method according to claim 1, characterized in that The resource continuity characteristics of each object to be screened are obtained according to the historical resource acquisition rate of each object to be screened during the target duration, including: According to the first number of times that the historical resource acquisition rate of the object to be screened is higher than the reference value for a plurality of consecutive target durations and the second number of times that the resource acquisition rate is lower than the reference value for a plurality of consecutive target durations, continuous information of the object to be screened is obtained; the reference value is determined according to the quantile of the historical resource acquisition rate; Obtaining non-continuous information of the object to be screened according to the number of reversals of the relative size between the historical resource acquisition rate and the reference value in a plurality of consecutive target durations; The resource persistence feature of the object to be screened is obtained according to the persistence information and the non-persistence information.
3. The method according to claim 1, characterized in that: The method of obtaining the sentiment features corresponding to each of the objects to be screened by using the large language model according to the text data of each of the objects to be screened includes: Based on the text data of each of the objects to be screened, a search result of a vector knowledge base is obtained; the vector knowledge base contains knowledge associated with the objects to be screened; Input the search result and the text data as input data into the large language model, and obtain the sentiment classification result output by the large language model; The emotional feature corresponding to the object to be screened is obtained according to the emotion classification result.
4. The method according to claim 1, characterized in that: Before inputting the resource duration feature and the sentiment feature into the trained resource acquisition prediction model, the method further includes: The sample set is obtained according to the first resource continuous feature sample, the first emotion feature sample and the first resource statistical feature sample of each of the objects to be screened, and the second resource continuous feature sample, the second emotion feature sample and the second resource statistical feature sample of each of the enhanced objects; Performing standardization processing on the sample set to obtain a standardized sample set; The resource acquisition prediction model to be trained is trained based on the standardized sample set.
5. The method according to claim 4, characterized in that Before obtaining the sample set according to the first resource continuous feature sample, the first emotion feature sample and the first resource statistical feature sample of each of the objects to be screened, and the second resource continuous feature sample, the second emotion feature sample and the second resource statistical feature sample of each of the enhanced objects, the method further includes: The object classification model to be trained is trained according to the first resource statistical feature samples of each of the objects to be screened and the third resource statistical feature samples of multiple candidate objects to obtain the trained object classification model; the resource acquisition attributes of the objects to be screened and the candidate objects are different; Classifying the plurality of candidate objects by using the trained object classification model to obtain a third category of the plurality of candidate objects; According to the third category of the candidate object and the first category of the object to be screened, the candidate object that meets the category similarity condition is screened from a plurality of the candidate objects and determined as the enhanced object.
6. The method according to claim 1, characterized in that After determining a plurality of target objects from the plurality of objects to be screened to obtain a target object combination according to the predicted resource acquisition rate, the method further includes: According to the predicted resource acquisition rate, a first feature contribution of the resource persistence feature, a second feature contribution of the emotional feature, and a third feature contribution of the resource statistical feature of the object to be screened are obtained; According to the first feature contribution, the second feature contribution and the third feature contribution, a plurality of target features are determined from the resource persistence feature, the emotion feature and the resource statistical feature.
7. An object processing device based on a large language model, characterized in that: The device comprises: A resource feature acquisition module, used to obtain resource continuity features of each object to be screened according to the historical resource acquisition rate of each object to be screened during the target time period; The emotion feature acquisition module is used to acquire the emotion feature corresponding to each of the objects to be screened according to the text data of each of the objects to be screened through a large language model; A resource acquisition rate prediction module, used for inputting the resource duration feature and the emotional feature into a trained resource acquisition prediction model, and obtaining the predicted resource acquisition rate of each of the objects to be screened in the future output by the resource acquisition prediction model; the trained resource acquisition prediction model is trained based on a sample set consisting of each of the objects to be screened and each enhanced object; the first category of each of the objects to be screened and the second category of each of the enhanced objects meet a category similarity condition; the resource acquisition attributes of the objects to be screened and the enhanced objects are different; The object combination determination module is used to determine multiple target objects from the multiple objects to be screened to obtain a target object combination according to the size of the predicted resource acquisition rate.
8. The device according to claim 7, characterized in that The resource feature acquisition module is further used to obtain the continuous information of the object to be screened according to a first number of times that the historical resource acquisition rate of the object to be screened is continuously higher than a reference value for a plurality of target durations and a second number of times that the resource acquisition rate is continuously lower than the reference value for a plurality of target durations; The reference value is determined according to the quantile of the historical resource acquisition rate in the target duration; the non-continuous information of the object to be screened is obtained according to the number of reversals of the relative size between the historical resource acquisition rate and the reference value in a plurality of consecutive target durations; The resource persistence feature of the object to be screened is obtained according to the persistence information and the non-persistence information.
9. The device according to claim 7, characterized in that The sentiment feature acquisition module is further used to acquire the search result of the vector knowledge base based on the text data of each of the objects to be screened; the vector knowledge base contains knowledge associated with the objects to be screened; the search result and the text data are input into the large language model to acquire the sentiment classification result of the text data output by the large language model; The emotional feature corresponding to the object to be screened is obtained according to the emotion classification result.
10. The device according to claim 7, characterized in that The object processing device based on the large language model also includes a prediction model training module, which is used to obtain the sample set based on the first resource continuous feature sample, the first emotional feature sample and the first resource statistical feature sample of each of the objects to be screened, and the second resource continuous feature sample, the second emotional feature sample and the second resource statistical feature sample of each of the enhanced objects; standardize the sample set to obtain the standardized sample set; and train the resource acquisition prediction model to be trained based on the standardized sample set.
11. The device according to claim 10, characterized in that The object processing device based on the large language model also includes an enhanced object determination module, which is used to train the object classification model to be trained according to the first resource statistical feature samples of each of the objects to be screened and the third resource statistical feature samples of multiple candidate objects to obtain the trained object classification model; the resource acquisition attributes of the objects to be screened are different from those of the candidate objects; and the multiple candidate objects are classified by the trained object classification model to obtain the third categories of the multiple candidate objects; According to the third category of the candidate object and the first category of the object to be screened, the candidate object that meets the category similarity condition is screened from a plurality of the candidate objects and determined as the enhanced object.
12. The device according to claim 7, characterized in that The object processing device based on the large language model also includes a target feature determination module, which is used to obtain a first feature contribution of the resource persistence feature, a second feature contribution of the emotional feature, and a third feature contribution of the first resource statistical feature of the object to be screened according to the predicted resource acquisition rate; and determine multiple target features from the resource persistence feature, the emotional feature, and the first resource statistical feature according to the sizes of the first feature contribution, the second feature contribution, and the third feature contribution.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Index prediction method and device and computer equipment
CN116894721A
Sample generation method and device and storage medium
CN117689979A
Financial time sequence prediction method based on big language model fusion domain knowledge
CN118035845A
Information push method and device based on text adversarial sample
WO2023108980A1
