Text classification

For this type of project, you can use the Clickbait or not? preset.

This preset helps you classify any kind of text for training classifiers and NLP models.

Take a look at the example: the labeling interface includes a text block, and radio buttons for categories. Note that validation, keyboard shortcuts, and task layout are already configured in this Template Builder sample code.

View example
Components used in the example
Note

You can add media files (audio files, videos, images) from your own server, a cloud storage like Google Cloud, Amazon AWS, or Yandex Cloud.

If this template doesn't meet your needs, see other examples in the Text section.

Add a description

To add a detailed description to the task, use the view.text component.

Show code
View example

Add a response field

To let Tolokers leave comments about the task or their response, add a text field using field.textarea.

Show code
View example

Add a layout

To enhance Toloker's experience, you can highlight different types of data with colors using view.alert. In this example, the description is highlighted with a blue border, and the buttons are highlighted with a yellow one.

Show code
View example

Other options for buttons

Decide whether a Toloker can select only one or multiple answer options:

Multiple options (checkboxes)
One option (a radio button)

If there are several possible answers to the question, use field.checkbox-group checkboxes.

Show code
View example

Add conditions

The helper.if component displays an interface element after a specific response is selected.

Show code
View example

Does the text match the search query

Add a button that opens the search results and generate a search query link using the helper.search-query component. To make sure that a Toloker clicked on the link and checked its contents, configure validation, as in the example.

Show code
View example

Side-by-side text and web page comparison

You can display the web page in the built-in window using the view.iframe component. Place the text next to it using layout.side-by-side.

Show code
View example

Side-by-side text and mobile web page comparison

This is a more complex example that compares the text with the results of a search query. The following components are added:

Show code
View example

Contact support

Last updated: February 10, 2023

Introduction
Getting started
Important tips
Useful recommendations
Working with Toloka
Projects
Pools
Tasks
Results
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support
FAQTroubleshootingSupportGlossary