A data labeling method and device

By determining the release duration of media resources in the data processing server and obtaining user behavior logs for labeling, the delay queue and message queue are used to improve the labeling efficiency and solve the problem of slow labeling speed caused by the large amount of media resource information data in the existing technology.

CN114546974BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011350467.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-09-20
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

In the existing technology, due to the large amount of media resource information data, the data processing server annotates the media resource data slowly and the annotation efficiency is low.

Method used

After determining the delivery duration of media resources in the data processing server, the media resource information and its corresponding user behavior logs are obtained, and annotation operations are performed. Delay queues and message queues are used to improve query and storage efficiency.

Benefits of technology

The speed and accuracy of the data processing server in obtaining user behavior logs are improved, thereby speeding up the speed of data annotation and improving the efficiency of data annotation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546974B
    Figure CN114546974B
Patent Text Reader

Abstract

The present disclosure relates to a data labeling method and device, which can obtain user behavior logs based on media resource information, improve the speed of querying user behavior logs, thereby speeding up the data labeling speed and improving the efficiency of data labeling. The specific scheme includes: the data processing server determines the delivery duration of the first media resource, and the first media resource corresponds to the first media resource information; among the locally stored media resource information, the delivery time in the first media resource information is the earliest. And, after determining that the delivery duration of the first media resource is greater than the preset duration, the data processing server obtains the first media resource information and the first user behavior log corresponding to the first media resource information, and the first user behavior log is used to characterize the operations performed on the first media resource. Afterwards, the data processing server performs labeling operations on the first media resource information and the first user behavior log to determine the target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network technology, and in particular to a data labeling method and device. Background Art

[0002] At present, when processing the data of media resources, it is usually necessary to organize and annotate the data of media resources. In the existing technical solution, the media resource information and the user behavior log are associated and spliced ​​by the data processing server to complete the annotation of the sample data. Among them, the media resource information is the information of the media resource, and the user behavior log is the data returned to the data processing server when the user operates the media resource.

[0003] However, in the prior art, the amount of media resource information is very large because the media resource information includes media resource feature data, media resource delivery area, media resource delivery time, etc. Therefore, the data processing server annotates the media resource data slowly and the annotation efficiency is low. Summary of the invention

[0004] The present disclosure provides a data annotation method and device. The data annotation device (also referred to as a "data processing server") can obtain user behavior logs based on media resource information, thereby improving the speed of querying user behavior logs, thereby speeding up the speed of annotating data and improving the efficiency of annotating data. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of the present disclosure, a data labeling method is provided, the method comprising:

[0006] The data processing server determines the delivery duration of the first media resource, and the first media resource corresponds to the first media resource information; in the locally stored media resource information, the delivery time in the first media resource information is the earliest. After determining that the delivery duration of the first media resource is greater than the preset duration, the data processing server obtains the first media resource information and the first user behavior log corresponding to the first media resource information, and the first user behavior log is used to characterize the operation performed on the first media resource. Afterwards, the data processing server performs a labeling operation on the first media resource information and the first user behavior log to determine the target data.

[0007] Optionally, the above-mentioned method of "the data processing server determines the delivery duration of the first media resource" includes: the data processing server obtains the delivery time in the first media resource information from the delay queue; the delay queue stores media resource information of at least one delivered media resource, and the first media resource information is the column header element of the delay queue; thereafter, the data processing server calculates the time interval between the current moment and the delivery time in the first media resource information to determine the delivery duration of the first media resource.

[0008] Optionally, the above-mentioned method of "the data processing server obtains the first user behavior log corresponding to the first media resource information" includes: the data processing server determines the keywords of the first media resource information, and obtains the first user behavior log corresponding to the keywords of the first media resource information, and the first user behavior log is queried based on the keywords of the first media resource information.

[0009] Optionally, the data processing server obtains media resource information of at least one delivered media resource from a message queue, wherein the message queue stores at least one media resource information arranged in chronological order of delivery times of the delivered media resources; the data processing server arranges the media resource information of at least one delivered media resource in chronological order of delivery times, and stores it in a delay queue.

[0010] Optionally, the above-mentioned method of "the data processing server arranges the media resource information of at least one delivered media resource in the order of delivery time and stores it in a delay queue" includes: when the amount of media resource information in the delay queue is less than the length of the delay queue, the data processing server arranges the media resource information of at least one delivered media resource in the order of delivery time and stores it in the delay queue.

[0011] Optionally, the media resource information in the message queue and the media resource information in the delay queue have the same tag information, and the tag information is at least one of time, type or area.

[0012] According to a second aspect of the present disclosure, a data processing server is provided, the data processing server comprising a determination module and an acquisition module.

