Data labeling method and system, computer equipment, storage medium and program product

By orchestrating multiple target nodes to generate a custom annotation process, it solves the problems of low efficiency and high cost of existing data annotation tools, and achieves an efficient and widely applicable data annotation solution.

CN118535653APending Publication Date: 2024-08-23BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310193938.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing data annotation tools have limitations in the data annotation process and are difficult to meet the actual needs of various data and scenarios, resulting in low access efficiency and high cost.

Method used

By obtaining process execution instructions that represent the labeling requirements of the data to be labeled, orchestrating and processing multiple target nodes, generating a customized labeling process, and performing data labeling according to the labeling process, achieving efficient labeling of the data to be labeled.

Benefits of technology

It improves the access efficiency of data annotation services, reduces data annotation costs, has a wide range of applications, and can meet the needs of various data and scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535653A
    Figure CN118535653A
Patent Text Reader

Abstract

The embodiment of the invention relates to a data annotation method and system, computer equipment, a storage medium and a program product. The method comprises the steps of obtaining a process execution instruction; the process execution instruction is used for representing a labeling requirement of to-be-labeled data; arranging at least two target nodes according to the process execution instruction to generate a labeling process of the to-be-labeled data; the target node is used for performing data processing on the to-be-labeled data; and performing data annotation on the to-be-annotated data according to the annotation process to obtain an annotation result. By adopting the method, the application range of the data annotation system can be effectively expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular, to a data annotation method, system, computer device, storage medium, and program product. Background Art

[0002] With the continuous development of Internet technology, intelligent customer service based on Internet technology is also widely used in online car-hailing, e-commerce and other fields, reducing the cost of manual customer service. When intelligent customer service interacts with users, it generally matches the questions entered by the user with the standard questions in the database, pushes the matching standard questions to the user, and then pushes the knowledge points or solutions corresponding to the standard questions to the user, completing the interaction between intelligent customer service and the user.

[0003] The realization of the above-mentioned intelligent customer service functions mainly relies on a large amount of labeled data, that is, after various types of data are labeled in advance, the intelligent customer service can accurately match the questions entered by the user in the database and obtain accurate standard questions, so as to achieve accurate interaction with the user. It can be seen that pre-labeling of data is very important. At present, when labeling data, it is common to use some existing data labeling tools, such as EasyDL, to achieve data labeling.

[0004] However, some current data annotation tools have significant limitations. Summary of the invention

[0005] The embodiments of the present disclosure provide a data labeling method, system, computer device, storage medium, and program product, which can be used to improve the scope of application of the data labeling system.

[0006] In a first aspect, an embodiment of the present disclosure provides a data labeling method, the method comprising:

[0007] Obtaining process execution instructions; the above process execution instructions are used to characterize the labeling requirements of the data to be labeled;

[0008] Arrange and process at least two target nodes according to the process execution instruction to generate a labeling process for the data to be labeled; the target nodes are used to process the data to be labeled;

[0009] Perform data annotation on the data to be labeled according to the annotation process to obtain the annotation results.

[0010] In a second aspect, an embodiment of the present disclosure provides a data labeling system, which is applied to the data labeling method of the first aspect, and the system includes:

[0011] The business module is used to obtain process execution instructions; the process execution instructions are used to characterize the labeling requirements of the data to be labeled;

[0012] A node process generation module is used to perform orchestration processing on at least two target nodes according to the process execution instruction to generate a labeling process for the data to be labeled; the target nodes are used to perform data processing on the data to be labeled;

[0013] The process executor is used to perform data annotation on the data to be annotated according to the annotation process to obtain the annotation results.

[0014] In a third aspect, an embodiment of the present disclosure provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method steps of the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method steps of the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method steps of the first aspect are implemented.

[0017] The data labeling method, system, computer device, storage medium and program product provided by the embodiments of the present disclosure obtain a process execution instruction that characterizes the labeling requirements of the data to be labeled, and perform orchestration processing on at least two target nodes according to the process execution instruction to generate a labeling process for the data to be labeled, and perform data labeling on the data to be labeled according to the labeling process to obtain a labeling result, wherein the target node is used to perform data processing on the data to be labeled. In this method, since the labeling requirements of the data to be labeled can be used to arbitrarily arrange and process the nodes that can perform data processing to generate a labeling process, so as to realize the labeling of the data to be labeled through the labeling process, the labeling process can be arbitrarily adjusted according to the actual labeling requirements, and the actual requirements of various data or various scenarios can be met, the access efficiency of the data labeling service can be improved, and the data labeling cost can be reduced, so the scope of application is wide. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 An application environment diagram of a data annotation method in an embodiment;

[0019] Figure 2 A schematic diagram of a flow chart of a data labeling method in an embodiment;

