Copywriting generation method, copywriting evaluation model training method, device and equipment

Computer equipment is used to generate and evaluate push copy, and the attention mechanism model is used to select the copy with the highest accuracy, which solves the problems of low efficiency and insufficient accuracy in manually obtaining copy, and improves the quality and efficiency of push copy.

CN112232067BActive Publication Date: 2024-09-27HANHAI INFORMATION TECH SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011210227.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-03
Publication Date
2024-09-27
Estimated Expiration
2040-11-03

AI Technical Summary

Technical Problem

In the existing technology, manual acquisition of push copywriting is inefficient, and it is difficult to accurately evaluate the accuracy of candidate push copywriting, which affects the promotion effect.

Method used

The target text description information is obtained through computer equipment, a set of candidate push copywriting is generated, and a bidirectional neural network model based on the attention mechanism is used to evaluate the accuracy of the candidate push copywriting, and the copywriting with the highest accuracy is selected as the target push copywriting.

Benefits of technology

It improves the efficiency and accuracy of obtaining push copywriting, avoids the inefficiency of manually generated copywriting, and ensures the quality of push copywriting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112232067B
    Figure CN112232067B
Patent Text Reader

Abstract

The present application discloses a copywriting generation method, a training method, a device, and equipment for a copywriting evaluation model, and belongs to the field of Internet technology. The method includes: obtaining target text description information; obtaining a target candidate copywriting set corresponding to the target text description information; based on the target candidate copywriting set, obtaining probability information of each candidate push copywriting in the target candidate copywriting set; according to the probability information, determining the candidate push copywriting with the highest accuracy in the target candidate copywriting set as the target push copywriting corresponding to the target text description information. In the technical solution provided in the embodiment of the present application, the problem of low copywriting generation efficiency caused by manually obtaining push copywriting is avoided, the efficiency of obtaining the target push copywriting is improved, the accuracy of each candidate push copywriting is evaluated, and the candidate push copywriting with the highest accuracy is selected from the candidate push copywriting as the target push copywriting, so as to ensure the accuracy of the target push copywriting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet technology, and in particular to a training method, device and equipment for a copywriting generation and copywriting evaluation model. Background Art

[0002] Currently, the push copy of the application can directly affect the user's browsing of the text description information corresponding to the push copy.

[0003] In the related technology, in order to attract users to browse the corresponding text description information, after obtaining the user's text description information for a certain product, the staff will extract keywords and configure pictures for the user's text description information, generate a push copy corresponding to the text description information, and then display the push copy in the display interface to attract users to click on the push copy and browse the text description information corresponding to the push copy, thereby realizing the promotion of the above-mentioned product. Summary of the invention

[0004] The embodiment of the present application provides a copywriting generation method, a copywriting evaluation model training method, a device and a device. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a method for generating a copy, the method comprising:

[0006] Get the target text description information;

[0007] Acquire a target candidate text set corresponding to the target text description information, wherein the target candidate text set includes at least one candidate push text;

[0008] Based on the target candidate copy set, obtaining probability information of each candidate push copy in the target candidate copy set, wherein the probability information is used to characterize the accuracy of the candidate push copy corresponding to the target text description information;

[0009] According to the probability information, the candidate push copy with the highest accuracy in the target candidate copy set is determined as the target push copy corresponding to the target text description information.

[0010] On the other hand, an embodiment of the present application provides a method for training a copywriting evaluation model, the method comprising:

[0011] Obtain a candidate training sample set, wherein the candidate training sample set includes at least one positive sample and at least one negative sample; wherein the positive sample refers to a push copy with a click rate greater than a threshold, and the negative sample refers to a push copy with a click rate less than the threshold;

[0012] Based on the feature words corresponding to the push texts in the candidate training sample set, the candidate training sample set is expanded to obtain a target training sample set;

[0013] The target training sample set is used to train the copywriting evaluation model.

[0014] In another aspect, an embodiment of the present application provides a copywriting generation device, the device comprising:

[0015] An information acquisition module is used to obtain target text description information;

[0016] A candidate acquisition module, used to acquire a target candidate copy set corresponding to the target text description information, wherein the target candidate copy set includes at least one candidate push copy;

[0017] A probability acquisition module, configured to acquire probability information of each candidate push copy in the target candidate copy set based on the target candidate copy set, wherein the probability information is used to characterize the accuracy of the candidate push copy corresponding to the target text description information;

[0018] The text determination module is used to determine the candidate push text with the highest accuracy in the target candidate text set as the target push text corresponding to the target text description information according to the probability information.

[0019] In another aspect, an embodiment of the present application provides a training device for a copywriting evaluation model, the device comprising:

[0020] A sample acquisition module is used to acquire a candidate training sample set, wherein the candidate training sample set includes at least one positive sample and at least one negative sample; wherein the positive sample refers to a push copy whose click rate is greater than a threshold, and the negative sample refers to a push copy whose click rate is less than the threshold;

[0021] A sample expansion module, used to expand the candidate training sample set based on the feature words corresponding to each push copy in the candidate training sample set to obtain a target training sample set;

[0022] The model training module is used to train the copywriting evaluation model using the target training sample set.

[0023] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the above-mentioned copy generation method, or to implement the above-mentioned copy evaluation model training method.

[0024] On the other hand, an embodiment of the present application provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned copy generation method, or implements the above-mentioned copy evaluation model training method.

[0025] On the other hand, a computer program product is provided. When the computer program product is run on a computer device, the computer device executes the above-mentioned copy generation method, or implements the above-mentioned copy evaluation model training method.

[0026] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

[0027] The computer device obtains the corresponding target push copy through the target text description information, avoiding the problem of low copy generation efficiency caused by manual acquisition of push copy, and improving the efficiency of acquiring the target push copy. Moreover, after obtaining the candidate push copy corresponding to the target text description information, the computer device evaluates the accuracy of each candidate push copy, selects the candidate push copy with the highest accuracy from the candidate push copy as the target push copy, and ensures the accuracy of the target push copy. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0029] Figure 1 is a schematic diagram of a copywriting generation system provided by an embodiment of the present application;

[0030] Figure 2 is a flow chart of a method for generating a text provided by an embodiment of the present application;

[0031] Figure 3 A schematic diagram illustrating the working principle of an attention mechanism;

[0032] Figure 4 A schematic diagram exemplarily shows the structure of a copywriting evaluation model;

[0033] Figure 5 is a flow chart of a method for generating a text provided by another embodiment of the present application;

[0034] Figure 6 A schematic diagram showing an exemplary text attribute information;

[0035] Figure 7A schematic diagram of text statistical information is exemplarily shown;

[0036] Figure 8 A schematic diagram of a push copy for display is exemplarily shown;

[0037] Fig. 9 A schematic diagram exemplarily shows a display method of a push copy for display;

[0038] Fig.10 A schematic diagram exemplarily shows a method of obtaining a copy for final display;

[0039] Fig.11 is a flow chart of a method for training a copywriting evaluation model provided by an embodiment of the present application;

[0040] Fig.12 A schematic diagram exemplarily shows a method for obtaining a target training sample set;

[0041] Fig.13 A schematic diagram exemplarily illustrates the difference between a push copy obtained by the copy generation method in the present application and a push copy obtained by the related art;

[0042] Fig.14 is a block diagram of a text generation device provided by an embodiment of the present application;

[0043] Fig.15 is a block diagram of a text generation device provided by another embodiment of the present application;

[0044] Fig.16 It is a block diagram of a training device for a copywriting evaluation model provided by one embodiment of the present application;

[0045] Fig.17 is a block diagram of a training device for a copywriting evaluation model provided by another embodiment of the present application;

[0046] Fig.18 It is a structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0048] Please refer to Figure 1 , which shows a schematic diagram of a document generation system provided by an embodiment of the present application. The document generation system may include: a terminal 10 and a computer device 20.