[0013] The above-mentioned determination module is used to determine the delivery time of the first media resource, and the first media resource corresponds to the first media resource information; in the locally stored media resource information, the delivery time in the first media resource information is the earliest.

[0014] The acquisition module is used to acquire the first media resource information and the first user behavior log corresponding to the first media resource information after determining that the delivery duration of the first media resource is greater than the preset duration; the first user behavior log is used to represent the operation performed on the first media resource.

[0015] The above-mentioned determination module is also used to perform a labeling operation on the first media resource information and the first user behavior log to determine the target data.

[0016] Optionally, the acquisition module is also used to obtain the delivery time in the first media resource information from the delay queue; the delay queue stores media resource information of at least one delivered media resource, and the first media resource information is the column header element of the delay queue; the determination module is also used to calculate the time interval between the current moment and the delivery time in the first media resource information to determine the delivery duration of the first media resource.

[0017] Optionally, the determination module is further used to determine the keywords of the first media resource information; the acquisition module is further used to acquire the first user behavior log corresponding to the keywords of the first media resource information, and the first user behavior log is queried based on the keywords of the first media resource information.

[0018] Optionally, the acquisition module is also used to obtain media resource information of at least one delivered media resource from a message queue, wherein the message queue stores media resource information of at least one delivered media resource; arrange the media resource information of at least one delivered media resource in chronological order of delivery time, and store it in a delay queue.

[0019] Optionally, the acquisition module is specifically used to arrange the media resource information of at least one delivered media resource in the order of delivery time and store it in the delay queue when the amount of media resource information in the delay queue is less than the length of the delay queue.

[0020] Optionally, the media resource information in the message queue and the media resource information in the delay queue have the same tag information, and the tag information is at least one of time, type or area.

[0021] According to a third aspect of the present disclosure, a server is provided, the server comprising:

[0022] processor;

[0023] a memory for storing processor-executable instructions;

[0024] The processor is configured to execute instructions to implement any optional data labeling method in the first aspect above.

[0025] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute any one of the optional data labeling methods in the above-mentioned first aspect.

[0026] According to a fifth aspect of the present disclosure, there is provided a computer program product, comprising instructions, which, when executed on a computer, enable the computer to execute any one of the optional data labeling methods in the first aspect.

[0027] According to a sixth aspect of the present disclosure, the present disclosure provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the data labeling method described in the first aspect and any possible implementation method of the first aspect.

[0028] The technical solution provided by the present disclosure brings at least the following beneficial effects: after the media resources are delivered, the user will not operate the media resources in time, or after the user operates the media resources, there is a delay in the process of sending the user behavior log to the log server. Therefore, the data processing server will not be able to obtain the user behavior log until a certain period of time has passed. In order to avoid the data processing server failing to obtain the first user behavior log due to obtaining the first user behavior log too early, the data processing server obtains the first media resource information only after determining that the delivery duration of the media resource represented by the first media resource information is greater than the preset duration, and obtains the first user behavior log corresponding to the first media resource information, so that the probability of the data processing server obtaining the first user behavior log can be increased, thereby further improving the accuracy of the labeled data. Moreover, compared with the prior art, since the amount of data in the user behavior log is much smaller than the amount of data in the media resource information. Therefore, the time consumed by the log server to obtain the first user behavior log corresponding to the media resource information is shorter. Therefore, the data processing server can receive the user behavior log faster, speed up the speed of labeling data, and improve the efficiency of labeling data.

[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0031] Figure 1 The figure is a schematic diagram of a data annotation system according to an exemplary embodiment.

[0032] Figure 2A The figure is a flow chart of a data labeling method according to an exemplary embodiment.

[0033] Figure 2B It is a schematic diagram of a delay queue according to an exemplary embodiment.

[0034] Figure 2C is a schematic diagram of another delay queue according to an exemplary embodiment.

[0035] Figure 2D is a schematic diagram of another delay queue according to an exemplary embodiment.

[0036] Figure 3A The figure is a flow chart of another data labeling method according to an exemplary embodiment.

[0037] Figure 3B It is a schematic diagram of a message queue according to an exemplary embodiment.

[0038] Figure 3C It is a schematic diagram of another message queue according to an exemplary embodiment.

[0039] Figure 3D It is a schematic diagram of another message queue according to an exemplary embodiment.

[0040] Figure 4 The diagram is a schematic diagram of the structure of a data processing server according to an exemplary embodiment.

[0041] Figure 5 The figure is a schematic diagram showing the structure of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0042] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0044] First, the application scenarios of the embodiments of the present disclosure are introduced.

