A method and apparatus for distributing information flow resources, an electronic device, and a storage medium
By acquiring the type and purchasing information of information flow resources and adaptively selecting the distribution mode, the problem of low efficiency and poor user experience in the distribution of information flow resources in the existing technology is solved, and efficient and user-friendly information flow resource distribution is achieved.
Patent Information
- Application Number
- CN202210266164.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2042-03-17
AI Technical Summary
Existing methods for distributing information stream resources suffer from low distribution efficiency and poor user experience, especially when using privileged distribution and forced insertion distribution, it is difficult to balance distribution efficiency and user relevance.
By acquiring information about the type and purchase of information flow resources, it is determined whether they are traffic purchase resources. Based on this, the target distribution mode is determined, the available and remaining purchase information flow resources are updated in real time, and the distribution mode is adaptively selected, including the priority mode, the forced insertion mode, and the normal mode, to achieve efficient distribution of information flow resources.
It improves the distribution efficiency of information flow resources, enhances the user experience, and solves the problems of low distribution efficiency and poor user experience.
Smart Images

Figure CN114595392B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of information recommendation technology, and in particular to a method, apparatus, electronic device, and storage medium for distributing information flow resources. Background Technology
[0002] With the development of information technology and the popularization of the Internet, more and more users hope to obtain more information of interest through the Internet. As a platform for distributing information resources, how to reasonably allocate information flow resources so that more users can have a good experience has become increasingly important.
[0003] In related technologies for distributing information stream resources, the method of weighted distribution is used. While this method can distribute most information stream resources by sorting and exposing them, it struggles to distribute certain resources effectively, resulting in low distribution efficiency. To address this, another related technology offers a forced insertion method, which directly exposes information stream resources to users. While this method ensures full distribution of information stream resources, it suffers from relatively poor user relevance and a subpar user experience.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This disclosure provides a method, apparatus, electronic device, and storage medium for distributing information stream resources, thereby at least solving the technical problems of low distribution efficiency and poor user experience in related technologies for distributing information stream resources.
[0006] According to one aspect of this disclosure, a method for distributing information flow resources is provided, comprising: obtaining type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource; in response to determining that the information flow resource is a traffic purchase resource through the type information, obtaining purchase information of the information flow resource; determining a target distribution mode corresponding to the information flow resource based on the type information and / or the purchase information; and distributing the information flow resource according to the target distribution mode.
[0007] According to another aspect of this disclosure, an apparatus for distributing information flow resources is provided, comprising: a first acquisition module, configured to acquire type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource; a second acquisition module, configured to acquire purchase information of the information flow resource in response to determining that the information flow resource is a traffic purchase resource through the type information; a determination module, configured to determine a target distribution mode corresponding to the information flow resource based on the type information and / or the purchase information; and a distribution module, configured to distribute the information flow resource according to the target distribution mode.
[0008] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method for distributing information stream resources proposed in this disclosure.
[0009] According to another aspect of this disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to cause a computer to execute the method for distributing information stream resources proposed in this disclosure.
[0010] According to another aspect of this disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the method for distributing information stream resources proposed in this disclosure.
[0011] In the embodiments of this disclosure, by using the type information of information flow resources as traffic purchase resources, the available supply information flow resources and the remaining purchase information flow resources corresponding to the traffic purchase resource order are obtained. Then, based on the relationship between the available supply information flow resources and the remaining purchase information flow resources, the distribution mode corresponding to the traffic purchase resource order is determined. During the distribution process, the available supply information flow resources and the remaining purchase information flow resources are updated in real time to adaptively change the distribution mode to complete the distribution of traffic purchase resources. In addition, if the type information of the information flow resource is not traffic purchase resources, the distribution mode is determined to be the normal mode, and then the information flow resources are distributed according to the normal mode. Finally, the distribution of information flow resources is completed. This achieves the purpose of adaptively selecting the distribution mode for information flow resource distribution based on the relationship between the available supply information flow resources and the remaining purchase information flow resources, thereby improving the efficiency of information flow resource distribution and enhancing the user experience. It solves the technical problems of low distribution efficiency and poor user experience in related technologies for distributing information flow resources.
[0012] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0013] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0014] Figure 1 This is a hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for distributing information stream resources according to an embodiment of the present disclosure;
[0015] Figure 2 This is a flowchart of a method for distributing information stream resources according to an embodiment of the present disclosure;
[0016] Figure 3 This is a flowchart of an optional information flow resource sorting according to an embodiment of the present disclosure;
[0017] Figure 4 This is a flowchart of an optional information flow resource distribution according to an embodiment of the present disclosure;
[0018] Figure 5 This is a structural block diagram of an information flow resource distribution device provided according to an embodiment of the present disclosure. Detailed Implementation
[0019] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0021] According to embodiments of this disclosure, a method for distributing information flow resources is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0022] The method embodiments provided in this disclosure can be performed in a mobile terminal, computer terminal, or similar electronic device. 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 processors, cellular phones, smartphones, 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 disclosure described and / or claimed herein. Figure 1 A hardware block diagram of a computer terminal (or mobile device) for a method of distributing information stream resources is shown.
[0023] like Figure 1 As shown, the computer terminal 100 includes a computing unit 101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 102 or a computer program loaded from a storage unit 108 into a random access memory (RAM) 103. The RAM 103 may also store various programs and data required for the operation of the computer terminal 100. The computing unit 101, ROM 102, and RAM 103 are interconnected via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0024] Multiple components in the computer terminal 100 are connected to the I / O interface 105, including: an input unit 106, such as a keyboard and mouse; an output unit 107, such as various types of displays and speakers; a storage unit 108, such as a hard disk and optical disk; and a communication unit 109, such as a network interface card (NIC), a modem, or a wireless transceiver. The communication unit 109 allows the computer terminal 100 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0025] The computing unit 101 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 101 performs the method of distributing information stream resources described herein. For example, in some embodiments, the method of distributing information stream resources may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 108. In some embodiments, part or all of the computer program may be loaded and / or installed on the computer terminal 100 via ROM 102 and / or communication unit 109. When the computer program is loaded into RAM 103 and executed by the computing unit 101, one or more steps of the method for locating a faulty hard disk described herein may be performed. Alternatively, in other embodiments, the computing unit 101 may be configured to perform the method for locating a faulty hard disk by any other suitable means (e.g., by means of firmware).
[0026] Various implementations of the systems and techniques described herein can be realized 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-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0027] It should be noted here that, in some optional embodiments, the above... Figure 1 The electronic device shown may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that... Figure 1 This is only one instance of a specific particular example, and is intended to illustrate the types of components that may exist in the aforementioned electronic devices.
[0028] Under the aforementioned operating environment, this disclosure provides, for example... Figure 2 The method shown can be used by... Figure 1The computer terminal or similar electronic device shown is used for execution. Figure 2 This is a flowchart illustrating a method for distributing information stream resources according to embodiments of this disclosure. Figure 2 As shown, the method may include the following steps:
[0029] Step S201: Obtain the type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource.
[0030] The aforementioned information flow resources can be a group of information moving in the same direction both spatially and temporally, sharing a common information source and recipients. This type of information can include the distribution method, title, and content of the information flow resources, where the distribution method indicates whether the author of the information flow resource has paid for its distribution. The aforementioned traffic purchase resources can be resources that the author of the information flow resource spends a certain amount of money to increase the distribution of the information flow resource in order to reach more users. Furthermore, from the content distribution side's perspective, it is necessary to distribute the purchased traffic resources within a certain period of time, ensuring that the total amount of resource distribution is greater than or equal to the traffic purchased by the information flow resource author.
[0031] For example, the primary information flow resource is distributed through a primary platform. This platform determines whether the primary information flow resource is a traffic acquisition resource by acquiring information such as its distribution method, title, and content. This primary platform could be the Baijiahao platform, which distributes information flow resources using Baidu Baijiahao. Baijiahao is a content creation platform created by Baidu for creators, integrating creation, publishing, and monetization. The primary information flow resource could be product-selling articles, image and text traffic resources, short video resources, live streaming traffic resources, etc.
[0032] Step S202: In response to determining that the information flow resource is a traffic purchase resource through type information, purchase information of the information flow resource is obtained.
[0033] The aforementioned procurement information can refer to the available supply of information flow resources and the remaining purchase information flow resources. The available supply of information flow resources refers to the distribution traffic that the platform can still provide before or after a certain period of distribution of user-paid information flow resources. The remaining purchase information flow resources refer to the remaining distribution traffic of user-paid information flow resources before or after a certain period of distribution. Furthermore, the available supply of information flow resources can be calculated based on the remaining time of the order, and the sizes of both available and remaining purchase information flow resources can be updated in real time based on the distribution results.
[0034] Taking the distribution of the first information flow resource through the first platform as an example, after the first platform determines that the first information flow resource is a traffic purchase resource by the type information such as the distribution method, title, and content of the first information flow resource, it obtains the amount of information flow resource available for supply and the amount of information flow resource remaining to be purchased, thereby improving the accuracy of the information flow resource.
[0035] Step S203: Based on type information and / or procurement information, determine the target distribution mode corresponding to the information flow resources.
[0036] The aforementioned target distribution mode can be at least one of the following: normal mode, weighted mode, and forced insertion mode. Normal mode can involve performing recall, ranking, and exposure processing stages on the information flow resources. Weighted mode can skip the recall processing stage for traffic-purchased resources, assigning them a certain weight during the ranking process for matching and exposure to users. Forced insertion mode can skip both the recall and ranking processing stages for traffic-purchased resources, directly exposing the information flow resources to users during the exposure stage. Additionally, recall can trigger as many correct results as possible from the entire information set and return these results to the ranking process. Ranking can score and rank all recalled information flow resource content, selecting the highest-scoring results to return to the exposure process.
[0037] In one optional implementation, in response to determining through type information that the information flow resource is not a traffic purchase resource, the target distribution mode is determined to be a first distribution mode. The first distribution mode includes a first stage, a second stage, and a third stage. The first stage is a recall stage, used to recall the information flow resource and obtain a first processing result. The second stage is a sorting stage, used to sort the first processing result and obtain a second processing result. The third stage is an exposure stage, used to expose the second processing result, thereby completing the distribution of the non-traffic purchase resource. The aforementioned first distribution mode can be a normal mode.
[0038] It should be noted that, from recalling information flow resources to sorting information flow resources, the quantity of information flow resources has decreased from the tens of thousands to the thousands; and from sorting information flow resources to exposing information flow resources, the quantity of information flow resources has decreased from the thousands to the tens.
[0039] Step S204: Distribute information flow resources according to the target distribution mode.
[0040] Taking the distribution of primary information flow resources through a primary platform as an example, after obtaining the available information flow resources and remaining purchaseable information flow resources from the orders for the primary information flow resources, the primary platform can distribute the information flow resources using either an elevated allocation mode or a forced allocation mode, thereby improving the efficiency of information flow resource distribution. Optionally, if it is determined from information such as the distribution method, title, and content of the information flow resources that they are not traffic purchase resources, then the information flow resources are distributed using the normal mode.
[0041] According to steps S201 to S204 of this disclosure, by using the type information of the information flow resource as the traffic purchase resource, the available information flow resource quantity and the remaining purchase information flow resource quantity corresponding to the traffic purchase resource order are obtained. Then, based on the relationship between the available information flow resource quantity and the remaining purchase information flow resource quantity, the distribution mode corresponding to the traffic purchase resource order is determined. During the distribution process, the available information flow resource quantity and the remaining purchase information flow resource quantity are updated in real time to adaptively change the distribution mode to complete the distribution of the traffic purchase resource. In addition, if the type information of the information flow resource is not traffic purchase resource, the distribution mode is determined to be the normal mode, and then the information flow resource is distributed according to the normal mode. Finally, the distribution of the information flow resource is completed. This achieves the purpose of adaptively selecting the distribution mode for information flow resource distribution based on the relationship between the available information flow resource quantity and the remaining purchase information flow resource quantity, thereby improving the efficiency of information flow resource distribution and enhancing the user experience. It solves the technical problems of low distribution efficiency and poor user experience in related technologies for distributing information flow resources.
[0042] The method described in this embodiment will be further described below.
[0043] As an optional implementation, in step S203, determining the target distribution mode corresponding to the information flow resource based on type information and / or procurement information may include the following method steps:
[0044] Step S2031: In response to determining that the information flow resource is a traffic purchase resource through type information, the first order traffic and the second order traffic are compared to obtain a first comparison result, wherein the first order traffic is the amount of information flow resource that can be supplied corresponding to the target purchase order, and the second order traffic is the amount of remaining purchase information flow resource corresponding to the target purchase order;
[0045] Step S2032: Determine the target distribution mode based on the first comparison result.
[0046] When information flow resources are determined to be traffic purchase resources based on type information, it is necessary to further compare the traffic of the first order with that of the second order to obtain a first comparison result. That is, the available information flow resources corresponding to the target purchase order are compared with the remaining purchase information flow resources corresponding to the target purchase order to obtain a first comparison result.
[0047] The first comparison result can be either that the available information flow resources are greater than or equal to the remaining purchase information flow resources, or that the available information flow resources are less than the remaining purchase information flow resources. Therefore, the target distribution mode is determined based on the first comparison result.
[0048] As an optional implementation, in step S2032, determining the target distribution mode based on the first comparison result may include the following method steps:
[0049] Step S20321: In response to determining that the first order traffic is greater than or equal to the second order traffic through the first comparison result, the target distribution mode is determined to be the second distribution mode, wherein the second distribution mode includes: a second stage and a third stage, the second stage is used to sort the information flow resources to obtain a third processing result, and the third stage is used to expose the third processing result;
[0050] Step S20322: In response to determining through the first comparison result that the first order traffic is less than the second order traffic, the target distribution mode is determined to be the third distribution mode, wherein the third distribution mode includes: a third stage, the third stage being used to expose the information flow resources.
[0051] The second distribution mode mentioned above can be a weighted distribution mode. The third distribution mode mentioned above can be a forced insertion mode. The ranking process mentioned above can be achieved by extracting the characteristics of the pre-distributed users of the information flow resources, and then using the constructed ranking model to score the information flow resources, thereby ranking the information flow resources according to their scores. Thus, the target distribution mode is determined by utilizing the relationship between the first order traffic and the second order traffic, thereby enhancing the diversity and flexibility in determining the target distribution mode. Furthermore, the final result of the ranking process can be a weighted result of the model score and the weighted distribution score, where the weighted distribution score can be a variable value customized according to different business needs.
[0052] Taking the distribution of the first information flow resource through the first platform as an example, after determining that the first information flow resource is a traffic acquisition resource, the first platform compares the available information flow resource quantity corresponding to the target acquisition order with the remaining purchase information flow resource quantity corresponding to the target acquisition order. When the available information flow resource quantity is greater than or equal to the remaining purchase information flow resource quantity, the target distribution mode is determined to be the priority mode. When the available information flow resource quantity is less than the remaining purchase information flow resource quantity, the target distribution mode is determined to be the forced insertion mode.
[0053] Figure 3 This is a flowchart of an optional information flow resource sorting according to an embodiment of the present disclosure, such as... Figure 3 As shown, firstly, features of the information flow resources and features of the pre-distributed users are extracted. Information flow resource features can include query keywords, content richness, document-to-query relevance, query-document pairs, etc. User features can include user name, areas of interest, dwell time on relevant web pages within those areas, click history, etc. Then, labels, i.e., training set samples, are obtained through log extraction. Log extraction can be based on the assumption that users prioritize clicking on pages more relevant to their query keywords, extracted from user click records. Secondly, a pairwise ranking model can be constructed. Finally, the constructed ranking model is used to score each information flow resource and select the highest-scoring resources, thus completing the ranking of the information flow resources. Furthermore, the scores are values between 0 and 1; higher values indicate a higher relevance between the information flow resource and the user.
[0054] It should be noted that in the process of building a ranking model using the pairing method, a ranking relationship can first be obtained for a certain query keyword of the information flow resource. Then, the query keyword documents and documents of the information flow resource are compared pairwise to build a partially ordered document pair. Here, the query keyword document is the document containing the query keyword, and the partially ordered document pair does not have to be all the query keyword documents of the information flow resource. Finally, based on the partially ordered document pairs, the ranking result is obtained by learning the pairwise pairing relationship between documents.
[0055] For example, a ranking model can be constructed for information flow resources A, B, and C using a pairing method. Suppose that a ranking result is obtained by querying the keyword "apple". However, this ranking result is not always present because the search intent of the same user for the same query keyword may be different at different times. Then, by comparing the query keyword documents and documents of the information flow resources pairwise, the ranking results are B>C, B>A, and C>A. Finally, by learning the pairwise pairing relationships between documents, the ranking result is B>C>A.
[0056] As an optional implementation, in step S203, determining the target distribution mode corresponding to the information flow resource based on type information and / or procurement information further includes the following method steps:
[0057] Step S2033: Update the first order traffic at preset intervals to obtain the third order traffic, and obtain the fourth order traffic after real-time updating the second order traffic;
[0058] Step S2034: Compare the traffic of the third order with the traffic of the fourth order to obtain the second comparison result;
[0059] Step S2035: Update the target distribution mode based on the second comparison result.
[0060] The aforementioned preset duration can be a value set according to the information flow resource distribution requirements, such as a preset duration of 5 minutes. The aforementioned second comparison result can be that the third order traffic is greater than or equal to the fourth order traffic, or it can be that the third order traffic is less than the fourth order traffic. The target distribution mode is updated based on the second comparison result; that is, when the third order traffic is greater than or equal to the fourth order traffic, the target distribution mode can be determined as the priority mode; when the third order traffic is less than the fourth order traffic, the target distribution mode can be determined as the forced insertion mode. Thus, the comparison result between the third and fourth order traffic is fully utilized to update the target distribution mode.
[0061] Taking the distribution of the first information flow resource through the first platform as an example, when the distribution mode of the first information flow resource is determined to be the escalation mode, the first information flow resource is first distributed according to the escalation mode. Then, every 5 minutes, the available information flow resource quantity of the first information flow resource is updated to obtain the updated available information flow resource quantity. The remaining purchase information flow resource quantity of the first information flow resource is also updated to obtain the updated remaining purchase information flow resource quantity. When the updated available information flow resource quantity is greater than or equal to the updated remaining purchase information flow resource quantity, the distribution according to the escalation mode continues until the first information flow resource is distributed. When the updated available information flow resource quantity is less than the updated remaining purchase information flow resource quantity, the escalation mode is updated to the forced insertion mode to complete the distribution of the first information flow resource, thereby improving the efficiency of information flow resource distribution.
[0062] Figure 4 This is a flowchart of an optional information flow resource distribution according to an embodiment of this disclosure, such as... Figure 4As shown, the process first determines whether the information flow resource is a traffic purchase resource. Specifically, if it is, it then checks whether the available information flow resource quantity corresponding to the traffic purchase resource order is greater than or equal to the remaining purchased information flow resource quantity. Based on this, the corresponding distribution mode is selected. Finally, the information flow resource is processed according to the distribution mode to complete the distribution of the information flow resource, and the process ends. Optionally, if the information flow resource is not a traffic purchase resource, the normal mode is selected for distribution.
[0063] Specifically, in selecting the corresponding distribution mode, if the available supply of information flow resources is greater than or equal to the remaining purchase information flow resources, the priority mode is selected to distribute the information flow resources. If the available supply of information flow resources is less than the remaining purchase information flow resources, the forced insertion mode is selected to distribute the information flow resources.
[0064] Specifically, in processing information flow resources according to the distribution mode, if the distribution mode is the priority mode, the information flow resources can be processed by first sorting them and then exposing them. If the distribution mode is the forced insertion mode, the information flow resources can be processed by directly exposing them.
[0065] Specifically, selecting the normal mode to distribute information flow resources can involve first recalling the information flow resources, then sorting them, and finally exposing them, thereby completing the distribution of the information flow resources.
[0066] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this disclosure.
[0067] This disclosure also provides an apparatus for distributing information stream resources, which is used to implement the above embodiments and preferred embodiments, and will not be repeated hereafter. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0068] Figure 5This is a structural block diagram of an apparatus for distributing information stream resources according to embodiments of the present disclosure, such as... Figure 5 As shown, the information flow distribution device 500 includes: a first acquisition module 501, a second acquisition module 502, a determination module 503, and a distribution module 504.
[0069] The first acquisition module 501 is used to acquire type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource; the second acquisition module 502 is used to acquire the purchase information of the information flow resource in response to determining that the information flow resource is a traffic purchase resource through the type information; the determination module 503 is used to determine the target distribution mode corresponding to the information flow resource based on the type information and / or the purchase information; the distribution module 504 is used to distribute the information flow resource according to the target distribution mode.
[0070] Optionally, the determining module 503 is further configured to: determine that the information flow resource is not a traffic purchase resource based on the type information, and determine the target distribution mode as a first distribution mode, wherein the first distribution mode includes: a first stage, a second stage and a third stage, the first stage is used to perform recall processing on the information flow resource to obtain a first processing result, the second stage is used to sort the first processing result to obtain a second processing result, and the third stage is used to expose the second processing result.
[0071] Optionally, the determining module 503 is further configured to: determine that the information flow resource is a traffic acquisition resource based on the type information, compare the first order traffic with the second order traffic, and determine the target distribution mode as a second distribution mode or a third distribution mode according to the comparison result. The second distribution mode includes a second stage and a third stage. The second stage is used to sort the information flow resource to obtain a third processing result. The third stage is used to expose the third processing result. The third distribution mode includes a third stage, which is used to expose the information flow resource.
[0072] Optionally, the determining module 503 is further configured to: update the first order traffic at preset intervals to obtain the third order traffic, and obtain the fourth order traffic obtained after real-time updating the second order traffic, compare the third order traffic and the fourth order traffic to obtain a second comparison result, and update the target distribution mode based on the second comparison result.
[0073] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0074] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0075] According to embodiments of this disclosure, this disclosure also provides an electronic device including a memory and at least one processor, the memory storing computer instructions, the processor being configured to execute the computer instructions to perform the steps in any of the above method embodiments.
[0076] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0077] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0078] Step S1: Obtain the type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource;
[0079] Step S2: In response to determining that the information flow resource is a traffic purchase resource through the type information, the purchase information of the information flow resource is obtained;
[0080] Step S3: Based on type information and / or procurement information, determine the target distribution mode corresponding to the information flow resources;
[0081] Step S4: Distribute information flow resources according to the target distribution mode.
[0082] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0083] According to embodiments of the present disclosure, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to perform the steps in any of the above method embodiments at runtime.
[0084] Optionally, in this embodiment, the aforementioned non-transitory computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0085] Step S1: Obtain the type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource;
[0086] Step S2: In response to determining that the information flow resource is a traffic purchase resource through the type information, the purchase information of the information flow resource is obtained;
[0087] Step S3: Based on type information and / or procurement information, determine the target distribution mode corresponding to the information flow resources;
[0088] Step S4: Distribute information flow resources according to the target distribution mode.
[0089] Optionally, in this embodiment, the aforementioned non-transitory computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0090] According to embodiments of this disclosure, a computer program product is also provided. Program code for implementing the method of distributing information flow resources of this disclosure can be written in any combination of one or more programming languages. This program code can be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code can be executed entirely on a machine, partially on a machine, partially on a remote machine as a standalone software package, or entirely on a remote machine or server.
[0091] The sequence numbers of the embodiments disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0092] In the above embodiments of this disclosure, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0093] In the several embodiments provided in this disclosure, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.
[0094] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0095] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0096] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0097] The above description is only a preferred embodiment of this disclosure. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles of this disclosure, and these improvements and modifications should also be considered within the scope of protection of this disclosure.
Claims
1. A method for distributing information stream resources, comprising: Obtain the type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource; In response to determining that the information flow resource is the traffic purchase resource through the type information, the purchase information of the information flow resource is obtained; Based on the type information and / or the procurement information, determine the target distribution mode corresponding to the information flow resource; Distribute the information flow resources according to the target distribution mode; The procurement information includes: a first order flow and a second order flow. Determining the target distribution mode corresponding to the information flow resource based on the type information and the procurement information includes: in response to determining that the information flow resource is the traffic procurement resource through the type information, comparing the first order flow and the second order flow to obtain a first comparison result, wherein the first order flow is the available information flow resource quantity corresponding to the target procurement order, and the second order flow is the remaining purchase information flow resource quantity corresponding to the target procurement order; and determining the target distribution mode based on the first comparison result. The determination of the target distribution mode based on the first comparison result includes: in response to determining that the first order traffic is less than the second order traffic through the first comparison result, determining the target distribution mode as a third distribution mode, wherein the third distribution mode includes: a third stage, the third stage being used to expose the information flow resource.
2. The method according to claim 1, wherein, Determining the target distribution mode corresponding to the information flow resource based on the type information includes: In response to determining through the type information that the information flow resource is not the traffic purchase resource, the target distribution mode is determined to be a first distribution mode, wherein the first distribution mode includes: a first stage, a second stage and a third stage, the first stage is used to perform recall processing on the information flow resource to obtain a first processing result, the second stage is used to sort the first processing result to obtain a second processing result, and the third stage is used to expose the second processing result.
3. The method according to claim 1, wherein, Determining the target distribution mode based on the first comparison result further includes: In response to determining, through the first comparison result, that the first order traffic is greater than or equal to the second order traffic, the target distribution mode is determined to be the second distribution mode, wherein the second distribution mode includes: a second stage and a third stage, the second stage is used to sort the information flow resources to obtain a third processing result, and the third stage is used to expose the third processing result.
4. The method according to claim 1, wherein, The method further includes: The first order traffic is updated at preset intervals to obtain the third order traffic, and the fourth order traffic is obtained after real-time updating of the second order traffic; The third order traffic is compared with the fourth order traffic to obtain a second comparison result; The target distribution pattern is updated based on the second comparison result.
5. An apparatus for distributing information stream resources, comprising: The first acquisition module is used to acquire type information of the information flow resource to be distributed, wherein the type information is used to indicate whether the information flow resource is a traffic purchase resource; The second acquisition module is used to acquire the acquisition information of the information flow resource in response to determining that the information flow resource is the traffic acquisition resource through the type information; The determination module is used to determine the target distribution mode corresponding to the information flow resource based on the type information and / or the procurement information; The distribution module is used to distribute the information flow resources according to the target distribution mode; The procurement information includes a first order flow and a second order flow. The determining module is further configured to: in response to determining that the information flow resource is the traffic procurement resource through the type information, compare the first order flow and the second order flow to obtain a first comparison result, wherein the first order flow is the amount of available information flow resource corresponding to the target procurement order, and the second order flow is the amount of remaining purchase information flow resource corresponding to the target procurement order; and determine the target distribution mode based on the first comparison result. The determining module is further configured to: in response to determining, through the first comparison result, that the first order traffic is less than the second order traffic, determine the target distribution mode as a third distribution mode, wherein the third distribution mode includes: a third stage, the third stage being used to expose the information flow resource.
6. An electronic device, comprising: 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 to enable the at least one processor to perform the method of any one of claims 1-4.
7. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-4.
8. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-4.
Citation Information
Patent Citations
Data processing method and device, server and computer readable medium
CN110070374A
Message publishing strategy determination method and device, electronic equipment and storage medium
CN113722633A