[0049] The terminal 10 is used to send a text message to the computer device 20, and the text message includes the specific content of the text description information and the statistical information of the text description information. Among them, the specific content of the text description information refers to the content displayed to the user in the display interface of the text description information, and the statistical information of the text description information refers to the statistical information corresponding to the user operation of the text description information, such as the number of likes, views and forwarding times of the text description information. Optionally, the terminal 10 can be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, a PC (Personal Computer, personal computer), etc. Among them, the client of the application can be installed in the terminal 10, and the application can be any application that can display the push copy to the user, such as a purchase application, a reading application, a social application, an information application, etc. In the embodiment of the present application, the user can control the current display interface to jump to the display interface of the text description information corresponding to the push copy by triggering the push copy. Among them, the above-mentioned triggering operation can be a click operation, a sliding operation or a long press operation, etc., which is not limited in the embodiment of the present application. Optionally, the above-mentioned application can be an application that needs to be downloaded and installed, or it can be an application that can be used immediately.

[0050] The computer device 20 is used to obtain the corresponding push copy according to the text information sent by the terminal 10. Optionally, the computer device 20 can be a server that provides background services for the client of the application in the terminal 10. Among them, the server can be the background server of the above-mentioned application. The server can be a single server, or a server cluster composed of multiple servers, or a cloud computing service center. Optionally, the server can provide background services for applications in multiple terminals 10 at the same time. In an embodiment of the present application, a copy evaluation model is provided in the computer device 20. Among them, the copy evaluation model refers to a deep learning model for evaluating the accuracy of the candidate push copy corresponding to the text description information, and the copy evaluation model can be a bidirectional neural network model based on the attention mechanism. Optionally, after extracting the candidate push copy corresponding to the above-mentioned text description information from the text information sent by the terminal 10, the computer device 20 evaluates the accuracy of the candidate push copy according to the copy evaluation model, and selects the candidate push copy with the highest accuracy as the push copy corresponding to the text description information based on the evaluation result. Afterwards, the computer device 20 sends the push copy to the terminal 10, so that the terminal 10 can display the push copy to the user.

[0051] Optionally, the terminal 10 and the computer device 20 may communicate with each other via a network.

[0052] Please refer to Figure 2, which shows a flow chart of a method for generating a text document provided by an embodiment of the present application. The method can be applied to Figure 1 In the computer device 20 of the copywriting generation system shown, the execution subject of each step may be the computer device 20. The method may include the following steps (201-204):

[0053] Step 201, obtaining target text description information.

[0054] The target text description information refers to the text input by the user, which can be an evaluation of a certain function, item or store, etc. Optionally, the target text description information includes text information, picture information, or voice information, etc., which is not limited in the embodiment of the present application. Among them, the above-mentioned user can be a user of a certain application or application platform, or a background worker of a certain application or application platform. In the embodiment of the present application, the computer device can obtain the target text description information through the user's terminal.

[0055] In a possible implementation, the terminal automatically sends the target text description information to the computer device. Optionally, after detecting the target text description information, the terminal sends the target text description information to the computer device, and further, the computer device obtains the target text description information; or, the terminal collects and sends the text description information to the computer device at a certain time interval, and further, the computer device can use this to obtain the target text description information, wherein the time interval can be 0.1s, 1s, 1h, 1 day or 1 week, etc., and this embodiment of the application is not limited to this.

[0056] In another possible implementation, the computer device actively obtains the target text description information from the terminal. Optionally, when the computer device determines that it is in a loadable state, it sends a text acquisition request to the terminal, and then the terminal sends the target text description information to the computer device according to the text acquisition request; or, the computer device sends a text acquisition request to the terminal at a certain time interval, and then the terminal sends the text description information to the computer device according to the text acquisition request, and further, the computer device can obtain the target text description information in this way, wherein the time interval can be 0.1s, 1s, 1h, 1 day or 1 week, etc., and this embodiment of the application does not limit this.

[0057] It should be noted that after obtaining the above-mentioned target text description information, the computer device can process the target text description information in real time, or store the target text description information first and process the target text description information at another time, which is not limited in the embodiment of the present application. Optionally, when storing the target text description information, the computer device can classify the target text description information according to the specific content in the target text description information, and store the target text description information in a storage queue corresponding to the classification result.

[0058] Step 202: Obtain a target candidate copy set corresponding to the target text description information.

[0059] The target candidate copy set refers to a set of candidate push copy corresponding to the above target text description information. Optionally, the target candidate copy set includes at least one candidate push copy. Among them, the push copy refers to the text used to represent the main content of the text description information, and the push copy may include text information, picture information or voice information, etc., which is not limited in the embodiments of the present application.

[0060] In the embodiment of the present application, after obtaining the target text description information, the computer device obtains the target candidate text set corresponding to the target text description information. Optionally, the computer device can obtain the target candidate text set corresponding to the target text description information based on the target text description information.

[0061] In a possible implementation, the computer device extracts the above-mentioned target candidate copy set from the above-mentioned target text description information based on the copy extraction rule. Optionally, after obtaining the above-mentioned target text description information, the computer device obtains the copy extraction rule corresponding to the target text description information. Among them, different types of target text description information correspond to different copy extraction rules. For example, if the target text description information is comment information, the copy extraction rule is to extract the target candidate copy set from text information and picture information; if the target text description information is dialogue information, the copy extraction rule is to extract the target candidate copy set from text information and voice information. Further, after obtaining the above-mentioned copy extraction rule, the computer device obtains the target candidate copy set corresponding to the target text description information from the above-mentioned target text description information according to the copy extraction rule.

[0062] In another possible implementation, the staff summarizes the target text description information to obtain the target candidate copy set. Optionally, after obtaining the target text description information, the computer device sends the target text description information to the staff's terminal, and the staff summarizes the target text description information received by the terminal to obtain the target candidate copy set corresponding to the target text description information. Different types of target text description information may correspond to different staff terminals.

[0063] In another possible implementation, the computer device extracts the target candidate text set from the target text description information based on the text extraction model. Optionally, after obtaining the target text description information, the computer device inputs the target text description information into the text extraction model, and obtains the target candidate text set output by the text extraction model. The text extraction model may be a deep learning model, and different types of target text description information may correspond to different text extraction models.

[0064] Step 203: Based on the target candidate copy set, obtain probability information of each candidate push copy in the target candidate copy set.

[0065] The probability information is used to characterize the accuracy of the candidate push copy corresponding to the target text description information. Optionally, the probability information includes a probability score. Among them, the probability score is a numerical value in the range of [0, 1], and the probability score is positively correlated with the above accuracy, that is, the larger the probability score, the higher the accuracy of the candidate push copy. In an embodiment of the present application, after obtaining the above-mentioned target candidate copy set, the computer device obtains the probability information of each candidate push copy in the target candidate copy set based on the target candidate copy set.

[0066] In a possible implementation, the computer device obtains the probability information of each candidate push copy in the target candidate copy set based on the copy evaluation model. Optionally, the above step 203 includes the following steps:

[0067] 1. Input each candidate push copy in the target candidate copy set into the copy evaluation model respectively.

[0068] The copywriting evaluation model is a bidirectional neural network model based on the attention mechanism. The attention mechanism is used to determine the distribution of important content in the candidate push copywriting, and to determine the allocation of computer equipment resources for the candidate push copywriting based on the distribution of important content in the candidate push copywriting.

[0069] For example, in conjunction with reference Figure 3, briefly introduce the principle of the attention mechanism. A small neural network g is used to approximate the state output S of the output layer at time t-1. t-1 , and the word embedding h of the candidate push copy j The relationship score between tj for:

[0070] e tj =g(S t-1 ,h j );

[0071] Furthermore, according to the relationship score e tj Determine word embedding h j The weight a tj for:

[0072]

[0073] Among them, T x refers to the sentence vector of the candidate push copy, e tk It refers to the relationship score of the word embedding of any word in the candidate push copy.

[0074] Afterwards, using weight a tj Embedding h j At the same time, each word embedding in the candidate push copy is weighted to obtain the weighted processing result c for the candidate push copy t for:

[0075]

[0076] Furthermore, the recurrent neural network f is used to output the state S of the output layer at time t-1 t-1 , weighted processing results for candidate push copy c t , and the state result y of the output layer at time t t-1 Processing is performed to obtain the state output S of the output layer at time t t for:

[0077] S t =f(S t-1 ,y t-1 , c t ).

[0078] Optionally, in an embodiment of the present application, the above-mentioned copywriting evaluation model includes an input layer, a word embedding layer, a neural network layer, an attention mechanism layer and an output layer. Figure 4As shown, the copy evaluation model includes an input layer 41, a word embedding layer 42, a neural network layer 43, an attention mechanism layer 44 and an output layer 45. Among them, the input layer 41 is used to input candidate push copy; the word embedding layer 42 is used to obtain the word embedding corresponding to each word segment of the candidate push copy; the neural network layer 43 is used to perform bidirectional traversal on each word embedding to obtain at least one sentence vector; the attention mechanism layer 44 is used to perform weighted processing on each sentence vector based on the distribution of important content in the candidate push copy; the output layer 45 is used to output the probability information of the candidate push copy based on the weighted processing results of each sentence vector. Among them, the above-mentioned bidirectional traversal includes a forward traversal based on the input order of the word segment corresponding to each word embedding, and a reverse traversal based on the input order of the word segment corresponding to each word embedding. Of course, in the embodiment of the present application, in order to ensure the accuracy and high efficiency of the copy evaluation model, the parameters of the copy evaluation model can be specially set, for example, the length of the input sequence of the copy evaluation model is set to 25.

[0079] In the embodiment of the present application, after obtaining the above-mentioned target candidate copy set, the computer device inputs each candidate push copy in the target candidate copy set into the above-mentioned copy evaluation model respectively.

[0080] Exemplarily, the comparison between the bidirectional neural network model based on the attention mechanism in the embodiment of the present application and other deep learning models is shown in Table 1:

[0081] Table 1 Comparison between the bidirectional neural network model based on the attention mechanism and other deep learning models

[0082]

[0083] 2. Obtain the probability information output by the copywriting evaluation model.

[0084] In the embodiment of the present application, after the computer device inputs each candidate push copy in the target candidate copy set into the above-mentioned copy evaluation model, it obtains the probability information output by the copy evaluation model.

[0085] In another possible implementation, the computer device obtains the probability information of each candidate push copy in the above target candidate copy set based on the copy evaluation rule. Optionally, after obtaining the above target candidate copy set, the computer device obtains the copy evaluation rule corresponding to the target candidate copy set, and evaluates each candidate push copy in the target candidate copy set based on the copy evaluation rule, thereby obtaining the probability information of each candidate push copy.

[0086] In another possible implementation, a staff member manually evaluates the target candidate copy set to obtain probability information of each candidate push copy in the target candidate copy set. Optionally, after obtaining the target candidate copy set, the computer device sends each candidate push copy in the target candidate copy set to the staff member's terminal, and the staff member evaluates the candidate push copy received by the terminal to obtain probability information of each candidate push copy.

[0087] Step 204 , based on the probability information, determine the candidate push copy with the highest accuracy in the target candidate copy set as the target push copy corresponding to the target text description information.

[0088] The target push text refers to the text used to represent the main content of the above-mentioned target text description information. The target push text may include text information, picture information or voice information, etc., which is not limited in this embodiment of the present application.

[0089] In the embodiment of the present application, after obtaining the probability information of each candidate push copy, the computer device compares each probability information, and then determines the candidate push copy with the highest accuracy in the target candidate copy set as the target push copy corresponding to the target text description information according to the probability information. Optionally, if the probability information includes a probability score, the computer device can determine the candidate push copy with the largest probability score as the target push copy.

[0090] To sum up, in the technical solution provided by the embodiment of the present application, the computer device obtains the corresponding target push copy through the target text description information, thereby avoiding the problem of low copy generation efficiency caused by manually obtaining the push copy, and improving the efficiency of obtaining the target push copy; moreover, after the computer device obtains the candidate push copy corresponding to the target text description information, it evaluates the accuracy of each candidate push copy, selects the candidate push copy with the highest accuracy from the candidate push copy as the target push copy, and ensures the accuracy of the target push copy.

[0091] Next, the method of obtaining the target candidate copywriting set is introduced.

[0092] In an exemplary embodiment, the above step 202 includes the following steps:

[0093] 1. Perform syntactic preprocessing on the target text description information and extract the first candidate copy set from the target text description information.

[0094] In the embodiment of the present application, after acquiring the target text description information, the computer device performs syntactic preprocessing on the target text description information and extracts a first candidate copy set from the target text description information, wherein the first candidate copy set includes at least one candidate push copy.

[0095] Optionally, after obtaining the target text description information, the computer device removes the symbols in the target text description information to obtain the first processing information. The symbols may include punctuation marks, numeric symbols, Greek letters, emoticons, etc., which are not limited in the embodiments of the present application. Optionally, a symbol library may be stored in the computer device, and when removing the symbols in the target text description information, the computer device may remove the symbols in the target text description information based on the symbols contained in the symbol library.

[0096] Optionally, after acquiring the above-mentioned first processing information, the computer device splices the short sentences in the first processing information to obtain the second processing information. The above-mentioned short sentences refer to the sentences separated by the above-mentioned symbols in the target text description information, and the above-mentioned second processing information includes more than one long sentence. It should be noted that when splicing short sentences, the number of short sentences to be spliced ​​can be 2, 3, 4 or 5, etc., and the embodiment of the present application does not limit this. Of course, when splicing short sentences, adjacent short sentences can be spliced, and non-adjacent short sentences can also be spliced, and the embodiment of the present application does not limit this.

[0097] Optionally, after obtaining the second processing information, the computer device removes the long sentences that do not meet the grammatical logic rules from the second processing information based on the grammatical logic rules to obtain the first candidate copywriting set. The grammatical logic rules include syntactic rules and lexical rules. Syntactic rules are used to detect the structure of each long sentence in the second processing information and the dependency relationship between words in each long sentence. Lexical rules are used to detect the structure and properties of the words in each long sentence in the second processing information.

[0098] 2. Select candidate push copywriting whose quality meets the target condition from the first candidate copywriting set to obtain a target candidate copywriting set.

[0099] In an embodiment of the present application, after obtaining the above-mentioned first candidate copy set, the computer device selects candidate push copy whose quality meets the target condition from the first candidate copy set, removes candidate push copy whose quality does not meet the target condition, and thus obtains the above-mentioned target candidate copy set.

[0100] In a possible implementation, the above target condition is to meet the target requirements. The target requirements include, but are not limited to, at least one of the following: containing positive emotions, beautiful words in the copy, smooth copy, rich copy, and normal copy layout. Optionally, after obtaining the above-mentioned first candidate copy set, the computer device detects the first candidate copy set, removes the push copy that does not meet the target requirements from the first candidate copy set, and obtains the above-mentioned target candidate copy set. Exemplarily, the above-mentioned positive emotions refer to non-negative emotions; the above-mentioned beautiful words in the copy mean that the copy does not include words in the target vocabulary, and the target vocabulary stores non-beautiful words.

[0101] In another possible implementation, the above target condition is that no negative words are included. Among them, negative words refer to words with a certain special tendency. The computer device may store one or more word libraries containing negative words, and different types of negative words may be stored in different word libraries. Optionally, after obtaining the above first candidate copy set, the computer device performs word segmentation filtering on the first candidate copy set, removes the push copy containing negative words from the first candidate copy set, and obtains the above target candidate copy set.