[0045] The data annotation method of the embodiment of the present disclosure is applied to the scenario of obtaining user feedback data based on media resource information and annotating the data. In the related art, the media resource information is stored in the media resource delivery server, and the server obtains the media resource information corresponding to the user behavior log based on the keywords of the user behavior log. However, the data volume of the media resource information is very large. Therefore, it takes a long time for the data processing server to receive the media resource information, and the efficiency of annotating the data is low. In order to solve the above problems, the embodiment of the present disclosure provides a data annotation method, which first obtains the media resource information, and then obtains the user behavior log corresponding to the media resource information. Since the data volume of the user behavior log is small, the user behavior log can be queried more quickly, which speeds up the data annotation and improves the efficiency of data annotation.

[0046] Next, the implementation environment of the embodiment of the present disclosure is introduced.

[0047] Figure 1 FIG. 1 is a schematic diagram of a data annotation system according to an exemplary embodiment. The data annotation method provided by the embodiment of the present disclosure can be applied to the data annotation system. Figure 1 As shown, the data annotation system may include: a log server, a media resource delivery server, and a data processing server. The log server and the media resource delivery server communicate with the data processing server via wired communication.

[0048] The log server is used to obtain the user behavior log generated after the user operates the media resources. Afterwards, the log server can list the user behavior log in the message queue and then store the user behavior log in the database. Furthermore, the log server can also receive the query message sent by the data processing server, thereby sending the user behavior log to the data processing server.

[0049] The media resource delivery server is used to obtain media resource information and put the media resource information into a message queue in the order of delivery time.

[0050] Optionally, in some embodiments, the log server and the media resource delivery server may be independently configured or integrated into the same server, which is not limited in the present disclosure.

[0051] The data processing server is mainly used to annotate data. Specifically, the data processing server can obtain the media resource information in the media resource delivery server, and list the media resource information in the delay queue in sequence. The data processing server sends a query message containing the media resource information keywords to the log server, and receives the user behavior log corresponding to the media resource information. Afterwards, the data processing server splices the media resource information and the user behavior log according to the keywords to determine the annotated data. Optionally, the data processing server includes at least one thread pool, and a thread pool includes at least one thread. Different threads can perform different actions.

[0052] After introducing the application scenarios and implementation environments of the embodiments of the present disclosure, Figure 1 The data annotation system shown is a detailed introduction to the data annotation method provided by the embodiment of the present disclosure.

[0053] Figure 2A FIG. 1 is a flow chart of a data labeling method according to an exemplary embodiment. Figure 2A As shown, the method may include steps 201 to 204.

[0054] 201. A data processing server determines a delivery duration of a first media resource.

[0055] In the embodiments of the present disclosure, the media resources may be placed advertising resources, video resources, audio resources, etc., which are not limited in the embodiments of the present application. That is, the first media resource may be the first advertising resource, the first video resource, the first audio resource, etc.

[0056] The first media resource corresponds to the first media resource information. Among the media resource information stored locally, the first media resource information has the earliest delivery time. That is, the first media resource information is the media resource information with the earliest delivery time among the media resource information stored in the data processing server.

[0057] It should be noted that, in the embodiment of the present disclosure, the delivery time is the time when the resource delivery server delivers the media resource to the client, that is, the time when the client displays the media resource.

[0058] In the embodiment of the present disclosure, the locally stored media resource information may be stored in a delay queue. That is, the delay queue stores at least one media resource information of a delivered media resource, and the first media resource information is a column header element of the delay queue. For example, Figure 2BAs shown, media resource information a is located at the first position of the delay queue, media resource information b is located at the second position of the delay queue, and media resource information c is located at the third position of the delay queue. The first position is the head of the delay queue. Therefore, media resource information a is the first media resource information.

[0059] It should be noted that the media resource information in the delay queue needs to be obtained by the data processing server from the message queue of the media resource delivery server. For a specific description of how the data processing server obtains the media resource information from the message queue of the media resource delivery server, please refer to steps 301 to 304, which will not be repeated here.

[0060] The media resource delivery duration is the time after the media resource delivery server delivers the media resource.

[0061] In one possible implementation, a data processing server obtains the delivery time in the first media resource information from a delay queue. The delay queue stores at least one media resource information arranged in chronological order of the delivery times of delivered media resources. The first media resource information is a header element of the delay queue.

[0062] Afterwards, the data processing server calculates the time interval between the current moment and the delivery moment in the first media resource information to determine the delivery duration of the first media resource. In other words, the delivery duration of the media resource is the time between the delivery moment of the media resource and the current moment.

[0063] For example, the delivery time of media resource a is 3:15 on July 20, 2020, and the current time is 3:18 on July 20, 2020, then the delivery duration of media resource a is three minutes.

