Scheme generation method and device based on content creation platform, equipment and medium
By using natural language processing and K-means optimization algorithms in the content creation platform, combined with the conditional random field algorithm, the target solution is generated, which solves the problem of low efficiency in the content creation platform generation solution in the existing technology, and achieves intelligence and personalization. plan generation.
Patent Information
- Application Number
- CN202410765472.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing content creation platforms lack intelligent and personalized solution generation capabilities, resulting in users having to manually search and combine resources when generating solutions, which is time-consuming, labor-intensive and inefficient.
Use the built-in natural language processing NLP algorithm of the content creation platform to determine the characteristics of the target keywords in user needs, perform feature splicing and optimization, and combine the K-means optimization algorithm and the conditional random field algorithm to select matching initial solutions from the preset solution library. , generate the target plan.
It improves the efficiency of the content creation platform in generating solutions, reduces users' time and energy in manual operations, and improves the intelligence and personalized capabilities of solution generation.
Smart Images

Figure CN118709657A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and in particular to a solution generation method, device, equipment and medium based on a content creation platform. Background Art
[0002] With the rapid development of Internet technology, online content creation platforms have become an important tool for creative workers to share and create content. However, existing content creation platforms mostly use static content management and basic editing tools, lacking intelligent and personalized solution generation capabilities. During use, users often need to manually search and combine different resources, which is not only time-consuming and labor-intensive, but also inefficient. Therefore, how to improve the efficiency of generating solutions through content creation platforms has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present application provides a solution generation method, apparatus, device and medium based on a content creation platform to improve the efficiency of generating solutions through the content creation platform.
[0004] In a first aspect, the present application provides a solution generation method based on a content creation platform, the method comprising:
[0005] Determine at least one target keyword feature in user needs based on the natural language processing (NLP) algorithm built into the content creation platform;
[0006] Perform feature splicing on the target keyword features to generate a combined feature, and select an initial solution matching the combined feature from a preset solution library;
[0007] The user portrait features corresponding to the user information are obtained, and the initial solution is optimized according to the user portrait features through the K-means optimization algorithm to generate a target solution.
[0008] Furthermore, at least one target keyword feature in the user demand is determined based on the natural language processing (NLP) algorithm built into the content creation platform, including:
[0009] Based on a preset feature tag library and the conditional random field algorithm, at least one target keyword feature is determined.
[0010] Further, based on the preset feature tag library and the conditional random field algorithm, determining at least one target keyword feature includes:
[0011] Based on the conditional random field algorithm, calculating the pending probability value of the demand keyword feature in the user demand matching each preset tag feature in the preset feature tag library;
[0012] Determine the demand keyword features whose pending probability values are greater than a preset probability value threshold as the target keyword features;
[0013] The conditional random field algorithm is Where P(y|X) is the unknown probability value, Z(x) is the normalization factor, and λ k μ j and are model weight parameters, X is the demand keyword feature, y is the preset label feature, and f k is the transfer characteristic function, g j is the state characteristic function.
[0014] Further, obtaining user portrait features corresponding to the user information, optimizing the initial solution according to the user portrait features through a K-means optimization algorithm, and generating a target solution, including:
[0015] Randomly select at least one data point from the initial solution as an initial cluster center;
[0016] Calculate the minimum distance between the user portrait feature and each of the cluster centers based on the first calculation formula of the K-means optimization algorithm;
[0017] Iteratively determine the next cluster center based on the second calculation formula of the K-means optimization algorithm and the distance;
[0018] When the next cluster center does not change any more, the data point corresponding to the last cluster center is determined as the target solution.
[0019] Furthermore, the first calculation formula is D i =min 1≤j≤m ||x i -c j || 2 , the second calculation formula is Among them, D i is the minimum distance, x i is the ith data point, c j is the jth cluster center, ||x i -c j || is the distance between the data point and the cluster center, P i The probability of selecting the next cluster center for the i-th data point.
[0020] Furthermore, the target keyword features are spliced to generate a combined feature, including:
[0021] Based on a preset feature fusion algorithm and each of the target keyword features, generating the combined feature;
[0022] The preset feature fusion algorithm is: f =w⊙(X1+X2+……+X n ), where X f is the combined feature, w is the preset weighted feature vector, X n are the target keyword features.
[0023] Furthermore, an initial solution matching the combination feature is screened from a preset solution library, including:
[0024] Calculate the similarity between the combined feature and each preset solution in the preset solution library;
[0025] The preset solution whose similarity is higher than a preset similarity threshold is determined as the initial solution.
[0026] In a second aspect, the present application further provides a solution generation device based on a content creation platform, the device comprising:
[0027] A target keyword feature determination module, used to determine at least one target keyword feature in user needs based on a natural language processing (NLP) algorithm built into the content creation platform;
[0028] An initial solution determination module is used to perform feature splicing on the target keyword features to generate a combined feature, and to select an initial solution matching the combined feature from a preset solution library;
[0029] The target solution generation module is used to obtain the user portrait features corresponding to the user information, optimize the initial solution according to the user portrait features through the K-means optimization algorithm, and generate a target solution.
[0030] In a third aspect, the present application also provides a computer device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the above-mentioned method for generating a solution based on a content creation platform when executing the computer program.
[0031] In a fourth aspect, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the solution generation method based on the content creation platform as described above.
[0032] The present application discloses a solution generation method, device, equipment and medium based on a content creation platform, wherein the solution generation method based on the content creation platform includes determining at least one target keyword feature in user needs based on the natural language processing (NLP) algorithm built into the content creation platform; performing feature splicing on each of the target keyword features to generate a combined feature, and screening an initial solution that matches the combined feature from a preset solution library; obtaining a user portrait feature corresponding to the user information, optimizing the initial solution according to the user portrait feature through a K-means optimization algorithm, and generating a target solution. Through the above-mentioned method, the present application extracts target keyword features from user needs, performs feature splicing, generates a combined feature, and screens an initial solution that matches the combined feature from a preset solution library, and then optimizes the initial solution by the user portrait feature to generate a target solution, thereby improving the efficiency of generating solutions through a content creation platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 is a schematic flow chart of a solution generation method based on a content creation platform provided in an embodiment of the present application;
[0035] Figure 2 A schematic block diagram of a solution generation device based on a content creation platform provided in an embodiment of the present application;
[0036] Figure 3 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0039] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0040] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0041] The embodiments of the present application provide a solution generation method, device, equipment and medium based on a content creation platform. Among them, the solution generation method based on the content creation platform can be applied to a server, by extracting target keyword features from user needs and then performing feature splicing to generate combined features, and screening an initial solution that matches the combined features from a preset solution library, and then optimizing the initial solution by user portrait features to generate a target solution, thereby improving the efficiency of generating solutions through the content creation platform. Among them, the server can be an independent server or a server cluster.
[0042] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0043] See also Figure 1 , Figure 1 This is a schematic flow chart of a solution generation method based on a content creation platform provided in an embodiment of the present application. The solution generation method based on a content creation platform can be applied to a server, and is used to extract target keyword features from user needs and then perform feature splicing to generate combined features, and screen an initial solution that matches the combined features from a preset solution library, and then generate a target solution after optimizing the initial solution by user portrait features, thereby improving the efficiency of generating solutions through a content creation platform.
[0044] like Figure 1 As shown, the solution generation method based on the content creation platform specifically includes steps S10 to S30.
[0045] Step S10: determining at least one target keyword feature in the user demand based on the natural language processing (NLP) algorithm built into the content creation platform;
[0046] In one embodiment, in the content creation platform, a built-in natural language processing (NLP) algorithm can be used to analyze user needs and extract keyword features therefrom. The following are some steps showing how to use the NLP algorithm to determine at least one target keyword feature:
[0047] Text preprocessing: First, the user's input text is cleaned and preprocessed, including removing punctuation, numbers, special characters, converting to lowercase, and possible stemming or lemmatization.
[0048] Word segmentation: The process of dividing the preprocessed text into separate words or phrases is called word segmentation.
[0049] Part-of-speech tagging: Tag the results after word segmentation to identify the part of speech of each word (such as noun, verb, adjective, etc.).
[0050] Named Entity Recognition (NER): Identify named entities in text, such as names of people, places, and organizations. These entities are often candidates for keyword features.
[0051] Dependency parsing: Analyzes the dependency relationships in a sentence and determines the grammatical connections between words, which helps to understand sentence structure and semantics.
[0052] Topic Modeling: Use algorithms such as LDA to identify topics in the text, which can serve as keyword features.
[0053] Keyword extraction: Based on the analysis in the above steps, use algorithms (such as TF-IDF, TextRank, etc.) to extract keywords from the text.
[0054] Sentiment analysis: Evaluate the emotional tendency of the text, which helps to determine the emotional color of user needs, and sometimes the emotional color is also related to keyword features.
[0055] Semantic understanding: Use deep learning models (such as BERT, GPT, etc.) to understand the deeper meaning of text and extract more accurate and contextual keywords.
[0056] Step S20: performing feature splicing on the target keyword features to generate a combined feature, and selecting an initial solution matching the combined feature from a preset solution library;
[0057] In one embodiment, after extracting the target keyword features based on the above steps, the next task is to perform feature splicing, generate combined features, and select initial solutions that match these combined features from the preset solution library. The following are the detailed steps:
[0058] Feature stitching:
[0059] Simple concatenation: directly concatenate the extracted keywords to form a long string.
[0060] Weighted concatenation: Keywords are weighted according to their importance (e.g., by TF-IDF weight, part-of-speech tagging results, etc.) and then concatenated.
[0061] Context splicing: Consider the semantic relationship between keywords, and splice the keywords according to semantic logic based on the results of dependency syntactic analysis or semantic understanding.
[0062] Generate composite features:
[0063] The spliced features are taken as a whole to form a combined feature.
[0064] NLP techniques, such as semantic similarity calculation, can be further used to match the combined features with solutions in the preset solution library.
[0065] Solution library presets:
[0066] Build a library of preset solutions, each of which is associated with a specific feature tag.
[0067] The preset plans can be services, products, content recommendations, etc., and each plan has its corresponding keywords or feature descriptions.
[0068] Feature Matching:
[0069] Use a similarity algorithm (such as cosine similarity, Jaccard similarity, etc.) to calculate the similarity between the combined feature and each solution in the solution library.
[0070] Based on the similarity score, the solution with the highest matching degree with the combined features is selected.
[0071] Solution screening:
[0072] According to the matching scores, one or more best matching solutions are selected as initial solutions.
[0073] A threshold can be set, and only when the similarity exceeds this threshold will the proposal be considered a match.
[0074] Step S30: Obtain user portrait features corresponding to the user information, optimize the initial solution according to the user portrait features through a K-means optimization algorithm, and generate a target solution.
[0075] Specifically, user portrait features can be constructed by collecting user information, including but not limited to basic user information (such as age, gender, occupation, etc.), behavioral data (such as browsing history, purchase records, interactive behavior, etc.), preference settings, etc. Using NLP technology, analyze user-generated content (such as comments, feedback, creative content, etc.), extract user interests, emotional tendencies and other features, and convert non-numeric data into digitized data, for example, using One-Hot Encoding to process categorical data.
[0076] The present embodiment discloses a solution generation method, device, equipment and medium based on a content creation platform, wherein the solution generation method based on the content creation platform includes determining at least one target keyword feature in user needs based on the natural language processing (NLP) algorithm built into the content creation platform; performing feature splicing on each of the target keyword features to generate a combined feature, and screening an initial solution that matches the combined feature from a preset solution library; obtaining a user portrait feature corresponding to the user information, optimizing the initial solution according to the user portrait feature through a K-means optimization algorithm, and generating a target solution. Through the above-mentioned method, the present application improves the efficiency of generating solutions through a content creation platform by extracting target keyword features from user needs, performing feature splicing, generating a combined feature, and screening an initial solution that matches the combined feature from a preset solution library, and then optimizing the initial solution by the user portrait feature to generate a target solution.
[0077] based on Figure 1 In the embodiment shown, in this embodiment, step S10 includes:
[0078] Based on a preset feature tag library and the conditional random field algorithm, at least one target keyword feature is determined.
[0079] Specifically, based on the preset feature tag library and the conditional random field algorithm, determining at least one target keyword feature includes:
[0080] Based on the conditional random field algorithm, calculating the pending probability value of the demand keyword feature in the user demand matching each preset tag feature in the preset feature tag library;
[0081] Determine the demand keyword features whose pending probability values are greater than a preset probability value threshold as the target keyword features;
[0082] The conditional random field algorithm is Where P(y|X) is the unknown probability value, Z(x) is the normalization factor, and λ k μ j and are model weight parameters, X is the demand keyword feature, y is the preset label feature, and fk is the transfer characteristic function, g j is the state characteristic function.
[0083] Specifically, Conditional Random Fields (CRF) is a statistical model that is often used for labeling or prediction tasks of sequence data, such as part-of-speech tagging and named entity recognition in natural language processing, and gene sequence analysis in bioinformatics. CRF is particularly suitable for dealing with problems where labeling depends on contextual information.
[0084] The basic idea of conditional random fields:
[0085] CRF is an undirected graphical model that defines the joint probability distribution of a set of variables whose values depend on their conditions. In the sequence labeling problem, CRF tries to find a set of label sequences that maximizes the joint probability of the entire sequence.
[0086] Main features of CRF:
[0087] Global Normalization: Compared to Hidden Markov Models (HMMs), CRFs take into account the entire sequence when decoding, rather than relying only on local optima.
[0088] Context-sensitive: CRF is able to capture dependencies between labels, including the transfer between labels and the dependencies between labels and features.
[0089] Stateless sequence: CRF does not require a fixed number of states (labels) or specific transition probabilities in the sequence, which makes it more flexible than HMM in some tasks.
[0090] Mathematical model of CRF:
[0091] A CRF model usually consists of two parts: feature function and weights.
[0092] Feature function: defines various features in the model, including state transition features and observation features. Each feature function corresponds to a feature value, which is used to describe the relationship between the label and context at a certain position in the sequence.
[0093] Weight: It is a parameter associated with the feature function and needs to be learned through training data.
[0094] based on Figure 1 In the embodiment shown, in this embodiment, step S30 includes:
[0095] Randomly select at least one data point from the initial solution as an initial cluster center;
[0096] Calculate the minimum distance between the user portrait feature and each of the cluster centers based on the first calculation formula of the K-means optimization algorithm;
[0097] Iteratively determine the next cluster center based on the second calculation formula of the K-means optimization algorithm and the distance;
[0098] When the next cluster center does not change any more, the data point corresponding to the last cluster center is determined as the target solution.
[0099] Specifically, the first calculation formula is D i =min 1≤j≤m ||x i -c j || 2 , the second calculation formula is Among them, D i is the minimum distance, x i is the ith data point, c j is the jth cluster center, ||x i -c j || is the distance between the data point and the cluster center, P i The probability of selecting the next cluster center for the i-th data point.
[0100] Specifically, K-means is a popular clustering algorithm used to divide data points into K clusters. The basic K-means algorithm consists of the following steps:
[0101] 1. Select initial center: Randomly select K data points as the initial cluster centers.
[0102] 2. Assign data points: Assign each data point to the nearest cluster center to form K clusters.
[0103] 3. Update cluster centers: Calculate the mean of all points in each cluster and use the mean as the new cluster center.
[0104] 4. Iteration: Repeat steps 2 and 3 until the cluster center no longer changes or the predetermined number of iterations is reached.
[0105] In the K-means optimization algorithm, K-means++ is a widely used initialization method that optimizes the selection of cluster centers through the following steps:
[0106] 1. Select the first center: Randomly select the first cluster center.
[0107] 2. Calculate distance: For each point in the data set, calculate its distance to the selected cluster center.
[0108] 3. Select the next center: Select the next cluster center based on the inverse of the square of the distance from each point to the selected cluster center. The probability of selecting the next center is proportional to the square of the distance.
[0109] 4. Repeat selection: Repeat steps 2 and 3 until all K cluster centers are selected.
[0110] based on Figure 1 In the embodiment shown, in this embodiment, step S20 includes:
[0111] Based on a preset feature fusion algorithm and each of the target keyword features, generating the combined feature;
[0112] The preset feature fusion algorithm is: f =w⊙(X1+X2+……+X n ), where X f is the combined feature, w is the preset weighted feature vector, X n are the target keyword features.
[0113] Based on any of the above embodiments, in this embodiment, step S20 includes:
[0114] Calculate the similarity between the combined feature and each preset solution in the preset solution library;
[0115] The preset solution whose similarity is higher than a preset similarity threshold is determined as the initial solution.
[0116] See also Figure 2 , Figure 2 The embodiment of the present application provides a schematic block diagram of a solution generation device based on a content creation platform, and the solution generation device based on a content creation platform is used to execute the aforementioned solution generation method based on a content creation platform. The solution generation device based on a content creation platform can be configured on a server.
[0117] like Figure 2 As shown, the solution generation device 400 based on the content creation platform includes:
[0118] A target keyword feature determination module 410 is used to determine at least one target keyword feature in a user demand based on a natural language processing (NLP) algorithm built into the content creation platform;
[0119] The initial solution determination module 420 is used to perform feature splicing on the target keyword features to generate a combined feature, and to select an initial solution matching the combined feature from a preset solution library;
[0120] The target solution generation module 430 is used to obtain the user portrait features corresponding to the user information, optimize the initial solution according to the user portrait features through the K-means optimization algorithm, and generate a target solution.
[0121] Furthermore, the target keyword feature determination module 410 includes:
[0122] The target keyword feature determination unit is used to determine at least one target keyword feature based on a preset feature tag library and the conditional random field algorithm.
[0123] Furthermore, the target keyword feature determination unit includes:
[0124] A pending probability value calculation subunit, used to calculate the pending probability value of matching the demand keyword feature in the user demand with each preset tag feature in the preset feature tag library based on the conditional random field algorithm;
[0125] A target keyword feature determination subunit, configured to determine the demand keyword features whose to-be-determined probability values are greater than a preset probability value threshold as the target keyword features;
[0126] The conditional random field algorithm is Where P(y|X) is the unknown probability value, Z(x) is the normalization factor, and λ k μ j and are model weight parameters, X is the demand keyword feature, y is the preset label feature, and f k is the transfer characteristic function, g j is the state characteristic function.
[0127] Furthermore, the target solution generation module 430 includes:
[0128] an initial cluster center determination unit, configured to randomly select at least one data point from the initial scheme as an initial cluster center;
[0129] A minimum distance calculation unit, used to calculate the minimum distance between the user portrait feature and each of the cluster centers based on the first calculation formula of the K-means optimization algorithm;
[0130] an iterative unit, configured to iteratively determine a next cluster center based on a second calculation formula of the K-means optimization algorithm and the distance;
[0131] The target solution determination unit is used to determine the data point corresponding to the last cluster center as the target solution when the next cluster center does not change.
[0132] Furthermore, the initial solution determination module 420 includes:
[0133] A combined feature generating unit, configured to generate the combined feature based on a preset feature fusion algorithm and each of the target keyword features;
[0134] The preset feature fusion algorithm is: f =w⊙(X1+X2+……+X n ), where X f is the combined feature, w is the preset weighted feature vector, X n are the target keyword features.
[0135] Furthermore, the initial solution determination module 420 includes:
[0136] A similarity calculation unit, used for calculating the similarity between the combined feature and each preset solution in the preset solution library;
[0137] The initial solution determining unit is used to determine the preset solution with a similarity higher than a preset similarity threshold as the initial solution.
[0138] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0139] The above-mentioned device can be implemented in the form of a computer program. Figure 3 Runs on the computer device shown.
[0140] See also Figure 3 , Figure 3 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.
[0141] See also Figure 3 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0142] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any solution generation method based on the content creation platform.
[0143] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0144] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any solution generation method based on the content creation platform.
[0145] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0146] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0147] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0148] Determine at least one target keyword feature in user needs based on the natural language processing (NLP) algorithm built into the content creation platform;
[0149] Perform feature splicing on the target keyword features to generate a combined feature, and select an initial solution matching the combined feature from a preset solution library;
[0150] The user portrait features corresponding to the user information are obtained, and the initial solution is optimized according to the user portrait features through the K-means optimization algorithm to generate a target solution.
[0151] In one embodiment, at least one target keyword feature in the user demand is determined based on the natural language processing (NLP) algorithm built into the content creation platform to achieve:
[0152] Based on a preset feature tag library and the conditional random field algorithm, at least one target keyword feature is determined.
[0153] In one embodiment, based on a preset feature tag library and the conditional random field algorithm, at least one target keyword feature is determined to achieve:
[0154] Based on the conditional random field algorithm, calculating the pending probability value of the demand keyword feature in the user demand matching each preset tag feature in the preset feature tag library;
[0155] Determine the demand keyword features whose pending probability values are greater than a preset probability value threshold as the target keyword features;
[0156] The conditional random field algorithm is Where P(y|X) is the unknown probability value, Z(x) is the normalization factor, and λ k μ j and are model weight parameters, X is the demand keyword feature, y is the preset label feature, and f k is the transfer characteristic function, g j is the state characteristic function.
[0157] In one embodiment, a user portrait feature corresponding to the user information is obtained, and the initial solution is optimized according to the user portrait feature by using a K-means optimization algorithm to generate a target solution for achieving:
[0158] Randomly select at least one data point from the initial solution as an initial cluster center;
[0159] Calculate the minimum distance between the user portrait feature and each of the cluster centers based on the first calculation formula of the K-means optimization algorithm;
[0160] Iteratively determine the next cluster center based on the second calculation formula of the K-means optimization algorithm and the distance;
[0161] When the next cluster center does not change any more, the data point corresponding to the last cluster center is determined as the target solution.
[0162] In one embodiment, the target keyword features are concatenated to generate a combined feature for achieving:
[0163] Based on a preset feature fusion algorithm and each of the target keyword features, generating the combined feature;
[0164] The preset feature fusion algorithm is: f =w⊙(X1+X2+……+X n ), where X f is the combined feature, w is the preset weighted feature vector, X n are the target keyword features.
[0165] In one embodiment, an initial solution matching the combined features is selected from a preset solution library to achieve:
[0166] Calculate the similarity between the combined feature and each preset solution in the preset solution library;
[0167] The preset solution whose similarity is higher than a preset similarity threshold is determined as the initial solution.
[0168] A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any one of the content creation platform-based solution generation methods provided in the embodiments of the present application.
[0169] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0170] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A solution generation method based on a content creation platform, characterized in that: include: Determine at least one target keyword feature in user needs based on the natural language processing (NLP) algorithm built into the content creation platform; Perform feature splicing on the target keyword features to generate a combined feature, and select an initial solution matching the combined feature from a preset solution library; The user portrait features corresponding to the user information are obtained, and the initial solution is optimized according to the user portrait features through the K-means optimization algorithm to generate a target solution.
2. The solution generation method based on the content creation platform according to claim 1 is characterized in that: The NLP algorithm includes a conditional random field algorithm, and the natural language processing NLP algorithm built into the content creation platform determines at least one target keyword feature in the user demand, including: Based on a preset feature tag library and the conditional random field algorithm, at least one target keyword feature is determined.
3. The solution generation method based on the content creation platform according to claim 2 is characterized in that: The determining of at least one target keyword feature based on a preset feature tag library and the conditional random field algorithm includes: Based on the conditional random field algorithm, calculating the pending probability value of the demand keyword feature in the user demand matching each preset tag feature in the preset feature tag library; Determine the demand keyword features whose pending probability values are greater than a preset probability value threshold as the target keyword features; The conditional random field algorithm is Where P(y|X) is the unknown probability value, Z(x) is the normalization factor, and λ k μ j and are model weight parameters, X is the demand keyword feature, y is the preset label feature, and f k is the transfer characteristic function, g j is the state characteristic function.
4. The method for generating a solution based on a content creation platform according to claim 1, characterized in that: The acquiring of user portrait features corresponding to the user information, and optimizing the initial solution according to the user portrait features by using a K-means optimization algorithm to generate a target solution include: Randomly select at least one data point from the initial solution as an initial cluster center; Calculate the minimum distance between the user portrait feature and each of the cluster centers based on the first calculation formula of the K-means optimization algorithm; Iteratively determine the next cluster center based on the second calculation formula of the K-means optimization algorithm and the distance; When the next cluster center does not change any more, the data point corresponding to the last cluster center is determined as the target solution.
5. The solution generation method based on the content creation platform according to claim 4 is characterized in that: The first calculation formula is D i =min 1≤j≤m ||x i -c j || 2 , the second calculation formula is Among them, D i is the minimum distance, x i is the ith data point, c j is the jth cluster center, ||x i -c j || is the distance between the data point and the cluster center, P i The probability of selecting the next cluster center for the i-th data point.
6. The method for generating a solution based on a content creation platform according to claim 1, characterized in that: The step of combining the target keyword features to generate a combined feature includes: Based on a preset feature fusion algorithm and each of the target keyword features, generating the combined feature; The preset feature fusion algorithm is: f =w⊙(X1+X2+……+X n ), where X f is the combined feature, w is the preset weighted feature vector, X n are the target keyword features.
7. The solution generation method based on the content creation platform according to any one of claims 1 to 6, characterized in that: The step of screening an initial solution matching the combined feature from a preset solution library includes: Calculate the similarity between the combined feature and each preset solution in the preset solution library; The preset solution whose similarity is higher than a preset similarity threshold is determined as the initial solution.
8. A solution generation device based on a content creation platform, characterized in that: include: A target keyword feature determination module, used to determine at least one target keyword feature in user needs based on a natural language processing (NLP) algorithm built into the content creation platform; An initial solution determination module is used to perform feature splicing on the target keyword features to generate a combined feature, and to select an initial solution matching the combined feature from a preset solution library; The target solution generation module is used to obtain the user portrait features corresponding to the user information, optimize the initial solution according to the user portrait features through the K-means optimization algorithm, and generate a target solution.
9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the solution generation method based on the content creation platform as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to implement a solution generation method based on a content creation platform as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Cboth template generation method and device, equipment, medium and product
CN114818641A
Intelligent cluster clustering method based on K-means + + clustering algorithm
CN116074991A
Aviation text data labeling method and labeling system thereof
CN116244445A
Mail marketing title generation method and device, equipment and medium
CN117035712A
Image label extraction method, system and equipment based on NLP and medium
CN117932063A
