A method for constructing an event annotation system for multi-level annotators based on crowdsourcing technology

By building an event annotation system for multi-level annotators, using predefined entity databases and event information databases, and combining crowdsourcing technology and aggregation algorithms, we solve the problem that the existing system cannot effectively handle long text multi-event annotation and achieve high efficiency. , quality event annotation and dataset export.

CN114281998BActive Publication Date: 2024-09-24LIAONING UNIVERSITY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202111624377.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-24
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

Existing manual annotation systems based on crowdsourcing technology cannot make full use of the background knowledge of domain experts and cannot effectively handle multiple event annotations in long texts, resulting in difficulty in unifying annotation quality, cost, and efficiency.

Method used

Build an event annotation system for multi-level annotators. Through predefined entity database and event information database, trigger word filtering and sentence processing technology are used to achieve efficient storage and visual query of large-scale corpora, combined with single annotation and majority voting. and group cognitive aggregation algorithm, which performs task allocation and result aggregation for annotators with different professional levels.

Benefits of technology

It effectively improves the quality and efficiency of event annotation, maximizes the use of the annotator's background knowledge, and achieves efficient processing of multi-level annotation and high-quality export of data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114281998B
    Figure CN114281998B
Patent Text Reader

Abstract

The present invention relates to a construction method of an event annotation system for multi-level annotators based on crowdsourcing technology, comprising the following steps: 1. Collecting domain data and constructing a complete entity library and event information library; 2. Preprocessing the corpus and constructing a complete access mechanism for the corpus to be annotated: filtering out invalid texts and performing sentence processing; 3. Constructing a complete annotation mechanism, first performing entity annotation and then performing event annotation; 4. Constructing a complete crowdsourcing task allocation mechanism and a crowdsourcing result aggregation mechanism; 5. Constructing a complete data set export mechanism, dynamically regulating and constructing the required event extraction data set according to the data set format required by the downstream event extraction model. The present invention can effectively apply a variety of crowdsourcing technologies to the annotation process of annotators with different professional degrees, thereby effectively utilizing the background knowledge of the annotators and maximizing the role of crowdsourcing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of natural language processing, and in particular relates to a method for constructing an event annotation system for multi-level annotators based on crowdsourcing technology, and specifically relates to a method for storing a large-scale corpus, visually querying, allocating multi-level crowdsourcing tasks, and annotating event information from the corpus and exporting a data set. Background Art

[0002] Text annotation is a fundamental task in the field of natural language processing. As most existing natural language processing models are based on machine learning or deep learning, a large amount of high-quality text (or corpus) is required for model training to ensure the accuracy and effectiveness of the model in processing various natural language processing tasks. Manually annotating text can form standardized corpus, reduce the difficulty of natural language processing model training, and help improve the accuracy and effectiveness of the model.

[0003] In recent years, the manual annotation of text is often combined with crowdsourcing technology to improve the quality and efficiency of domain data annotation and reduce annotation costs. Specifically, since corpora are usually established based on domain data by inviting domain experts to serve as annotators, for example, experts in the financial field are invited to manually annotate financial texts (such as financial news or announcements) and build a financial domain corpus. Therefore, the annotation system can be combined with crowdsourcing technology to manually annotate text data in a certain field in batches to improve annotation efficiency, reduce annotation costs, and ensure the quality of annotation, thereby building a high-quality domain corpus.

[0004] There are two main problems with the existing manual annotation systems based on crowdsourcing technology: First, crowdsourcing technology is too single. When facing annotators of different professional levels, the existing manual annotation systems usually adopt the same annotation process, which cannot fully utilize the background knowledge of domain experts in the annotation process, and cannot achieve a true balance in manpower and material resources. The key to the success of crowdsourcing tasks lies in achieving the maximum unity of data annotation quality, manual annotation cost, and annotation efficiency. Second, it is impossible to annotate long texts with multiple events. A long text usually contains a large number of entity nouns, complex sentence structures, etc., and there are also multiple events (an event refers to a series of activities carried out around a certain theme in a specific time and space and participated by one or more roles (event subjects)). For example, a financial news may contain multiple events belonging to the same financial event type, or multiple events belonging to different financial event types. The existing manual annotation system cannot process such long texts at the chapter level and mark multiple events in the text at the same time. Therefore, it is very necessary to build an event annotation system based on crowdsourcing technology for multi-level annotators to achieve efficient access, visual display, and accurate annotation of large-scale corpora to improve the performance of event annotation systems. Summary of the invention

[0005] In order to solve the shortcomings of the existing crowdsourcing data annotation system, the present invention provides a method for constructing an event annotation system for multi-level annotators based on crowdsourcing technology.

