meerqat.data.labelstudio module#
- Used to manipulate the output of Label Studio, see also ANNOTATION.md
assigntakes annotations out of the TODO list in atasks.jsonfile (input to LS)save imagessimilar tokilt2vqa download, not used for the final datasetmergemerges several LS outputs, also compute inter-annotator agreement and saves disagreementsagreemerges the output ofmergealong 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