[0020] Figure 3 A schematic diagram of a flow chart of a data labeling method in another embodiment;

[0021] Figure 4 An example diagram of input and output of a data acquisition node in another embodiment;

[0022] Figure 5 An example diagram of a configuration of a data acquisition node in another embodiment;

[0023] Figure 6 An example diagram of a configuration of a data acquisition node in another embodiment;

[0024] Figure 7 An example diagram of input and output of a data extraction node in another embodiment;

[0025] Figure 8 An example diagram of a configuration of a data extraction node in another embodiment;

[0026] Fig. 9 Another example graph of input and output of manually labeled nodes in an embodiment;

[0027] Fig.10 Another example diagram of a configuration of manually annotated nodes in an embodiment;

[0028] Fig.11 An example diagram of a marking process in another embodiment;

[0029] Fig.12 An example diagram of another marking process in another embodiment;

[0030] Fig.13 An example diagram of a preset form component list in another embodiment;

[0031] Fig.14 An example diagram of a labeling form in another embodiment;

[0032] Fig.15 An example diagram of another annotation form in another embodiment;

[0033] Fig.16 An example diagram of another annotation form in another embodiment;

[0034] Fig.17 A schematic diagram of a flow chart of a data labeling method in another embodiment;

[0035] Fig.18 An example diagram of the annotation timing of the annotation process in another embodiment;

[0036] Fig.19 An example diagram of the execution result of the annotation process in another embodiment;

[0037] Fig. 20 An example diagram of the execution results of a node in another embodiment;

[0038] Fig.21 A schematic diagram of a flow chart of a data labeling method in another embodiment;

[0039] Fig. 22 is a structural block diagram of a data annotation system in one embodiment;

[0040] Fig.23 This is a diagram showing an example of the system architecture of a data annotation system in another embodiment. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure more clear, the embodiments of the present disclosure are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present disclosure and are not used to limit the embodiments of the present disclosure.

[0042] The technical solutions involved in the embodiments of the present disclosure are introduced below in combination with the scenarios to which the embodiments of the present disclosure are applied.

[0043] The data annotation method provided by the embodiment of the present disclosure can be applied to a computer device, which can be a terminal or a server. Taking the terminal as an example, its internal structure diagram can be as follows: Figure 1 The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities, which can be realized by the processor and the actuator, wherein the actuator can also be connected to the system bus ( Figure 1 (not shown in the figure). The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data labeling method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0044] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0045] In one embodiment, Figure 2 As shown, a data annotation method is provided, which is applied to Figure 1 Taking the computer device in the example as an example, the method may include the following steps:

[0046] S202, obtaining a process execution instruction; the process execution instruction is used to characterize the labeling requirements of the data to be labeled.

[0047] In this step, the process execution instruction can be obtained by the business module in the computer device, can be input by the user (for example, it can be input by the user on the display interface according to actual needs), can be directly transmitted from the previous application software, or can be other methods. In short, the process execution instruction can be obtained.

[0048] For the process execution instructions, they can represent the labeling requirements for the data to be labeled, which can generally include the types of data processing that need to be performed during the data labeling process (for example, data collection processing, data extraction processing and data labeling processing, etc.), generally at least two types of data processing. It can also include what kind of driving method is used to display the data labeling process on the display interface during the data labeling process, which can be called a labeling form. Of course, it can also include other content.

[0049] S204, orchestrate at least two target nodes according to the process execution instruction to generate a labeling process for the data to be labeled; the target nodes are used to process the data to be labeled.

[0050] In this step, in order to implement a customized data processing process for the labeled data according to user needs, multiple target nodes can be pre-set here, and each target node can perform a type of data processing on the labeled data, such as data collection processing, data extraction processing, data labeling processing, etc. After the process execution instruction is obtained through the business module, the node process generation module in the computer device can know the data processing required for the labeled data, and correspondingly, at least two corresponding target nodes can be obtained.

[0051] After that, the node process generation module can arrange and process each target node according to the association relationship between the data processing types of each target node to obtain an arranged annotation process. For example, the data processing types in the above process execution instruction include data collection processing and data annotation processing. The general processing logic is to perform data collection processing first and then data annotation processing. Therefore, the annotation process generated here is to set the target node of data collection processing as the first node, set the target node of data annotation processing as the second node, and arrange the first node and the second node in order to obtain the annotation process.

[0052] Alternatively, the above-mentioned process execution instruction may also carry the arrangement order between various data processing types. After obtaining each target node in this step, each target node may be arranged according to the arrangement order to obtain the labeled process. Here, the arrangement order in the process execution instruction may be customized by the user, so as to ensure that the actual needs of the user are further met.

