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:

  1. List out your project requirements.

  2. Identify sample text that you can use for labeling.

  3. Configure project metadata.

  4. Manage your project input and output fields.

  5. Create the workflow that you want to implement in your project.

  6. Add users to your project and assign them project roles.

  7. Add a dataset to the project.

  8. Start labeling input text.

  9. View batch status reports.

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.

  1. 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.

     

  2. Enter POS Tagging as the Project Name and Text Labeling as the Process.

  3. Click Project Type > Text-Based.

  4. As your project does not require lookup data, leave the Lookup check box deselected.

  5. Enable Project Pipeline is False by default, do not change this for the current project.

  6. Click Next.
    The Documents sub-tab appears.

  7. 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

  1. 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

  1. Click the Output Field tab to display the Output Field UI.

     

  2. Click Create Output Field.
    The Create Output Field modal appears.

     

     

  3. Enter POS as the Name.

  4. Select DropDown as the Set Data Type.

  5. Enter comma-separated list of codes for parts of speech as Possible Values. The list of codes and their meaning is provided below.

     

     

  6. 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.

  7. Click Create to save the new output field and return to the Task Design > Output Fields tab.

  8. 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

  1. 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.

  2. By default, Taskmonk creates the Analyst role for you. Click Update Execution Level icon.
    The Edit Execution Level modal appears.

     

  3. Enter POS Labeler as the Execution Level Name.

  4. You can skip all other fields here. Click Update to return to the Quality Workflow tab.

  5. Click the Add Execution Level button on the right side of the page. The Add Execution Level modal appears.

  6. Enter POS QA in the Execution Level Name field.

  7. 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.

     

  8. 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:

  1. Click the Add Process Logic button on the right-hand side of the page.
    Add process logic page appears.

     

     

  2. Click the From Level drop-down and select L1 [POS Labeler].

  3. Click the To Level drop-down and select L2 [POS QA].

  4. Click the Add Rule icon to load the add rule UI.

  5. Click the Add New Rule icon.
    Rule Type drop-down appears.

  6. Click the Rule Type drop-down and select Percentage Rule.

  7. Click the Percentage drop-down and select 80 %.

  8. Click Submit to save the rule.

     

     

  9. 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.

  1. Click the Users tab just above the Quality Workflow tab.
    The Users > Manage Users tab appears.

  2. Click the Add button in the top-right section of the tab.
    The Select Users tab appears.

  3. Corresponding to each execution level, click the Select Users field and select the desired user from the drop-down list that appears.

     

  4. Click Add to add the selected users to the project.

  5. 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.

  1. Click the Datasets tab. The Datasets page appears. Use this page to manage datasets for your project.

  2. 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.

  3. 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.

     

  4. 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.

  5. To add a dataset to the batch, click the Import button under the Tasks (Import/Export) column.
    The Import Task modal appears.

  6. Click Choose Files, select the sample input file from your computer and click Import.

  7. Once the dataset is imported, click Close to exit the modal.

     

     

Labeling Text Using Taskmonk

Your project is now ready for work.

  1. Log in as a POS Labeler and click the My Tasks icon at the top of the page.
    The My Tasks page appears.

  2. 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

  1. Go to the Projects page and click Reports > View for the POS Tagging project.
    The Reports page appears.

  2. 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

  File Modified

ZIP Archive POS_Tagging_Input.csv.zip

May 18, 2021 by Kumar Luv

© 2020 Taskmonk Technology Pvt. Ltd. All Rights Reserved .