[0064] It is understandable that, since the delayed queue is arranged in the order of the delivery time of the delivered media resources, the data processing service can preferentially obtain the media resource information corresponding to the media resources with earlier delivery time, thereby increasing the probability of the data processing server obtaining the first user behavior log, thereby improving the accuracy of the labeled data.

[0065] 202. The data processing server determines whether the delivery duration of the first media resource is greater than a preset duration.

[0066] The preset duration is used to indicate that after a certain period of time has passed since the media resource was delivered, the log server will obtain the user behavior log.

[0067] It should be noted that after the media resource delivery server delivers the media resources, the user will not operate the media resources in time, or after the user operates the media resources, there will be a delay in the process of sending the user behavior log to the log server. Therefore, the log server will not be able to obtain the user behavior log until a certain period of time has passed. And because the data processing server queries the user behavior log corresponding to the media resource information. Therefore, the developer can set a preset duration, and when the delivery duration of the media resource indicated by the media resource information in the delay queue is greater than the preset duration, it also leaves time for the log server to obtain the user behavior log. In this way, it is avoided that the log server has not obtained the user behavior log because the time is too short, and the data processing server requests the user behavior log corresponding to the media resource information, resulting in the determined annotation data not being consistent with the actual situation, and the accuracy of the annotation data is low.

[0068] Exemplarily, when the delivery duration of the media resource corresponding to the media resource information a is 4 minutes, the log server obtains and stores the user behavior log corresponding to the media resource information a. The preset duration is 5 minutes. The data processing server obtains the media resource information a at the head of the delay queue, that is, when the media resource information a is included in the delay queue, the log server has already obtained and stored the user behavior log corresponding to the media resource information a. Therefore, the data processing server can obtain the user behavior log corresponding to the media resource information a.

[0069] Optionally, the preset duration is determined by the data processing server based on historical user behavior logs. User behavior logs include: launch ID, media resource ID, return duration, media resource type, launch area, operation duration, etc. The return duration is the difference between the time when the log server obtains the user behavior log and the launch time of the media resource. Media resource types include: click-type media resources, form-type media resources, etc. Click-type media resources are used to indicate that after the user clicks on the media resource, the log server will obtain the user behavior log. Form-type media resources are used to indicate that after the user fills in the form and submits it, the log server will obtain the user behavior log. The operation duration is the time the user operates on the media resource.

[0070] It should be noted that due to different delivery areas and different media resource types, the time when the log server obtains the user behavior log is also different. Therefore, the log server can determine the preset duration based on the delivery area or the media resource type. The above is just an example of how to determine the preset duration in the embodiment of the present disclosure, and the embodiment of the present disclosure does not limit the method for determining the preset duration.

[0071] In one possible design, if the data processing server determines that the delivery duration of the first media resource is greater than the preset duration, step 203 is executed. If the data processing server determines that the delivery duration of the first media resource is less than the preset duration, the data processing server will not obtain the first media resource information and the first user behavior log corresponding to the first media resource information.

[0072] 203. The data processing server obtains the first media resource information and the first user behavior log corresponding to the first media resource information.

[0073] The log server stores at least one user behavior log. The first user behavior log is used to represent the operation performed on the first media resource.

[0074] In a possible implementation, the data processing server obtains the first media resource information from the delay queue. Afterwards, the data processing server determines the keyword of the first media resource information and obtains the first user behavior log corresponding to the keyword of the first media resource information. The first user behavior log is queried based on the keyword of the first media resource information.

[0075] It should be noted that the media resource information includes: delivery time, delivery area, media resource type, media resource flag, delivery flag, etc. The keywords of the media resource information include: delivery flag, media resource flag, and media resource type.

[0076] Exemplarily, the data processing server sends the delivery flag of the first media resource, the first media resource flag, and the first media resource type to the log server, requesting to obtain the corresponding first user behavior log. Afterwards, the data processing server receives the first user behavior log sent by the log server. For example, the keywords of media resource information a are LaunchID=111, advertisement ID=222, Advertising type=01. The data server sends the keywords of media resource information a to the log server, and the log server generates a Structured Query Language (SQL) statement based on the keywords of media resource information a. Afterwards, the log server executes the SQL statement, finds the user behavior log of Launch ID=111, advertisement ID=222, Advertising type=01 from the database, and sends the user behavior log to the data processing server.

[0077] It is understandable that after determining the keyword of the first media resource information, the data processing server can obtain the corresponding first user behavior log according to the keyword. In this way, since the amount of data in the user behavior log is much smaller than the amount of data in the media resource information, the time consumed by the log server to obtain the first user behavior log corresponding to the media resource information is shorter. Therefore, the data processing server can receive the user behavior log faster, speed up the data annotation, and improve the efficiency of data annotation.