[0006] The technical solution adopted by the present invention is:

[0007] Step 1 collects domain data and builds a complete entity library and event information library. The entity library contains common entity types in named entity recognition tasks (such as names, place names, organization names, etc.), and the event information library contains a variety of financial event types and a set of event argument roles (also called event element roles) corresponding to each event type and their ancillary information. Each event type has a predefined set of trigger words. The appearance of trigger words can represent the occurrence of events of the corresponding type, so that the corpus can be filtered and events can be classified in the data preprocessing stage; each event type has a predefined set of event argument roles. The task of event annotation is to annotate event arguments that match the event argument roles from the text to fill in the complete event information; each event type has a predefined set of key event argument roles, which belong to the event argument role set. The key event argument roles must be annotated during the annotation process, otherwise the annotation results cannot be submitted; each event type has a predefined submission threshold. After the annotation is completed, the number of annotated event arguments must exceed the submission threshold, otherwise it cannot be submitted; the setting of key event argument roles and submission thresholds simply and effectively improves the annotation quality.

[0008] For event annotation tasks, it is necessary to first pre-build an authoritative entity library and an event information library approved by experts. Entity refers to words with specific meaning or strong referentiality in the text, which are generally divided into three categories (entity, time, number) or seven subcategories (name, place name, organization name, time, date, currency, percentage). The seven-subcategory classification method is used in the experiment of this invention. The entity type library is shown in Table 1.

[0009] Table 1 Entity type library

[0010]

[0011] Event extraction is the process of extracting events of interest to users from unstructured text information and presenting them to users in a structured form. Any event has its own event type and supporting event arguments (event arguments refer to certain entities in the text, which match the event argument roles under the corresponding event type). Therefore, in the event annotation task, a professional event information database must be constructed. The present invention constructs a complete event information database for financial field data, and predefines fourteen event types, including asset restructuring, debt default, equity transfer-equity transfer, bankruptcy liquidation, major asset losses, major external compensation, major safety accidents, equity freeze, equity pledge, shareholder increase, shareholder reduction, etc. The number of event argument roles corresponding to each event type is different. The schematic diagram of the financial event information database constructed in the experiment of the present invention is shown in the figure. Figure 3 shown.

[0012] Step 2: Preprocess the corpus and build a complete access mechanism for the corpus to be annotated. Before uploading the corpus, the corpus must be preprocessed to filter out invalid text (text that does not contain events) and process the corpus into sentences (most of the deep learning models in the field of natural language processing currently use sentences as units for vector representation).

[0013] Before uploading the corpus, the corpus must be preprocessed, the corpus must be classified according to event types, and invalid texts (texts that do not contain events) must be filtered out. In the experiment of the present invention, this step is implemented based on querying custom trigger words, and the trigger words can dynamically represent the core words of the event, such as "Announced on December 30, 2019, Shenyang A Company announced the acquisition of Shenyang B Company for RMB 550 million. The project has constituted a major asset reorganization, and relevant information is continuing to advance! On November 29, 2020, the company announced that it plans to increase its holdings by RMB 150 million.", "Once the news broke, it immediately caused quite a stir in the industry." In this sentence, "acquisition" and "increase in holdings" respectively triggered two financial event types, "asset reorganization" and "shareholder increase in holdings", so that the text can be classified and filtered according to the trigger words. The trigger words for each type of financial event are not unique, and can be synonyms or similar words. Although filtering text based on custom query trigger words will result in a high text discard rate, it improves the quality of the existing text to a certain extent, facilitates subsequent annotation by annotators, and improves the quality of the generated dataset.

[0014] Before uploading the corpus, the corpus must be preprocessed and the corpus must be sentence-segmented. In the experiment of the present invention, the processing of this step is to segment sentences with terminators (full-width) such as ".", "?", "!", etc. Before this, the half-width symbols in the text must be converted into full-width symbols and a large number of spaces and other blank spaces in the text must be removed. When the sentence segmented by the terminator is too long, the text should be segmented according to the value of the "maximum sentence length", where the "maximum sentence length" can be dynamically adjusted according to the needs of the model in the downstream event extraction task.

[0015] After completing the preprocessing of the corpus, the corpus can be stored in the database (upload the corpus). Since the text in the corpus is unstructured data and has no fixed format, each text can be processed into json format and a json object can be created. In addition to the preprocessed text content, the object entry can also add text-related information such as text title and text time to form a complete json text object. The storage database used in the experiment of the present invention is MySQL, and the processed json object is used as a variable-length string type attribute combined with other text attributes to form a tuple in the database table and stored in the database.

