A recommendation method, device, equipment and storage medium
By extracting and integrating the multi-dimensional characteristics of the target project and the characteristics of the development components, suitable development components are recommended, which solves the problem of low resource utilization of front-end development components, improves development efficiency and reduces costs.
Patent Information
- Application Number
- CN202410930798.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The resource utilization rate of front-end development components is not high, resulting in repeated development, code redundancy, reduced development speed and product quality, and increased development costs.
By obtaining the development data of the target project, extracting visual features and text features, performing fusion processing, and combining the component features of the development components, recommend suitable development components to improve development efficiency and quality.
It achieves accurate recommendation of development components, improves development speed and product quality, and reduces development costs.
Smart Images

Figure CN118466911B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer processing, and in particular to a recommendation method, device, equipment and storage medium. Background Art
[0002] Front-end component development has become a trend in the field of Internet development technology. However, due to the long development cycle and frequent turnover of developers, the effective utilization rate of front-end development component resources is not high. When developing new functions, developers may lack knowledge of existing and reusable front-end development components, resulting in unnecessary repeated development, increased code redundancy, reduced development speed and product quality, and increased development costs.
[0003] Therefore, how to improve development speed and product quality and reduce development costs has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present disclosure provides a recommendation method, device, equipment and storage medium to at least solve the above technical problems existing in the prior art.
[0005] According to a first aspect of the present disclosure, a recommendation method is provided, the method comprising:
[0006] Acquire development data of a target project, wherein the development data includes original image data, original text information, and a development component set;
[0007] Extracting visual features of the original image data;
[0008] Extracting a first text feature and a second text feature of the original text information, wherein the first text feature and the second text feature are different features;
[0009] fusing the visual feature, the first text feature and the second text feature to obtain a first fused feature and a second fused feature, wherein the first fused feature and the second fused feature are different;
[0010] Determining component characteristics of each development component in the development component set;
[0011] Based on the first fusion feature, the second fusion feature and the component feature, at least one target development component is determined from the various development components, and the target development component is used as a development component recommendation result for developing the target project.
[0012] In one possible implementation manner, extracting visual features of the original image data includes:
[0013] The original image data is input into a pre-trained image processing model to obtain features that characterize the development layout of the target project as visual features of the original image data.
[0014] In one possible implementation, the original text information includes requirement information and style description information of the target project;
[0015] The extracting of the first text feature and the second text feature of the original text information comprises:
[0016] Inputting the demand information into a pre-trained text processing model to obtain a first text feature;
[0017] The style description information is input into the text processing model to obtain a second text feature.
[0018] In one possible implementation, the fusing the visual feature, the first text feature, and the second text feature to obtain a first fused feature and a second fused feature includes:
[0019] splicing the visual feature, the first text feature and the second text feature to obtain a spliced feature;
[0020] Performing a first nonlinear transformation on the spliced features to obtain a first fusion feature;
[0021] The splicing features are subjected to a second nonlinear transformation process to obtain a second fusion feature.
[0022] In one possible implementation, the determining the component characteristics of each development component in the development component set includes:
[0023] Obtaining description text information of each development component in the development component set;
[0024] Input the description text information of each development component into the text processing model to obtain the text features of each development component;
[0025] The text features and development component vectors of each development component are concatenated to obtain the component features of each development component.
[0026] In one possible implementation, the determining at least one target development component from the development components based on the first fusion feature, the second fusion feature, and the component feature, and using the target development component as a development component recommendation result for developing the target project, includes:
[0027] Determine a recommended ranking result of each development component based on the first fusion feature, the second fusion feature and the component feature;
[0028] At least one target development component is determined from the development components according to the recommendation ranking result, and each of the target development components is used as a development component recommendation result for developing the target project.
[0029] In one possible implementation, determining the recommended ranking results of each development component based on the first fusion feature, the second fusion feature, and the component feature includes:
[0030] Calculate the product of the first fusion feature and the component feature of each development component as a first recommendation score of each development component;
[0031] Calculating the product of the second fusion feature and the component feature of each development component as a second recommendation score for each development component;
[0032] According to the first recommendation score and the second recommendation score, a recommended sorting order of each development component is determined as a recommended sorting result of each development component.
[0033] According to a second aspect of the present disclosure, a recommendation device is provided, the device comprising:
[0034] A data acquisition module, used to acquire development data of a target project, wherein the development data includes original image data, original text information and a development component set;
[0035] A visual feature extraction module, used to extract visual features of the original image data;
[0036] A text feature extraction module, used to extract a first text feature and a second text feature of the original text information, wherein the first text feature and the second text feature are different features;
[0037] a feature fusion module, configured to fuse the visual feature, the first text feature, and the second text feature to obtain a first fused feature and a second fused feature, wherein the first fused feature and the second fused feature are different;
[0038] A component feature determination module, used to determine the component features of each development component in the development component set;
[0039] The recommendation result determination module is used to determine at least one target development component from various development components based on the first fusion feature, the second fusion feature and the component feature, and use the target development component as a development component recommendation result for developing the target project.
[0040] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0041] at least one processor; and
[0042] a memory communicatively connected to the at least one processor; wherein,
[0043] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0044] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method described in the present disclosure.
[0045] The recommendation method, device, equipment and storage medium disclosed in the present invention obtain the development data of the target project, the development data includes original image data, original text information and a development component set; extract the visual features of the original image data; extract the first text feature and the second text feature of the original text information, the first text feature and the second text feature are different features; fuse the visual features, the first text feature and the second text feature to obtain the first fusion feature and the second fusion feature, the first fusion feature and the second fusion feature are different; determine the component features of each development component in the development component set; based on the first fusion feature, the second fusion feature and the component feature, determine at least one target development component from each development component, and use the target development component as the development component recommendation result for developing the target project. That is, the multi-dimensional features of the target project are extracted through the original image data and the original text information, and the component features of the development component are combined to achieve accurate recommendation for the development component, thereby improving the development speed and product quality and reducing the development cost.
[0046] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0048] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0049] Figure 1 A schematic diagram of the implementation process of the recommended method provided by the embodiment of the present disclosure is shown;
[0050] Figure 2 A schematic diagram of a component feature determination process provided by an embodiment of the present disclosure is shown;
[0051] Figure 3 A schematic diagram of a recommendation result determination process provided by an embodiment of the present disclosure is shown;
[0052] Figure 4 A schematic diagram of the structure of a recommended device provided by an embodiment of the present disclosure is shown;
[0053] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0054] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0055] In the front-end component development technology, decomposing the user interface into independent, reusable component units can effectively improve the reusability of development resources, reduce the coupling between different development modules, and enhance the efficiency of overall development and maintenance work. However, due to the long development project cycle, frequent replacement of developers and limitations of development architecture design, the effective utilization rate of component resources is not high. In addition, when developing new functions, developers may lack knowledge of existing and reusable front-end development components, resulting in unnecessary repeated development, increased code redundancy, reduced development speed and product quality, and thus increased development costs. Therefore, in order to solve the above problems, the present disclosure provides a recommendation method, device, equipment and storage medium. The recommendation method provided by the present disclosure can be applied to electronic devices such as mobile phones, computers and tablet computers.
[0056] The technical solution of the embodiment of the present disclosure will be described below in conjunction with the drawings in the embodiment of the present disclosure.
[0057] Figure 1 The following is a schematic diagram of the implementation process of the recommended method provided by the embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0058] S101, acquiring development data of a target project, wherein the development data includes original image data, original text information, and a development component set.
[0059] In the present disclosure, the target project refers to an Internet website or application to be developed, etc. The target project may include a front-end development project involving interaction, a back-end development project involving data management, a database management development project, etc.
[0060] The development data of the target project may include original image data, original text information, and a development component set.
[0061] The original image data may include information such as interface graphics, interface colors, and interface layout related to the interface design of the target project. The interface design of the target project may include a front-end interactive interface, such as the homepage entry interface of the target project, the user registration and login interface, the user personal homepage interface, the content display interface, and the message notification interface. The interface design of the target project may also include a backend management interface, which is an interface for managing users and performing project data statistics. The original image data may be a file generated by a visual design tool such as a PSD file (a proprietary file format for storing and editing images) or a Sketch file (a file format commonly used for interface design).
[0062] The original text information may include the requirement information and style description information of the target project. The requirement information of the target project may include information such as the functional requirements, user requirements and system requirements of the target project. The style description information of the target project may include information such as the style requirements, brand style and user preferences of the target project.
[0063] The development component set includes at least one development component for developing the target project and descriptive text information of each development component. If the target project is a front-end development project, the development component can be a front-end component, such as a navigation bar and a user homepage of a web page. Each component in the development component set can be an open source component or a pre-designed customized component according to the requirements of the target project.
[0064] The description text information of each development component includes the name, function, style, interaction effect, etc. of the component. For example, if the development component is a web navigation bar, the description text information of the web navigation bar includes: the name is the top navigation bar, menu link, search box, etc.
[0065] S102: extracting visual features of the original image data.
[0066] In the present disclosure, the original image data may be input into a pre-trained image processing model to obtain features characterizing the development layout of the target project as visual features of the original image data.
[0067] In the present disclosure, the image data of the development project can be used as sample image data, and the VIT (a deep learning model based on the attention mechanism) model can be trained using the sample image data to obtain an image processing model. Then, the trained image processing model is used to extract the visual features of the original image data.
[0068] For example, if the target project is a web page A development project, the original image data is a web page design image P, and the image processing model is a trained VIT model. The web page design image P can be preprocessed to convert the web page design image P into a format suitable for the VIT model, for example, converting the web page design image P into a digital representation. The converted web page design image P is then input into the VIT model, and the VIT model can extract features that characterize information such as the UI layout and style of the web page design image P as visual features.
[0069] S103: extracting a first text feature and a second text feature of the original text information, wherein the first text feature and the second text feature are different features.
[0070] In the present disclosure, the original text information may include the requirement information and style description information of the target project; then the step of extracting the first text feature and the second text feature of the original text information may include steps A1-A2:
[0071] Step A1: input the demand information into a pre-trained text processing model to obtain a first text feature.
[0072] In the present disclosure, the sample text information can be used to train the natural language processing model to be trained to obtain the text processing model. The natural language processing model can use the SBERT (a pre-trained language model) model, the RNN (recurrent neural network) model or the LSTM (long short-term memory network) model.
[0073] In the present disclosure, the requirement information of the target project may include data such as the requirement description text, function requirement text and user feedback text of the target project. The requirement description text, function requirement text and user feedback text and other data may be preprocessed, for example, by performing word segmentation processing to obtain multiple first text segmentations, and then the multiple first text segmentations are input into a text processing model. The text processing model may extract the word segmentation semantic features of each text segmentation and the relationship features between each text segmentation, and determine the features characterizing the target project requirements as the first text features based on the word segmentation semantic features and the relationship features.
[0074] Step A2: input the style description information into the text processing model to obtain a second text feature.
[0075] In the present disclosure, the style description information of the target project may include data such as text describing the architecture design style of the target project, text of the color design style, and text of the interaction design style. The data such as the text of the architecture design style, the text of the color design style, and the text of the interaction design style may be preprocessed, such as performing word segmentation processing to obtain a plurality of second text word segments, and then the plurality of second text word segments are input into a text processing model, and the text processing model may extract the word segmentation semantic features of each second text word segmentation and the relationship features between each text word segmentation, and determine the features representing the application design style requirements of the target project as the second text features according to the word segmentation semantic features and the relationship features.
[0076] In the present disclosure, the execution order of step A1 and step A2 is not limited.
[0077] S104, fusing the visual feature, the first text feature, and the second text feature to obtain a first fused feature and a second fused feature, wherein the first fused feature and the second fused feature are different.
[0078] In the present disclosure, the fusing process of the visual feature, the first text feature and the second text feature to obtain the first fused feature and the second fused feature may include steps B1-B3:
[0079] Step B1, concatenating the visual feature, the first text feature and the second text feature to obtain a concatenated feature.
[0080] In the present disclosure, the visual features, the first text features, and the second text features of the target item have the same dimension. The visual features, the first text features, and the second text features of the target item can be connected together in columns for horizontal splicing to obtain a longer feature vector as a splicing feature; or, the visual features, the first text features, and the second text features of the target item can be connected together in rows for vertical splicing to obtain a high-dimensional feature matrix as a splicing feature.
[0081] In the present disclosure, corresponding weights can also be set for the visual features, the first text features, and the second text features of the target project according to their importance to the target project. When performing feature splicing, the visual features, the first text features, and the second text features of the target project can first be weighted according to their respective corresponding weights, and then horizontal splicing or vertical splicing can be performed to obtain splicing features.
[0082] Step B2: performing a first nonlinear transformation on the spliced features to obtain a first fusion feature.
[0083] In the present disclosure, the first non-linear transformation process is different from the second non-linear transformation process.
[0084] In the present disclosure, performing a first nonlinear transformation on the spliced features can generate a fusion feature that can characterize the interaction between the visual features, the first text features, and the second text features in the spliced features, and the fusion feature can be used as the first fusion feature. The first nonlinear transformation can be a polynomial feature expansion process.
[0085] Step B3, performing a second nonlinear transformation on the spliced features to obtain a second fusion feature.
[0086] In the present disclosure, performing a second nonlinear transformation on the spliced features can generate a fusion feature that can improve the distribution of the visual features, the first text features, and the second text features in the spliced features, and the fusion feature can be used as the second fusion feature. The second nonlinear transformation can be a Log transformation, a Box-Cox transformation, or a hyperbolic tangent transformation.
[0087] S105: Determine component characteristics of each development component in the development component set.
[0088] Figure 2 A schematic diagram of a component feature determination process provided by an embodiment of the present disclosure is shown. Figure 2 As shown, the determining of the component characteristics of each development component in the development component set may include:
[0089] S201, obtaining description text information of each development component in the development component set.
[0090] In the present disclosure, the development component set includes descriptive text information of each development component, and the descriptive text information of each development component includes information such as the name, function, style, and interaction effect of the component.
[0091] S202, inputting the description text information of each development component into a text processing model to obtain the text features of each development component.
[0092] In the present disclosure, the text processing model is a pre-trained natural language processing model.
[0093] S203, concatenating the text features and development component vectors of each development component to obtain component features of each development component.
[0094] In the present disclosure, a development component vector refers to a feature that characterizes the attribute information, structure information, content, and behavior information of a development component. A development component vector is a feature vector determined in advance for each development component. After the development component vector of each development component is determined, the development component vector can be associated with the development component and stored together in a development component set.
[0095] The attribute information of the development component may include the color design and position information of the development component, the structural information of the development component may include the position of the development component in the page structure and the hierarchical relationship with other development components, the content of the development component may include the text content and image content of the development component, and the behavior information of the development component may include the interactive behavior of the development component.
[0096] S106: Determine at least one target development component from the development components based on the first fusion feature, the second fusion feature, and the component feature, and use the target development component as a development component recommendation result for developing the target project.
[0097] The method is adopted to obtain the development data of the target project, the development data includes original image data, original text information and a development component set; extract the visual features of the original image data; extract the first text feature and the second text feature of the original text information, the first text feature and the second text feature are different features; fuse the visual features, the first text feature and the second text feature to obtain the first fusion feature and the second fusion feature, the first fusion feature and the second fusion feature are different; determine the component features of each development component in the development component set; based on the first fusion feature, the second fusion feature and the component feature, determine at least one target development component from each development component, and use the target development component as the development component recommendation result for developing the target project. That is, the multi-dimensional features of the target project are extracted through the original image data and the original text information, and the component features of the development component are combined to achieve accurate recommendation for the development component, thereby improving the development speed and product quality and reducing the development cost.
[0098] In one possible implementation, Figure 3 A schematic diagram of a recommendation result determination process provided by an embodiment of the present disclosure is shown. Figure 3 As shown, the determining at least one target development component from each development component based on the first fusion feature, the second fusion feature and the component feature, and using the target development component as a development component recommendation result for developing the target project may include:
[0099] S301, determining a recommended ranking result of each development component based on the first fusion feature, the second fusion feature and the component feature.
[0100] In the present disclosure, determining the recommended ranking results of each development component based on the first fusion feature, the second fusion feature and the component feature may include steps C1-C3:
[0101] Step C1, calculating the product of the first fusion feature and the component feature of each development component as the first recommendation score of each development component.
[0102] In the present disclosure, the first fusion feature, the second fusion feature and the component feature are features of the same dimension. For each development component, the first fusion feature and the element at the same position in the component feature of the development component can be multiplied to obtain a product vector, and the values of each element in the product vector are summed up, and the sum obtained is used as the first recommendation score of the development component.
[0103] Step C2, calculating the product of the second fusion feature and the component feature of each development component as the second recommendation score of each development component.
[0104] For each development component, the second fusion feature and the element at the same position in the component feature of the development component can be multiplied to obtain a product vector, and the values of each element in the product vector are summed up, and the obtained sum is used as the second recommendation score of the development component.
[0105] Step C3: determining a recommended ranking order of each development component according to the first recommendation score and the second recommendation score as a recommended ranking result of each development component.
[0106] In the present disclosure, for each development component, the first recommendation score and the second recommendation score of the development component may be summed, and the obtained score and value may be used as the recommendation score of the development component, or the first recommendation score and the second recommendation score of the development component may be weighted and summed, and the obtained weighted sum value may be used as the recommendation score of the development component. Then, the development components are sorted in descending order of their recommendation scores, and the obtained sorting result may be used as the recommendation sorting result.
[0107] S302: Determine at least one target development component from the development components according to the recommendation ranking result, and use the target development components as development component recommendation results for developing the target project.
[0108] In the present disclosure, the development components are sorted in descending order according to their recommendation scores to obtain a recommendation sorting result. A preset number of development components with the highest scores can be selected from the recommendation sorting result as target development components, or development components with recommendation scores higher than a preset score threshold can be selected from the recommendation sorting result as target development components. The preset number can be set to 5 or 8, etc., and the preset score threshold can be set according to the actual application scenario, which is not specifically limited here.
[0109] After the target development components are determined, each target development component may be used as a development component recommendation result for developing the target project.
[0110] In the present disclosure, accurate and efficient recommendation of development components is achieved through the image information, text semantic information, style information and component feature information of the target project, and the construction of a multimodal development component recommendation model. The problem of difficult component screening and high development costs caused by developers' lack of comprehensive knowledge of existing and reusable front-end components is solved. By adopting the recommendation method disclosed in the present disclosure, the layout structure, color matching, interaction logic and other visual features of the target project can be accurately extracted to determine the accurate development components, which improves the development efficiency of Internet projects and reduces development costs.
[0111] Based on the same inventive concept, according to the recommendation method provided in the above embodiment of the present disclosure, correspondingly, another embodiment of the present disclosure further provides a recommendation device, whose structural schematic diagram is shown in FIG. Figure 4 As shown, specifically including:
[0112] The data acquisition module 401 is used to acquire the development data of the target project, wherein the development data includes original image data, original text information and a development component set;
[0113] A visual feature extraction module 402, used to extract visual features of the original image data;
[0114] A text feature extraction module 403, configured to extract a first text feature and a second text feature of the original text information, wherein the first text feature and the second text feature are different features;
[0115] A feature fusion module 404 is used to fuse the visual feature, the first text feature and the second text feature to obtain a first fused feature and a second fused feature, wherein the first fused feature and the second fused feature are different;
[0116] A component feature determination module 405, used to determine the component features of each development component in the development component set;
[0117] The recommendation result determination module 406 is used to determine at least one target development component from various development components based on the first fusion feature, the second fusion feature and the component feature, and use the target development component as a development component recommendation result for developing the target project.
[0118] The device is used to obtain the development data of the target project, the development data includes original image data, original text information and a development component set; extract the visual features of the original image data; extract the first text feature and the second text feature of the original text information, the first text feature and the second text feature are different features; fuse the visual features, the first text feature and the second text feature to obtain the first fusion feature and the second fusion feature, the first fusion feature and the second fusion feature are different; determine the component features of each development component in the development component set; based on the first fusion feature, the second fusion feature and the component feature, determine at least one target development component from each development component, and use the target development component as a development component recommendation result for developing the target project. That is, the multi-dimensional features of the target project are extracted through the original image data and the original text information, and the component features of the development component are combined to achieve accurate recommendation for the development component, thereby improving the development speed and product quality and reducing the development cost.
[0119] In one possible implementation, the visual feature extraction module 402 is specifically configured to input the original image data into a pre-trained image processing model to obtain features that characterize the development layout of the target project as visual features of the original image data.
[0120] In one possible implementation, the original text information includes requirement information and style description information of the target project;
[0121] The text feature extraction module 403 is specifically used to input the demand information into a pre-trained text processing model to obtain a first text feature; and input the style description information into the text processing model to obtain a second text feature.
[0122] In one possible implementation, the feature fusion module 404 is specifically used to splice the visual feature, the first text feature and the second text feature to obtain a spliced feature; perform a first nonlinear transformation on the spliced feature to obtain a first fused feature; and perform a second nonlinear transformation on the spliced feature to obtain a second fused feature.
[0123] In one possible implementation, the component feature determination module 405 is specifically used to obtain descriptive text information of each development component in the development component set; input the descriptive text information of each development component into a text processing model to obtain text features of each development component; and concatenate the text features of each development component with the development component vector to obtain component features of each development component.
[0124] In one possible implementation, the recommendation result determination module 406 is specifically used to determine the recommendation ranking results of each development component based on the first fusion feature, the second fusion feature and the component feature; according to the recommendation ranking results, at least one target development component is determined from each development component, and each of the target development components is used as a recommendation result of the development component for developing the target project.
[0125] In one possible implementation, the recommendation result determination module 406 is specifically used to calculate the product of the first fusion feature and the component feature of each development component as the first recommendation score of each development component; calculate the product of the second fusion feature and the component feature of each development component as the second recommendation score of each development component; and determine the recommended ranking order of each development component based on the first recommendation score and the second recommendation score as the recommendation ranking result of each development component.
[0126] By adopting this device, accurate and efficient recommendations for development components are achieved through the image information, text semantic information, style information and component feature information of the target project, as well as the construction of a multimodal development component recommendation model. The problem of difficult component screening and high development costs caused by developers' lack of comprehensive knowledge of existing and reusable front-end components is solved. By adopting the recommendation device disclosed in the present invention, the layout structure, color matching, interaction logic and other visual features of the target project can be accurately extracted to determine the accurate development components, thereby improving the development efficiency of Internet projects and reducing development costs.
[0127] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0128] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0129] like Figure 5As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0130] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0131] The computing unit 501 may be a variety of general and / or special processing development components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the recommendation method. For example, in some embodiments, the recommendation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the recommendation method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the recommendation method in any other appropriate manner (e.g., by means of firmware).
[0132] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0133] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0134] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0135] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0136] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0137] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0138] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0139] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0140] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A recommendation method, characterized in that: The method comprises: Acquire development data of a target project, wherein the development data includes original image data, original text information, and a development component set; Extracting visual features of the original image data, wherein the visual features of the original image data are features that characterize the development layout of the target project; Extracting a first text feature and a second text feature of the original text information, wherein the first text feature and the second text feature are different features; fusing the visual feature, the first text feature and the second text feature to obtain a first fused feature and a second fused feature, wherein the first fused feature and the second fused feature are different; Determining component characteristics of each development component in the development component set; Based on the first fusion feature, the second fusion feature and the component feature, determining at least one target development component from each development component, and using the target development component as a development component recommendation result for developing the target project; The step of determining at least one target development component from the development components based on the first fusion feature, the second fusion feature, and the component feature, and using the target development component as a development component recommendation result for developing the target project includes: Determine a recommended ranking result of each development component based on the first fusion feature, the second fusion feature and the component feature; Determine at least one target development component from each development component according to the recommendation ranking result, and use each of the target development components as a development component recommendation result for developing the target project; The determining, based on the first fusion feature, the second fusion feature, and the component feature, a recommended ranking result of each development component includes: Calculate the product of the first fusion feature and the component feature of each development component as a first recommendation score of each development component; Calculating the product of the second fusion feature and the component feature of each development component as a second recommendation score for each development component; According to the first recommendation score and the second recommendation score, a recommended sorting order of each development component is determined as a recommended sorting result of each development component.
2. The method according to claim 1, characterized in that: The extracting visual features of the original image data comprises: The original image data is input into a pre-trained image processing model to obtain features that characterize the development layout of the target project as visual features of the original image data.
3. The method according to claim 1, characterized in that The original text information includes the requirement information and style description information of the target project; The extracting of the first text feature and the second text feature of the original text information comprises: Inputting the demand information into a pre-trained text processing model to obtain a first text feature; The style description information is input into the text processing model to obtain a second text feature.
4. The method according to claim 1, characterized in that: The fusing the visual feature, the first text feature and the second text feature to obtain a first fused feature and a second fused feature includes: splicing the visual feature, the first text feature and the second text feature to obtain a spliced feature; Performing a first nonlinear transformation on the spliced features to obtain a first fusion feature; The splicing features are subjected to a second nonlinear transformation process to obtain a second fusion feature.
5. The method according to claim 1, characterized in that The determining of the component characteristics of each development component in the development component set includes: Obtaining description text information of each development component in the development component set; Input the description text information of each development component into the text processing model to obtain the text features of each development component; The text features and development component vectors of each development component are concatenated to obtain the component features of each development component.
6. A recommendation device, characterized in that: The device comprises: A data acquisition module, used to acquire development data of a target project, wherein the development data includes original image data, original text information and a development component set; A visual feature extraction module, used to extract visual features of the original image data, wherein the visual features of the original image data are features that characterize the development layout of the target project; A text feature extraction module, used to extract a first text feature and a second text feature of the original text information, wherein the first text feature and the second text feature are different features; a feature fusion module, configured to fuse the visual feature, the first text feature, and the second text feature to obtain a first fused feature and a second fused feature, wherein the first fused feature and the second fused feature are different; A component feature determination module, used to determine the component features of each development component in the development component set; The recommendation result determination module is used to calculate the product of the first fusion feature and the component feature of each development component as the first recommendation score of each development component; calculate the product of the second fusion feature and the component feature of each development component as the second recommendation score of each development component; determine the recommended sorting order of each development component according to the first recommendation score and the second recommendation score as the recommendation sorting result of each development component; determine at least one target development component from each development component according to the recommendation sorting result, and use each of the target development components as the development component recommendation result for developing the target project.
7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-5.