[0053] Alternatively, the process execution instruction may not include the arrangement order of the nodes, that is, there is no specific limitation on the arrangement order between the target nodes. The target nodes can be arranged arbitrarily during the process arrangement. In short, a well-arranged marked process can be obtained.

[0054] S206, performing data annotation on the data to be annotated according to the annotation process to obtain an annotation result.

[0055] In this step, after the node process generation module obtains the annotation process, the process executor in the computer device can perform the data processing functions corresponding to each target node on the data to be annotated in sequence according to the order of each target node in the annotation process, wherein the output of the previous target node can be used as the input of the next target node, and finally obtain the annotation result. The annotation result can be the annotated data, or can also include the results such as annotation success or annotation failure.

[0056] From the above description, it can be seen that the above target nodes are decoupled from each other, so that each target node can be freely arranged to obtain different labeling processes, thereby diversifying the labeling process and improving the limitations of data labeling.

[0057] In the above data labeling method, a process execution instruction representing the labeling requirements of the data to be labeled is obtained, and at least two target nodes are orchestrated and processed according to the process execution instruction to generate a labeling process for the data to be labeled, and data labeling is performed on the data to be labeled according to the labeling process to obtain a labeling result, wherein the target node is used to perform data processing on the data to be labeled. In this method, since the labeling process can be arbitrarily orchestrated and processed to generate a labeling process according to the labeling requirements of the data to be labeled, so as to realize the labeling of the data to be labeled through the labeling process, the labeling process can be arbitrarily adjusted according to the actual labeling requirements, and the actual needs of various data or various scenarios can be met, the access efficiency of the data labeling service can be improved, and the data labeling cost can be reduced, so the scope of application is wide.

[0058] The above embodiment mentioned that multiple nodes can be orchestrated. The following embodiment describes a specific process of how to obtain these multiple nodes for orchestration.

[0059] In another embodiment, another data annotation method is provided, such as Figure 3 As shown, based on the above embodiment, the above S204 may include the following steps:

[0060] S302, determining the marking function according to the process execution instruction.

[0061] In this step, after obtaining the process execution instruction, the process execution instruction may include the data processing type to be executed. The data processing type corresponds to the annotation function to be executed on the annotated data. Therefore, at least two annotation functions can be obtained through the process execution instruction.

[0062] S304: Determine at least two corresponding target nodes from a plurality of preset candidate nodes according to the marking function.

[0063] In this step, in order to facilitate data annotation in different scenarios and the actual needs of users, multiple candidate nodes can be pre-set here, and each candidate node can correspond to a labeling function or a data processing type. Several possible candidate nodes and their functions are shown below. The multiple candidate nodes here can include: data acquisition node, data extraction node, manual labeling node, system labeling node, manual quality inspection node, and data notification node, etc., and of course other nodes can also be included.

[0064] The data collection node is used to collect data through a preset data collection method to obtain a data set. See the input and output examples of the data collection node. Figure 4 As shown, the data collection method may be input first, and then the data is collected and processed by the data collection node, and the data collection result may be output. The data collection result may include the acquired collected data, or may include data collection success or data collection failure. The preset collection method here may be, for example, collecting data from a database, or collecting data from a data file, or other methods. Figure 5 As shown, the database here can be hive, sql, etc., and the database configuration information can be pre-set and saved, such as database connection information and SQL execution information. Figure 6 As shown, the data file may be, for example, CSV, Excel, etc., and the configuration information of the data file may be pre-set and saved, such as the file address and file name of the data file.

[0065] The data extraction node is used to extract data from the data set using a preset extraction strategy to obtain the data to be labeled. See the input and output examples of the data extraction node. Figure 7As shown, the data extraction strategy can be input first, and then the data extraction process is executed through the data extraction node, and the data extraction result is output. The data extraction result can include the extracted data, and can also include data extraction success or data extraction failure. The preset data extraction strategy here can be a variety of extraction strategies, such as fuzzy matching extraction type, data volume matching extraction type, data length extraction type, etc. Take the fuzzy matching extraction type as an example, see Figure 8 As shown, the fuzzy matching extraction type mainly detects whether the data includes the policy value. If it does, the data related to the policy value is extracted and the data is filtered out. The policy value here is equivalent to a keyword, such as extracting keywords such as mobile phones in the figure. Taking the data volume matching extraction type as an example, data can be extracted according to the data ratio, such as extracting 70% of the data. Taking the data length extraction type as an example, information that is typed by the user and the text length is greater than 1 can be obtained from the data.