[0016] The text table designed in the experiment of the present invention is shown in Table 2, wherein "id" is the primary key; "text_num" is the text number. Unlike the primary key, this field is not unique. For example, the "text_num" in the first and fourth rows of records in the example text table are exactly the same. This field is established to contain texts of multiple events. The specific usage is described in the subsequent crowdsourcing task allocation and data set export module; "type_name" is the event type corresponding to the text, and a text can correspond to multiple event types; "text_ner_status" and "text_event_status" both indicate the annotation status of the text, and are fields that need to be used under the single annotation mechanism. The specific usage is described in step 4 mechanism one; "text_content" is the information of the text, which is stored in the json object described above, including text content, text time, text title, text number and other text attributes. For example, the "text_content" field corresponding to the text with "id" 1 in Table 2 is "{"sentences":["Announced on December 30, 2014, Shenyang A Company announced the acquisition of Shenyang B Company for RMB 550 million. ","This project has constituted a major asset reorganization, and relevant information is being continuously promoted! "],"id":"1-1-1","time":"2021-08-3014:14:00","title":"Shenyang A Company Announces Asset Reorganization"}","text_event_times" is the event annotation times of the text, and its specific usage is described in step 4 mechanisms two and three.

[0017] Table 2 Text table

[0018]

[0019] When the annotator reads the text visually, he first needs to read a tuple in the database text table to read the "text_content" field to obtain the complete text json object, and then parse the json object and obtain the object information contained therein. In the experiment of the present invention, the java language is used for development and design, and the fastjson toolkit under Alibaba is used to parse the json object, and the corresponding text class is designed to store the text information after parsing (such as text title, text time, text content, text number, etc.).

[0020] It is worth noting that when preprocessing the corpus, the corpus needs to be classified according to the event type. For texts containing multiple events, it is necessary to store them repeatedly in corpus files of different event types. Therefore, there will be repeated text information in the database text table (only the primary key ID is inconsistent). This is because the annotation process is crowdsourced according to the event type. Therefore, for multi-event texts containing different event types, different annotators / accounts (one account is only responsible for the annotation of one event type) need to repeat the annotation to annotate the event information of each event type. For multi-event texts containing the same event type, the same type of multi-event annotation mechanism can be used to solve the problem. In the experiment of the present invention, the schematic diagram of the corpus processing flow is as follows: Figure 4 As shown in the figure, the upload format diagram corresponding to the corpus file of the financial event type "asset restructuring" is as follows Figure 5 shown.

[0021] Step 3 builds a complete labeling mechanism, first performing entity labeling and then event labeling. The event arguments labeled in the event labeling task must be entities that have been labeled in the entity labeling task.

[0022] In the experiment of the present invention, entity annotation and event annotation use a common annotation table "db_mark". The tuples in the table are based on entities and store the information of each marked entity, mainly including "entity content", "number of the text where the entity is located", "array subscript of the sentence where the entity is located (the text is processed into a sentence array after sentence segmentation)", "starting position of the entity in the sentence", "end position of the entity in the sentence", "entity type", "type of event to which the text belongs", "role of event argument", "event index of multiple events of the same type" and other attributes, among which the establishment of "event index of multiple events of the same type" is to indicate the event number of a certain event type corresponding to the text to which the currently annotated event argument belongs. Entity annotation will fill in most of the information of the event argument, and the event extraction task will fill in the remaining fields.

[0023] Step 3-1 entity annotation, i.e., extracting entities from the text and completing the matching (annotation) with the entity type, as shown in Table 1. In the experiment of the present invention, the information that needs to be saved when annotating an entity includes "entity content", "number of the text where the entity is located", "type of event to which the text belongs", "array subscript of the sentence where the entity is located", "starting position of the entity in the sentence", "ending position of the entity in the sentence", and "entity type". The schematic diagram of entity annotation information is shown in FIG. Figure 6 shown.

[0024] Step 3-2 event annotation, that is, extracting event information from the text. An event refers to the relationship dependency between several entities around a certain topic. Simply put, a sentence with the pattern of "who did what", "subject, predicate, object", etc. describes an event. Figure 3 As shown. Since event information is generated by several event arguments that play specific event argument roles, the core of event annotation is to annotate event arguments from the text to complete the matching (annotation) with the corresponding event argument roles. It is worth noting that when performing event annotation, the event arguments that can be annotated must be entities that have been annotated in the entity annotation task. In the experiment of the present invention, when performing event annotation, in the text, except for the entities annotated by the entity annotation, the rest of the text fragments are in a locked state, so as to improve the annotation efficiency. The information that needs to be saved when annotating an event argument includes "event argument role" and "event index of multiple events of the same type". The rest of the information has been filled in during entity annotation, so it is not repeatedly transmitted and stored in the system. The schematic diagram of event annotation information is shown in Figure 7 shown.