[0078] Optionally, the user behavior log corresponding to the first media resource information obtained by the data processing server is a null value (NULL).

[0079] It should be noted that after the media resource delivery server delivers the media resources to the user, some users will operate the delivered media resources, thereby generating user behavior logs. However, some users will not operate the media resources and cannot generate user behavior logs. In this way, the log server will not store the user behavior log corresponding to the media resource. When the data processing server requests to obtain the user behavior log corresponding to the media resource information, the data processing server will receive "NULL" sent by the log server.

[0080] It should be noted that, in the embodiment of the present disclosure, after the data processing server obtains the first media resource information from the delay queue, the first media resource information may change. Figure 2B ,like Figure 2CAs shown, after the data processing server obtains media resource information a, media resource information a is removed from the delay queue. In this way, media resource information b will move from the second position of the delay queue to the first position of the delay queue, and media resource information c will move from the third position of the delay queue to the second position of the delay queue. In other words, at this time, media resource information b is the first media resource information. For another example, combined with Figure 2C ,like Figure 2D As shown, after the data processing server obtains the media resource information b, the media resource information b is dequeued from the delay queue. In this way, the media resource information c will be moved from the second position of the delay queue to the first position of the delay queue. In other words, at this time, the media resource information c is the first media resource information.

[0081] 204. The data processing server performs a labeling operation on the first media resource information and the first user behavior log to determine target data.

[0082] In a possible implementation, the data processing server associates and splices the first media resource information and the first user behavior log according to keywords to determine the target data.

[0083] Exemplarily, when the user behavior log corresponding to the first media resource information is not a null value, the user behavior log corresponding to the first media resource information is “{Launch ID=111, advertisement ID=222, Advertisingtype=01, Return duration=3, Operation duration=1}”, and the first media resource information is “{Launch ID=111, advertisement ID=222, Advertising type=01, Launch area=01}”. Then the annotation data is “{Launch ID=111, advertisement ID=222, Advertising type=01, Return duration=3, Operation duration=1, Launch area=01}”.

[0084] Exemplarily, when the user behavior log corresponding to the first media resource information is a null value, the user behavior log corresponding to the first media resource information is "{NULL}", and the first media resource information is "{Launch ID=111, advertisement ID=222, Advertising type=01, Launch area=01}". Then the annotation data is "{Launch ID=111, advertisement ID=222, Advertising type=01, Launch area=01}".

[0085] It should be noted that when the user behavior log corresponding to the first media resource information is not a null value, it means that the user has performed an operation on the media resource. In this case, the data processing server determines that the annotation data is positive annotation data based on the first media resource information and the user behavior log corresponding to the first media resource information. When the user behavior log corresponding to the first media resource information is a null value, it means that the user has not performed an operation on the media resource. In this case, the data processing server determines that the annotation data is negative annotation data based on the first media resource information and the null value.

[0086] It should be noted that the above target data can be used to train a media resource model (the media resource model can predict the probability of a user operating a media resource, such as clicking on it). The present disclosure embodiment does not limit the role of the target data.

[0087] The technical solution provided by the above embodiment brings at least the following beneficial effects: since the user will not operate the media resource in time after the media resource is delivered, or after the user operates the media resource, there is a delay in the process of sending the user behavior log to the log server. Therefore, the data processing server will not be able to obtain the user behavior log until a certain period of time has passed. In order to avoid the data processing server failing to obtain the first user behavior log due to obtaining the first user behavior log too early, the data processing server obtains the first media resource information only after determining that the delivery duration of the media resource represented by the first media resource information is greater than the preset duration, and obtains the first user behavior log corresponding to the first media resource information, so that the probability of the data processing server obtaining the first user behavior log can be increased, thereby further improving the accuracy of the labeled data. Moreover, compared with the prior art, since the amount of data in the user behavior log is much smaller than the amount of data in the media resource information. Therefore, the time consumed by the log server to obtain the first user behavior log corresponding to the media resource information is shorter. Therefore, the data processing server can receive the user behavior log faster, speed up the speed of labeling data, and improve the efficiency of labeling data.

[0088] Since the length of the delay queue of the data processing server is limited, when the amount of media resource information in the delay queue is equal to the length of the delay queue, the delay queue cannot continue to store the media resource information. Therefore, before the data processing server obtains the media resource information from the message queue of the media resource delivery server, it is necessary to determine whether the amount of media resource information in the delay queue is less than the length of the delay queue.

[0089] Figure 3A The present invention is a flowchart of a method for enqueuing media resource information into a delay queue according to an exemplary embodiment, when the method is applied to a data processing server obtaining media resource information from a media resource delivery server. Figure 3A As shown, the method may include steps 301 to 304.

