Part of Speech Tagging Example
In this example, you create a text labeling project to identify the various parts of speech in a given text.
Project Overview
You want to create a project that enables you to label parts of speech in a given text.
To create this project, you must perform the following tasks:
This document explains how you can perform each of the tasks listed above. Specific sections in this document also contain sample data that you can use to easily create and implement this project in Taskmonk.
Listing Project Requirements
In this project, you can:
Identify and label the various parts of speech in a given text.
Sample Input Data
For the purposes of this example, we shall use a part of training data provided by the Stanford Natural Language Processing Group.
You select the first 20 sentences from the POS training data set. You paste these sentences into a Microsoft Excel sheet under columns labeled Sentence #, Word. You save the Microsoft Excel sheet as POS_Tagging_Input.xlsx in your hard drive.
Download Source File
You can follow the steps listed above to create your Microsoft Excel sheet; you can also download and use this file in your project: POS_Tagging_Input.xlsx.
Each downloadable file is available as a ZIP file. To use it, download the file and unzip its contents.
Configuring Project Metadata
Project Metadata is the first tab that appears when you create a project. The Project Metadata tab enables you to provide basic information, such as the name, process, and project type, associated with your project. You can also upload any documentation that you may want to add to your project.
For detailed information on working with the Basic Info section of the Project Metadata tab, see Add Basic Project Information.
For detailed information on working with the Basic Info section of the Project Metadata tab, see Manage Project Documentation.
To create the project, click the Create Project floating button on the left side of the Projects page.
The Project Metadata tab associated with your new project appears.Enter POS Tagging as the Project Name and Text Labeling as the Process.
Click Project Type > Text-Based.
As your project does not require lookup data, leave the Lookup check box deselected.
Enable Project Pipeline is False by default, do not change this for the current project.
Click Next.
The Documents sub-tab appears.You can upload documents associated with the project if required. This is an optional step, and you can skip it for now.
Click Next.
The Task Design tab appears. Use this tab to manage your project input and output fields.
Managing Project Input and Output Fields
Taskmonk uses the project type that you specify to add input and/or output fields to projects as required. You can modify these later. In this instance, you selected Text-Based as the Project Type, and Taskmonk does not add any fields to the Task Design sub-tabs. You can create input fields by providing the input file format and importing the column headers from the same.
Creating Input Field Details
Click Browse Input File, navigate to the sample input file and upload it into the system. The following input fields get added:
Field Name: Sentence #. Field Type: Text
Field Name: Word. Field Type: Text
Creating Output Field Details
Click the Output Field tab to display the Output Field UI.
Click Create Output Field.
The Create Output Field modal appears.Enter POS as the Name.
Select DropDown as the Set Data Type.
Enter comma-separated list of codes for parts of speech as Possible Values. The list of codes and their meaning is provided below.
Select the All Levels check box to indicate that this field must be available to users at all execution levels, such as labeling, quality analysis, and so on.
Click Create to save the new output field and return to the Task Design > Output Fields tab.
Click Next to move to the next step, Quality Workflows.
Creating Quality Workflows
The Quality Workflow tab enables you to specify how you want to ensure output quality. It also helps you create the execution levels required for your quality workflows. For example, you want to create the following levels for this project:
POS Labeler
POS QA
POS Editor
POS Delivery Lead
In this instance, you want to enable a Maker-Editor workflow. Click the Execution Method field and select Maker-Editor from the drop-down list that appears.
By default, Taskmonk creates the Analyst role for you. Click Update Execution Level icon.
The Edit Execution Level modal appears.Enter POS Labeler as the Execution Level Name.
You can skip all other fields here. Click Update to return to the Quality Workflow tab.
Click the Add Execution Level button on the right side of the page. The Add Execution Level modal appears.
Enter POS QA in the Execution Level Name field.
You can skip all other fields here. Click Add.
Taskmonk adds the new execution level, closes the modal, and displays the updated Quality Workflow tab. Repeat the process to add all required execution levels.Click Next to move to the next step, Process Logic.
Creating Process Logic
Quality Workflow > Process Logic tab allows you to decide the logic based on which datasets are moved from one execution level to the next. For the current project, you want to enable the following rules:
80% of the project datasets move from level 1 to level 2.
65% of the project datasets move from level 2 to level 3.
50% of the project datasets move from level 3 to level 4.
To do so:
Click the Add Process Logic button on the right-hand side of the page.
Add process logic page appears.Click the From Level drop-down and select L1 [POS Labeler].
Click the To Level drop-down and select L2 [POS QA].
Click the Add Rule icon to load the add rule UI.
Click the Add New Rule icon.
Rule Type drop-down appears.Click the Rule Type drop-down and select Percentage Rule.
Click the Percentage drop-down and select 80 %.
Click Submit to save the rule.
Repeat the above step to add rules for each level change.
Managing Users and Roles
You must now add users to your project and assign the execution levels you just created to them.
Click the Users tab just above the Quality Workflow tab.
The Users > Manage Users tab appears.Click the Add button in the top-right section of the tab.
The Select Users tab appears.Corresponding to each execution level, click the Select Users field and select the desired user from the drop-down list that appears.
Click Add to add the selected users to the project.
Close the modal. The Manage Users tab reloads to display the updated user details.
Managing Project Datasets
Your project is now configured. Congratulations!
Before you can start labeling, you must upload the input data containing the text to be labeled.
Click the Datasets tab. The Datasets page appears. Use this page to manage datasets for your project.
Taskmonk organizes datasets into batches to simplify management and tracking. To add a new dataset, click Add Batch on the right side of the page. The Add Batch modal appears.
Enter Batch 1 as the name for the batch that you want to import in the Add New Batch field. You can ignore the other fields.
Click Submit. This creates a new batch of data for your project and adds it to the Pending tab of the Datasets page. You can now upload datasets into the batch, as required.
To add a dataset to the batch, click the Import button under the Tasks (Import/Export) column.
The Import Task modal appears.Click Choose Files, select the sample input file from your computer and click Import.
Once the dataset is imported, click Close to exit the modal.
Labeling Text Using Taskmonk
Your project is now ready for work.
Log in as a POS Labeler and click the My Tasks icon at the top of the page.
The My Tasks page appears.Click the Get Tasks button adjacent to the POS Tagging project.
The labeling UI associated with this project appears.
You can see the following project details in the labeling UI:Batch Name (Batch 1) in the top-left section of the page.
Input fields (Sentence #, Word) on the top half of the page.
Output fields (POS) on the bottom half of the page.
To know more about working with a typical labeling UI, see Labeling Data.
Viewing Batch Status Report
Go to the Projects page and click Reports > View for the POS Tagging project.
The Reports page appears.Click on Dataset Progress Reports to view the batch status report. This shows the total number of tasks pending and completed at each level for all batches.
Downloadable Sample Files
© 2020 Taskmonk Technology Pvt. Ltd. All Rights Reserved .