[0025] Regarding the “labeling problem of multiple events”, the labeling process only involves the processing of “multiple events of the same type”, because the processing of “multiple events of different types” is controlled by the algorithm logic when the data set is exported. In the experiment of the present invention, “Continue Labeling” and “Submit” buttons are designed for the texts of “multiple events of the same type” and “single event” respectively to submit the labeling results differently. The annotator needs to label each event information sequentially. After labeling an event of the corresponding event type, click the “Continue Labeling” button to save the labeling information and add 1 to the “Event Index of Multiple Events of the Same Type” field value in the table to indicate which event the labeled event argument belongs to. Finally, the same text is returned and the remaining events continue to be labeled until the last event is labeled. Click the “Submit” button to submit the labeling results and return the next text. The schematic diagram of the submission case of multiple events of the same type is shown in the figure. Figure 8 shown.

[0026] Step 4 builds a complete crowdsourcing task allocation mechanism and crowdsourcing result aggregation mechanism, and adopts different allocation mechanisms (single annotation, multiple annotation) and aggregation mechanisms (majority voting algorithm, group cognitive aggregation model algorithm) for annotators with different professional levels to control the annotation quality.

[0027] Different crowdsourcing task allocation mechanisms and crowdsourcing result aggregation mechanisms should be used for annotators with different professional levels to maximize the balance between annotation efficiency and annotation quality. The specific task allocation and result aggregation mechanisms are divided into the following three types:

[0028] Mechanism 1: "Single-time annotation". This mechanism is suitable for high-level talents such as experts in related fields. Each text only needs to be randomly handed over to one of all the annotators responsible for the event type. It is worth noting that the event type that each annotator account is responsible for is fixed, that is, there is a one-to-many relationship between event type and account. If an annotator needs to annotate a corpus of multiple event types, multiple accounts can be assigned to him. The advantage of this design is that annotators can batch annotate a certain type of corpus according to the event type, which helps to improve the annotator's concentration and thus improve his annotation efficiency in a certain period of time. Since each text is annotated only once, there is no need for a crowdsourcing aggregation algorithm. When exporting the data set later, you only need to export it from the "annotation table".

[0029] In the experiment of the present invention, the "single annotation" in the mechanism 1 means that each text can only be annotated once, and two fields "entity annotation status" and "event annotation status" need to be added to the text table to display the status of each text, so as to avoid repeated annotation and achieve the effect of mutually exclusive access. "Entity annotation status" is "0", "1", "2", and "3", which respectively represent the four different states of the text "entity annotation task idle", "entity annotation in progress", "entity annotation completed", and "invalid text discarded". In this way, when the annotator visualizes the next text to be annotated in the entity annotation task, it is only necessary to query the text corresponding to the "entity annotation status" field as "0". The entity annotation status of "1" can be understood as applying a mutual exclusion lock to the text, that is, when a text is being annotated by an annotator, other annotators will not be able to access the text, thereby achieving the effect of a mutual exclusion lock; the entity annotation status of "2" indicates that the text has been entity annotated, so that event annotation can be performed; the entity annotation status of "3" indicates that the text does not contain an entity (i.e., invalid text), and will be discarded by the annotator. Similarly, "Event Annotation Status" of "0", "1", "2", and "3" respectively represent the four different states of the text: "Event Annotation Task Idle", "Event Annotation in Progress", "Event Annotation Completed", and "Invalid Text Discarded". It is worth noting that when executing the event annotation task to query the next idle text, in addition to judging the "Event Annotation Status" to be "0", the "Entity Annotation Status" must also be judged to be "2", that is, the text queried by the event annotation task must be the text that has been annotated by the entity annotation task.

[0030] In the experiment of the present invention, the mechanism 1 does not use crowdsourcing annotation, so there is no need for crowdsourcing aggregation algorithm. This mechanism only needs to traverse the current annotation table when exporting the data set.

[0031] Mechanism 2: "Multiple Labeling" + "Majority Vote Crowdsourcing Aggregation Algorithm". This mechanism is suitable for talents who have some knowledge of related fields. Different from Mechanism 1, due to the lack of professional authority of the annotator, the same text needs to be repeatedly labeled by multiple people, and finally the best labeling result is obtained through the Majority Vote Crowdsourcing Aggregation Algorithm. The core idea of ​​the Majority Vote Crowdsourcing Aggregation Algorithm is to select the labeling result with more than half of the number of labeling results for a certain event argument role as the final labeling result of a certain event argument role.