[0066] The manual annotation node is used to convert the data to be annotated into an annotation task and display the annotation task through the annotation form, and obtain the first annotation result obtained after executing the annotation task based on the annotation form. For example, each data record in the above extraction result can be manually annotated with problem classification. See the input and output examples of the manual annotation node Fig. 9 As shown, scenario 1 can be inputting the data to be labeled, the labeling form (described in detail below), and the task executor. The data to be labeled is converted into labeling tasks through the manual labeling node and distributed to the corresponding task executors. Fig.10 As shown, the manual annotation node can be configured in advance, including the identification of the task executor and the annotation form, and the annotation form task generation result can be output to distribute and display the annotation task to the task executor. Scenario 2 can be that the task executor enters the task submission data through the annotation form, submits and saves the data through the manual annotation node, and outputs the annotation data submission result, including submission success or submission failure. Successful submission means that the manual annotation data is successful.

[0067] The system annotation node is used to perform data annotation on the data to be annotated and obtain the second annotation result. The annotation content can be pre-set in the system annotation node, that is, what content is annotated for what type of data, etc., to automatically complete the annotation of the data to be annotated without manual participation, and of course, the annotation form can also be used.

[0068] The manual quality inspection node is used to review the first annotation result and / or the second annotation result to obtain the annotation result corresponding to the data to be annotated. In other words, the manual quality inspection node can review whether the data annotated by the manual annotation node or the system annotation node is correct, further ensuring the accuracy of the data annotation.

[0069] The data notification node is used to notify the downstream application software of the labeling results. Generally, the labeled data is needed by the downstream application software in the data processing process. After the data labeling is completed here, the labeled original data (i.e. the data to be labeled) and the labeling result information can be pushed to the downstream application software for use by the business analysts corresponding to the downstream application software. The downstream application software here can be, for example, intelligent customer service implementation software.

[0070] Of course, the above examples are only some of the candidate nodes. In the actual annotation process, the candidate nodes can be continuously modified and added to improve the types of candidate nodes and the annotation function.

[0071] Based on the description of the candidate nodes above, after obtaining each annotation function, ie, data processing type, a target node matching the data processing type of each annotation function can be selected from a plurality of pre-set candidate nodes to obtain at least two target nodes.

[0072] S306: Perform orchestration processing on at least two target nodes to generate a labeling process for the data to be labeled.

[0073] In this step, referring to the method mentioned in S204 above, a labeling process consisting of each target node can be obtained.

[0074] For example, assuming that each target node includes a data collection node, a data extraction node, a manual annotation node, and a data notification node, the generated annotation process can be found in Fig.11 As shown, the target nodes of the labeling process from S to E are data collection node, data extraction node, manual labeling node and data notification node.

[0075] Assuming that each target node includes data collection node, data extraction node, manual labeling node, system labeling node, manual quality inspection node and data notification node, the generated labeling process can be seen in Fig.12 As shown, the target nodes of the labeling process starting from S are first the data collection node and the system labeling node, and then divided into two branches, one branch is the manual labeling node and the manual quality inspection node to the end of E, and the other branch is the data extraction node and the data notification node to the end of E.

[0076] It can be seen that the method of the embodiment of the present disclosure can compile the above-mentioned Fig.11 It is relatively simple to mark the process, and it can also be compiled relatively quickly Fig.12 A more complex labeling process.

[0077] In this embodiment, the target node is determined from multiple candidate nodes through the marking function in the process execution instruction to perform orchestration processing to obtain a marked process. In this way, by selecting nodes through the marking function, the selected nodes can all meet the requirements, so that the marked process obtained by node orchestration also meets the requirements, that is, the accuracy of the marked process can be improved, and the efficiency of obtaining the marked process can also be improved.

[0078] The above embodiment mentioned that the data to be annotated can be annotated through the annotation process. When the annotation requirements include the form style, the data annotation process can be combined with the form style. The following embodiment illustrates this process.

[0079] In another embodiment, another data annotation method is provided. Based on the above embodiment, the above S206 may include the following steps:

[0080] Step A: perform data annotation on the data to be annotated according to the annotation form and annotation process corresponding to the form style to obtain the annotation result.

[0081] The form style can be the style in which the data is to be displayed, such as displaying in a plain text style, displaying in a radio button style, etc. When obtaining the process execution instruction, the form style can also be obtained, that is, the style in which the data is required to be displayed, etc. The annotation form can be generated through the form style, and then the data annotation can be performed.

[0082] As an optional embodiment, the method for generating the annotation form may include: generating an annotation form corresponding to the to-be-annotated data according to a form style; wherein the form style is selected from a preset form component list, and the form component list includes a plurality of preset form styles. The preset form component list can be found in Fig.13 As shown, it can include a variety of form styles, such as some common form styles, plain text styles, multiple-select box styles, etc. For example, it can also include a custom component, which supports users to customize the form style according to their own needs. In this way, a custom form canvas can be provided, on which users can design the required form style by themselves, and then save it in the form component list for subsequent quick extraction and use. For another example, it can also include an external link component, and by setting the external link process, the external form style can be imported into this form for use.