[0090] 301. The data processing server detects the amount of media resource information in the delay queue.

[0091] Exemplarily, the delay queue includes media resource information a, media resource information b, and media resource information c, and the number of media resource information in the delay queue is 3.

[0092] 302. The data processing server determines whether the amount of media resource information in the delay queue is less than the length of the delay queue.

[0093] Optionally, if the data processing server determines that the amount of media resource information in the delay queue is greater than or equal to the length of the delay queue, the data processing server re-executes step 301.

[0094] It is understandable that if the amount of media resource information in the delay queue is equal to the length of the delay queue, it means that the delay queue is full and no new media resource information can be included in the delay queue. Therefore, the data processing server needs to re-detect the amount of media resource information in the delay queue. In this way, it can be avoided that the delay queue is too large, which leads to reduced stability of the data processing server.

[0095] Optionally, if the data processing server determines that the amount of media resource information in the delay queue is less than the length of the delay queue, the data processing server executes step 303.

[0096] It is understandable that if the number in the delay queue is less than the length of the delay queue, it means that the delay queue is not full and media resource information can still be included in the delay queue. In this way, the number of media resource information in the delay queue will not be too large, thereby improving the stability of the data processing server.

[0097] 303. The data processing server obtains media resource information of at least one delivered media resource from the message queue.

[0098] The message queue stores media resource information of at least one delivered media resource.

[0099] Optionally, the message queue contains at least one piece of media resource information arranged in chronological order according to the sending times when the log server sends the media resource to the client.

[0100] It should be noted that due to network delays and other reasons, the time when the log server sends the media resource to the client may be different from the delivery time. That is, after the log server sends the media resource to the client at the first time, the client may display the media resource at the second time, and the first time may be the same as the second time, or the second time may be later than the first time.

[0101] In a possible implementation, the media resource information in the message queue is sorted from small to large according to the time when the log server sends the media resource to the client. That is, the media resource information in the message queue is sorted in ascending order. In other words, the media resource information with an earlier sending time will be included in the message queue first, and the media resource information with a later sending time will be included in the message queue later.

[0102] For example, the media resource delivery time of media resource information a is 3:15 on July 20, 2020, the media resource delivery time of media resource information b is 3:16 on July 20, 2020, and the media resource delivery time of media resource information c is 3:14 on July 20, 2020. Figure 3B As shown, the media resource information c will be listed at the end of the message queue first. Since there is no data in the message queue before the media resource information c is listed in the message queue, the media resource information c is located at the first position of the message queue, that is, the head of the message queue. Figure 3C As shown, media resource information a is listed second at the end of the message queue, and media resource information a is located at the second position in the message queue. Figure 3D As shown, the media resource information b is listed third at the end of the message queue, and the media resource information b is located at the third position of the message queue.

[0103] In another possible implementation, the media resource information in the message queue is sorted from largest to smallest according to the time when the media resource was sent. That is, the media resource information in the message queue is sorted in descending order. In other words, the media resource information with a later time of sending the media resource will be included in the message queue first, and the media resource information with an earlier time of sending the media resource will be included in the message queue later.

[0104] It should be noted that in actual applications, the media resource information in most message queues is sorted in descending order. In this way, the data processing server can timely obtain each media resource with an earlier sending time. And, usually, the media resource with an earlier sending time also has an earlier delivery time in its corresponding media resource information. Therefore, the data processing server can timely obtain each first media resource information whose delivery time is greater than the preset time.

[0105] Optionally, the media resource information in the message queue and the media resource information in the delay queue have the same tag information, which is at least one of time, type or region.

[0106] Specifically, the media resource delivery server partitions at least one media resource information according to the tag information, and lists the media resource information in different message queues. The tag information of the media resource information in each message queue is the same. Exemplarily, the type of media resource corresponding to media resource information a is a click type, the type of media resource corresponding to media resource information b is a click type, and the type of media resource corresponding to media resource information c is a form type. Then, the media resource delivery server lists media resource information a and media resource information b in the first message queue according to the media resource type, and lists media resource information c in the second message queue.

[0107] The delay queue obtains the first media resource information from the message queue corresponding to it according to the tag information. Exemplarily, the first message queue includes media resource information a and media resource information b, and the second message queue includes media resource information c. The tag information of the media resource information in the first delay queue is the same as the tag information of the media resource information in the first message queue. Therefore, the first delay queue obtains the media resource information from the first message queue.

[0108] It should be noted that due to the huge amount of media resource information, the stability of the media resource delivery server is reduced, which may cause errors in the data of the media resource information, resulting in the inconsistency between the labeled data and the actual situation, thereby affecting the accuracy of the labeled data. Therefore, the data processing server performs a partitioning operation based on the tag information, which can isolate the massive amount of media resource information into partitions and reduce the mutual influence between the data. Furthermore, since the mutual influence between the data is reduced, the accuracy of the labeled data can be improved.

