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
.tsv following the structure below:
We provide twelve colors that you can configure manually from the Labels extension. You can also create a label set with your desired label colors in it. A sample file is provided below.
label,color is the header. This will always be the first row in the .csv.
label,colorAnnabeth Chase,#df3920Harry Potter,#ff8000Hermione Granger,#4db34dJohn Watson,#3399ccPercy Jackson,#cc3399Sherlock Holmes,#9933cc
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.
For row-based or document-based projects (DOC template), a label set is a
.csv with questions in the first column and answers in subsequent columns:
You can also create a
.json for a label set that has multiple question types.
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.
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
.csv as an answer set.
You can also allow the labelers to select multiple answers by checking the box for Allow multiple choices.
Hierarchical dropdown allows the labeler to answer questions with hierarchically organized options.
Just like with the Dropdown type, you can also upload an answer set once you have created the hierarchical question. The format for hierarchical label sets can be found below.
Note: clicking the Home icon will go directly to the top-level label.
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 questions by moving the sliding bar (ex: from 1 to 10).
Grouped Attributes allow the labeler to combine multiple questions that pertain to a single group.
It is possible to upload multi-level hierarchical label sets in
.csv for token-based, row-based, and document-based projects. Here is a sample of a hierarchical label set:
id,label1,Harry Potter1.1,Characters1.1.1,Antagonist1.1.2,Protagonist2,Percy Jackson2.1,Characters2.1.1,Antagonist2.1.2,Protagonist3,Sherlock Holmes3.1,Characters3.1.1,Antagonist3.1.2,Protagonist
id,label is 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, characters is a part of Harry Potter and the id will be 1.1.
Harry Potter: the root-level.
1: id for the root-level
Characters: the second-level.
1.1: the second-level id.
Antagonist: the third-level.
1.1.1: the third-level id.
In token-based projects, the hierarchy will be visible in the Labels extension and in the label dropdown.
You have to choose hierarchical dropdown as the question type when creating projects using Project Custom Wizard.
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.