[0083] The above form style can be used to generate an annotation form, which is mainly used to interact with users during the manual data annotation process, that is, to show tasks or answers to users and receive data submitted by users on the form. For example, see Fig.14 , 15As shown in Figure 16, three different annotation form example diagrams are given, among which Fig.14 It involves form styles such as plain text style, radio button, drop-down box and text input box. Fig.15 It involves plain text styles, radio buttons, text input boxes and other form styles. Fig.16 It is mainly used to realize the process of obtaining external form styles for the form styles of external link components. In short, the above method can generate a marked form to display to the user and receive the data entered by the user on the marked form.

[0084] Based on the above, the annotation form is mainly used for data display in manually annotated nodes, that is, when manually annotated nodes are included in the above multiple candidate nodes, as an optional embodiment, step A may include: establishing a correspondence between manually annotated nodes and annotation forms; in the process of executing data annotation, displaying the annotation form through manually annotated nodes, and obtaining the annotation results of data annotation performed on the data to be annotated based on the annotation form.

[0085] That is to say, the identifier of the generated annotation form can be bound to the manual annotation node. During the manual annotation process, the corresponding annotation form can be called through the bound identifier and displayed to the user to show the task or answer, etc. At the same time, the data submitted by the user on the form can be received to obtain the annotation result of the final data annotation execution.

[0086] The above-mentioned abstract basic form styles are in the preset form component list, which can meet various requirements for data presentation and layout of annotation forms in different annotation business scenarios.

[0087] In this embodiment, data annotation is performed through the annotation form and annotation process corresponding to the form style to obtain the annotation result. This combination of form style for data annotation can make the data annotation process more intuitive, thereby improving the efficiency of the data annotation process. In addition, by selecting the required form style from the system's built-in preset form component list, various form scenarios can be met and the scope of application can be improved. At the same time, by selecting the required form style from the preset form component list, the operation is relatively simple, so there is no need to learn complex operation processes, so it can also reduce the skill requirements for operators and reduce the labor cost in the data annotation process. Furthermore, by setting the annotation form to be displayed in the manual annotation node to realize manual annotation of data, the degree of data annotation can be reduced, effectively improving the efficiency of manual annotation of data.

[0088] The above embodiments mentioned that data annotation can be performed on the data to be annotated through an annotation process. The following embodiments will explain how to implement the annotation process in detail.

[0089] In another embodiment, another data annotation method is provided. Based on the above embodiment, Fig.17 As shown, the above S206 may include the following steps:

[0090] S402: Create a corresponding process instance according to the marked process.

[0091] In this step, a process instance represents an execution instance of a process definition. A process instance includes all running nodes. Creating a process instance makes it easy to instantly and accurately obtain the execution progress and other related information of the process during the execution of the annotated process. Fig.18 As shown in the process sequence diagram, a process instance can be created for the marked process through a process processor in a computer device.

[0092] S404: Create node instances corresponding to each target node in the annotation process according to the process instance.

[0093] In this step, the node instance represents the execution instance of the node definition, and the node instance can be used to instantly and accurately obtain the execution progress and other relevant information of the node during the data processing process.

[0094] The process instance includes various target nodes. After creating the process instance, the process processor can pass the process instance to the node processor in the subsequent computer device. Here, the node processor can obtain various target nodes in turn through the process instance and create respective node instances for each target node in turn.

[0095] S406, performing data annotation on the data to be annotated according to each node instance and the annotation process to obtain an annotation result.

[0096] In this step, after creating a node instance for each target node, the node executor in the computer device will pass it to the subsequent node executor. The node executor can then execute the corresponding data processing process based on the node instance, starting from the first target node in the labeling process. After the first target node is executed, it will continue to execute the data processing process of the next target node until all nodes in the labeling process are executed, or the labeling process fails.

[0097] During the above execution, see Fig.19 As shown, there are two states in the execution of each process instance, one is execution exception, that is, execution failure, and the other is execution success, that is, execution completion.

[0098] For node instances, see Fig. 20As shown in the figure, each node instance has two states during execution. One is execution exception, that is, execution failure; the other branch is successful execution without human intervention, that is, execution completion, and the other branch is converted into a manual task when human intervention is required. In the process of waiting for submission, if the task is submitted successfully, the execution is completed, and if the task is submitted unsuccessfully, the execution fails.

[0099] In this embodiment, a process instance is created through a labeling process, and a node instance of each target node is created. Data is labeled according to the node instance and the labeling process to obtain the labeling result. In this way, by creating an instance, the labeling process can be effectively and accurately executed to obtain a more accurate labeling result.

[0100] The above embodiments mentioned that data annotation can be performed on the data to be annotated through node instances and an annotation process. The following embodiments will explain how to implement the annotation process using node instances.

