Skip to content

Rapidata settings

RapidataSettings #

Container class for all setting factory functions

Settings can be added to an order to determine the behaviour of the task.

Attributes:

Name Type Description
NoShuffle NoShuffleSetting

Only for classification and compare tasks. If true, the order of the categories / images will not be shuffled and presented in the same order as specified.

MuteVideo MuteVideoSetting

Mute the video. If this setting is not supplied, the video will not be muted.

FreeTextMinimumCharacters FreeTextMinimumCharactersSetting

Set the minimum number of characters a user has to type.

FreeTextMaxCharacters FreeTextMaxCharactersSetting

Set the maximum number of characters allowed in a free text answer.

SwapContextInstruction SwapContextInstructionSetting

Swap the place of the context and instruction.

PlayPercentageVideo PlayPercentageVideoSetting

Requires users to watch a certain percentage of the video before they can submit their answer.

Markdown MarkdownSetting

Enables limited markdown rendering for text datapoints.

AllowNeitherBoth AllowNeitherBothSetting

Only for compare tasks. Enables an "Unsure" button that allows users to select neither or both options.

OriginalLanguageOnly OriginalLanguageOnlySetting

Display the content in the original language only. Hides the language switch UI from users.

NoMistakeOption NoMistakeOptionSetting

Enables a "No mistakes" button that allows users to skip task by confirming they found no errors in the media.

DisableAutoloop DisableAutoloopSetting

Disables automatic looping of video media. When enabled, videos will not automatically restart when they finish playing.

NoInstructionDisplay NoInstructionDisplaySetting

Hides the instruction text in the UI. Only the context will be shown.

KeyboardNumeric KeyboardNumericSetting

Changes the virtual keyboard input type to numeric-only for free text input fields. Useful when expecting numeric answers.

LocateMaxPoints LocateMaxPointsSetting

Sets the maximum number of points a user can place on a locate task. Once the limit is reached, no more points can be added.

LocateMinPoints LocateMinPointsSetting

Sets the minimum number of points required for a valid locate submission. The submit button is disabled until enough points are placed.

ComparePanorama ComparePanoramaSetting

Enables panorama comparison mode for compare tasks. Renders a special panoramic image viewer instead of the standard comparison view.

CompareEquirectangular CompareEquirectangularSetting

Enables equirectangular (360-degree) image comparison mode for compare tasks. Renders a special spherical viewer instead of the standard comparison view.

Example
from rapidata import NoShuffleSetting
settings=[NoShuffleSetting()]

This can be used in an order to disable shuffling of categories.