meerqat.data.labelstudio module#
- Used to manipulate the output of Label Studio, see also ANNOTATION.md
assign
takes annotations out of the TODO list in atasks.json
file (input to LS)save images
similar tokilt2vqa download
, not used for the final datasetmerge
merges several LS outputs, also compute inter-annotator agreement and saves disagreementsagree
merges the output ofmerge
along with the corrected disagreements
Usage: labelstudio.py save images <path>… labelstudio.py merge <output> <path>… labelstudio.py assign <output> <todo> <start> <end> [–overlap=<n> –zip <config>…] labelstudio.py agree <dataset> <agreements>
- Options:
- --overlap=<n>
Number of questions to leave in todo [default: 0].
- --zip
Whether to zip the output directory
- meerqat.data.labelstudio.load_completions(completions_path)[source]#
Handles individual completions path and JSON exports
- meerqat.data.labelstudio.annotator_agreement(dataset)[source]#
- Parameters:
dataset (dict[str, list]) – output of merge
- Returns:
disagreements – questions of dataset where the annotators disagree on whether discarding the question or not
- Return type:
dict