[0101] In another embodiment, another data annotation method is provided. Based on the above embodiment, Fig.21 As shown, the above S406 may include the following steps:

[0102] S502: Detect whether each target node is a manually labeled node according to each node instance, and obtain a detection result.

[0103] In this step, the process processor can also learn what each node is when creating each node instance, so as to obtain the result of whether the target node is a manually labeled node.

[0104] S504, performing data labeling on the data to be labeled according to each detection result and the labeling process to obtain a labeling result.

[0105] In this step, as an optional embodiment, if the target node is a manually labeled node, the data to be labeled is converted into a labeling task, and the labeling task is performed according to the labeling process to obtain a first labeling result; if the target node is a non-manually labeled node, data labeling is performed on the data to be labeled according to the labeling process to obtain a second labeling result.

[0106] For a target node, continue to refer to Fig.18As shown, if the node processor determines that the target node is a manually labeled node, it means that manual data labeling is required. Then the manual node executor in the node executor can convert the data to be labeled into a labeling task and distribute it to the designated task executor. The user manually labels the data through the labeling form and submits the task. After completing all the data processing logic of the manually labeled node, the execution state is returned to obtain the first labeling result; the first labeling result can be a manual labeling success or a manual labeling failure. If the process processor determines that the target node is a non-manually labeled node, that is, a system labeled node, the system node executor in the node executor can execute all the data processing logic of the node on the data to be labeled and return to the execution state to obtain the second labeling result; the second labeling result can be a labeling success or a labeling failure.

[0107] After obtaining the first labeling result, the artificial node executor or the system node executor can notify the process processor of the corresponding labeling result. Then, as an optional embodiment, the process processor can perform data processing of the next target node on the labeled data according to the first labeling result or the second labeling result, until the data processing of all target nodes in the labeling process is completed.

[0108] After all target nodes in the process are executed, the process processor can update the process instance status, for example, update it to successful execution, and the data labeling process execution is completed.

[0109] In this embodiment, each node instance is used to detect whether the target node is a manually labeled node, and data is labeled in combination with the detection result to obtain the labeling result. In this way, the labeling process is more in line with the actual situation, the user's labeling experience is improved, and the obtained labeling result is more accurate. In addition, by adopting different labeling methods for different labeled nodes, the data labeling process can be refined, and the accuracy of the obtained labeling results can be further improved. Furthermore, by continuing to execute the labeling process of the next node based on the labeling result of the current target node, the entire labeling process can be effectively completed.

[0110] A specific embodiment is given below to illustrate the technical solution of the embodiment of the present disclosure. Based on the above embodiment, the above method may include the following steps:

[0111] S1, obtaining a process execution instruction; the process execution instruction is used to characterize the labeling requirements of the data to be labeled;

[0112] S2, determining the annotation function according to the process execution instruction;

[0113] S3, determining corresponding at least two target nodes from a plurality of preset candidate nodes according to the labeling function;

[0114] S4, performing orchestration processing on at least two target nodes to generate a labeling process for the data to be labeled;

[0115] S5, generating a labeling form corresponding to the data to be labeled according to the form style;

[0116] S6, establishing a correspondence between manually annotated nodes and annotated forms;

[0117] S7, during the data annotation process, displaying an annotation form through a manual annotation node, and obtaining an annotation result of performing data annotation on the data to be annotated based on the annotation form;

[0118] S8, creating a corresponding process instance according to the marked process;

[0119] S9, creating node instances corresponding to each target node in the annotation process according to the process instance;

[0120] S10, detecting whether each target node is a manually labeled node according to each node instance, if so, executing S11, otherwise executing S12;

[0121] S11, converting the data to be annotated into an annotation task, and executing the annotation task according to the annotation process to obtain a first annotation result;

[0122] S12, performing data annotation on the data to be annotated according to the annotation process to obtain a second annotation result;

[0123] S13, performing data processing of the next target node on the data to be labeled according to the first labeling result or the second labeling result according to the labeling process, until the data processing of all target nodes in the labeling process is completed.

[0124] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0125] Based on the same inventive concept, the embodiment of the present disclosure also provides a data labeling system for implementing the above-mentioned data labeling method. The data labeling system may include all or part of a computer device, wherein the data output by the processor may be executed by an executor.

[0126] In one embodiment, Fig. 22 As shown, a data annotation system is provided, which may include:

[0127] The business module is used to obtain process execution instructions; the process execution instructions are used to characterize the labeling requirements of the data to be labeled;

[0128] A node process generation module is used to perform orchestration processing on at least two target nodes according to the process execution instruction to generate a labeling process for the data to be labeled; the target nodes are used to perform data processing on the data to be labeled;