[0032] In the experiment of the present invention, the "multiple annotations" in the second mechanism means that each text needs to be handed over to multiple annotators for annotation, that is, multiple accounts need to be assigned for each event type for annotation, and each account annotates all the texts of the event type in charge in turn without affecting each other (each text is repeatedly annotated). A "number of times annotated" field is added to the text table to display the number of times each text has been annotated. For example, the field is "3" to indicate that the text has been annotated three times. It is also necessary to set up a "maximum number of times text is annotated" field in the times table and it can be dynamically modified by the administrator backend. In this way, when visualizing the next text to be annotated for the annotator, the text whose "number of times annotated" field value is less than the "maximum number of times text is annotated" field value in the corresponding event type can be queried. At the same time, in order to avoid a text being annotated multiple times by the same user, a "current event annotation text ID" field is added to the user table. When querying, it is necessary to sort according to the primary key value to obtain a text and automatically update the field value after the annotation is completed.

[0033] In the experiment of the present invention, the "Majority Vote Crowdsourcing Aggregation Algorithm" in the second mechanism simply takes the result recognized by most annotators as the result of aggregation, and uses this as an estimate of the standard annotation. The specific design of the algorithm is equivalent to finding the elements that appear more than half of the times in the array. The difference is that in our experiment, an array is created for each event argument role under the event type corresponding to the text. The elements in the array are all event arguments drawn by multiple annotators for a certain event argument role. The event arguments marked by each annotator may be consistent or inconsistent. The system only needs to apply the majority voting algorithm to find the final annotation result, that is, select the event argument matched by the final event argument role. It is worth noting that for a certain event argument role, if all annotators have not marked the event argument, then the final annotation result of the event argument role is also empty. The annotation results after aggregation will be saved in the new annotation table "Annotation Table II", so this mechanism only needs to traverse "Annotation Table II" when exporting the data set.

[0034] Mechanism three: "Multiple labeling" + "Group cognitive crowdsourcing aggregation algorithm", this mechanism is suitable for talents in non-related fields. Different from mechanisms one and two, since the labelers do not understand the knowledge of related fields or have simply learned the knowledge of related fields due to the labeling task, a more rigorous crowdsourcing aggregation algorithm is needed to aggregate the labeling results. The group cognitive crowdsourcing aggregation algorithm (part) mainly calculates credibility through the "social trust evaluation mechanism". The "social trust evaluation mechanism" requires the establishment of some evaluation users in the system to evaluate the labeled event argument information. The system establishes a trust evaluation value UT for each evaluation user based on the degree of professionalism. For each labeled event argument, the evaluation user can vote for or against. The system creates an array for all event argument roles in the event to store all labeled event arguments, and finally selects the event argument with the largest social credibility F(x) value in the array as the final labeling result of the event argument role. The algorithm of social credibility F(x) is as follows:

[0035]

[0036] Among them, F(x) is the social credibility of a label, n is the number of voting users, and UT i (i=1,…,n) is the credibility (weight) of the specific voting user, and K represents the user's opinion (the value is 1 when voting in favor and -1 when voting against).

[0037] In the experiment of the present invention, the "multiple marking" in mechanism three is exactly the same as the "multiple marking" processing mechanism in mechanism two, and will not be repeated in detail.

[0038] In the experiment of the present invention, the "group cognitive crowdsourcing aggregation algorithm (part)" in mechanism three creates an array for all event argument roles in each event in the text. The elements in the array are all event arguments selected by multiple annotators for a certain event argument role. After the evaluation user votes for all event arguments in the array, the F(x) value of each event argument is calculated respectively, and finally the event argument with the largest F(x) value in the array is selected as the final annotation result, which means that this annotation has been recognized by the society. The annotation results after aggregation will be saved in the new annotation table "Annotation Table III", so this mechanism only needs to traverse "Annotation Table III" when exporting the data set.

[0039] It is worth noting that since the "entity labeling task" does not particularly require knowledge of the relevant field, it is only necessary to enable a single labeling mechanism to efficiently complete the entity labeling task, while the "event labeling task" requires different crowdsourcing task allocation mechanisms and crowdsourcing result aggregation mechanisms to be enabled according to the professional level of the annotator in the relevant field. Fig. 9 shown.

[0040] Step 5 builds a complete data set export mechanism to dynamically regulate and build the required event extraction data set according to the data set format required by the downstream event extraction model.