[0109] Optionally, the data processing server processes the media resource information in a delay queue through a thread pool. Each delay queue has a corresponding thread pool. In this way, task isolation can be guaranteed and the mutual influence between data can be reduced.

[0110] Optionally, a thread pool includes multiple threads. In this way, multiple threads process media resource information at the same time, for example, the first thread is responsible for pulling the first media resource information from the media resource delivery server, and the second thread is responsible for completing the splicing of the marked data, etc., which can improve the efficiency of marking data.

[0111] 304. The data processing server arranges the media resource information of at least one delivered media resource in the order of delivery time, and stores it in a delay queue.

[0112] In a possible implementation, the media resource information in the delay queue is sorted from small to large according to the media resource delivery time, that is, the media resource information in the delay queue is sorted in ascending order.

[0113] In another possible implementation, the media resource information in the delay queue is sorted from largest to smallest according to the media resource delivery time, that is, the media resource information in the delay queue is sorted in descending order.

[0114] It should be noted that, in actual applications, the media resource information in the delay queue is usually sorted in descending order. In this way, the data processing server can obtain each media resource with an earlier delivery time in a timely manner. In addition, since the data processing server can only obtain the media resource information at the head of the delay queue, and the delivery duration of the media resource corresponding to the media resource information needs to be greater than the preset duration. Therefore, the media resource information in the delay queue is sorted in descending order, which can ensure that the data processing server obtains the media resource information corresponding to the media resource with the longest delivery duration from the delay queue each time, thereby reducing the time for the data processing server to obtain the media resource information from the delay queue and improving the efficiency of the data processing server in processing the media resource information.

[0115] The technical solution provided by the above embodiment brings at least the following beneficial effects: the data processing server can put the first media resource information that meets the conditions into the delay queue by judging the amount of media resource information in the delay queue.

[0116] It is understandable that the above method can be implemented by a data processing server. In order to implement the above functions, the data processing server includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present disclosure.

[0117] The disclosed embodiment can divide the functional modules of the above-mentioned data processing server etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the disclosed embodiment is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0118] Figure 4 is a structural block diagram of a data processing server according to an exemplary embodiment. Figure 4 The data processing server 40 includes a determination module 41 and an acquisition module 42.

[0119] The determination module 41 is configured to determine the delivery time of the first media resource, the first media resource corresponds to the first media resource information; in the locally stored media resource information, the delivery time in the first media resource information is the earliest.

[0120] The acquisition module 42 is configured to acquire the first media resource information and the first user behavior log corresponding to the first media resource information after determining that the delivery duration of the first media resource is greater than the preset duration; the first user behavior log is used to represent the operation performed on the first media resource.

[0121] The determination module 41 is configured to perform a labeling operation on the first media resource information and the first user behavior log to determine target data.

[0122] Optionally, the acquisition module 42 is further configured to obtain the delivery time in the first media resource information from the delay queue; the delay queue stores at least one media resource information arranged in chronological order of the delivery times of the delivered media resources, and the first media resource information is the column header element of the delay queue.

[0123] The determination module 41 is further configured to calculate the time interval between the current moment and the delivery moment in the first media resource information to determine the delivery duration of the first media resource.

[0124] Optionally, the determination module 41 is further configured to determine a keyword of the first media resource information.

[0125] The acquisition module 42 is configured to execute acquisition of a first user behavior log corresponding to a keyword of the first media resource information, where the first user behavior log is queried according to the keyword of the first media resource information.

[0126] Optionally, the acquisition module 42 is specifically configured to execute the acquisition of media resource information of at least one delivered media resource from a message queue, wherein the message queue stores media resource information of at least one delivered media resource; arrange the media resource information of at least one delivered media resource in chronological order of delivery time, and store it in a delay queue.

[0127] Optionally, the acquisition module 42 is specifically configured to arrange the media resource information of at least one delivered media resource in the order of delivery time and store it in the delay queue when the amount of media resource information in the delay queue is less than the length of the delay queue.

[0128] Optionally, the media resource information in the message queue and the media resource information in the delay queue have the same tag information, and the tag information is at least one of time, type or area.

[0129] Regarding the data processing server in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0130] Figure 5 : is a schematic diagram of the structure of a server 50 provided in an embodiment of the present disclosure. The server 50 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 51 and one or more memories 52, wherein the memory 52 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 51 to implement the group communication method provided in the above-mentioned various method embodiments. Of course, the server 50 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 50 may also include other components for implementing device functions, which will not be described in detail here.