[0102] In another possible implementation, the above-mentioned target condition is that the character length is less than the target value. Wherein, the target value can be any numerical value, such as 24, 25 or 26, etc., which is not limited in the embodiment of the present application. Optionally, after obtaining the above-mentioned first candidate copy set, the computer device performs sentence filtering on the first candidate copy set, removes the push copy whose character length is greater than the target value from the first candidate copy set, and obtains the above-mentioned target candidate copy set; or, after obtaining the above-mentioned first candidate copy set, the computer device performs character supplementation or character interception on the candidate push copy in the first candidate copy set based on the target value corresponding to the character length, and obtains the above-mentioned target candidate copy set. Exemplarily, the above-mentioned character supplementation refers to supplementing the candidate push copy with the character "0"; character interception refers to intercepting the characters corresponding to the target value from the candidate push copy, such as starting from the starting character of the candidate push copy, and sequentially intercepting the characters corresponding to the target value.

[0103] One point that needs to be explained is that in actual application, the staff can flexibly set the above target conditions according to the actual situation. For example, the target conditions may include any one or more of the above conditions, and the embodiments of the present application do not limit this.

[0104] Please refer to Figure 5 , which shows a flow chart of a method for generating a text document provided by another embodiment of the present application. The method can be applied to Figure 1 In the computer device 20 of the copywriting generation system shown, the execution subject of each step may be the computer device 20. The method may include the following steps (501-506):

[0105] Step 501, obtaining target text description information.

[0106] Step 502: Obtain a target candidate copy set corresponding to the target text description information.

[0107] Step 503: Based on the target candidate copy set, obtain probability information of each candidate push copy in the target candidate copy set.

[0108] Step 504 , based on the probability information, determine the candidate push copy with the highest accuracy in the target candidate copy set as the target push copy corresponding to the target text description information.

[0109] The above steps 501-504 and Figure 2 Steps 201-204 in the embodiment are the same, see Figure 2 The embodiments are not described in detail here.

[0110] Step 505: Acquire key information corresponding to the target push copy according to the target text description information.

[0111] Key information refers to information used to make the target push copy display effect richer. Optionally, the computer device can use the key information to fill the target push copy with content. Among them, the filling position of the key information can be any position of the target push copy, and the embodiment of the present application does not limit this.

[0112] In the embodiment of the present application, the computer device can obtain the key information corresponding to the above-mentioned target push copy according to the above-mentioned target text description information. Optionally, the computer device can obtain the key information corresponding to the target push copy after obtaining the above-mentioned target push copy, and then add the key information to the target push copy; or the computer device can obtain the key information corresponding to the target push copy before obtaining the above-mentioned target push copy, and store the key information, and then directly add the key information to the target push copy after obtaining the above-mentioned target push copy.

[0113] In a possible implementation, the key information includes the category to which the target text description information belongs. The category is used to indicate the classification to which the target text description information corresponds. Optionally, the computer device classifies the target text description information according to the target text description information, determines the category to which the target text description information belongs, and obtains the recommendation corresponding to the target push copy from the recommendation library corresponding to the category to which the target text description information belongs. The recommendation libraries corresponding to different categories may contain the same or different recommendation words. Exemplarily, the recommendation includes image information.

[0114] In another possible implementation, the key information includes text attribute information. The text attribute information is used to indicate the content information of the target text description information. Optionally, the computer device performs content detection on the target text description information according to the target text description information to obtain the text attribute information corresponding to the target push copy. For example, Figure 6 As shown, the text attribute information 60 includes keywords 61, entity names 62, recommendation reasons 63 and sentiment analysis 64 of the target text description information. Among them, the keywords 61 may include keywords of the target text description information, which may be the title of the target text description information, or words with a frequency of occurrence within a preset range in the target text description information; the entity name 62 may include the product name, store name, business district name targeted by the target text description information, the author name of the target text description information, and the category name of the category to which the target text description information belongs; the recommendation reason 63 may include a label of the target text description information, which may be selected by the author of the target text description information when inputting the target text description information, or may be assigned by a computer device according to the content of the target text description information. For example, the label may be eating, shopping, entertainment, staying in a hotel, discount, etc.; the sentiment analysis 64 may include emotions contained in the target text description information, such as like, like very much, like but there are some problems, etc.

[0115] In another possible implementation, the key information includes text statistical information. The text statistical information is used to indicate statistical information of user operations on the target text description information. The user operation may be a click operation, a browse operation, a forwarding operation, etc., which is not limited in the present embodiment. Optionally, the computer device counts the user operations on the target text description information according to the target text description information, and obtains the text statistical information corresponding to the target push copy. For example, in combination with reference Figure 7 , the text statistics 70 includes content popularity 71, content conversion 72, purchase status 73 and quality index 74. Among them, the content popularity 71 includes the number of likes, views, favorites, author fans and clicks corresponding to the target text description information; the content conversion 72 includes the number of evaluations and shares corresponding to the target text description information; the purchase status 73 includes the sales volume, discount and average price of the goods included in the target text description information; the quality index 74 includes the star rating and recommendation number of the goods included in the target text description information.

[0116] One point that needs to be explained is that in actual application, the staff can flexibly set the above key information according to the actual situation. For example, the key information may include any one or more of the above information, and the embodiment of the present application does not limit this.

[0117] Step 506: Add key information to the target push copy to obtain a push copy for display.

[0118] In the embodiment of the present application, after obtaining the above key information, the computer device adds the key information to the above target push copy to obtain the push copy for display. The push copy for display refers to a copy that can attract users while summarizing the main content of the target text description information. For example, if the above key information is a recommendation, Figure 8 As shown, the push text 81 for display includes a recommendation word 82 , the push text 83 for display includes a recommendation word 84 , and the push text 85 for display includes a recommendation word 86 .

[0119] One point that needs to be explained is that in an embodiment of the present application, the computer device can also add a title to the push copy for display. Optionally, the computer device obtains user information of the user account targeted by the push copy for display, and based on the user information, adds a title to the push copy for display. Among them, the above-mentioned user account refers to the user account corresponding to the user of the terminal used to display the push copy for display. Optionally, the above-mentioned user information includes a user name, a user avatar, a character string corresponding to the user account, etc.; the above-mentioned title can include any one or more information in the user information, which is not limited in the embodiment of the present application.

[0120] Optionally, after the computer device adds a title to the push copy displayed to the user, the computer device may send the push copy with the title for display to the terminal. Correspondingly, the terminal receives the push copy with the title for display and displays the push copy with the title for display to the user in the display interface, such as Fig. 9 As shown, the display interface 90 includes a push copy 91 for display and a title 92 of the push copy 91 for display. The push copy 91 for display includes key information 93.

[0121] Of course, in actual use, the above title can also be added by the terminal. Optionally, after obtaining the above push copy for display, the computer device can send the push copy for display to the terminal, and then, after obtaining the push copy for display, the terminal adds a title to the push copy for display according to the user information of the user account, and displays the push copy for display with the title to the user in the display interface.

[0122] In summary, in the technical solution provided in the embodiment of the present application, by adding key information to the target push copy, a push copy for display is obtained, so that the push copy displayed to the user is rich in content and the push copy is more attractive to the user.

[0123] In addition, combined with reference Fig.10 , a complete introduction to the copy generation method in this application is given. After obtaining the target text description information, the computer device performs semantic extraction on the target text description information to obtain multiple candidate push copy, and extracts the target push copy from the candidate push copy based on the copy evaluation model, and then adds key information to the target push copy to obtain a push copy for display. Afterwards, a title is added to the push copy for display to obtain the final copy for display. In addition, when determining the above title, the computer device can perform user interest mining based on user behavior, and then determine the corresponding title based on user interest, so that the final copy for display is targeted and attractive to users.