[0041] After the annotator completes all the annotations, it is necessary to dynamically integrate the required event extraction data set according to the data set format required by the downstream event extraction model. In the experiment of the present invention, the export of the data set is to traverse the data in the annotation table, dynamically query the event argument annotations matched by the text in units of text, and dynamically generate json format data sets through JSONArray and JSONObject provided by Alibaba's fastjson toolkit. As mentioned above, the annotation tables traversed by crowdsourcing mechanisms one, two, and three are different. Mechanism one corresponds to the original "annotation table", mechanism two corresponds to the aggregated "annotation table II", and mechanism three corresponds to the aggregated "annotation table III".

[0042] For the "export problem of multiple events", it is mainly controlled by the "number of the text where the entity is located", "the event type to which the text belongs", and "the event index of multiple events of the same type" fields in the annotation table. When exporting, the multi-event information of each text is queried in turn by traversing the "number of the text where the entity is located" in the table. By combining the two fields of "the event type to which the text belongs" and "the event index of multiple events of the same type", it is possible to query how many events each text has (including "multiple events of the same type" and "multiple events of different types"), and traverse each event information in turn, and then fill in the event arguments in turn by traversing all the event argument roles corresponding to the current event type (that is, the event arguments whose event argument role attributes in the annotation table or aggregation table are not empty are filled in the corresponding event information in turn. If the event argument role attribute is empty, it means that the entity does not play an event role in a certain event).

[0043] In order to further improve the quality of the data set, after the aggregation is completed, it is still necessary to filter out some texts with substandard annotation quality. For example, texts that do not meet key conditions such as "too few event arguments matched in the text" and "core event argument roles not matched" all need to be filtered. In the experiment of the present invention, in order to improve efficiency, this step is converted into a submission restriction during event annotation. The submission is restricted according to the two conditions of "whether the number of annotated event arguments reaches the submission threshold of the corresponding event type" and "whether all key argument roles of the corresponding event type are annotated". This replaces the above-mentioned filtering step, thereby saving query and export time and greatly improving export efficiency.

[0044] Beneficial effects of the present invention: The present invention adopts the above scheme, and can effectively apply a variety of crowdsourcing technologies to the annotation process of annotators with different professional levels, thereby effectively utilizing the background knowledge of the annotators and maximizing the role of crowdsourcing. At the same time, the present invention constructs a complete entity library and event information library (i.e., event type library and event argument role library) as well as an annotation mechanism and access mechanism, providing an effective method for the construction of an event annotation system. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A flow chart is constructed for the event annotation system of the present invention.

[0046] Figure 2 This is a flow chart of the operation of the event marking system of the present invention.

[0047] Figure 3 This is a schematic diagram of the financial event information database.

[0048] Figure 4 Schematic diagram of the corpus processing flow.

[0049] Figure 5 Upload format diagram for the "asset restructuring" corpus.

[0050] Figure 6 Provide a schematic diagram of entity labeling information.

[0051] Figure 7 A diagram of information labeling for events.

[0052] Figure 8 Schematic diagram of submitting cases for multiple events of the same type.

[0053] Fig. 9 Schematic diagram of crowdsourcing mechanism.

[0054] Fig.10 This is a diagram of text table information.

[0055] Fig.11 Label the page diagram for the entity.

[0056] Fig.12 Schematic diagram of entity labeling table information.

[0057] Fig.13 Diagram of the page annotated for events.

[0058] Fig.14 Diagram of the page annotated for events.

[0059] Fig.15 Diagram of the page annotated for events.

[0060] Fig.16 Schematic diagram of event labeling table information.

[0061] Fig.17 Export a diagram for the single event text dataset.

[0062] Fig.18 Export a schematic diagram for a multi-event text dataset. DETAILED DESCRIPTION

[0063] The present invention is further described in conjunction with the accompanying drawings: The present invention constructs an event annotation system for multi-level annotators based on crowdsourcing technology. First, domain data is collected and a complete entity library and event information library are constructed. Then, the collected data is preprocessed and a complete access mechanism for the corpus to be annotated is constructed. Secondly, a complete annotation mechanism is constructed, including an entity annotation mechanism and an event annotation mechanism. Subsequently, a complete crowdsourcing task allocation mechanism and a crowdsourcing result aggregation mechanism are constructed, that is, the annotator information is improved and different allocation mechanisms and aggregation mechanisms are used for annotators with different professional levels to control the annotation quality. Finally, a complete data set export mechanism is constructed to dynamically integrate the required event extraction data sets according to the data set format required by the downstream event extraction model. The system construction flow chart is shown below. Figure 1 As shown in the system operation flow chart Figure 2 shown.

