Label Sets / Question Sets
Our project templates require you to upload both an input document as well as a label set.
For token-based labeling (NER, POS, DEP, COR, and OCR templates), a label set is a single-column
.tsvfollowing the structure below:
NER label set
label,coloris the header. This will always be the first row in the .csv.
Colored label set
Note: colored label sets only work for the
Datasaur supports HTML color codes. For your reference, below are the default colors provided by Datasaur for better viewing clarity in your project.
Label Color Palette
For row-based or document-based projects (DOC template), a label set is a
.csvwith questions in the first column and answers in subsequent columns:
Book Review question set that only contain dropdown question type
You can also create a
.jsonfor a label set that has multiple question types.
Book Review question set
As mentioned before, label sets for row-based and document-based projects are set of questions. Let's take a look at the question types available below.
Text Field allows the labeler to answer questions by typing in free-form text, up to a single line at a time.
Users also can add some validation **** by expanding the Advanced Settings.
Text Area allows the labelerto answer questions by typing in free-form text. In contrast to Text Fields, this allows for multiple-line answers.
Dropdown requires labelers to answer questions by picking one of several multiple-choice answers.
- If you have a .csv with a pre-set list of answers, you can upload the
.csvas an answer set.
Book Genre-Answer set
- You can also allow the labelers to select multiple answers by checking the box for Allow multiple choices.
In Step 3
Hierarchical dropdown allows the labeler to answer questions with hierarchically organized options.
Date allows the labeler to answer the question in two ways. The key benefit of selecting Date is that this format validates that a correct date has been filled in.
- Typing the date in manually.
- Clicking on the calendar symbol, then selecting the date.
If you want to fill date questions with the current timestamp at the time the labeler opens the project, you can check the Use current date as default value box on Step 3.
Time allows the labeler to answer the question in two ways. The key benefit of selecting Time is that this format validates that a correct time has been filled in.
- Typing it manually.
- Clicking on the clock symbol, then selecting the time.
If you want to fill time questions with the current timestamp at the time the labeler opens the project, you can check the Use current time as default value box on Step 3.
Slider allows the labeler to answer the question by moving the sliding bar (ex: from 1 to 10).
You can also set the
Grouped Attributes allows the labeler to combine multiple questions that pertain to a single group.
Checkbox allows the labelers to answer the question by checking it. You can also put a description.
URL allows you to put the URL links and apply validation on it.
It is possible to upload multi-level hierarchical label sets in
.csvfor token-based, row-based, and document-based projects. Here is a sample of a hierarchical label set:
Hierarchical label set
id,labelis the header. This will always be the first row in the
.csv. The first label will have 1 as the id, as same as the example above.
The id format is similar to Microsoft Word's numbering format. In the example above, Author is a part of Novel and the id will be 1.1.
- 1.Novel: the root-level.
- 2.1: id for the root-level
- 3.Author: the second-level.
- 4.1.1: the second-level id.
- Hierarchical label sets in these projects are uploaded as answers sets.
💡 Pro Tip
- Clicking the Home icon will go directly to the top-level label
- You can search leaf nodes globally