[0124] Please refer to Fig.11 , which shows a flow chart of a method for training a copywriting evaluation model provided by an embodiment of the present application. The method can be applied to Figure 1 The computer device 20 of the copywriting generation system shown can be applied to any other computer device. The method may include the following steps (1101-1103):

[0125] Step 1101, obtaining a candidate training sample set.

[0126] The candidate training samples refer to a candidate set of training samples corresponding to the text evaluation model. Optionally, the computer device can obtain push texts with a click count greater than a certain value from the push text library, and then obtain the candidate training sample set.

[0127] Optionally, the candidate training sample set includes at least one positive sample and at least one negative sample. The positive sample refers to a push copy with a click-through rate greater than a threshold, and the negative sample refers to a push copy with a click-through rate less than a threshold. The click-through rate refers to the ratio of the number of clicks on the push copy to the number of impressions, and the click-through rate is an arbitrary value that can be flexibly set.

[0128] Step 1102: Based on the feature words corresponding to each push copy in the candidate training sample set, the candidate training sample set is expanded to obtain a target training sample set.

[0129] A feature word refers to a word used to indicate the characteristics of a push copy. Optionally, the feature word can be extracted and obtained based on the candidate push copy. In an embodiment of the present application, after obtaining the above-mentioned candidate training sample set, the computer device obtains the feature word corresponding to each push copy in the candidate training sample set, and based on the feature word, expands the candidate training sample set to obtain the target training sample set.

[0130] Step 1103: Use the target training sample set to train the copywriting evaluation model.

[0131] The copy evaluation model refers to a deep learning model used to evaluate the accuracy of the candidate push copy corresponding to the text description information, and the copy evaluation model can be a bidirectional neural network model based on the attention mechanism. In an embodiment of the present application, after obtaining the above-mentioned target training sample set, the computer device uses the target training sample set to train the copy evaluation model.

[0132] Optionally, after obtaining the above-mentioned target training sample set, the computer device removes the symbols in the push copy of the target training sample set to obtain the first processed target training sample set. Among them, the above-mentioned symbols may include punctuation marks, numeric symbols, Greek letters, emoticons, etc., which are not limited in the embodiment of the present application. Further, the computer device performs quality detection on the first processed target training sample set, removes the push copy whose quality does not meet the target conditions, and obtains the second processed target training sample set. Among them, the above-mentioned target conditions include but are not limited to at least one of the following: containing positive emotions, beautiful copywriting, smooth copywriting, rich copywriting, normal copywriting layout, no negative words, and character length less than the target value. Afterwards, the computer device uses the second processed target training sample set to train the copy evaluation model.

[0133] One point that needs to be explained is that, in the embodiment of the present application, the training of the copy evaluation model requires multiple rounds of training, and because the click-through rate of the pushed copy changes in real time, the computer device can update the target training sample set when performing each round of training on the copy evaluation model. Optionally, the computer device updates the positive samples and negative samples in the above-mentioned candidate training sample set based on the update of the click-through rate to obtain an updated candidate sample training set. Among them, the positive sample refers to the pushed copy with a click-through rate greater than the threshold, and the negative sample refers to the pushed copy with a click-through rate less than the threshold. Furthermore, the computer device obtains an updated extended sample set based on the updated candidate sample training set, and uses the updated candidate sample training set and the updated extended sample set to perform the next round of training on the copy evaluation model.

[0134] To sum up, in the technical solution provided in the embodiment of the present application, the target training sample set is obtained by expanding the candidate training sample set, and the target training sample set is the training sample of the copy evaluation model, which effectively solves the problem of insufficient model training samples and ensures the reliability and accuracy of the training of the copy evaluation model.

[0135] Next, the method for obtaining the above target training sample set is introduced.

[0136] In an exemplary embodiment, the above step 1102 includes the following steps:

[0137] 1. Extract feature words from each push copy in the candidate training sample set.

[0138] In the embodiment of the present application, after obtaining the above-mentioned candidate training sample set, the computer device extracts characteristic words from each push copy of the candidate training sample set.

[0139] Optionally, after obtaining the candidate training sample set, the computer device removes the symbols in each push text of the candidate training sample set to obtain each processed push text. The symbols may include punctuation marks, numeric symbols, Greek letters, emoticons, etc., which are not limited in the embodiment of the present application. Optionally, a symbol library may be stored in the computer device, and when removing symbols from the target text description information, the computer device may remove the symbols from the target text description information based on the symbols contained in the symbol library.

[0140] Optionally, after obtaining each of the processed push texts, the computer device performs word segmentation processing on each of the processed push texts to obtain the word segments corresponding to each of the processed push texts. Further, the target word segments are removed from the word segments corresponding to each of the processed push texts to obtain the keywords corresponding to each of the processed push texts. The target word segments include but are not limited to at least one of the following: stop words, word segments whose frequency of appearance in the push text is greater than a first target value, and word segments whose frequency of appearance in the push text is less than a second target value, and the first target value is greater than the second target value.

[0141] Optionally, after obtaining the above-mentioned keyword, the computer device obtains a synonym corresponding to the keyword, and determines the keyword and the synonym corresponding to the keyword as the above-mentioned feature word.

[0142] 2. Based on the feature words, other push copywriting is selected from the push copywriting library whose similarity with the feature words is greater than a threshold value.

[0143] In the embodiment of the present application, after obtaining the above-mentioned characteristic word, the computer device selects other push copywriting from the push copywriting library based on the characteristic word, whose similarity with the characteristic word is greater than the threshold value. The threshold value can be any value, which is not limited in the embodiment of the present application.

[0144] Optionally, after obtaining the above-mentioned feature words, the computer device traverses the push copy in the push copy library, and after the overlap between the segmented words in the push copy and the above-mentioned feature words is greater than a certain value, it determines that the similarity between the push copy and the above-mentioned feature words is greater than the above-mentioned threshold value, that is, the push copy is the above-mentioned other push copy.

[0145] 3. Other push texts whose similarity with the feature words corresponding to the positive sample is greater than the threshold value are marked as positive samples, and other push texts whose similarity with the feature words corresponding to the negative sample is greater than the threshold value are marked as negative samples to obtain an extended sample set.

[0146] In the embodiment of the present application, after obtaining the above other push texts, the computer device marks the other push texts, thereby obtaining an extended sample set. Optionally, the computer device marks other push texts whose similarity between feature words corresponding to the positive sample is greater than a threshold value as positive samples, and marks other push texts whose similarity between feature words corresponding to the negative sample is greater than a threshold value as negative samples, thereby obtaining the above extended sample set.

[0147] 4. Add the extended sample set to the candidate training sample set to obtain the target training sample set.

[0148] In an embodiment of the present application, after acquiring the extended sample set, the computer device adds the extended sample set to the candidate training sample set to obtain a target training sample set.

[0149] For example, in conjunction with reference Fig.12 , a method for obtaining a target training sample set is fully introduced. First, push texts 121 with a click rate greater than a certain value are obtained from the push text library 120, and the push texts 121 are annotated, and push texts 121 with a click rate greater than a threshold are annotated as positive samples, and push texts 121 with a click rate less than the threshold are annotated as negative samples, to obtain a candidate training sample set 122. Afterwards, the computer device obtains feature words from the candidate training sample set 122, and expands the candidate training sample set 122 according to the feature words to obtain a target training sample set 123.

[0150] Of course, the push copy obtained according to the copy generation method in this application has a significant improvement in click-through rate and click quantity compared with the push copy obtained according to the relevant technology, such as Fig.13 As shown, the above click-through rate increased by 7.2% and the above click quantity increased by 8.0%.