[0064] In order to test the feasibility of the methods proposed in this invention for large-scale corpus storage, visual query, multi-level crowdsourcing task allocation, event information annotation, data set export and other modules, as well as the quality of the generated data set, we have fully implemented it on financial data and built a financial event annotation system for multi-level annotators based on crowdsourcing technology. In order to maximize the overall efficiency and data set quality, "Mechanism 1" was adopted in the crowdsourcing module in combination with professionalism, and finally a high-quality financial event extraction data set was generated for downstream tasks.

[0065] An example of the present invention is given below in conjunction with the accompanying drawings:

[0066] (1) Construction of entity database and event information database

[0067] Before testing the financial data, we first did a lot of preliminary research and built a professional entity database and event information database. The entity database uses a seven-category classification method, and the event information database uses a custom event information database (including fourteen event types and their corresponding argument role databases).

[0068] (2) Corpus preprocessing

[0069] Text classification and screening

[0070] We collected a large amount of financial chapter-level texts from the Internet and defined trigger words for 14 types of financial events. Based on these trigger words, we classified the collected texts and filtered out most of the invalid texts. Although this method may cause the loss of valid corpus, it improves the quality of the retained corpus.

[0071] Text cleaning

[0072] Since most of the collected texts exist in the form of unstructured data and contain irrelevant symbols such as spaces and half-width separators, the filtered texts were cleaned.

[0073] Text Sentence Segmentation

[0074] To meet the needs of downstream event extraction models, we perform sentence segmentation for each text in the corpus. Specifically, we segment the text into sentence arrays based on the Chinese terminator (full-width), and then further segment the content based on predefined rules if the length of the segmented sentences is still greater than the predefined maximum sentence length.

[0075] (3) Corpus upload

[0076] After completing the preprocessing of the corpus, upload the corpus of each event type in the annotation system by category, and complete the dump of the json object in the database. The diagram of the text table information is as follows: Fig.10 shown.

[0077] (4) Crowdsourcing task allocation

[0078] During the test, we created 28 annotator accounts, with an average of two accounts responsible for annotating one type of event. Since the experiment used mechanism 1 (single annotation), each text did not need to be annotated repeatedly. It is worth noting that if other crowdsourcing mechanisms are used, the information in the annotation table needs to be aggregated into a new aggregation table after the event annotation is completed, and the data set is finally exported from the aggregation table. The structure of the new aggregation table is exactly the same as the old aggregation table, except that the best annotation results are aggregated by the aggregation algorithm and dumped into the new table.

[0079] (5) Entity annotation

[0080] There is no event type distinction for entity annotation, so during the annotation process, the 28 annotator accounts will be randomly assigned any text that has not been annotated. The task of entity annotation is to annotate the entity fields from the text and complete the matching with the custom entity type. After all entities in the text are annotated, click Submit to save the annotation results. The schematic diagram of the entity annotation page is as follows Fig.11 As shown in the figure, the diagram of the annotation table information after the entity annotation is completed is as follows Fig.12 shown.

[0081] (6) Event annotation

[0082] In the experiment of the present invention, the event labeling task is to fill in the entity information annotated by the entity labeling task. Different from entity labeling, each annotator account is responsible for the event labeling of one event type, and every two annotators will only be randomly assigned a text corresponding to the event type they are responsible for. Single event labeling is to select event arguments (entities) that can play the role of corresponding event arguments from the annotated entities in the text. If there are multiple events of the same type, each event needs to be labeled sequentially. Use the "Continue Labeling" button to submit the first n-1 events, and use the "Submit" button to submit the nth (last) event. The schematic diagram of the event labeling page is shown below. Fig.13 , 14 As shown in , 15, the sample text contains three events, among which Fig.13 , 14 The marked event information belongs to multiple events of the "asset restructuring" type. Fig.15 The marked event information belongs to a single event of the "shareholder increase" type. The diagram of the marking table information after the event marking is completed is as follows Fig.16 shown.

[0083] (7) Dataset export

[0084] After the annotator completes all the annotation tasks, the data set can be exported in the background system. We use the JSONArray, JSONObject and other JSON format generation classes provided by Alibaba's fastjson toolkit as technical support to dynamically traverse the data in the annotation table according to the data set format required by the downstream. The schematic diagram of single event text data set export is shown in the figure below. Fig.17 As shown in the figure, the schematic diagram of exporting multi-event text dataset is as follows Fig.18 shown.

Claims

