Data content views: Sequence tagging
This article explains the different ways you can view and interact with your data for sequence tagging applications. You’ll learn what types of data views are available, and how you can use each view to support sequence tagging tasks.
This page focuses specifically on sequence tagging applications. If you’re working with other application types, check out our guides for Data content views: Classification or Data content views: Candidate-based extraction.
The data content section is the main canvas to showcase your data in individual or aggregated formats. The following views are supported in sequence tagging applications:
- Record view: Inspect individual datapoints
- Snippet view: Compare small sections across datapoints
- Table view: See aggregated datapoints in a tabular format
Record view: View and edit metadata
Record view is the default view of data content in sequence tagging applications. It displays each individual datapoint along with its associated fields and metadata. Use this view to:
- View metadata (e.g., ground truth, model prediction, labeling function (LF) votes, and training set label)
- Edit metadata
- Add spans
- View data content
For sequence tagging applications, the Record view includes:
- A highlight control pane.
- Entry points to document-level tags and comments.
- A data content area where you can view and edit metadata associated with individual spans in a document.
The following sections walk through the actions that you can take while in the Record view.
Use the highlight control pane
The Highlight control pane allows you to turn on/off highlights. Use the dropdown to select specific types of highlights, and scroll horizontally to access all available controls. The available controls include:
- Ground truth: View all labels, or view a specific label
- LF vote: See how a LF voted on spans
- Training set label: View the label applied during training
- Model prediction: Display the predictions of the current model
View the ground truth of a span
When the Ground truth highlight is turned on (in the highlight control pane), select a span highlight to see the ground truth label and span.
View information of overlapping spans
When multiple highlights are enabled (in the highlight control pane), you might encounter overlapping spans. Click anywhere in the overlapping span to show a tooltip containing full metadata information for the span.
Add or change the ground truth of a span
Use the cursor to highlight the desired span text, and then use the modal that appears to add or change the ground truth label for that span.
Remove all ground truth labels
Click the Remove all labels from document button in the green bar below the highlight control row to remove all ground truth labels.
Add and manage tags
To categorize data for better discovery or error analysis, you can add or manage tags. Click the tag icon to open and select from a list of tags. To manage all tags, click Manage to open the management pane.
View and add comments
Click the speech bubble icon to view all existing comments and add your comment. To find existing comments, you can filter by comments using the data filter.
Snippet view
The Snippet view provides a "snippet", or a short piece of data content of multiple data points. It is useful to display search results or series of data points voted by a LF, where applicable matching strings are highlighted in the snippets. Use this view to:
- Quickly confirm string matches and its immediate context.
- View ground truth, LF votes, etc.
For sequence tagging applications, the Snippet view includes a highlight control pane.
The following actions are supported in Snippet view:
- Scrolling within snippets to display more spans within a document.
- Navigate to the Record view by clicking on a span.
- When editing or creating a LF, matching text patterns are highlighted in yellow.
Table view
The Table view displays your data points in a tabular format, with each row representing a document. This view is most useful to perform bulk actions to edit tags.
The following actions are supported:
- Customize columns by using the advanced controls > click on Select displayed columns.
- Sort the data by clicking on column headers.
- Use the checkbox to select desired data points, then click Edit Tags to add, delete, or edit tags in bulk.