Skip to content

Labelling configuration

mkaraki edited this page Dec 16, 2022 · 2 revisions

You have to put configuration file to dataset/%id%/config.php.

Minimal configuration

You have to configure type and src.

<?php
$teachInfo = array(
    'type' => 'audio',
    'src' => array(
        '1.mp3',
        '2.mp3',
    ),
);

Optional Parameters

title Parameter

You can decide title for labelling dataset.

Specified title shown in UI and title Element.

<?php
$teachInfo = array(
    'title' => 'Super Fantastic Dataset',
    ...
);

instruction Parameter

Specified instruction shown in label Element to describe what to do.

<?php
$teachInfo = array(
    'instruction' => 'Type some text',
    ...
);

input Parameter

Specify input type.

These values are accepted:

<?php
$teachInfo = array(
    'input' => 'mulltiline',
    ...
);

Input Variation for select

<?php
$teachInfo = array(
    'input' => 'select',
    'inputVariation' => array(
        'Good',
        'Bad',
    ),
    ...
);

Disable features

If put disable to following index and disable unused feature:

  • disablePortal: Disable Portal
  • disableView: Disable View and CSV
  • disableSources: Disable source list