1. A method for constructing an event annotation system for multi-level annotators based on crowdsourcing technology, characterized in that: The following steps are involved: Step 1: Collect domain data and build a complete entity library and event information library. The entity library contains common entity types in named entity recognition tasks, and the event information library contains a variety of financial event types and a set of event argument roles and their associated information corresponding to each event type. Step 2: Preprocess the corpus and build a complete access mechanism for the corpus to be annotated: Before uploading the corpus, the corpus must be preprocessed, invalid text must be filtered out, and the corpus must be processed into sentences; Step 3: Build a complete annotation mechanism, first perform entity annotation and then event annotation. The event arguments annotated in the event annotation task must be entities annotated in the entity annotation task. Step 4: Build a complete crowdsourcing task allocation mechanism and crowdsourcing result aggregation mechanism, and use different allocation mechanisms and aggregation mechanisms for annotators with different professional levels to control the annotation quality; Step 5 builds a complete data set export mechanism to dynamically regulate and build the required event extraction data set according to the data set format required by the downstream event extraction model.

2. The construction method according to claim 1, characterized in that: The entity types in the entity library include person names, place names, organization names, time, date, currency and percentage, a total of seven types of information.

3. The construction method according to claim 1, characterized in that: The event information library includes a variety of financial event types and a set of event argument roles and their ancillary information corresponding to each event type: the event type is associated with a trigger word, an event argument role, and a submission threshold; There is a one-to-many relationship between event type and event argument role, a one-to-many relationship between event type and trigger word, and a one-to-one relationship between event type and submission threshold.

4. The construction method according to claim 1, characterized in that: The specific implementation process of step 2 is as follows: classify the corpus according to event type and filter out invalid text that does not contain events, that is, classify the corpus and filter the text by querying custom trigger words, and then process the filtered text into sentences and separate the sentences with end symbols; finally, process each text into json format and create a json object. In addition to the preprocessed text content, the object entry can also include text title, text time, and text-related information, thereby forming a complete json text object and building a complete corpus to be annotated.

5. The construction method according to claim 4, characterized in that: The terminator is a full-width terminator. When the sentence segmented by the terminator is too long, the text is segmented according to the value of the "maximum sentence length", where the "maximum sentence length" can be dynamically adjusted according to the requirements of the model in the event extraction task.

6. The construction method according to claim 1, characterized in that: The construction of a complete annotation mechanism described in step 3 includes entity annotation and event annotation, and entity annotation is performed first and then event annotation; the entity in the entity annotation refers to a word with a specific meaning or strong referentiality in the text, and entity annotation is to extract an entity from the text and complete the matching and annotation with the entity type; the event in the event annotation refers to the relationship between several entities around a certain topic; Event annotation is to annotate event arguments from text, so as to complete the matching and annotation with the corresponding event argument roles; the event arguments annotated in the event annotation task must be the entities annotated in the entity annotation task.

7. The construction method according to claim 1, characterized in that: The specific implementation process of step 4 is as follows: The task allocation and result aggregation mechanisms are divided into the following three types: Mechanism 1: "Single-time annotation", each text only needs to be randomly handed over to one of all the annotators responsible for the event type; since each text is only annotated once, there is no need for a crowdsourcing aggregation algorithm; Mechanism 2: "Multiple annotations" + "Majority Vote crowdsourcing aggregation algorithm": The same text needs to be repeatedly annotated by multiple people, and finally the best annotation result is obtained through the Majority Vote crowdsourcing aggregation algorithm; Mechanism 3: "Multiple Labeling" + "Group Cognitive Crowdsourcing Aggregation Algorithm", in which the Group Cognitive Crowdsourcing Aggregation Algorithm mainly calculates credibility through the "Social Trust Evaluation Mechanism"; the "Social Trust Evaluation Mechanism" requires the establishment of some evaluation users in the system to evaluate the labeled event argument information, and the system establishes a trust evaluation value for each evaluation user based on their professional level. UT For each marked event argument, the evaluation user can vote for or against it; the system creates an array for all event argument roles in the event to store all marked event arguments, and finally selects the social credibility in the array F ( x ) value is the final labeling result of the event argument role; social credibility F ( x ) is as follows: , in, F ( x ) is the social credibility of a label, n is the number of voting users, UT i ( i =1,…, n ) is the credibility of the specific voting user, i.e., the weight, K Indicates the user's opinion. The value is 1 when voting in favor and -1 when voting against.

8. The construction method according to claim 1, characterized in that: The complete dataset export mechanism described in step 5: The dataset export is to traverse the data in the annotation table, dynamically query the event argument annotations matched by the text in units of text, and dynamically generate a dataset in json format through JSONArray and JSONObject provided by Alibaba's fastjson toolkit.

Citation Information

Cited By

  • Event extraction method, device and system based on multi-source annotation

    CN117874232A

  • An event extraction method, device and system based on multi-source annotation

    CN117874232B