[0151] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0152] Please refer to Fig.14, which shows a block diagram of a text generation device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned text generation method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a computer device, or can be set in a computer device. The device 1400 may include: an information acquisition module 1410, a candidate acquisition module 1420, a probability acquisition module 1430 and a text determination module 1440.

[0153] The information acquisition module 1410 is used to acquire target text description information.

[0154] The candidate acquisition module 1420 is used to acquire a target candidate text set corresponding to the target text description information, wherein the target candidate text set includes at least one candidate push text.

[0155] The probability acquisition module 1430 is used to acquire probability information of each candidate push copy in the target candidate copy set based on the target candidate copy set, wherein the probability information is used to represent the accuracy of the candidate push copy corresponding to the target text description information.

[0156] The text determination module 1440 is configured to determine, according to the probability information, the candidate push text with the highest accuracy in the target candidate text set as the target push text corresponding to the target text description information.

[0157] In an exemplary embodiment, the candidate acquisition module 1420 includes: a first acquisition unit and a second acquisition unit.

[0158] The first acquisition unit is used to perform syntactic preprocessing on the target text description information, and extract a first candidate copy set from the target text description information, wherein the first candidate copy set includes at least one candidate push copy.

[0159] The second acquisition unit is used to select candidate push copywriting whose quality meets the target condition from the first candidate copywriting set to obtain a target candidate copywriting set.

[0160] In an exemplary embodiment, the first acquisition unit is used to remove symbols in the target text description information to obtain first processing information; concatenate the short sentences in the first processing information to obtain second processing information; wherein the short sentences refer to sentences separated by the symbols in the target text description information, and the second processing information includes more than one long sentence; based on grammatical logic rules, long sentences that do not meet the grammatical logic rules are removed from the second processing information to obtain the first candidate copy set.

[0161] In an exemplary embodiment, the second acquisition unit is used to detect the first candidate copy set, remove the push copy that does not meet the target requirements from the first candidate copy set, and obtain the target candidate copy set; wherein the target requirements include at least one of the following: containing positive emotions, beautiful words, smooth text, rich text, and normal text layout; or, perform word segmentation filtering on the first candidate copy set, remove the push copy containing negative words from the first candidate copy set, and obtain the target candidate copy set; or, perform sentence filtering on the first candidate copy set, remove the push copy with a character length greater than a target value from the first candidate copy set, and obtain the target candidate copy set; or, based on the target value corresponding to the character length, perform character supplementation or character truncation on the candidate push copy in the first candidate copy set to obtain the target candidate copy set.

[0162] In an exemplary embodiment, the probability acquisition module 1430 is used to input each candidate push copy in the target candidate copy set into a copy evaluation model, where the copy evaluation model is a bidirectional neural network model based on an attention mechanism; and obtain the probability information output by the copy evaluation model.

[0163] In an exemplary embodiment, the copy evaluation model includes an input layer, a word embedding layer, a neural network layer, an attention mechanism layer and an output layer; wherein the input layer is used to input the candidate push copy; the word embedding layer is used to obtain the word embedding corresponding to each word segment of the candidate push copy; the neural network layer is used to perform a bidirectional traversal on each word embedding to obtain at least one sentence vector; wherein the bidirectional traversal includes a forward traversal based on the input order of the word segments corresponding to each word embedding, and a reverse traversal based on the input order of the word segments corresponding to each word embedding; the attention mechanism layer is used to perform weighted processing on each sentence vector based on the distribution of important content in the candidate push copy; the output layer is used to output the probability information of the candidate push copy based on the weighted processing results of each sentence vector.

[0164] In an exemplary embodiment, if Fig.15 As shown, the device 1400 further includes: a key acquisition module 1450 and a text acquisition module 1460 .

[0165] The key acquisition module 1450 is used to acquire key information corresponding to the target push copy according to the target text description information.

[0166] The text acquisition module 1460 is used to add the key information to the target push text to obtain the push text for display.

[0167] In an exemplary embodiment, the key acquisition module 1450 is used to determine the category to which the target text description information belongs based on the target text description information; obtain the recommendation corresponding to the target push copy from the recommendation library corresponding to the category to which the target text description information belongs; or, based on the target text description information, obtain text attribute information corresponding to the target push copy; wherein the text attribute information is used to indicate content information of the target text description information; or, based on the target text description information, obtain text statistical information corresponding to the target push copy; wherein the text statistical information is used to indicate statistical information of user operations on the target text description information.

[0168] In an exemplary embodiment, if Fig.15 As shown, the device 1400 further includes: a user acquisition module 1470 and a title adding module 1480 .

[0169] The user acquisition module 1470 is used to acquire user information of the user account targeted by the push copy for display.

[0170] The title adding module 1480 is used to add a title to the push copy for display based on the user information.

[0171] To sum up, in the technical solution provided by the embodiment of the present application, the computer device obtains the corresponding target push copy through the target text description information, thereby avoiding the problem of low copy generation efficiency caused by manually obtaining the push copy, and improving the efficiency of obtaining the target push copy; moreover, after the computer device obtains the candidate push copy corresponding to the target text description information, it evaluates the accuracy of each candidate push copy, selects the candidate push copy with the highest accuracy from the candidate push copy as the target push copy, and ensures the accuracy of the target push copy.

[0172] Please refer to Fig.16 , which shows a block diagram of a training device for a copywriting evaluation model provided by an embodiment of the present application. The device has the function of implementing the training method of the copywriting evaluation model, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a computer device, or can be set in a computer device. The device 1600 can include: a sample acquisition module 1610, a sample expansion module 1620 and a model training module 1630.

[0173] The sample acquisition module 1610 is used to obtain a candidate training sample set, which includes at least one positive sample and at least one negative sample; wherein the positive sample refers to a push copy with a click-through rate greater than a threshold, and the negative sample refers to a push copy with a click-through rate less than the threshold.

[0174] The sample expansion module 1620 is used to expand the candidate training sample set based on the feature words corresponding to each push copy in the candidate training sample set to obtain a target training sample set.

[0175] The model training module 1630 is used to train the copywriting evaluation model using the target training sample set.

[0176] In an exemplary embodiment, the sample expansion module 1620 includes: a feature extraction unit, a text acquisition unit, a text annotation unit and a sample acquisition unit.

[0177] The feature extraction unit is used to extract feature words from each push copy in the candidate training sample set.

[0178] The text acquisition unit is used to select other push texts whose similarity with the feature word is greater than a threshold value from a push text library based on the feature word.

[0179] The text labeling unit is used to label other pushed texts whose similarity between feature words corresponding to the positive sample is greater than the threshold value as positive samples, and label other pushed texts whose similarity between feature words corresponding to the negative sample is greater than the threshold value as negative samples, to obtain an extended sample set.

[0180] The sample acquisition unit is used to add the extended sample set to the candidate training sample set to obtain the target training sample set.

[0181] In an exemplary embodiment, the feature extraction unit is used to remove symbols from each push copy of the candidate training sample set to obtain each processed push copy; perform word segmentation processing on each processed push copy to obtain the word segmentation corresponding to each processed push copy; remove the target word segmentation from the word segmentation corresponding to each processed push copy to obtain the keyword corresponding to each processed push copy; wherein the target word segmentation includes at least one of the following: stop words, word segmentation whose appearance frequency in the push copy is greater than a first target value, and word segmentation whose appearance frequency in the push copy is less than a second target value, and the first target value is greater than the second target value. The keyword and the synonym corresponding to the keyword are determined as the feature word.

[0182] In an exemplary embodiment, the model training module 1630 is used to remove symbols in the push copy of the target training sample set to obtain a first processed target training sample set; perform quality detection on the first processed target training sample set to remove push copy whose quality does not meet the target conditions to obtain a second processed target training sample set; wherein the target conditions include at least one of the following: containing positive emotions, beautiful copy words, smooth copy, rich copy, normal copy layout, no negative words, and character length less than the target value; and use the second processed target training sample set to train the copy evaluation model.

