Methods, apparatus, devices, and media for generating target information cards
The method automates the generation of information cards by extracting attributes from page elements and inserting them into templates, addressing inefficiencies in manual processes and enhancing the speed and accuracy of card creation.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- BEIJING YOUZHUJU NETWORK TECH CO LTD
- Filing Date
- 2024-12-26
- Publication Date
- 2026-05-14
AI Technical Summary
Existing methods for generating information cards require significant manual work, especially when dealing with a large number of targets, making the process inefficient.
A method and apparatus for automatically generating information cards by extracting attributes from page elements using semantic analysis and machine learning models, and inserting them into predefined templates based on page type, reducing manual effort.
Enables efficient and automated generation of information cards with improved accuracy and reduced manual workload, allowing for quick creation and customization of cards for various targets.
Smart Images

Figure 0007858771000005 
Figure 0007858771000006 
Figure 0007858771000007
Abstract
Description
Technical Field
[0001] Exemplary embodiments of the present invention generally relate to image processing, and more particularly to a method, apparatus, device, and computer-readable storage medium for generating an information card of a target.
Background Art
[0002] Image processing technologies are widely applied in various fields to generate various target information cards in order to provide the overview information of the target in a visual way. Here, the target includes various meanings. For example, in an item management system, each item information card can be generated to represent the name, type, etc. of the item, and in an item management system, each item information card can be generated to describe the item name, overview, etc. However, in the existing process of generating information cards, there is a lot of manual work, and it is desired to generate the information card of the target in a simpler and more effective way.
Summary of the Invention
[0003] In a first aspect of the present invention, a method for generating an information card of a target is provided. The method includes obtaining a set of page elements in a page in response to receiving a page address of a page including a set of attributes of a target object, determining a set of attributes of the target object based on the set of page elements, and generating an information card of the target object based on the set of attributes.
[0004] In a second aspect of the present invention, an apparatus for generating an information card of a target is provided. The apparatus includes an acquisition module for obtaining a set of page elements in a page in response to receiving a page address of a page including a set of attributes of a target object, a determination module for determining a set of attributes of the target object based on the set of page elements, and a generation module for generating an information card of the target object based on the set of attributes.
[0005] A third aspect of the present invention provides an electronic device comprising at least one processing unit and at least one memory coupled to the at least one processing unit and used to store instructions executed by the at least one processing unit, wherein the electronic device is made to execute the method of the first aspect of the present invention when instructions are executed by the at least one processing unit.
[0006] In a fourth aspect of the present invention, a computer-readable storage medium is provided, the medium storing a computer program, and when the computer program is executed by the processor, the method of the first aspect of the present invention is implemented by the processor.
[0007] It should be understood that the contents described in the summary section of the present invention are not intended to limit the main or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will be readily apparent from the following description. [Brief explanation of the drawing]
[0008] The above-mentioned features and other features, advantages, and aspects of each embodiment of the present invention will become clearer by referring to the following detailed description in conjunction with the drawings. Identical or similar elements are indicated in identical or similar drawings. [Figure 1] A block diagram of an applicable environment according to an exemplary embodiment of the present invention is shown. [Figure 2] This shows a block diagram for generating an information card for a target according to several embodiments of the present invention. [Figure 3] This shows a block diagram illustrating how to generate an information card by filling in data into a template according to several embodiments of the present invention. [Figure 4] This shows a block diagram illustrating the correspondence between pages and templates according to several embodiments of the present invention. [Figure 5]This shows a block diagram of a generation page for generating information cards according to several embodiments of the present invention. [Figure 6] This diagram shows a block diagram illustrating the presentation of a generated information card to a user according to several embodiments of the present invention. [Figure 7] A flowchart shows a method for generating an information card for a target according to several embodiments of the present invention. [Figure 8] This shows a block diagram of an apparatus for generating target information cards according to several embodiments of the present invention. [Figure 9] A block diagram of a device capable of implementing multiple embodiments of the present invention is shown. [Modes for carrying out the invention]
[0009] Embodiments of the present invention will be described in more detail below with reference to the drawings. Although specific embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, but rather these embodiments are provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are for illustrative purposes only and should not be used to limit the scope of protection of the present invention.
[0010] In the description of embodiments of the present invention, the term “includes” and similar terms are open-ended inclusions meaning “includes, but not limited to, ~”. The term “based on” should be understood as “based on at least part of”. The term “one embodiment” or “the embodiment” should be understood as “at least one embodiment”. The term “some embodiments” should be understood as “at least some embodiments”. Other explicit and implicit definitions may be included below. The term “model” as used herein can indicate relationships between each data. For example, the above relationships can be derived based on various currently known and / or future technical solutions.
[0011] It is understood that data related to this technical solution (including, but not limited to, the data itself, the acquisition of the data, or the use of the data) must comply with applicable laws and related designated requirements.
[0012] It is understood that, before using the technical solutions disclosed in each embodiment of the present invention, the user should be notified in an appropriate manner in accordance with relevant laws and regulations regarding the type, scope, and circumstances of use of personal information related to the present invention, and the user's consent should be obtained.
[0013] For example, when responding to an unsolicited request from a user, the system explicitly informs the user that the requested operation requires the acquisition and use of the user's personal information by sending the user information. This allows the user to independently choose whether to provide personal information to software or hardware, such as an electronic device, application, server, or storage medium, that performs the operation of the technical solution of the present invention, based on the information provided.
[0014] As a selective but non-restrictive implementation, a method for sending information to a user in response to receiving an unsolicited request from the user may, for example, utilize a pop-up window, where the information can be displayed in text form. Furthermore, the pop-up window may also include selection controls for the user to choose whether to "agree" or "disagree" to providing personal information to the electronic device.
[0015] The notification and user authorization process described above is merely a general overview and does not limit the implementation of the present invention. It is understood that other methods that comply with relevant laws and regulations may also be applied to the implementation of the present invention.
[0016] The term "in response to" used here refers to the occurrence of the corresponding event or the fulfillment of the condition. It should be understood that the timing of the execution of a subsequent action performed in response to such an event or condition is not necessarily strongly correlated with the timing of the event's occurrence or the condition's fulfillment. For example, in some cases, the subsequent action may be executed simultaneously with the occurrence of the event or the fulfillment of the condition, or it may be executed some time after the event or condition has been fulfilled.
[0017] <Example Environment> Image processing technology is widely applied in various fields to generate various object information cards in order to provide summary information about an object in a visual manner. Below, we will describe an application environment for generating object information cards, using item management as an example. Figure 1 shows a block diagram 100 of an application environment according to an exemplary embodiment of the present invention. As shown in Figure 1, the information card 120 may be a control in the user interface 110 of an application. The application here may be various types of applications, including but not limited to social applications, video applications, and short video applications.
[0018] During operation by the terminal user of the application, an information card 120 can be provided in the user interface 110. When the user clicks on the information card 120, the user can be guided to open the page corresponding to the information card 120. As shown in Figure 1, the information card 120 may be a single image, which may contain various related information about the subject (e.g., a duffel bag). Here, the subject may be, for example, an item for sale on an online sales website, and each subject may have its own page. In existing technical solutions for generating information cards 120, information can be manually extracted from pages to create the information card 120. However, if there are a large number of subjects, this results in a significant workload, so it is desirable to generate information cards for subjects in a more easy and effective way.
[0019] <Overview of Information Card Generation> To at least partially solve the deficiencies in the prior art, according to an exemplary embodiment of the present invention, a method for generating an information card for a target is proposed. Referring to FIG. 2, an overview according to an exemplary embodiment of the present invention will be described, and FIG. 2 shows a block diagram 200 for generating an information card for a target according to some embodiments of the present invention. As shown in FIG. 2, a page address 210 of a page 220 including a set of attributes of a target object can be received. In this example, the target can represent the sales item "duffel bag", and the page 220 may be a page for selling "duffel bag" on an online sales website.
[0020] Furthermore, a set 230 of page elements within the page 220 is obtained. The page elements 230 may be various elements such as images, texts, videos, links, etc. defined within the page 220. Based on the set 230 of page elements, a set 240 of attributes of the target object, such as an image and name of the item, can be determined. Subsequently, an information card 120 for the target object can be generated based on the set 240 of attributes.
[0021] Using an exemplary embodiment of the present invention, various attributes of a target can be directly extracted from a target page, and thereby an information card can be automatically generated using the extracted various attributes. According to this method, the process of generating an information card does not require much manual work, and by simply inputting the page address 210 for the target, an information card can be automatically generated based on the information within the page 220 corresponding to the page address 210.
[0022] <Detailed Process of Information Card Generation> Having already described the overview of generating information cards, various details will be explained below. According to one exemplary embodiment of the present invention, in the process of obtaining a set of page elements within a page, the code within the page can be analyzed to extract various structured information defined within the page. In one example, the extracted structured information can be managed according to the structure shown in Table 1 below. [Table 1] TIFF0007858771000002.tif82170
[0023] As shown in Table 1, rows 1-7 show the title of the extracted page (i.e., title), and the style of the title is width=375, height=1224. Rows 8-91 show information about other page elements within the page. For example, rows 7-62 show the content within the page (i.e., content), which may include multiple parts such as the image (i.e., img) shown in rows 7-18, the link (i.e., link) shown in rows 19-33, the video (i.e., video) shown in rows 34-47, and the text (i.e., text) shown in rows 48-62. Furthermore, rows 63-91 show the components within the page (i.e., component), which may include multiple components such as the plugin (i.e., swiper) shown in rows 63-77 and the image shown in rows 78-91.
[0024] Based on various extraction techniques currently known and / or to be developed in the future, various page elements can be extracted from a page. This method allows for the extraction of multifaceted information from a page, thereby providing a data basis for determining various attributes of the subject. Table 1 merely illustrates one example of how to store the extracted information; it should be understood that alternative and / or additional means can be used to store the extracted information.
[0025] According to an exemplary embodiment of the present invention, a target set of attributes is determined based on a set of page elements. Specifically, the set of attributes can be determined based on at least one of the following: semantic analysis of the set of page elements, or a machine learning model that describes the relationships between the set of page elements and the set of attributes. By using the exemplary embodiment of the present invention, target attributes can be extracted using a variety of methods, thereby improving the efficiency of generating information cards.
[0026] Specifically, semantic analysis can be performed based on the data structure shown in Table 1, and corresponding attributes can be determined. For example, corresponding attributes can be found based on information such as each keyword on the page. In the context of the present invention, the set of attributes may include at least one of the following: name, description, image, brand, price, selling points, etc. Specifically, text can be searched using keywords such as "name" and "price" to determine the corresponding attributes. Alternatively, for example, an image in a prominent position on the page may be used as the target image. Furthermore, for example, the target image can be determined by identifying whether the content within the image matches the name of the target. This method allows for the determination of various attributes of the target in a simple and effective way, thereby facilitating the insertion of various information into the information card.
[0027] According to an exemplary embodiment of the present invention, each attribute of a target can be determined based on a machine learning model. For example, a pre-trained machine learning model can be obtained, which can describe the relationships between a set of page elements and a set of attributes. For example, the training process can be performed using an annotated page sample. When the data shown in Table 1 is input to the trained model, information such as the name, description, image, brand, price, and selling points of the target can be received from the model. This method makes full use of the powerful processing capabilities of the machine learning model to determine various attributes of the target in a more accurate way. Alternatively and / or additionally, the attributes of the target can be determined in a more accurate way by performing cross-validation using the two methods described above.
[0028] According to one exemplary embodiment of the present invention, each attribute extracted in various functional ways can be stored, and each attribute can be stored in the data structure shown in Table 2. In Table 2, each extracted attribute can be stored in each field. For example, the name of the object, "Duffel Bag," can be stored in the title field "title," the price of the object, "199.00," can be stored in the price field "price," the description of the object, "Cowhide material...", can be stored in the description field "description," and the image of the object can be stored in the image field "image." [Table 2]
[0029] According to one exemplary embodiment of the present invention, a template can be used to specify the layout of an information card. More details regarding templates will be described with reference to Figure 3, which shows a block diagram 300 in which data is populated into a template according to several embodiments of the present invention to generate an information card. As shown on the left side of Figure 3, the template 310 may include a background image 370 and a set of insertion positions corresponding to sets of attributes. Specifically, the background image 370 can display the background of the information card. An image of the subject can be inserted at the image position 320, the name of the subject at the name position 330, the price of the subject at the price position 340, the brand of the subject at the brand position 350, and a description of the subject at the description position 360.
[0030] According to one exemplary embodiment of the present invention, each position can be defined in various ways. For example, for image position 320, the position of the upper-left corner (x0, y0) of the image in template 310 can be specified, along with the width and height of the image. Alternatively and / or additionally, the position of the upper-left corner (x0, y0) and the position of the lower-right corner (x1, y1) of the image can be specified.
[0031] Furthermore, when generating target information cards, the target information cards can be generated by inserting a set of attributes into a set of insertion positions. At this time, a mapping relationship can be established between each field shown in Table 2 and each position in template 310, thereby making it easy to insert attributes corresponding to each position. The right side of Figure 3 shows the generated information card 370, in which the attributes corresponding to each position have already been inserted. According to this method, in the management information card process, it is only necessary to insert the extracted attributes into the corresponding positions, thus simplifying the information card generation process. Furthermore, if it is necessary to adjust the layout of the information card, the background image, insertion positions, and corresponding attributes in the template can be adjusted, thereby allowing for more efficient modification of the information card.
[0032] According to an exemplary embodiment of the present invention, one or more candidate templates can be predefined. For example, a simple template and a detailed template can be established, in which case the simple template may include only the image and price of the subject, while the detailed template may include more information such as the image, description, and price of the subject. When generating an information card, a template can be obtained to specify the layout of the information card, and furthermore, an information card for the target subject can be generated based on the template. Using the exemplary embodiment of the present invention, the layout of each content within the information card can be predefined, thereby facilitating the display of various information related to the target subject.
[0033] According to one exemplary embodiment of the present invention, a corresponding template can be selected based on the page type of the page. Specifically, multiple candidate templates can be established by determining the page type of the page based on the set of page elements, where the page type includes at least one of single-target type, multiple-target type, and homepage type. More details will be illustrated with reference to Figure 4, which shows a block diagram 400 of the correspondence between pages and templates according to several embodiments of the present invention.
[0034] As shown in Figure 4, the single-target type 410 indicates that the target page relates to only one target, for example, a single item "duffel bag". The multiple-target type 420 indicates that the target page relates to multiple targets, for example, multiple items "duffel bag" and "handbag". The homepage type 430 indicates that the target page relates to the homepage of a specific store, and that homepage can provide an entry point to access multiple items. Templates can be pre-specified for various types of pages; for example, template 412 can be specified for the single-target type 410, template 422 for the multiple-target type 420, and template 432 for the homepage type 430. In this case, the attribute information shown in Table 2 can be expanded as shown in Table 3. In Table 3, the page type field "page_type" can specify the page type. [Table 3]
[0035] Furthermore, a template matching the page type can be selected from multiple candidate templates. According to an exemplary embodiment of the present invention, a corresponding template can be automatically selected based on the page type entered by the user. Using the exemplary embodiment of the present invention, multiple candidate templates can be pre-customized based on different page types. This method allows various types of pages to be presented according to different layouts, thereby enabling information cards to provide more information in a more appropriate layout.
[0036] According to one exemplary embodiment of the present invention, an interaction interface for receiving a page address can be provided. More details will be described with reference to Figure 5, which shows a block diagram 500 of a page for generating an information card according to several embodiments of the present invention. As shown in Figure 5, a generated page 510 can be provided, and interaction between the user and the generated page 510 can be detected. For example, when it is detected that the user has entered a page address into an input box 520, the target attributes can be extracted from the page indicated by the page address by performing the method described above, and a corresponding information card can be generated.
[0037] According to an exemplary embodiment of the present invention, a user can enter one or more page addresses into the input box 520. It should be understood that the generated page 510 is merely illustrative, and page addresses can be received by other means, for example, a user can drag a file containing one or more page addresses into the input box 520. Alternatively and / or additionally, a user can enter the entrance address of an online sales website into the input box 520 and specify a hierarchical range of traversed pages. In this case, corresponding information cards can be generated for objects within multiple pages belonging to that hierarchical range. Using the exemplary embodiment of the present invention, a user can generate one or more information cards at once when needed, thereby improving generation efficiency.
[0038] According to an exemplary embodiment of the present invention, the corresponding template may be automatically selected based on a specified page type, or the user may be allowed to manually select the template for the information card. Specifically, an interaction interface for selecting a template can be provided, and when an interaction with the interaction interface is detected, a template corresponding to the interaction can be selected from a plurality of candidate templates. Using the exemplary embodiment of the present invention, the user can select the template they expect, thereby ensuring that the generated information card better matches the user's expectations. Alternatively and / or additionally, the user can verify whether the automatically selected template is appropriate for the page of the item, thereby enabling the generation of an information card that better matches the user's expectations.
[0039] It should be understood that the generation page 510 mentioned above may also be a page of the application management tool. For example, the user who can decide what kind of information cards to generate using the application management tool may be a user of the application management tool, such as an application administrator.
[0040] According to an exemplary embodiment of the present invention, each generated information card can be stored in a repository to provide a matching information card to the terminal user of the application. According to an exemplary embodiment of the present invention, the generated information card can be sent to a client device running the application to provide a page in response to the detection of interaction with the information card. Figure 6 shows a block diagram 600 presenting a generated information card to a user according to several embodiments of the present invention. As shown in Figure 6, the application's user interface 610 can provide an information card 620 to the terminal user of the application. The information card 620 may be generated based on a page of multiple object type 420 in Figure 4, in which case the information card 620 may include multiple objects, such as images of a duffel bag and a handbag. When it is detected that the terminal user has clicked on the information card 620, the corresponding page can be opened to provide a sales page for multiple items.
[0041] According to one exemplary embodiment of the present invention, the target object can include at least one of a physical item and a virtual item. It should be understood that the above describes the process of generating an information card using only an example of a physical item as the target. Alternatively and / or additionally, the target can further include virtual items, such as audio, video, games, applications, pages, etc. Specifically, a corresponding information card can be provided on the client device running the application while a terminal user is using the application. For example, while a user is watching a sports game video, an information card pointing to a news page related to that sports game can be provided, and while a user is watching a movie promotional video, an information card pointing to a movie ticket sales website can be provided. Using the exemplary embodiment of the present invention, information cards can be generated for a wider variety of targets, thereby providing terminal users with more comprehensive information.
[0042] According to an exemplary embodiment of the present invention, an information card can be updated based on the content the user is viewing before it is presented. Assuming the user is viewing light-colored content, the background image in the template can be updated to a light color; and assuming the user is viewing gray-colored content, the background image in the template can be updated to a gray color. This method allows for the presentation of information cards in an application in a more collaborative manner. According to an exemplary embodiment of the present invention, the background image in an information card can be updated based on the application's interface style. This method allows the same information card to be shared across multiple different applications. This method simplifies the process of generating and managing information cards.
[0043] Using an exemplary embodiment of the present invention, one or more information cards for a target can be created using an information card generation tool. This method eliminates the need for extensive manual work during the information card generation process; simply entering the page address for the target allows for the automatic generation of information cards based on the information on the page corresponding to that page address.
[0044] <Exemplary process> Figure 7 shows a flowchart of a method 700 for generating an information card for a target according to several embodiments of the present invention. In box 710, the page address of a page containing a set of attributes for the target is received. Upon receiving the page address, the method proceeds to box 720. In box 720, a set of page elements within the page is obtained, and in box 730, a set of attributes for the target is determined based on the set of page elements. In box 740, an information card for the target is generated based on the set of attributes.
[0045] According to an exemplary embodiment of the present invention, generating a target information card further includes obtaining a template for specifying the layout of the information card, and generating the target information card based on the template.
[0046] According to an exemplary embodiment of the present invention, obtaining a template for specifying the layout of an information card includes determining the page type of a page based on a set of page elements, wherein the page type includes at least one of single-target type, multiple-target type, and homepage type, and selecting a template from a plurality of candidate templates that matches the page type.
[0047] According to an exemplary embodiment of the present invention, obtaining a template for specifying the layout of an information card includes providing an interaction interface for selecting a template, and, in response to the detection of an interaction with the interaction interface, selecting a template corresponding to the interaction from a plurality of candidate templates.
[0048] According to an exemplary embodiment of the present invention, determining a target set of attributes based on a set of page elements includes determining the set of attributes based on at least one of the following: semantic analysis of the set of page elements, or a machine learning model that describes the relationships between the set of page elements and the set of attributes.
[0049] According to an exemplary embodiment of the present invention, a template includes a background image and a set of insertion positions corresponding to sets of attributes, and generating a target information card includes generating a target information card by inserting the set of attributes into the set of insertion positions.
[0050] According to one exemplary embodiment of the present invention, the method 700 further includes providing an interaction interface for receiving a page address and performing the method in response to the detection of an interaction with the interaction interface.
[0051] According to an exemplary embodiment of the present invention, the method 700 further includes providing a page in response to the detection of interaction with an information card by transmitting an information card to a client device.
[0052] According to one exemplary embodiment of the present invention, the set of page elements includes at least one of images, text, videos, links, and components, and the set of attributes includes at least one of the target name, description, images, brand, and price.
[0053] According to one exemplary embodiment of the present invention, the target object includes at least one of a physical item and a virtual item.
[0054] <Exemplary apparatus and devices> Figure 8 shows a block diagram of an apparatus 800 for generating an information card for a target according to some embodiments of the present invention. The apparatus 800 comprises an acquisition module 810 for obtaining a set of page elements in a page in response to receiving a page address of a page containing a set of attributes for a target; a determination module 820 for determining a set of attributes for a target based on the set of page elements; and a generation module 830 for generating an information card for a target based on the set of attributes.
[0055] According to one exemplary embodiment of the present invention, the generation module further comprises a template acquisition module for obtaining a template for specifying the layout of an information card, and a template base generation module for generating a target information card based on the template.
[0056] According to an exemplary embodiment of the present invention, the template acquisition module is a type determination module for determining the page type of a page based on a set of page elements, the type determination module includes at least one of single-target type, multiple-target type, and homepage type, and the selection module for selecting a template that matches the page type from a plurality of candidate templates.
[0057] According to one exemplary embodiment of the present invention, the template acquisition module includes a providing module for providing an interaction interface for selecting a template, and an interaction base selection module for selecting a template corresponding to the interaction from a plurality of candidate templates in response to the detection of an interaction with the interaction interface.
[0058] According to an exemplary embodiment of the present invention, the decision module further determines a set of attributes based on at least one of the following: a semantic analysis of a set of page elements, or a machine learning model that describes the relationships between the set of page elements and the set of attributes.
[0059] According to an exemplary embodiment of the present invention, a template includes a background image and a set of insertion positions corresponding to sets of attributes, and a generation module further comprises an insertion module for generating a target information card by inserting sets of attributes into sets of insertion positions.
[0060] According to one exemplary embodiment of the present invention, the apparatus further comprises a receiving module for providing an interaction interface for receiving a page address, and a detection module for performing a method in response to the detection of an interaction with the interaction interface.
[0061] According to one exemplary embodiment of the present invention, the device further includes providing a page in response to the detection of interaction with an information card by transmitting an information card to a transmitting client device.
[0062] According to one exemplary embodiment of the present invention, the set of page elements includes at least one of images, text, videos, links, and components, and the set of attributes includes at least one of the target name, description, images, brand, and price.
[0063] According to one exemplary embodiment of the present invention, the target object includes at least one of a physical item and a virtual item.
[0064] Figure 9 shows a block diagram of a device 900 that can implement multiple embodiments of the present invention. It should be understood that the computing device 900 shown in Figure 9 is illustrative and should not limit the functionality and scope of the embodiments described herein. The computing device 900 shown in Figure 9 may be used to implement the methods described above.
[0065] As shown in Figure 9, the computing device 900 is in the form of a general-purpose computing device. The components of the computing device 900 may, but are not limited to, one or more processors or processing units 910, memory 920, storage devices 930, one or more communication units 940, one or more input devices 950, and one or more output devices 960. The processing unit 910 may be an actual or virtual processor and can perform various processes based on a program stored in memory 920. In a multiprocessor system, the parallel processing capability of the computing device 900 is improved by having multiple processing units execute computer executable instructions in parallel.
[0066] The computing device 900 typically includes multiple computer storage media. Such media may include, but are not limited to, volatile and non-volatile media, removable and non-removable media, and may be any obtainable media accessible by the computing device 900. Memory 920 may be volatile memory (e.g., registers, fast cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or a specific combination thereof. Storage device 930 may be removable or non-removable media, and may include machine-readable media such as flash memory drives, magnetic disks, or any other media, and may be used to store information and / or data (e.g., training data for training) and may be accessible within the computing device 900.
[0067] The computing device 900 may further include other removable / non-removable, volatile / non-volatile storage media. Although not shown in Figure 9, a magnetic disk drive for reading from or writing to removable, non-volatile magnetic disks (e.g., “floppy disks”) and a removable optical disk drive for reading from or writing to non-volatile optical disks may be provided. In these cases, each drive may be connected to a path (not shown) by one or more data medium interfaces. The memory 920 may also include a computer program product 625 having one or more program modules, which are configured to perform various methods or operations of various embodiments of the present invention.
[0068] The communication unit 940 implements communication with other computing devices via a communication medium. Additionally, the functionality of the components of the computing device 900 may be implemented as a single computing cluster or as multiple computing machines, which can communicate via communication connections. Therefore, the computing device 900 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or other network nodes.
[0069] The input device 650 may be one or more input devices such as a mouse, keyboard, or trackball. The output device 960 may be one or more output devices such as a display, speaker, or printer. The computing device 900 may further communicate with one or more external devices (not shown) such as a storage device or display device via the communication unit 940, as needed, or with one or more devices that enable a user to interact with the computing device 900, or with any device (e.g., a netbook card, modem) that enables the computing device 900 to communicate with one or more other computing devices. Such communication may be performed via an input / output (I / O) interface (not shown).
[0070] According to exemplary embodiments of the present invention, a computer-readable storage medium is provided in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to realize the method described above. According to exemplary embodiments of the present invention, a computer program product is further provided, which is tangibly stored in a non-temporary computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to realize the method described above. According to exemplary embodiments of the present invention, a computer program product is provided in which a computer program is stored, and the method described above is realized when the program is executed by a processor.
[0071] Herein, each aspect of the present invention has been described with reference to flowcharts and / or block diagrams of methods, apparatus, and computer program products implemented by the present invention. It should be understood that each box in the flowcharts and / or block diagrams, and each combination of boxes in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0072] These computer-readable program instructions may be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device to generate a machine that, when these instructions are executed by the computer or other programmable data processing device's processing unit, generates a device for implementing the functions / operations specified in one or more boxes in a flowchart and / or block diagram. These computer-readable program instructions may also be stored in a computer-readable storage medium, and these instructions may cause the computer, programmable data processing device, and / or other device to operate in a particular manner so that the computer-readable medium on which the instructions are stored constitutes a product containing instructions for implementing each aspect of the functions / operations specified in one or more boxes in a flowchart and / or block diagram.
[0073] By loading computer-readable program instructions into a computer, other programmable data processing device, or other device, a series of operational steps are performed on the computer, other programmable data processing device, or other device to generate a process implemented by the computer, so that the instructions executed on the computer, other programmable data processing device, or other device implement the functions / operations specified in one or more boxes in a flowchart and / or block diagram.
[0074] The flowcharts and block diagrams in the drawings illustrate the implementable architectures, functions, and operations of several implementable systems, methods, and computer program products according to the present invention. In this regard, each box in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and a module, program segment, or part of an instruction contains one or more executable instructions for implementing a specified logical function. In some implementations as replacements, the functions represented in the boxes may occur in a different order than those shown in the drawings. For example, two consecutive boxes may actually be executed substantially in parallel, or in reverse order depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and combinations of boxes in the block diagram and / or flowchart, may be implemented by a special-purpose hardware-based system that performs a specified function or operation, or by a combination of special-purpose hardware and computer instructions.
[0075] While the various implementations of the present invention have been described above, the above descriptions are illustrative, not exhaustive, and not limited to the implementations disclosed. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of each implementation described. The choice of terms used herein is intended to best interpret the principles, practical applications, or improvements to the technology in the market of each implementation, or to enable those skilled in the art to understand each implementation disclosed herein.
Claims
1. A method for generating an information card for a target object, wherein the method is performed by an electronic device. In response to receiving the page address of a page containing a set of attributes of a target object, to retrieve a set of page elements within said page, wherein the target object includes at least one of a physical item and / or a virtual item, and the set of attributes includes at least one of the names, descriptions, images, brands, and prices of said target object. Based on the set of page elements, determine the set of attributes of the target, Based on the set of attributes, generate the target information card, Includes, Generating the information card of the target object is Obtaining a template for specifying the layout of the aforementioned information card, The method further includes generating the information card for the target object based on the template, Obtaining the template for specifying the layout of the information card is, The page type of the page is determined based on the set of page elements, wherein the page type includes at least one of a single target type, a multiple target type, or a homepage type. This includes selecting a template that matches the page type from among multiple candidate templates, Determining the set of attributes of the target based on the set of page elements means that A method comprising determining the set of attributes based on at least one of the following: semantic analysis of the set of page elements, or a machine learning model that describes the relationships between the set of page elements and the set of attributes.
2. Obtaining the template for specifying the layout of the information card is, To provide an interaction interface for selecting the aforementioned template, This includes selecting a template corresponding to the interaction from a plurality of candidate templates in response to the detection of an interaction with the interaction interface, The method according to claim 1.
3. The template includes a background image and a set of insertion positions corresponding to each set of attributes. Generating the information card of the target object is The process includes generating the information card of the target object by inserting the set of attributes into the set of insertion positions, The method according to claim 1.
4. To provide an interaction interface for receiving the aforementioned page address, The further includes being performed in response to the detection of an interaction with the interaction interface, The method according to claim 1.
5. The process further includes providing the page in response to the detection of interaction with the information card by transmitting the information card to the client device. The method according to claim 1.
6. The aforementioned set of page elements includes at least one of the following: images, text, videos, links, and components. The method according to claim 1.
7. A device for generating information cards for a target, A retrieve module configured to retrieve a set of page elements within a page in response to receiving a page address of a page containing a set of attributes of a target object, wherein the target object includes at least one of a physical item and a virtual item, and the set of attributes includes at least one of the name, description, image, brand, and price of the target object. A decision module configured to determine the set of attributes of a target based on the set of page elements, wherein the decision module is configured to determine the set of attributes based on at least one of the following: semantic analysis of the set of page elements, or a machine learning model that describes the relationships between the set of page elements and the set of attributes. A generation module is arranged to generate the target information card based on the set of attributes, Equipped with, The generation module further includes a template acquisition module, and the template acquisition module is Obtain a template for specifying the layout of the aforementioned information card, Based on the template, the information card for the target object is generated. Arranged in such a way, The aforementioned template acquisition module is A type determination module arranged to determine the page type of the page based on the set of page elements, wherein the page type includes at least one of single-target type, multiple-target type, and homepage type. A selection module configured to select the template that matches the page type from among multiple candidate templates, A device equipped with the following features.
8. It is an electronic device, At least one processing unit, The device comprises at least one memory coupled to the at least one processing unit and used to store instructions executed by the at least one processing unit, and which causes the electronic device to perform the method according to any one of claims 1 to 6 when the instructions are executed by the at least one processing unit, Electronic devices.
9. A computer program is stored, and when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is implemented by the processor. Computer-readable storage medium.