Object matching method, device, equipment and storage medium
By setting the information type priority in the ad matching system for matching, the problem of low matching efficiency between creative materials and advertising slots is solved, real-time matching of creative creatives and scalability of advertising slots are achieved, and the advertising experience of advertisers is improved. .
Patent Information
- Application Number
- CN202010725893.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-07-24
AI Technical Summary
The matching efficiency between existing creatives and advertising slots is low, making it difficult to meet the real-time matching needs of creatives.
By obtaining the information of the object to be matched and the resource location to be matched, and using the priority of the information type as the matching order, the object information and resource location information are matched respectively to determine whether to make a pairing, and use the rule engine to improve the scalability of the advertising space. and matching efficiency.
It improves the matching efficiency between advertising materials and advertising slots, realizes real-time matching of advertising materials, and improves advertisers' delivery experience and the availability of advertising slots.
Smart Images

Figure CN112258208B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer application technology, and in particular, to an object matching method, device, equipment and storage medium. Background Art
[0002] With the rapid development of the advertising business, the number of ad slots used to carry advertising materials is also growing explosively. From on-site to off-site to offline media screens, from text to pictures to video resources, there are many types of ad slots and their matching requirements are different. Therefore, after the advertiser uploads the advertising material, it is necessary to match the appropriate ad slot for the advertising material to deliver it.
[0003] In the process of implementing the present invention, the inventors found that the prior art has the following technical problems: the matching efficiency between existing advertising materials and advertising slots is low, and it is difficult to meet the real-time matching requirements of advertising materials. Summary of the invention
[0004] The embodiments of the present invention provide an object matching method, apparatus, device and storage medium, which solve the problem of low matching efficiency between objects to be matched and resources to be matched.
[0005] In a first aspect, an embodiment of the present invention provides an object matching method, which may include:
[0006] When a match triggering event of object matching is detected, object information of the object to be matched and resource bit information of the resource bit to be matched corresponding to the match triggering event are obtained;
[0007] The information type of each resource bit information is prioritized as the matching order, and each object information and each resource bit information are matched respectively;
[0008] Determine whether to pair the to-be-matched object with the to-be-matched resource location according to the matching result.
[0009] In a second aspect, an embodiment of the present invention further provides an object matching device, which may include:
[0010] An information acquisition module, used for acquiring object information of the to-be-matched object and resource bit information of the to-be-matched resource bit corresponding to the matching trigger event when a matching trigger event of the object matching is detected;
[0011] An information matching module, used to match each object information with each resource bit information respectively according to the priority of the information type of each resource bit information as the matching order;
[0012] The object resource position matching module is used to determine whether to pair the to-be-matched object with the to-be-matched resource position according to the matching result.
[0013] In a third aspect, an embodiment of the present invention further provides a device, which may include:
[0014] one or more processors;
[0015] A memory for storing one or more programs;
[0016] When one or more programs are executed by one or more processors, the one or more processors implement the object matching method provided by any embodiment of the present invention.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the object matching method provided by any embodiment of the present invention is implemented.
[0018] The technical solution of the embodiment of the present invention obtains the object information of the object to be matched and the resource position information of the resource position to be matched, and matches each object information and each resource position information respectively with the priority of the information type of each resource position information as the matching order, wherein the priority of a certain information type is related to the contribution of the information type to the matching speed; further, the matching of the object to be matched and the resource position to be matched can be determined according to the matching result. The above technical solution matches each object information and each resource position information respectively with the priority of each information type set in advance as the matching order, thereby improving the matching efficiency between the object to be matched and the resource position to be matched, and achieving the effect of real-time matching of the object to be matched. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flow chart of an object matching method in Embodiment 1 of the present invention;
[0020] Figure 2 is a flow chart of an object matching method in Embodiment 2 of the present invention;
[0021] Figure 3 is a flow chart of an object matching method in Embodiment 3 of the present invention;
[0022] Figure 4 is a schematic diagram of an application of an object matching method in Embodiment 3 of the present invention;
[0023] Figure 5 is a schematic diagram of the structure of a RETE network in an object matching method in Embodiment 3 of the present invention;
[0024] Figure 6 is a structural block diagram of an object matching device in Embodiment 4 of the present invention;
[0025] Figure 7 It is a structural schematic diagram of a device in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0026] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It is also necessary to explain that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0027] Before introducing the embodiment of the present invention, the application scenario of the embodiment of the present invention is first exemplified: taking the matching between advertising materials and advertising slots as an example, considering that advertising slots may change, be added, etc. at any time, if the business logic is directly solidified in the code, it is difficult to change the old advertising slots and / or access the new advertising slots, and the scalability of the advertising slots is poor. According to research, the application of rule engines can solve the problem of difficult expansion of advertising slots, wherein the rule engine is a component embedded in the application, which realizes the effect of separating business decisions from the code of the application and writing business decisions based on predefined semantic modules. In other words, based on the rule engine, the business logic can be extracted from the code and used as configurable content, thereby achieving the effect of rapid change of old advertising slots and / or rapid access to new advertising slots, thereby improving the availability and scalability of advertising slots and enhancing the advertising experience of advertisers. Therefore, based on the pattern matching algorithm in the rule engine, while being able to support the expansion of advertising slots, it can also match between advertising materials and advertising slots. However, the matching efficiency of the existing pattern matching algorithm is low and needs to be improved.
[0028] Embodiment 1
[0029] Figure 1 It is a flowchart of an object matching method provided in the first embodiment of the present invention. This embodiment can be applied to the case where a matching resource position to be matched is screened out for the object to be matched, and is particularly applicable to the case where the matching object and the resource position to be matched are matched in the order of priority of the information type of the resource position information of the resource position to be matched. The method can be executed by the object matching device provided in the embodiment of the present invention, and the device can be implemented by software and / or hardware, and the device can be integrated on a device, and the device can be various user terminals or servers.
[0030] See also Figure 1 The method of the embodiment of the present invention specifically includes the following steps:
[0031] S110. When a match triggering event of object matching is detected, obtain object information of the to-be-matched object and resource bit information of the to-be-matched resource bit corresponding to the match triggering event.
[0032] Among them, the matching trigger event can be an event actively triggered by the user to filter out matching resource locations for the object to be matched, such as an event triggered when the user uploads the object to be matched; it can be an event triggered when the object matching device obtains an object matching request sent by the user, and the object matching request is a request for matching a suitable matching resource location for the object to be matched; and so on.
[0033] The object to be matched is the object to be matched determined by the user according to actual needs, and the resource position to be matched is the resource position that has been pre-configured in the pattern matching algorithm of the rule engine for matching with the object to be matched. Exemplarily, the object to be matched can be an advertising material and the resource position to be matched can be an advertising position, the object to be matched can be a shopping demand and the resource position to be matched can be a commodity, and so on.
[0034] Object information is information that can present the essential attributes of the object to be matched. Similarly, resource information is information that can present the essential attributes of the resource to be matched. For example, if the object to be matched is an advertising material, the object information can be that the material suffix is mp4, the material size is 1280*720, the material copyright is XX, and the material duration is 7s; if the resource to be matched is an advertising position, the resource information can be that the material suffix is mp4 or MKV, the material size is 1280*720, the material copyright is XX, and the material duration is 0-10s.
[0035] S120 , matching each object information with each resource bit information respectively according to the priority of the information type of each resource bit information as the matching order.
[0036] Among them, different resource bit information may have different information types, for example, the information type of the material suffix mp4 or MKV is suffix, the information type of the material size 1280*720 is size, the information type of the material copyright XX is copyright, and the information type of the material duration 0-10s is duration. The priority of each information type may be the same or different, for example, the priority of suffix and copyright can both be 1, the priority of size can be 2, the priority of duration can be 4, and so on.
[0037] The priority of each information type can be preset. Optionally, when the number of resource bits to be matched is at least two, the priority of a certain information type can be determined based on the number of resource bits to be matched that can be filtered out and do not match the object to be matched, that is, the priority of a certain information type is related to the number of resource bits to be matched that do not match the object to be matched and filtered out based on the information type. Optionally, the priority of a certain information type can be determined based on the number of resource bits to be matched that have resource bit information corresponding to the information type. The smaller the number, the higher the priority of the corresponding information type. In other words, the priority of a certain information type is related to the contribution of the information type to the matching speed. The priority of the information type that can filter out the most resource bits to be matched that do not match the object to be matched can be raised, thereby improving the matching efficiency between the object to be matched and the resource bits to be matched. For example, according to big data analysis, among the massive amount of resource positions to be matched, the resource positions to be matched with material suffixes of mp4 or MKV account for 20% of all resource positions to be matched, and the resource positions to be matched with material lengths of 0-10s account for 90% of all resource positions to be matched. Therefore, the priority of the material suffix is higher than the priority of the material length.
[0038] On this basis, each object information and each resource bit information are matched respectively with the priority of the information type of each resource bit information as the matching order. For example, first match the resource bit information with the corresponding object information among all resource bit information, then match the resource bit information with the second highest priority among all resource bit information with the corresponding object information, and so on. In the matching process, if the priorities of two or more resource bit information are the same, the two or more resource bit information can be matched in sequence according to a pre-set order, or the two or more resource bit information can be matched at the same time. In addition, in the matching process, if a resource bit information and the corresponding object information are not matched successfully, the matching can be terminated and the matching result can be output.
[0039] Exemplarily, taking the priority of suffix and copyright as 1, the priority of size as 2, and the priority of duration as 4, the suffix is matched first and the copyright is matched later, the object information of the material suffix mp4 matches the resource position information of the material suffix mp4 or MKV; the object information of the material size 1280*720 matches the resource position information of the material size 1280*720; the object information of the material copyright of XX matches the resource position information of the material copyright of XX; the object information of the material duration of 7s matches the resource position information of the material duration of 0-10s. At this time, each object information and the corresponding resource position information are matched successfully.
[0040] S130: Determine whether to pair the to-be-matched object with the to-be-matched resource according to the matching result.
[0041] Among them, the matching result can show the matching between the object information and the material information. According to the matching result, it can be determined whether the object to be matched and the resource position to be matched are matched. For example, when the information of each object and the corresponding resource position information are matched successfully, the object to be matched and the resource position to be matched are matched successfully, and the object to be matched and the resource position to be matched can be paired together; if the information of a certain object and its corresponding resource position information are not matched successfully, the matching of the object to be matched and the resource position to be matched fails, and the object to be matched and the resource position to be matched cannot be paired together. In this way, combined with the priority setting of the information type, according to the matching results between the object to be matched and each resource position to be matched, the resource position that matches it can be quickly screened out from multiple resource positions to be matched, so as to achieve the effect of real-time matching of the object to be matched.
[0042] On this basis, further, optionally, when the object to be matched and the resource position to be matched can be paired together, corresponding operations can be performed on the object to be matched and the resource position to be matched according to the actual application scenario. For example, assuming that the object to be matched is an advertising material and the resource position to be matched is an ad position, when the two can be paired together, the advertising material can be directly placed on the ad position; for another example, assuming that the object to be matched is a shopping demand and the resource position to be matched is a commodity, when they can be paired together, the commodity can be directly purchased to meet the shopping demand; and so on.
[0043] The technical solution of the embodiment of the present invention obtains the object information of the object to be matched and the resource position information of the resource position to be matched, and matches each object information and each resource position information respectively with the priority of the information type of each resource position information as the matching order, wherein the priority of a certain information type is related to the contribution of the information type to the matching speed; further, the matching of the object to be matched and the resource position to be matched can be determined according to the matching result. The above technical solution matches each object information and each resource position information respectively with the priority of each information type set in advance as the matching order, thereby improving the matching efficiency between the object to be matched and the resource position to be matched, and achieving the effect of real-time matching of the object to be matched.
[0044] Embodiment 2
[0045] Figure 2It is a flow chart of an object matching method provided in the second embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, each object information and each resource position information are matched separately, which may specifically include: filtering out the resource position information to be matched from the resource position information according to the matching order, matching the resource position information to be matched and the object information corresponding to the resource position information to be matched; if the match is successful, filtering out the next resource position information of the resource position information to be matched from each resource position information according to the matching order, matching the next resource position information and the object information corresponding to the next resource position information. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here. See Figure 2 The method of this embodiment may specifically include the following steps:
[0046] S210: When a match triggering event of object matching is detected, obtain object information of the to-be-matched object and resource bit information of the to-be-matched resource bit corresponding to the match triggering event.
[0047] S220, taking the priority of the information type of each resource bit information as the matching order, filtering out the resource bit information to be matched from each resource bit information according to the matching order, and matching the resource bit information to be matched and the object information corresponding to the resource bit information to be matched.
[0048] Among them, compared with the information type corresponding to each resource position information that has not been matched, the information type of the resource position information to be matched has the highest priority. Therefore, the resource position information to be matched and the object information corresponding to the resource position information to be matched can be matched first, so as to filter out more resource positions to be matched that do not match the object to be matched from each resource position to be matched. Exemplarily, each resource position information that has not been matched includes a material size of 1280*720, a material copyright of XX, and a material duration of 0-10s, wherein the priority of copyright is 1, the priority of size is 2, and the priority of duration is 4. At this time, the resource position information to be matched is that the material copyright is XX, then the resource position information to be matched (that is, the material copyright is XX) and the corresponding object information (that is, the material copyright is XX) can be matched.
[0049] S230: If the match succeeds, the next resource bit information of the resource bit information to be matched is selected from each resource bit information according to the matching order, and the next resource bit information and the object information corresponding to the next resource bit information are matched.
[0050] Among them, if the resource position information to be matched and the object information corresponding to the resource position information to be matched are matched successfully, the next resource position information of the resource position information to be matched can be screened out from each resource position information according to the matching order, and the next resource position information and the corresponding object information can be matched. Continuing with the above example, when the resource position information to be matched is that the copyright of the material is XX, and the next resource position information is that the material size is 1280*720, then the next resource position information (that is, the material size is 1280*720) and the corresponding object information (that is, the material size is 1280*720) can be matched.
[0051] On this basis, optionally, if the next resource bit information and the object information corresponding to the next resource bit information match successfully, the next resource bit information can be updated to the resource bit information to be matched, and the steps of filtering out the next resource bit information of the resource bit information to be matched from each resource bit information according to the matching order, and matching the next resource bit information and the object information corresponding to the next resource bit information are performed again, until the next resource bit information and the object information corresponding to the next resource bit information fail to match, or each resource bit information has undergone the matching process.
[0052] Optionally, when each resource position information and the corresponding object information are matched successfully, the matching result of successful matching between the resource position to be matched and the object to be matched can be output; correspondingly, when the next resource position information and the object information corresponding to the information fail to match, the matching can be ended and the matching result of failed matching between the resource position to be matched and the object to be matched can be output.
[0053] S240: Determine whether to pair the to-be-matched object with the to-be-matched resource according to the matching result.
[0054] Among them, if it is determined according to the matching results that the object to be matched and the resource position to be matched match, that is, the two are paired, then the resource position to be matched can be stored; otherwise, the information of each resource position can be output so that the object owner of the object to be matched can modify the object to be matched according to the information of each resource position, thereby improving the matching degree between the object to be matched and the resource position to be matched.
[0055] The technical solution of the embodiment of the present invention is to match the next resource bit information of the resource bit information to be matched screened out from each resource bit information according to the matching order and the object information corresponding to the next resource bit information after the resource bit information to be matched is successfully matched, that is, after the resource bit information with a higher priority and the corresponding object information are successfully matched, the resource bit information with a lower priority and the corresponding object information are matched, thereby improving the matching speed between the object to be matched and the resource bit to be matched.
[0056] Embodiment 3
[0057] Figure 3 It is a flow chart of an object matching method provided in the third embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, the matching process of each object information and each resource position information is executed in a matching network that has been constructed; the matching network is pre-constructed through the following steps: when a configuration trigger event of a resource position configuration is monitored, the resource position information of the resource position to be matched corresponding to the configuration trigger event is obtained; a rule package is generated according to the resource position information, and a matching network is constructed according to the rule package. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0058] See also Figure 3 The method of this embodiment may specifically include the following steps:
[0059] S310: When a configuration triggering event of a resource bit configuration is monitored, resource bit information of a to-be-matched resource bit corresponding to the configuration triggering event is obtained.
[0060] Among them, the configuration trigger event can be an event actively triggered by the user for configuring the resource position information of the resource position to be matched, such as an event in which the user inputs the resource position information; it can be an event triggered by the object matching device when it obtains the resource position configuration request sent by the user, and the resource position matching request is a request for configuring the resource position information of the resource position to be matched; and so on.
[0061] S320: Generate a rule package according to the resource bit information, and construct a matching network according to the rule package.
[0062] Among them, a rule package is generated according to the resource position information. The rule package is a data structure in which various rules are stored, which define what kind of object is the object to be matched that matches the resource position to be matched. Exemplarily, the rules in the rule package can be that the material suffix is mp4 or MKV, the material size is 1280*720, the material copyright is XX, the material duration is 0-10s, etc. Then, a matching network is constructed according to the rule package. The matching network is a network used to achieve matching between the object to be matched and the resource position to be matched.
[0063] On this basis, optionally, a matching network is constructed according to the rule package, which may specifically include: splitting the rule package into various modes, which are the smallest atomic conditions in the rule package that cannot be further split; storing each mode in a queue according to the priority of each mode, and constructing a matching network according to the storage results. Among them, the priority of the mode is consistent with the priority of the information type. For example, the priority of suffix and copyright are both 1, the priority of size is 2, and the priority of duration is 4. If the rule in the rule package is that the material suffix is mp4 or MKV, the material size is 1280*720, the material copyright is XX, and the material duration is 0-10s, then the modes separated from the rule package are material suffix is mp4 or MKV, material size is 1280*720, material copyright is XX, and material duration is 0-10s, among which, the priority of the mode is that the material suffix is mp4 or MKV, the priority of the mode is that the copyright of the material is XX, the priority of the mode is that the size of the material is 1280*720, the priority of the mode is that the duration of the material is 0-10s, and the priority of the mode is 4.
[0064] S330: When a match triggering event of object matching is detected, obtain object information of the to-be-matched object and resource bit information of the to-be-matched resource bit corresponding to the match triggering event.
[0065] S340 , taking the priority of the information type of each resource bit information as the matching order, in the constructed matching network, respectively match each object information and each resource bit information.
[0066] Among them, a linear table and a memory area are set in the matching network, and the linear table stores the resource bit information of a certain resource bit to be matched. The linear table can be a queue, a stack, etc.; the memory area stores the matching result between the resource bit information to be matched and the corresponding object information. Therefore, in the matching process, the resource bit information to be matched with the highest priority among the resource bit information can be read from the linear table, and the matching result between the resource bit information to be matched and the corresponding object information can be stored in the memory area; then, the resource bit information to be matched with the highest priority among the resource bit information can be read from the linear table again, and when the matching result stored in the memory area is a successful match, the matching result between the resource bit information to be matched and the corresponding object information can be stored in the memory area again, and so on. Of course, if the matching result stored in the memory area is a failed match, the matching process can be directly exited.
[0067] S350: Determine whether to pair the to-be-matched object with the to-be-matched resource according to the matching result.
[0068] The technical solution of the embodiment of the present invention can generate a rule package based on the resource bit information to be configured after obtaining the resource bit information to be configured, and construct a matching network for achieving the matching between the object to be matched and the resource bit to be matched based on the rule package, thereby achieving the effect of subsequently matching the object to be matched and the resource bit to be matched in the matching network.
[0069] In order to better understand the specific implementation process of the above steps, the object matching method of this embodiment is exemplified by taking the matching between the advertising material and the advertising position in the background technology as an example. For example, taking the RETE algorithm in the pattern matching algorithm as an example, it is a forward rule fast matching algorithm whose matching speed is independent of the number of rules. The RETE algorithm performs pattern matching by forming a RETE network, and improves the matching efficiency by utilizing the two characteristics of time redundancy and structural similarity. In other words, the RETE algorithm can be considered as a heuristic pattern matching algorithm, which clusters rules into the same pattern and multiple rules share nodes, thereby improving the matching efficiency. Moreover, in the fact matching process, the RETE algorithm will continue to pass down the network only when the filtering conditions of the current node are met, thereby avoiding the situation where repeated calculations are required in scenarios with a huge number of rules, thereby improving the matching efficiency.
[0070] However, considering that the main idea of the RETE algorithm is to trade space for time to improve matching efficiency, its storage area will consume a lot of resources as the number of facts and rules grows exponentially, which needs to be improved. On this basis, for application scenarios with simple facts (i.e., each object to be matched is independent of each other) and high matching efficiency requirements, the embodiment of the present invention improves both the rule compilation stage and the runtime execution stage in the existing RETE algorithm. The specific improvements are as follows.
[0071] by Figure 4 For example, in the rule compilation stage, after reading the ad space information (i.e., ad space configuration) filled in by the operator, the ad space information can be stored in a data table, a rule package can be generated based on the ad space information, and the rule package can be loaded to build a RETE network. Among them, the specific implementation process of building a RETE network based on the rule package can be: split the rule package into modes, store each mode in a queue according to the priority of each mode, and build a RETE network based on the storage results. For example, a certain improved RETE network is as follows Figure 5 As shown in the figure, when a pattern with a priority of 2 appears, it can be stored behind the size node of the queue. As can be seen from the above, in the rule compilation stage, by introducing the concept of node priority, the priority of the condition that can filter out the most invalid data can be raised, so that the conditions with higher priority can be matched first in the runtime execution stage, thereby speeding up the matching speed.
[0072] During the runtime execution phase, after reading the advertising material uploaded by the advertiser, the advertising material is loaded into the working-memory to construct a material fact in the working-memory based on the advertising material; the material fact is inserted into the constructed RETE network, triggering the rule engine to match the advertising material with a suitable ad slot; if an ad slot matching the advertising material is matched among multiple ad slots, the relevant information of the ad slot can be stored, otherwise the rule information can be thrown out to guide the advertiser to modify the advertising material.
[0073] To better understand the process of matching creatives and ad slots, Figure 5 As shown in the figure, the specific meanings of each concept are as follows: Fact is the relationship between objects and object attributes; Rule is an inference statement composed of conditions and conclusions, generally expressed as if...then; Module is the smallest atomic condition in if that cannot be further divided; The root node is the only entrance for various objects to enter the RETE network; Object Type Node is a fact that enters the RETE network from the root node and becomes an ObjectTypeNode after being filtered according to the object type; Single input node (AlphaNode) is a pattern of the conditional part of the rule, and there is a serial relationship between AlphaNodes, that is, if any of the nodes is not satisfied, the fact will be filtered out; Double input node (BetaNode) includes left input and right input; Alpha memory area and Beta memory area are both memory areas. Optionally, AlphaNode can be assigned to Alpha memory area and BetaNode can be assigned to Beta memory area, or AlphaNode and BetaNode can be assigned to the same memory area, which is not specifically limited here.
[0074] On this basis, the material fact is taken out from the working-memory and input into the root node; the material suffix is matched, and if it meets the conditions, the reference of the current material (i.e., the advertising material currently being matched) is recorded in the memory area of [A], and the suffix matching is exited; the material copyright is matched, and if it meets the conditions, the reference of the current material is recorded in the memory area of [B], and the left reference [C] of [B] is found, and the copyright matching is exited; the left reference [A] of [C] is found, and it is checked whether the reference of the current material is stored in the memory area of [A], and if so, it is placed in the memory area of [C]; the material size is matched, and if it meets the conditions, the reference of the current material is placed in the memory area of [C]. The reference is recorded in the memory area of [D], and the left reference [E] of [D] is found to exit the size matching; the left reference [C] of [E] is found to check whether the reference to the current material is stored in the memory area of [C], if so, it is stored in the memory area of [E]; the material duration is matched, if it meets the conditions, the reference to the current material is recorded in the memory area of [F], and the left reference [G] of [F] is found to exit the duration matching; the left reference [E] of [G] is found to check whether the reference to the current material is stored in the memory area of [E], if so, it is placed in the memory area of [G], thereby forming an agenda (Agenda) and obtaining the matching result of the advertising material matching the ad slot.
[0075] As can be seen from the above, during the runtime execution phase, since only one ad creative will be matched each time and each ad creative is independent of each other, there is no need to set the fact type in the RETE network and there is no need to save all facts and perform possible fact revocations during the insertion of material facts. That is, after the ad creative and the ad slot are successfully matched, the ad creative can be immediately placed on the ad slot without having to cache the ad creative first and wait for each fact to be matched before determining whether it can be placed, thereby reducing memory usage and improving matching efficiency. Therefore, for multiple ad slots to be matched, advertisers only need to upload the ad creative once to quickly match one or more suitable ad slots for the ad creative in multiple ad slots to be matched. The reduction in the number of uploads of ad creatives means that the advertiser's operating process is simplified, and the advertiser's delivery experience has been significantly improved.
[0076] Embodiment 4
[0077] Figure 6 This is a structural block diagram of an object matching device provided in Embodiment 4 of the present invention. The device is used to execute the object matching method provided in any of the above embodiments. The device and the object matching method of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the object matching device, please refer to the embodiments of the above object matching method. Figure 6The device may specifically include: an information acquisition module 410, an information matching module 420 and an object resource location matching module 430.
[0078] The information acquisition module 410 is used to acquire the object information of the to-be-matched object and the resource bit information of the to-be-matched resource bit corresponding to the match trigger event when a match trigger event of the object match is detected;
[0079] An information matching module 420 is used to match each object information with each resource bit information respectively according to the priority of the information type of each resource bit information as the matching order;
[0080] The object resource position matching module 430 is used to determine whether to pair the to-be-matched object with the to-be-matched resource position according to the matching result.
[0081] Optionally, the information matching module 420 may specifically include:
[0082] A first matching unit, configured to filter out to-be-matched resource bit information from the resource bit information according to a matching order, and to match the to-be-matched resource bit information and object information corresponding to the to-be-matched resource bit information;
[0083] The second matching unit is used to select the next resource bit information of the resource bit information to be matched from each resource bit information according to the matching order if the matching is successful, and match the next resource bit information and the object information corresponding to the next resource bit information.
[0084] On this basis, optionally, the information matching module 420 may further include:
[0085] A third matching unit, configured to output a matching result if the matching fails;
[0086] Accordingly, the object resource location matching module 430 may specifically include:
[0087] The object resource bit matching unit is used to output each resource bit information if it is determined according to the matching result that the object to be matched and the resource bit to be matched are not matched, so that the object owner of the object to be matched can modify the object to be matched according to each resource bit information.
[0088] Optionally, the matching process of each object information and each resource bit information is performed in a matching network that has been constructed; accordingly, the device may further include:
[0089] An information configuration module, used for acquiring resource bit information of a to-be-matched resource bit corresponding to the configuration triggering event when a configuration triggering event of a resource bit configuration is detected;
[0090] The network construction module is used to generate a rule package according to the resource bit information and construct a matching network according to the rule package.
[0091] Optionally, the network construction module may specifically include:
[0092] The pattern splitting unit is used to split the rule package into various patterns, where the pattern is the smallest atomic condition in the rule package; the network construction unit is used to store each pattern in a queue according to the priority of each pattern, and construct a matching network according to the storage result.
[0093] Optionally, the number of resource bits to be matched is at least two, and the priority of the information type is related to the number of resource bits to be matched that are filtered out based on the information type and do not match the object to be matched.
[0094] Optionally, the matching network includes a RETE network, and / or the object to be matched includes an advertising material and the resource position to be matched includes an advertising position.
[0095] The object matching device provided in the fourth embodiment of the present invention can obtain the object information of the object to be matched and the resource bit information of the resource bit to be matched through the cooperation of the information acquisition module and the information matching module, and respectively match each object information and each resource bit information with the priority of the information type of each resource bit information as the matching order, wherein the priority of a certain information type is related to the contribution of the information type to the matching speed; further, the object resource bit matching module can determine the matching of the object to be matched and the resource bit to be matched according to the matching result. The above device matches each object information and each resource bit information with the priority of each information type set in advance as the matching order, thereby improving the matching efficiency between the object to be matched and the resource bit to be matched, and achieving the effect of real-time matching of the object to be matched.
[0096] The object matching device provided in the embodiment of the present invention can execute the object matching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0097] It is worth noting that in the embodiment of the above-mentioned object matching device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0098] Embodiment 5
[0099] Figure 7 A schematic diagram of a device provided in Embodiment 5 of the present invention is shown in FIG. Figure 7 As shown, the device includes a memory 510, a processor 520, an input device 530, and an output device 540. The number of processors 520 in the device can be one or more. Figure 7A processor 520 is used as an example; the memory 510, the processor 520, the input device 530 and the output device 540 in the device can be connected via a bus or other means. Figure 7 The connection via bus 550 is taken as an example.
[0100] The memory 510, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the object matching method in the embodiment of the present invention (for example, the information acquisition module 410, the information matching module 420 and the object resource location matching module 430 in the object matching device). The processor 520 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 510, that is, implements the above-mentioned object matching method.
[0101] The memory 510 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 510 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 510 may further include a memory remotely arranged relative to the processor 520, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0102] The input device 530 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 540 may include a display device such as a display screen.
[0103] Embodiment 6
[0104] Embodiment 6 of the present invention provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to perform an object matching method when executed by a computer processor, the method comprising:
[0105] When a match triggering event of object matching is detected, object information of the object to be matched and resource bit information of the resource bit to be matched corresponding to the match triggering event are obtained;
[0106] The information type of each resource bit information is prioritized as the matching order, and each object information and each resource bit information are matched respectively;
[0107] Determine whether to pair the to-be-matched object with the to-be-matched resource location according to the matching result.
[0108] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the object matching method provided by any embodiment of the present invention.
[0109] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it 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 the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0110] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An object matching method, characterized in that: include: When a match triggering event of object matching is detected, object information of the object to be matched and resource bit information of the resource bit to be matched corresponding to the match triggering event are obtained; Taking the priority of the information type of each resource bit information as the matching order, respectively matching each object information with each resource bit information; Determine whether to pair the to-be-matched object with the to-be-matched resource position according to the matching result; The number of the resource bits to be matched is at least two, the priority of the information type is determined based on the number of resource bits to be matched having resource bit information corresponding to the information type, and the priority of the information type is inversely proportional to the number of resource bits to be matched having resource bit information corresponding to the information type; The matching process of each object information and each resource bit information is performed in the constructed matching network; The matching network is pre-built through the following steps: When a configuration triggering event of a resource bit configuration is monitored, obtaining the resource bit information of the to-be-matched resource bit corresponding to the configuration triggering event; Generate a rule package according to the resource bit information, and construct the matching network according to the rule package; The step of constructing the matching network according to the rule package includes: Splitting the rule package into patterns, where the pattern is the smallest atomic condition in the rule package; According to the priority of each mode, each mode is stored in a queue, and the matching network is constructed according to the storage result; wherein the priority of the mode is consistent with the priority of the information type.
2. The method according to claim 1, characterized in that The matching of each object information and each resource location information respectively includes: Filtering the resource position information to be matched from the resource position information according to the matching order, and matching the resource position information to be matched and the object information corresponding to the resource position information to be matched; If the match is successful, the next resource bit information of the resource bit information to be matched is screened out from each resource bit information according to the matching order, and the next resource bit information and the object information corresponding to the next resource bit information are matched.
3. The method according to claim 2, characterized in that Also includes: If the match fails, the matching result is output; Determining whether to pair the to-be-matched object with the to-be-matched resource location according to the matching result includes: If it is determined according to the matching result that the object to be matched and the resource position to be matched are not matched, the information of each resource position is outputted so that the object owner of the object to be matched can modify the object to be matched according to the information of each resource position.
4. The method according to claim 1, characterized in that: The matching network includes a RETE network.
5. The method according to any one of claims 1 to 4, characterized in that: The objects to be matched include advertising materials and the resource locations to be matched include advertising locations.
6. An object matching device, characterized in that: include: An information acquisition module, used for acquiring object information of the to-be-matched object and resource bit information of the to-be-matched resource bit corresponding to the match trigger event when a match trigger event of the object match is detected; An information matching module, used to match each object information and each resource bit information respectively with the priority of the information type of each resource bit information as the matching order; wherein the number of the resource bits to be matched is at least two, the priority of the information type is determined based on the number of resource bits to be matched having resource bit information corresponding to the information type, and the priority of the information type is inversely proportional to the number of resource bits to be matched having resource bit information corresponding to the information type; an object resource bit matching module, used to determine whether to pair the object to be matched with the resource bit to be matched according to the matching result; Wherein, the matching process of each object information and each resource position information is performed in the matching network that has been constructed; The object matching device also includes: An information configuration module, configured to, when a configuration triggering event of a resource bit configuration is detected, obtain the resource bit information of the resource bit to be matched corresponding to the configuration triggering event; A network construction module, used to generate a rule package according to the resource bit information, and construct the matching network according to the rule package; Wherein, the network construction module includes: A pattern splitting unit, used for splitting the rule package into patterns, wherein the pattern is the smallest atomic condition in the rule package; The network construction unit is used to store each of the modes in a queue according to the priority of each mode, and to construct the matching network according to the storage result; wherein the priority of the mode is consistent with the priority of the information type.
7. A device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the object matching method as described in any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the object matching method according to any one of claims 1 to 5 is implemented.