[0129] The process executor is used to perform data annotation on the data to be annotated according to the annotation process to obtain the annotation results.

[0130] In another embodiment, another data annotation system is provided. Based on the above embodiment, the node process generation module includes:

[0131] A function determination unit, used to determine the marked function therein according to the process execution instruction;

[0132] A node determination unit, used to determine corresponding at least two target nodes from a plurality of preset candidate nodes according to the marking function;

[0133] The process generation unit is used to perform orchestration processing on at least two target nodes to generate a labeling process for the data to be labeled.

[0134] Optionally, the multiple candidate nodes include a data collection node, a data extraction node, a manual annotation node, a system annotation node, a manual quality inspection node, and a data notification node;

[0135] A data collection node is used to collect data through a preset data collection method to obtain a data set;

[0136] The data extraction node is used to extract data from the data set through a preset extraction strategy to obtain data to be labeled;

[0137] A manual labeling node, used to convert the data to be labeled into a labeling task and display the labeling task through a labeling form, and obtain a first labeling result obtained after executing the labeling task based on the labeling form;

[0138] A system annotation node, used to perform data annotation on the data to be annotated and obtain a second annotation result;

[0139] A manual quality inspection node is used to review the first annotation result and / or the second annotation result to obtain the annotation result corresponding to the data to be annotated;

[0140] The data notification node is used to notify the downstream application software of the annotation results.

[0141] In another embodiment, another data annotation system is provided. Based on the above embodiment, the annotation requirement includes a form style, and the process executor includes:

[0142] The form execution unit is used to perform data annotation on the data to be annotated according to the annotation form and annotation process corresponding to the form style to obtain the annotation result.

[0143] Optionally, the plurality of candidate nodes include manually annotated nodes, and the form execution unit includes:

[0144] Establishing a subunit for establishing a corresponding relationship between manually annotated nodes and annotated forms;

[0145] The display subunit is used to display the annotation form through the manual annotation node during the data annotation process, and to obtain the annotation result of the data to be annotated based on the annotation form.

[0146] Optionally, the above system further includes:

[0147] A form generation module is used to generate a labeling form corresponding to the data to be labeled according to the form style;

[0148] The form style is selected from a preset form component list, which includes a variety of preset form styles.

[0149] In another embodiment, another data annotation system is provided. Based on the above embodiment, the process executor includes:

[0150] The process processor is used to create the corresponding process instance according to the marked process;

[0151] A node processor is used to create node instances corresponding to each target node in the annotation process according to the process instance;

[0152] The node executor is used to perform data labeling on the data to be labeled according to each node instance and the labeling process to obtain the labeling results.

[0153] In another embodiment, another data annotation system is provided. Based on the above embodiment, the node executor includes:

[0154] A node detection unit, used to detect whether each target node is a manually labeled node according to each node instance, and obtain a detection result;

[0155] The subnode executor is used to perform data labeling on the data to be labeled according to each detection result and labeling process to obtain the labeling result.

[0156] Optionally, the above sub-node executor includes:

[0157] The artificial sub-node executor is used to convert the data to be labeled into a labeling task if the target node is a manually labeled node, and execute the labeling task according to the labeling process to obtain a first labeling result;

[0158] The system sub-node executor is used to perform data labeling on the data to be labeled according to the labeling process if the target node is a non-manually labeled node, so as to obtain a second labeling result.

[0159] Optionally, the above system further includes:

[0160] The loop execution module is used to perform data processing of the next target node on the labeled data according to the first labeling result or the second labeling result according to the labeling process until the data processing of all target nodes in the labeling process is completed.

[0161] The following is a sample diagram of the system architecture of a data annotation system. Fig.23As shown, the system includes a business layer, a process design and management layer, a node module, a form module, and a process execution driver layer. The business layer is the business module, which is used to provide a user interface for process management and execution, user interface entry, data annotation, and data quality inspection, and is directly oriented to platform users. The process design and management layer is a part of the node process generation module, which is mainly responsible for the technical bottom layer implementation of process design and management, and is used to receive process execution instructions issued by business layer users, and execute process storage, execution and other logic according to the instructions. The node module includes multiple candidate nodes (hereinafter referred to as nodes), which are responsible for the bottom layer technology implementation of node capabilities. Nodes are logically abstract data processing units, and each node contains different data processing capabilities; for example, data collection nodes have the ability to collect and store data, and manual annotation nodes have the ability to generate annotation form tasks and annotated data storage. Nodes have configurable properties and independent execution characteristics, and support N nodes to be arranged in order in permutations and combinations, and nodes are extensible. The form module is responsible for the underlying technical implementation of the annotation form configuration capability. It can have a built-in form component list, including a variety of different form styles. It can support users to drag and drop element components to build annotation forms in a customized form, and also supports external link forms implemented with other technologies. The process execution driver layer, that is, the process executor mentioned above, is responsible for the underlying technical implementation of process execution. It receives process execution instructions issued by users, creates process instances after receiving the instructions, manages node execution, and manages process and node execution results.

