Method, device, equipment and storage medium for verifying labeled data
By adding verification rule information to the annotation page and performing data verification, the problem of low data annotation quality is solved, and efficient data verification and quality assurance are achieved.
Patent Information
- Application Number
- CN202111186360.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-12
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2041-10-12
AI Technical Summary
In the existing technology, the quality requirements for data annotation are getting higher and higher, but there is a lack of effective verification mechanism, resulting in low accuracy of labeled data and long review time.
By adding verification rule information to the annotation page, the annotation data is obtained and verified according to the verification rules, including configuring verification scripts, trigger scripts and verification properties, supporting flexible configuration of verification types and trigger conditions, and providing verification and prompt mechanisms.
It improves the accuracy of labeled data, reduces review time, and ensures that the quality of labeled data meets requirements.
Smart Images

Figure CN113934708B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the field of artificial intelligence technologies such as cloud computing and data annotation. Background Art
[0002] The Artificial Intelligence (AI) industry is booming, and data labeling is a key component of the AI data services industry that is strongly dependent on data production. As the AI industry continues to flourish, various sub-sectors are placing increasingly high demands on the quality of data labeling. Summary of the Invention
[0003] The present disclosure provides a method, apparatus, device, and storage medium for verifying labeled data.
[0004] According to one aspect of the present disclosure, a method for verifying annotation data is provided, comprising: adding verification rule information corresponding to an annotation page to the annotation page, wherein the annotation page includes at least one annotation title, and the verification rule information corresponds to the at least one annotation title; obtaining annotation data of the at least one annotation title; and verifying the annotation data according to the verification rule information in the annotation page.
[0005] According to another aspect of the present disclosure, a device for verifying annotation data is provided, comprising: an adding module for adding verification rule information corresponding to an annotation page to the annotation page, wherein the annotation page includes at least one annotation title, and the verification rule information corresponds to the at least one annotation title; an acquiring module for obtaining annotation data of the at least one annotation title; and a verifying module for verifying the annotation data according to the verification rule information in the annotation page.
[0006] Another aspect of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method shown in the embodiment of the present disclosure.
[0007] According to another aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method shown in the embodiment of the present disclosure.
[0008] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program / instruction, wherein the computer program / instruction implements the steps of the method shown in the embodiment of the present disclosure when executed by a processor.
[0009] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.
[0011] Figure 1 Schematic diagram of an application scenario of the method, device, electronic device, and storage medium for verifying labeled data according to an embodiment of the present disclosure;
[0012] Figure 2 The following schematically shows a flow chart of a method for verifying labeled data according to an embodiment of the present disclosure;
[0013] Figure 3 A flowchart of a method for adding verification rule information to a marked page according to an embodiment of the present disclosure is schematically shown;
[0014] Figure 4 A flowchart of a method for obtaining annotation data of at least one annotation topic according to an embodiment of the present disclosure is schematically shown;
[0015] Figure 5 The following schematically shows a flow chart of a method for verifying labeled data according to an embodiment of the present disclosure;
[0016] Figure 6 Schematically shows a flow chart of a method for verifying labeled data according to another embodiment of the present disclosure;
[0017] Figure 7 The following schematically shows a method for verifying labeled data according to an embodiment of the present disclosure;
[0018] Figure 8 A block diagram schematically illustrates an apparatus for verifying labeled data according to an embodiment of the present disclosure;
[0019] Figure 9 A block diagram schematically illustrates an example electronic device that may be used to implement embodiments of the present disclosure. DETAILED DESCRIPTION
[0020] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0021] The following will be combined Figure 1 The application scenarios of the method and device for verifying and labeling data provided by the present disclosure are described.
[0022] Figure 1 Schematic diagram of an application scenario of the method, device, electronic device and storage medium for verifying and labeling data according to an embodiment of the present disclosure.
[0023] like Figure 1 As shown, the application scenario 100 includes a configuration page 110 , a marking page 120 and a database 130 .
[0024] According to an embodiment of the present disclosure, the configuration page 110 can be used to configure the verification rule information required for the annotation project / task. In this embodiment, a annotation project may include one or more tasks, each task may correspond to a annotation page 120, and each annotation page 120 may include one or more annotation topics. Exemplarily, the annotation topics may include image annotation, video annotation, voice transcription annotation, OCR (Optical Character Recognition) annotation, autonomous driving training data annotation, and other annotation topics. Annotation methods may include, for example, picture frames, punctuation, lines, setting attributes, and the like.
[0025] According to an embodiment of the present disclosure, a user can configure verification rule information for each annotation topic in the annotation page 120 through the configuration page 110. The verification rule information may include, for example, the verification type, verification trigger condition, verification code, etc. of the annotation topic.
[0026] After completing the configuration of the verification rule information, the verification rule information can be stored in the database 130. According to an embodiment of the present disclosure, a rule base master table and a project / task rule table can be set in the database 130. The rule base master table can contain all verification rule information, with each record representing an independent verification rule, including information such as the verification code of the verification rule. The project / task rule table can contain the association between projects / tasks and verification rules, and the verification rules required for the project / task can be freely configured through this table.
[0027] It should be noted that, in addition to the rule base master table and the project / task rule table, the database may also include other data tables, which are not specifically limited in this disclosure. For example, the database may also include a rule permission table for recording permission information for each verification rule, where the permission information can be used to specify which users have access rights or modification rights, etc.
[0028] For example, in this embodiment, the database 130 may be a relational database, such as a MySQL database. It should be noted that the present disclosure does not specifically limit the type of the database 130 .
[0029] According to an embodiment of the present disclosure, verification rule information corresponding to each annotation topic in the annotation page 120 can be obtained from the database 130. This verification rule information is added to the annotation page 120. When a user annotates an annotation topic in the annotation page 120, the annotation data of the annotation topic can be obtained, and then the annotation data can be verified according to the verification rule information in the annotation page 120.
[0030] In the technical solution disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of the verification data involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0031] Figure 2 The flowchart of the method for verifying labeled data according to an embodiment of the present disclosure is schematically shown.
[0032] like Figure 2 As shown, the method 200 for verifying the annotated data includes, in operation S210, adding verification rule information corresponding to the annotated page to the annotated page.
[0033] According to an embodiment of the present disclosure, the annotation page may include at least one annotation topic, and the verification rule information corresponds to the at least one annotation topic. The verification rule information includes information related to the verification rule corresponding to the annotation topic.
[0034] Then, in operation S220, the annotation data of at least one annotation topic is obtained.
[0035] According to an embodiment of the present disclosure, the annotation data may include, for example, points, lines, and boxes marked by the user in the annotation topic, as well as attribute values selected by the user, data input, and the like.
[0036] In operation S230 , the annotated data is verified according to the verification rule information in the annotated page.
[0037] According to an embodiment of the present disclosure, by adding verification rule information to the annotation page, the annotation data is verified according to the verification rule information in the annotation page during the annotation stage, which can improve the accuracy of the annotation data and reduce the review time of the annotation data.
[0038] According to an embodiment of the present disclosure, the verification rule information may include, for example, a verification type, a verification trigger condition, and a verification code corresponding to at least one annotation title in the annotation page. The verification rule information supports flexible configuration, and the verification type, verification trigger condition, and verification code can be customized according to actual needs. Based on this, Figure 3 A flowchart of a method for adding verification rule information to a marked page according to an embodiment of the present disclosure is schematically shown.
[0039] like Figure 3 As shown, the method 310 for adding verification rule information to an annotation page includes configuring a verification script for the annotation page according to the verification code in operation S311.
[0040] According to the embodiment of the present disclosure, a verification script suitable for the annotation page can be generated based on the verification code. Then, the object used to describe the script in the annotation page is determined based on the DOM (Document Object Model) of the annotation page, such as <script>元素。然后将校验代码添加至该对象中。或者,也可以根据标注页面的DOM,在标注页面中新增一个对象,例如新增一个<script>元素,然后将校验脚本添加至该新增的对象中。
[0041] 在操作S312,根据与每个标注题目对应的校验触发条件,为标注页面配置与每个标注题目对应的触发脚本。
[0042] 根据本公开的实施例,与校验脚本类似的,可以将触发脚本添加至标注页面中已存在的对象中,也可以在标注页面中新建一个对象保存触发脚本。需要说明的是,校验脚本和触发脚本可以保存于同一对象中,也可以保存于不同对象中,本公开对此不作限定。
[0043] 在操作S313,根据与每个标注题目对应的校验类型,为标注题目配置校验属性。
[0044] 需要说明的是,图3中操作S311~S313之间的执行顺序仅为示例,在实际应用中,操作S311~S313之间可以以任意顺序执行。另外,操作S311~S313可以以线性的方式分别执行也可以以并行的方式同时执行,本公开对此不作具体限定。
[0045] 根据本公开的实施例,可以利用DOM方法,为标注页面中的标注题目配置校验属性,其中,校验属性的值可以用于表示对应标注题目的校验类型。
[0046] 根据本公开的实施例,校验类型例如可以包括页级别校验类型和题目级别校验类型。其中,对于校验时具有关联关系的标注题目可以配置为页级别校验类型。对于标注页面中页级别校验类型的标注题目,可以统一收集这些标注题目的标注数据,然后进行关联校验。对于题目级别校验类型的标注题目可以单独进行校验。根据本公开的实施例,题目级别校验类型例如可以包括框校验(rectMark)、语法校验(parsing)、文本校验(text)、单校验(single)、多校验(multi)等。其中,框校验例如可以用于对标注框的大小、是否重叠等进行校验。语法校验例如可以用于对标注数据的语法进行校验。文本校验例如可以用于对标注数据中的文本数据进行校验。
[0047] 图4示意性示出了根据本公开的实施例的获取至少一个标注题目的标注数据的方法的流程图。
[0048] 如图4所示,该获取至少一个标注题目的标注数据的方法420包括在操作S421,针对每个标注题目,利用与标注题目对应的触发脚本检测标注页面中的操作是否满足标注题目的校验触发条件。
[0049] 在操作S422,在满足标注题目的触发条件的情况下,获取标注题目的标注数据。
[0050] 根据本公开的实施例,触发条件例如可以包括以下至少之一:针对标注题目的标注操作被触发、针对标注题目的标注操作已完成以及数据提交操作被触发。其中,标注操作例如可以包括对标注题目进行标注的操作。数据提交操作例如可以包括将与标注页面中已作答的标注题目对应的标注数据进行提交的操作。
[0051] 需要说明的是,根据实际需要,还可以将触发条件配置为包括其他条件。例如,在进行标注后还存在质检环节的情况下,还可以将触发条件配置为包括质检操作被触发或质检提交操作被触发。再例如,在进行标注后还存在审核环节的情况下,还可以将触发条件配置为包括审核操作被触发或审核提交操作被触发。又例如,在进行标注后还存在考试环节的情况下,还可以将触发条件配置为包括考试操作被触发或考试提交操作被触发。
[0052] 图5示意性示出了根据本公开的实施例的对标注数据进行校验的方法的流程图。
[0053] 如图5所示,该将校验规则信息加入标注页面的方法530包括在操作S531,针对满足触发条件的每个标注题目,根据标注题目的校验属性,确定与标注题目对应的校验脚本。
[0054] 在操作S532,调用校验脚本,对标注题目的标注数据进行校验。
[0055] 根据本公开的实施例,通过标注题目的校验属性,可以确定该标注题目所对应的校验类型。从而可以调用与该校验类型对应的校验脚本对该标注题目的标注数据进行校验。例如,通过标注题目的校验属性,可以确定该标注题目所对应的校验类型为框校验,则可以调用针对框校验的校验脚本对该标注题目的标注数据进行校验。
[0056] 根据本公开的另一些实施例,除了与标注页面中的至少一个标注题目对应的校验类型、校验触发条件和校验代码之外,校验规则信息还包括提示配置信息。基于此,图6示意性示出了根据本公开另一实施例的校验标注数据的方法的流程图。
[0057] 如图6所示,该方法600包括在操作S610,获取与标注页面对应的校验规则信息。
[0058] 在操作S620,根据校验代码,为标注页面配置校验脚本。
[0059] 在操作S630,根据与每个标注题目对应的校验触发条件,为标注页面配置与每个标注题目对应的触发脚本。
[0060] 在操作S640,根据与每个标注题目对应的校验类型,为标注题目配置校验属性。
[0061] 在操作S650,根据提示配置信息,为标注页面配置提示脚本。
[0062] 在操作S660,获取至少一个标注题目的标注数据。
[0063] 在操作S670,根据标注页面中的校验规则信息,对标注数据进行校验。
[0064] 在操作S680,在至少一个标注题目中的任意一个标注题目的标注数据未通过校验的情况下,利用提示脚本生成针对标注题目的提示信息。
[0065] 根据本公开的实施例,操作S610~S640和操作S660~S670例如可以参考上文在此不再赘述。
[0066] 需要说明的是,图6中操作S620~S650之间的执行顺序仅为示例,在实际应用中,操作S620~S650之间可以以任意顺序执行。另外,操作S620~S650可以以线性的方式分别执行也可以以并行的方式同时执行,本公开对此不作具体限定。
[0067] 根据本公开的实施例,可以通过提示配置信息设置每个标注题目的在校验未通过时的提示方式。其中,提示方式例如可以包括展示文字提示信息、展示提示窗、高亮展示未通过校验的标注题目等等,本公开对此不作具体限定。
[0068] 根据本公开的实施例,通过在标注题目的标注数据未通过校验的情况下,利用提示脚本生成针对标注题目的提示信息,可以提示用户未通过校验的标注题目,从而方便用户对该标注题目进行重新标注。
[0069] 下面参考图7,结合具体实施例对上文所示的校验标注数据的方法做进一步说明。本领域技术人员可以理解,以下示例实施例仅用于理解本公开,本公开并不局限于此。
[0070] 图7示意性示出了根据本公开的实施例的校验标注数据的方法示意图。
[0071] 在图7中示出了,用户可以通过配置页面对标注页面中各标注题目的校验类型、校验触发条件、校验代码、提示配置信息等进行配置,生成与标注页面对应的校验规则信息。然后可以将该校验规则信息存储至数据库中。
[0072] 接下来,可以从数据库中获取与标注页面对应的校验规则信息,将校验规则信息校验类型、校验触发条件、校验代码、提示配置信息等加入标注页面中。
[0073] 作为一个可选的实施例,标注页面中包含页级别类型的标注题目,这些页级别类型的标注题目的触发条件被配置为数据提交时触发。基于此,当标注页面中的数据提交操作被触发时,可以获取所有页级别类型的标注题目的标注数据,然后调用与页级别类型对应的校验脚本对这些标注数据进行统一校验。
[0074] 作为另一个可选的实施例,在标注页面中包含题目级别类型的标注题目,这些题目级别类型的标注题目的触发条件被配置为进行标注时触发。基于此,当标注页面中的针对某一标注题目的标注操作被触发时,可以获取该标注题目的标注数据,然后根据该标注数据被配置的校验属性,确定对应的校验脚本,然后调用该校验脚本对该标注数据进行校验。
[0075] 图8示意性示出了根据本公开实施例的校验标注数据的装置的框图。
[0076] 如图8所示,校验标注数据的装置800包括加入模块810、获取模块820和校验模块830。
[0077] 加入模块810,用于将与标注页面对应的校验规则信息加入标注页面,其中,标注页面包括至少一个标注题目,校验规则信息与至少一个标注题目对应。
[0078] 获取模块820,用于获取至少一个标注题目的标注数据。
[0079] 校验模块830,用于根据标注页面中的校验规则信息,对标注数据进行校验。
[0080] 作为一个可选的实施例,校验规则信息例如可以包括与至少一个标注题目对应的校验类型、校验触发条件和校验代码。加入模块例如可以包括第一配置子模块、第二配置子模块和第三配置子模块。其中,第一配置子模块,可以用于根据校验代码,为标注页面配置校验脚本。第二配置子模块,可以用于根据与每个标注题目对应的校验触发条件,为标注页面配置与每个标注题目对应的触发脚本。第三配置子模块,可以用于根据与每个标注题目对应的校验类型,为标注题目配置校验属性。
[0081] 作为一个可选的实施例,获取模块例如可以包括检测子模块以及获取子模块。其中,检测子模块,可以用于针对每个标注题目,利用与标注题目对应的触发脚本检测标注页面中的操作是否满足标注题目的校验触发条件。获取子模块,可以用于在满足标注题目的触发条件的情况下,获取标注题目的标注数据。
[0082] 作为一个可选的实施例,标注题目的触发条件例如可以包括以下至少之一:针对标注题目的标注操作被触发、针对标注题目的标注操作已完成以及数据提交操作被触发。
[0083] 作为一个可选的实施例,校验模块例如可以包括确定子模块以及调用子模块。其中,确定子模块,可以用于针对满足触发条件的每个标注题目,根据标注题目的校验属性,确定与标注题目对应的校验脚本。调用子模块,可以用于调用校验脚本,对标注题目的标注数据进行校验。
[0084] 作为一个可选的实施例,校验规则信息例如还可以包括提示配置信息。校验标注数据的装置还包括第四配置模块以及提示模块。其中,第四配置模块,可以用于根据提示配置信息,为标注页面配置提示脚本。提示模块,可以用于在至少一个标注题目中的任意一个标注题目的标注数据未通过校验的情况下,利用提示脚本生成针对标注题目的提示信息。
[0085] 根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。
[0086] 图9示意性示出了可以用来实施本公开的实施例的示例电子设备900的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和 / 或者要求的本公开的实现。
[0087] 如图9所示,设备900包括计算单元901,其可以根据存储在只读存储器(ROM)902中的计算机程序或者从存储单元908加载到随机访问存储器(RAM)903中的计算机程序,来执行各种适当的动作和处理。在RAM 903中,还可存储设备900操作所需的各种程序和数据。计算单元901、ROM 902以及RAM 903通过总线904彼此相连。输入 / 输出(I / O)接口905也连接至总线904。
[0088] 设备900中的多个部件连接至I / O接口905,包括:输入单元906,例如键盘、鼠标等;输出单元907,例如各种类型的显示器、扬声器等;存储单元908,例如磁盘、光盘等;以及通信单元909,例如网卡、调制解调器、无线通信收发机等。通信单元909允许设备900通过诸如因特网的计算机网络和 / 或各种电信网络与其他设备交换信息 / 数据。
[0089] 计算单元901可以是各种具有处理和计算能力的通用和 / 或专用处理组件。计算单元901的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元901执行上文所描述的各个方法和处理,例如校验标注数据的方法。例如,在一些实施例中,校验标注数据的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元908。在一些实施例中,计算机程序的部分或者全部可以经由ROM 902和 / 或通信单元909而被载入和 / 或安装到设备900上。当计算机程序加载到RAM 903并由计算单元901执行时,可以执行上文描述的校验标注数据的方法的一个或多个步骤。备选地,在其他实施例中,计算单元901可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行校验标注数据的方法。
[0090] 本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和 / 或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和 / 或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。
[0091] 用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和 / 或框图中所规定的功能 / 操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。
[0092] 在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
[0093] 为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。
[0094] 可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。
[0095] 计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。
[0096] 服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务(Virtual Private Server,或简称VPS)中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。
[0097] 应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。
[0098] 上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。< / script>
Claims
1. A method for verifying labeled data, comprising: Adding verification rule information corresponding to the annotated page to the annotated page, wherein the annotated page includes at least one annotated title, and the verification rule information corresponds to the at least one annotated title; Obtaining the annotation data of the at least one annotation topic; and Verify the marked data according to the verification rule information in the marked page, The verification rule information includes a verification type, a verification trigger condition, and a verification code corresponding to the at least one annotation topic, and The step of adding the verification rule information to the annotation page includes: Generate a verification script applicable to the annotation page according to the verification code, and add the verification script to an object in the annotation page for describing a script, wherein adding the verification script to an object in the annotation page for describing a script includes: adding the verification script to an object already existing in the annotation page, or adding a new object to the annotation page and then adding the verification script to the new object; Configuring a trigger script corresponding to each annotation topic for the annotation page according to a verification trigger condition corresponding to each annotation topic, wherein configuring a trigger script corresponding to each annotation topic for the annotation page comprises: adding the trigger script to an existing object in the annotation page, or adding a new object to the annotation page and then adding the trigger script to the new object; and According to the verification type corresponding to each of the annotation topics, verification attributes are configured for the annotation topics.
2. The method according to claim 1, wherein The obtaining of the annotation data of the at least one annotation topic includes: For each of the annotation topics, using a trigger script corresponding to the annotation topic to detect whether an operation in the annotation page satisfies a verification trigger condition of the annotation topic; and When a trigger condition for marking the topic is met, the marking data of the marking topic is obtained.
3. The method according to claim 2, wherein: The triggering conditions for marking the title include at least one of the following: A marking operation for the marking topic is triggered; The marking operation for the marking topic has been completed; and The data submission operation is triggered.
4. The method according to claim 1, wherein Verifying the annotated data according to the verification rule information in the annotated page includes: For each annotation topic that meets the trigger condition, determining a verification script corresponding to the annotation topic according to the verification attribute of the annotation topic; and The verification script is called to verify the labeled data of the labeled title.
5. The method according to claim 1, wherein The verification rule information also includes prompt configuration information; the method further includes: Configuring a prompt script for the annotation page according to the prompt configuration information; and When the annotation data of any one of the at least one annotation topic fails to pass verification, prompt information for the annotation topic is generated using the prompt script.
6. A device for verifying labeled data, comprising: an adding module, configured to add verification rule information corresponding to a marked page to the marked page, wherein the marked page includes at least one marked topic, and the verification rule information corresponds to the at least one marked topic; an acquisition module, configured to acquire the annotation data of the at least one annotation topic; and A verification module is used to verify the marked data according to the verification rule information in the marked page, The verification rule information includes a verification type, a verification trigger condition, and a verification code corresponding to the at least one annotation topic, and Wherein, the joining module includes: A first configuration submodule is configured to generate a verification script applicable to the annotation page based on the verification code, and add the verification script to an object in the annotation page used to describe the script, wherein adding the verification script to the object in the annotation page used to describe the script includes: adding the verification script to an object already existing in the annotation page, or adding a new object to the annotation page and then adding the verification script to the new object; A second configuration submodule is configured to configure a trigger script corresponding to each annotation topic for the annotation page according to a verification trigger condition corresponding to each annotation topic, wherein configuring the trigger script corresponding to each annotation topic for the annotation page includes: adding the trigger script to an existing object in the annotation page, or adding a new object to the annotation page and then adding the trigger script to the new object; and The third configuration submodule is configured to configure a verification attribute for each annotation topic according to a verification type corresponding to each annotation topic.
7. The device according to claim 6, wherein The acquisition module includes: a detection submodule, configured to detect, for each of the annotation topics, using a trigger script corresponding to the annotation topic to detect whether an operation in the annotation page satisfies a verification trigger condition of the annotation topic; and The acquisition submodule is used to acquire the annotation data of the annotation topic when the triggering condition of the annotation topic is met.
8. The device according to claim 7, wherein The triggering conditions for marking the title include at least one of the following: A marking operation for the marking topic is triggered; The marking operation for the marking topic has been completed; and The data submission operation is triggered.
9. The device according to claim 6, wherein The verification module includes: a determination submodule, configured to determine, for each annotation topic that meets the trigger condition, a verification script corresponding to the annotation topic according to the verification attribute of the annotation topic; and The calling submodule is used to call the verification script to verify the labeled data of the labeled title.
10. The device according to claim 6, wherein The verification rule information also includes prompt configuration information; the device also includes: a fourth configuration module, configured to configure a prompt script for the annotation page according to the prompt configuration information; and The prompt module is used to generate prompt information for any one of the at least one marked topic using the prompt script when the marked data of the at least one marked topic fails to pass the verification.
11. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.
13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Interactive method for processing image marking tasks based on crowdsourcing platform
CN107273492A