Step 2 - Create Labelset
Why Labelsets?¶
Before you can add labels, you need to decide what you want to label. A labelset should reflect the taxonomy or concepts you want to associate with text in your document. This can be solely for the purpose of human review and retrieval, but we imagine many of you want to use it to train machine learning models.
At the moment, there's no way to create a label in a corpus without creating a labelset and creating a label for the labelset (though we'd like to add that and welcome contributions).
Create Text Labels¶
Let's say we want to add some labels for "Parties", "Termination Clause", and "Effective Date". To do that, let's first create a LabelSet to hold the labels.
- Go to the labelset view and click the action button to bring up the action menu:
- Clicking on the "Create Label Set" item will bring up a modal to let you create labels:
- Now click on the new label set to edit the labels:
-
A modal comes up that lets you edit three types of labels:
- Text Labels - are meant to label spans of text ("highlights")
- Relationship Labels - this feature is still under development, but it labels relationships bewteen text label (e.g. one labelled party is the "Parent Company" of another).
- Doc Type Labels - are meant to label what category the document belongs in - e.g. a "Stock Purchase Agreement" or an "NDA"
-
Click the "Text Labels" tab to bring up a view of current labels for text annotations and an action button that lets you create new ones. There should be no labels when you first open this view"
- Click the action button and then the "Create Text Label" dropdown item:
- You'll see a new, blank label in the list of text labels:
- Click the edit icon on the label to edit the label title, description, color and/or icon. To edit the icon or highlight color, hover over or click the giant tag icon on the left side of the label:
- Hit save to commit the changes to the database. Repeat for the other labels - "Parties", "Termination Clause", and "Effective Date":
Create Document-Type Labels¶
In addition to labelling specific parts of a document, you may want to tag a document itself as a certain type of document or addressing a certain subject. In this example, let's say we want to label some documents as "contracts" and others as "not contracts".
- Let's also create two example document type labels. Click the "Doc Type Labels" tab:
- As before, click the action button and the "Create Document Type Label" item to create a blank document type label:
- Repeat to create two doc type labels - "Contract" and "Not Contract":
- Hit "Close" to close the editor.