[0183] In an exemplary embodiment, if Fig.17 As shown, the apparatus 1600 further includes: a candidate update module 1640 and a sample update module 1650 .

[0184] The candidate update module 1640 is used to update the positive samples and negative samples in the candidate training sample set based on the update of the click rate to obtain an updated candidate sample training set; wherein the positive sample refers to the push copy with a click rate greater than the threshold, and the negative sample refers to the push copy with a click rate less than the threshold.

[0185] The sample updating module 1650 is used to obtain an updated extended sample set according to the updated candidate sample training set.

[0186] The model training module 1630 is further configured to use the updated candidate sample training set and the updated extended sample set to perform the next round of training on the text evaluation model.

[0187] To sum up, in the technical solution provided in the embodiment of the present application, the target training sample set is obtained by expanding the candidate training sample set, and the target training sample set is the training sample of the copy evaluation model, which effectively solves the problem of insufficient model training samples and ensures the reliability and accuracy of the training of the copy evaluation model.

[0188] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0189] Please refer to Fig.18 , which shows a structural block diagram of a computer device 1800 provided by an embodiment of the present application. The computer device may be Figure 1The computer device 20 shown can implement the above-mentioned copywriting generation method or the above-mentioned copywriting evaluation model training method. Specifically:

[0190] The computer device 1800 includes a processing unit (such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit) and an FPGA (Field Programmable Gate Array)) 1801, a system memory 1804 including a RAM (Random Access Memory) 1802 and a ROM (Read Only Memory) 1803, and a system bus 1805 connecting the system memory 1804 and the central processing unit 1801. The computer device 1800 also includes a basic I / O system (Input / Output) 1806 for facilitating information transmission between various components in the computer device, and a large-capacity storage device 1807 for storing an operating system 1813, application programs 1814 and other program modules 1815.

[0191] The basic input / output system 1806 includes a display 1808 for displaying information and an input device 1809 such as a mouse and a keyboard for user inputting information. The display 1808 and the input device 1809 are connected to the central processing unit 1801 through an input / output controller 1810 connected to the system bus 1805. The basic input / output system 1806 may also include an input / output controller 1810 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1810 also provides output to a display screen, a printer, or other types of output devices.

[0192] The mass storage device 1807 is connected to the central processing unit 1801 via a mass storage controller (not shown) connected to the system bus 1805. The mass storage device 1807 and its associated computer readable medium provide non-volatile storage for the computer device 1800. That is, the mass storage device 1807 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.

[0193] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage medium is not limited to the above. The above-mentioned system memory 1804 and mass storage device 1807 can be collectively referred to as memory.

[0194] According to the embodiment of the present application, the computer device 1800 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1800 can be connected to the network 1812 through the network interface unit 1811 connected to the system bus 1805, or the network interface unit 1811 can be used to connect to other types of networks or remote computer systems (not shown).

[0195] The memory stores a computer program, which is loaded by the processor and implements the copywriting generation method on the computer device side, or implements the training method of the copywriting evaluation model on the configuration terminal side.

[0196] In an exemplary embodiment, a non-temporary computer-readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor of a computer device, the above-mentioned copy generation method is implemented; or, when the computer program is executed by a processor of a configured terminal, the above-mentioned copy evaluation model training method is implemented.

[0197] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk, etc. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM).

[0198] In an exemplary embodiment, a computer program product is also provided. When the computer program product is run on a computer device, the above-mentioned copy generation method is executed; when the computer program product is run on a configuration terminal, the above-mentioned copy evaluation model training method is executed.

[0199] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0200] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A copywriting generation method, characterized in that: The method comprises: Get the target text description information; Acquire a target candidate text set corresponding to the target text description information, wherein the target candidate text set includes at least one candidate push text; Based on the target candidate copy set, obtaining probability information of each candidate push copy in the target candidate copy set, wherein the probability information is used to characterize the accuracy of the candidate push copy corresponding to the target text description information; According to the probability information, the candidate push copy with the highest accuracy in the target candidate copy set is determined as the target push copy corresponding to the target text description information; The step of obtaining a target candidate copy set corresponding to the target text description information includes: Performing syntactic preprocessing on the target text description information, extracting a first candidate copy set from the target text description information, wherein the first candidate copy set includes at least one candidate push copy; Selecting candidate push copywriting whose quality meets the target condition from the first candidate copywriting set to obtain a target candidate copywriting set; The step of performing syntactic preprocessing on the target text description information and extracting a first candidate copy set from the target text description information includes: Removing symbols from the target text description information to obtain first processed information; splicing the short sentences in the first processed information to obtain second processed information; wherein the short sentences refer to sentences separated by the symbols in the target text description information, and the second processed information includes more than one long sentence; Based on grammatical logic rules, long sentences that do not satisfy the grammatical logic rules are removed from the second processed information to obtain the first candidate copy set; The acquiring, based on the target candidate copy set, probability information of each candidate push copy in the target candidate copy set includes: Inputting each candidate push copy in the target candidate copy set into a copy evaluation model, wherein the copy evaluation model is a bidirectional neural network model based on an attention mechanism; Obtaining probability information output by the copywriting evaluation model; The copywriting evaluation model includes an input layer, a word embedding layer, a neural network layer, an attention mechanism layer and an output layer; wherein, The input layer is used to input the candidate push copy; The word embedding layer is used to obtain the word embedding corresponding to each word segment of the candidate push copy; The neural network layer is used to perform bidirectional traversal on each word embedding to obtain at least one sentence vector; wherein, The bidirectional traversal includes a forward traversal based on the input order of the word segments corresponding to the word embeddings, and a reverse traversal based on the input order of the word segments corresponding to the word embeddings; The attention mechanism layer is used to perform weighted processing on each of the sentence vectors based on the distribution of important content in the candidate push copy; The output layer is used to output the probability information of the candidate push copy based on the weighted processing results of each of the sentence vectors.

2. The method according to claim 1, characterized in that: Selecting candidate push copywriting whose quality meets the target requirement from the first candidate copywriting set to obtain a target candidate copywriting set includes at least one of the following: The first candidate copy set is tested, and push copy that does not meet the target requirements is removed from the first candidate copy set to obtain the target candidate copy set; wherein the target requirements include at least one of the following: containing positive emotions, beautiful copy words, smooth copy, rich copy, and normal copy layout; Performing word segmentation filtering on the first candidate copy set, removing push copy containing negative words from the first candidate copy set, and obtaining the target candidate copy set; Sentence filtering is performed on the first candidate copy set, and push copy texts whose character length is greater than a target value are removed from the first candidate copy set to obtain the target candidate copy set; Based on the target value corresponding to the character length, characters are supplemented or intercepted for the candidate push copy in the first candidate copy set to obtain the target candidate copy set.

3. The method according to claim 1 or 2, characterized in that: After determining the candidate push copy with the highest accuracy as the target push copy corresponding to the target text description information according to the probability information, the method further includes: According to the target text description information, key information corresponding to the target push copy is obtained; The key information is added to the target push copy to obtain a push copy for display.

4. The method according to claim 3, characterized in that The acquiring, according to the target text description information, key information corresponding to the target push copy includes at least one of the following: According to the target text description information, determine the category to which the target text description information belongs; and obtain the recommendation words corresponding to the target push copy from the recommendation library corresponding to the category to which the target text description information belongs; According to the target text description information, obtaining text attribute information corresponding to the target push copy; wherein the text attribute information is used to indicate content information of the target text description information; According to the target text description information, text statistical information corresponding to the target push copy is obtained; wherein the text statistical information is used to indicate statistical information of user operations on the target text description information.

5. The method according to claim 3, characterized in that: After adding the key information to the target push copy to obtain the push copy for display, the method further includes: Obtain user information of the user account targeted by the push copy for display; Based on the user information, a title is added to the push copy for display.