[0162] For the specific limitations of the data labeling system, please refer to the limitations of the data labeling method above, which will not be repeated here.

[0163] Each module in the above data annotation system can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in the data annotation system in the form of hardware, or can be stored in a memory in the data annotation system in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0164] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0165] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0166] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0167] It should be noted that the users and their information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the users or fully authorized by all parties.

[0168] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the embodiments of the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0169] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0170] The above-described embodiments only express several implementation methods of the embodiments of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the embodiments of the present disclosure, and these all belong to the protection scope of the embodiments of the present disclosure. Therefore, the protection scope of the patent of the embodiments of the present disclosure shall be subject to the attached claims.

Claims

1. A data labeling method, characterized in that: The method comprises: Obtaining a process execution instruction; the process execution instruction is used to characterize the labeling requirements of the data to be labeled; Arrange and process at least two target nodes according to the process execution instruction to generate a labeling process for the data to be labeled; the target node is used to perform data processing on the data to be labeled; Perform data annotation on the data to be annotated according to the annotation process to obtain an annotation result.

2. The method according to claim 1, characterized in that The step of performing arrangement processing on at least two target nodes according to the process execution instruction to generate the labeling process of the data to be labeled includes: Executing instructions according to the process to determine the marking function therein; Determine at least two corresponding target nodes from a plurality of preset candidate nodes according to the labeling function; The at least two target nodes are arranged and processed to generate a labeling process for the data to be labeled.

3. The method according to claim 2, characterized in that The annotation requirement includes a form style, and performing data annotation on the data to be annotated according to the annotation process to obtain an annotation result includes: Data annotation is performed on the data to be annotated according to the annotation form corresponding to the form style and the annotation process to obtain an annotation result.

4. The method according to claim 3, characterized in that The multiple candidate nodes include manually annotated nodes, and the step of performing data annotation on the data to be annotated according to the annotation form corresponding to the form style and the annotation process to obtain an annotation result includes: Establishing a corresponding relationship between the manually annotated nodes and the annotated form; In the process of performing data annotation, the annotation form is displayed through the manual annotation node, and the annotation result of performing data annotation on the data to be annotated is obtained based on the annotation form.

5. The method according to claim 3, characterized in that: The method further comprises: Generate a labeling form corresponding to the data to be labeled according to the form style; The form style is selected from a preset form component list, and the form component list includes a plurality of preset form styles.

6. The method according to any one of claims 1 to 5, characterized in that: The performing data labeling on the data to be labeled according to the labeling process to obtain the labeling result includes: Create a corresponding process instance according to the marked process; Creating a node instance corresponding to each target node in the annotation process according to the process instance; Data labeling is performed on the data to be labeled according to each of the node instances and the labeling process to obtain a labeling result.

7. The method according to claim 6, characterized in that The performing data labeling on the to-be-labeled data according to each of the node instances and the labeling process to obtain a labeling result includes: Detecting whether each of the target nodes is a manually labeled node according to each of the node instances, and obtaining a detection result; Data annotation is performed on the data to be annotated according to each of the detection results and the annotation process to obtain an annotation result.

8. The method according to claim 7, characterized in that The performing data labeling on the data to be labeled according to each of the detection results and the labeling process to obtain the labeling result includes: If the target node is a manually labeled node, converting the to-be-labeled data into a labeling task, and executing the labeling task according to the labeling process to obtain a first labeling result; If the target node is a non-manually labeled node, data labeling is performed on the data to be labeled according to the labeling process to obtain a second labeling result.

9. The method according to claim 8, characterized in that The method further comprises: According to the first labeling result or the second labeling result, data processing of the next target node is performed on the data to be labeled according to the labeling process until data processing of all target nodes in the labeling process is completed.

10. A data annotation system, characterized in that: The data labeling method according to any one of claims 1 to 9, wherein the system comprises: A business module, used to obtain a process execution instruction; the process execution instruction is used to characterize the labeling requirements of the data to be labeled; A node process generation module, used for performing arrangement processing on at least two target nodes according to the process execution instruction to generate a labeling process for the data to be labeled; the target node is used for performing data processing on the data to be labeled; A process executor is used to perform data labeling on the data to be labeled according to the labeling process to obtain a labeling result.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Data labeling method and device

    CN113157170A

  • Task distribution method and system, electronic equipment and medium

    CN113434266A

  • Data labeling method and device, computer equipment and storage medium

    CN114049631A

  • Data labeling method and device

    CN114090534A

  • Process arrangement method and system, medium and computer program product

    CN114428613A