[0131] The present disclosure also provides a computer-readable storage medium having instructions stored thereon. When the instructions in the storage medium are executed by a processor of a server, the server is enabled to execute the group communication method provided by the above-mentioned embodiment of the present disclosure.

[0132] The embodiment of the present disclosure also provides a computer program product including instructions, which, when executed on a server, enables the server to execute the data labeling method provided by the embodiment of the present disclosure.

[0133] The present disclosure also provides a data annotation system. Figure 1 As shown, the system includes at least two servers. Among them, at least two servers are used to execute the corresponding steps in the above embodiments of the present disclosure, so that the data annotation system can solve the technical problems solved by the embodiments of the present disclosure and achieve the technical effects achieved by the embodiments of the present disclosure, which will not be repeated here.

[0134] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0135] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data annotation method, It is characterized in that The marking method comprises: Determining a delivery duration of a first media resource, the first media resource corresponding to first media resource information; in the locally stored media resource information, the delivery time in the first media resource information is the earliest; After determining that the delivery duration of the first media resource is greater than a preset duration, obtaining the first media resource information; Determining keywords of the first media resource information; Acquire a first user behavior log corresponding to a keyword of the first media resource information, where the first user behavior log is queried based on the keyword of the first media resource information, and the first user behavior log is used to represent an operation performed on the first media resource; A labeling operation is performed on the first media resource information and the first user behavior log to determine target data.

2. The marking method according to claim 1, It is characterized in that The determining of the delivery duration of the first media resource includes: Obtaining the delivery time in the first media resource information from a delay queue; the delay queue stores at least one media resource information arranged in chronological order of delivery times of delivered media resources, and the first media resource information is a column header element of the delay queue; The time interval between the current time and the delivery time in the first media resource information is calculated to determine the delivery duration of the first media resource.

3. The marking method according to claim 1 or 2, It is characterized in that The method further comprises: Acquire media resource information of at least one delivered media resource from a message queue, wherein the message queue stores media resource information of at least one delivered media resource; The media resource information of at least one delivered media resource is arranged in the order of delivery time and stored in a delay queue.

4. The marking method according to claim 3, It is characterized in that The step of arranging the media resource information of at least one delivered media resource in the order of delivery time and storing the media resource information in the delay queue includes: When the amount of media resource information in the delay queue is less than the length of the delay queue, the media resource information of at least one delivered media resource is arranged in the order of delivery time and stored in the delay queue.

5. The marking method according to claim 4, It is characterized in that The media resource information of the message queue and the media resource information in the delay queue have the same tag information, and the tag information is at least one of time, type or area.

6. A data annotation device, It is characterized in that include: A determination module, configured to determine a delivery duration of a first media resource, wherein the first media resource corresponds to the first media resource information; Among the locally stored media resource information, the delivery time in the first media resource information is the earliest; An acquisition module, configured to acquire the first media resource information after determining that the delivery duration of the first media resource is greater than a preset duration; The determination module is further configured to determine a keyword of the first media resource information; The acquisition module is further used to acquire a first user behavior log corresponding to a keyword of the first media resource information, wherein the first user behavior log is queried according to the keyword of the first media resource information, and the first user behavior log is used to represent an operation performed on the first media resource; The determination module is further used to perform a labeling operation on the first media resource information and the first user behavior log to determine target data.

7. The data labeling device according to claim 6, It is characterized in that The acquisition module is further used to acquire the delivery time in the first media resource information from the delay queue; the delay queue stores at least one media resource information arranged in the order of delivery time of delivered media resources, and the first media resource information is a column header element of the delay queue; The determination module is further configured to calculate the time interval between the current time and the delivery time in the first media resource information to determine the delivery duration of the first media resource.

8. The data labeling device according to claim 6 or 7, It is characterized in that The acquisition module is further used to acquire media resource information of at least one delivered media resource from a message queue, wherein the message queue stores media resource information of at least one delivered media resource; arrange the media resource information of at least one delivered media resource in chronological order of delivery time, and store it in a delay queue.

9. The data labeling device according to claim 8, It is characterized in that The acquisition module is specifically used to arrange the media resource information of at least one delivered media resource in the order of delivery time and store it in the delay queue when the amount of media resource information in the delay queue is less than the length of the delay queue.

10. The data labeling device according to claim 9, It is characterized in that The media resource information of the message queue and the media resource information in the delay queue have the same tag information, and the tag information is at least one of time, type or area.

11. A server, It is characterized in that The server comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data labeling method according to any one of claims 1 to 5.

12. A computer-readable storage medium having stored thereon instructions, It is characterized in that When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the data labeling method according to any one of claims 1 to 5.