6. A method for training a copywriting evaluation model, characterized in that: The method comprises: Acquire a candidate training sample set, wherein the candidate training sample set includes at least one positive sample and at least one negative sample; The positive sample refers to a push copy with a click rate greater than a threshold, and the negative sample refers to a push copy with a click rate less than the threshold; Based on the feature words corresponding to the push texts in the candidate training sample set, the candidate training sample set is expanded to obtain a target training sample set; Using the target training sample set to train the copywriting evaluation model; Among them, the copy evaluation model is a bidirectional neural network model based on the attention mechanism; the copy evaluation model includes an input layer, a word embedding layer, a neural network layer, an attention mechanism layer and an output layer; wherein the input layer is used to input the candidate push copy; the word embedding layer is used to obtain the word embedding corresponding to each word segment of the candidate push copy; the neural network layer is used to perform bidirectional traversal on each word embedding to obtain at least one sentence vector; wherein the bidirectional traversal includes a forward traversal based on the input order of the word segment corresponding to each word embedding, and a reverse traversal based on the input order of the word segment corresponding to each word embedding; the attention mechanism layer is used to perform weighted processing on each sentence vector based on the distribution of important content in the candidate push copy; the output layer is used to output the probability information of the candidate push copy based on the weighted processing results of each sentence vector.

7. The method according to claim 6, characterized in that The step of expanding the candidate training sample set based on the feature words corresponding to each push text in the candidate training sample set to obtain a target training sample set includes: Extracting feature words from each push copy in the candidate training sample set; Based on the feature word, select other push copy from the push copy library whose similarity with the feature word is greater than a threshold value; Marking other push copywriting whose similarity between the feature words corresponding to the positive sample is greater than the threshold value as positive samples, and marking other push copywriting whose similarity between the feature words corresponding to the negative sample is greater than the threshold value as negative samples, to obtain an extended sample set; The extended sample set is added to the candidate training sample set to obtain the target training sample set.

8. The method according to claim 7, characterized in that The step of extracting feature words from each push text in the candidate training sample set includes: Removing symbols from each push copy in the candidate training sample set to obtain each processed push copy; Performing word segmentation processing on each of the processed push texts to obtain word segments corresponding to each of the processed push texts; Removing target segmented words from the segmented words corresponding to each of the processed push texts to obtain keywords corresponding to each of the processed push texts; wherein the target segmented words include at least one of the following: stop words, segmented words whose appearance frequency in the push text is greater than a first target value, and segmented words whose appearance frequency in the push text is less than a second target value, wherein the first target value is greater than the second target value; The keyword and the synonyms corresponding to the keyword are determined as the feature words.

9. The method according to any one of claims 6 to 8, characterized in that: The adopting the target training sample set to train the copywriting evaluation model includes: Removing symbols from the push text of the target training sample set to obtain the target training sample set after the first processing; Performing quality inspection on the target training sample set after the first processing, removing the push copy whose quality does not meet the target condition, and obtaining the target training sample set after the second processing; wherein the target condition includes at least one of the following: containing positive emotions, beautiful copy words, smooth copy, rich copy, normal copy layout, no negative words, and character length less than the target value; The target training sample set after the second processing is used to train the copywriting evaluation model.

10. The method according to any one of claims 6 to 8, characterized in that: The method further comprises: Based on the update of the click-through rate, the positive samples and negative samples in the candidate training sample set are updated to obtain an updated candidate sample training set; wherein the positive sample refers to the push copy with a click-through rate greater than the threshold, and the negative sample refers to the push copy with a click-through rate less than the threshold; Acquire an updated extended sample set according to the updated candidate sample training set; The updated candidate sample training set and the updated extended sample set are used to perform the next round of training on the copywriting evaluation model.

11. A copywriting generation device, characterized in that: The device comprises: An information acquisition module is used to obtain target text description information; A candidate acquisition module, used to acquire a target candidate copy set corresponding to the target text description information, wherein the target candidate copy set includes at least one candidate push copy; A probability acquisition module, configured to acquire probability information of each candidate push copy in the target candidate copy set based on the target candidate copy set, wherein the probability information is used to characterize the accuracy of the candidate push copy corresponding to the target text description information; A text determination module, configured to determine, based on the probability information, the candidate push text with the highest accuracy in the target candidate text set as the target push text corresponding to the target text description information; The step of obtaining a target candidate copy set corresponding to the target text description information includes: Performing syntactic preprocessing on the target text description information, extracting a first candidate copy set from the target text description information, wherein the first candidate copy set includes at least one candidate push copy; Selecting candidate push copywriting whose quality meets the target condition from the first candidate copywriting set to obtain a target candidate copywriting set; The step of performing syntactic preprocessing on the target text description information and extracting a first candidate copy set from the target text description information includes: Removing symbols from the target text description information to obtain first processed information; splicing the short sentences in the first processed information to obtain second processed information; wherein the short sentences refer to sentences separated by the symbols in the target text description information, and the second processed information includes more than one long sentence; Based on grammatical logic rules, long sentences that do not satisfy the grammatical logic rules are removed from the second processed information to obtain the first candidate copy set; The acquiring, based on the target candidate copy set, probability information of each candidate push copy in the target candidate copy set includes: Inputting each candidate push copy in the target candidate copy set into a copy evaluation model, wherein the copy evaluation model is a bidirectional neural network model based on an attention mechanism; Obtaining probability information output by the copywriting evaluation model; The copywriting evaluation model includes an input layer, a word embedding layer, a neural network layer, an attention mechanism layer and an output layer; wherein, The input layer is used to input the candidate push copy; The word embedding layer is used to obtain the word embedding corresponding to each word segment of the candidate push copy; The neural network layer is used to perform bidirectional traversal on each word embedding to obtain at least one sentence vector; wherein, The bidirectional traversal includes a forward traversal based on the input order of the word segments corresponding to the word embeddings, and a reverse traversal based on the input order of the word segments corresponding to the word embeddings; The attention mechanism layer is used to perform weighted processing on each of the sentence vectors based on the distribution of important content in the candidate push copy; The output layer is used to output the probability information of the candidate push copy based on the weighted processing results of each of the sentence vectors.

12. A training device for a copywriting evaluation model, characterized in that: The device comprises: A sample acquisition module is used to acquire a candidate training sample set, wherein the candidate training sample set includes at least one positive sample and at least one negative sample; wherein the positive sample refers to a push copy whose click rate is greater than a threshold, and the negative sample refers to a push copy whose click rate is less than the threshold; A sample expansion module, used to expand the candidate training sample set based on the feature words corresponding to each push copy in the candidate training sample set to obtain a target training sample set; A model training module, used to train the copywriting evaluation model using the target training sample set; Among them, the copy evaluation model is a bidirectional neural network model based on the attention mechanism; the copy evaluation model includes an input layer, a word embedding layer, a neural network layer, an attention mechanism layer and an output layer; wherein the input layer is used to input the candidate push copy; the word embedding layer is used to obtain the word embedding corresponding to each word segment of the candidate push copy; the neural network layer is used to perform bidirectional traversal on each word embedding to obtain at least one sentence vector; wherein the bidirectional traversal includes a forward traversal based on the input order of the word segment corresponding to each word embedding, and a reverse traversal based on the input order of the word segment corresponding to each word embedding; the attention mechanism layer is used to perform weighted processing on each sentence vector based on the distribution of important content in the candidate push copy; the output layer is used to output the probability information of the candidate push copy based on the weighted processing results of each sentence vector.

13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the copywriting generation method as described in any one of claims 1 to 5, or to implement the copywriting evaluation model training method as described in any one of claims 6 to 10.

14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the copywriting generation method as described in any one of claims 1 to 5, or implements the copywriting evaluation model training method as described in any one of claims 6 to 10.