Skip to main content

construct_answer_dictionaries

def construct_answer_dictionaries(label_row) -> LabelRow
Adds answer object and classification answer dictionaries from a label row if they do not exist. Integrity checks are conducted upon saving of labels. Arguments:
  • label_row - A label row.
Returns:
  • LabelRow - A label row instance with updated answer dictionaries

add_answers_to_items

def add_answers_to_items(items, classification_answers, object_answers)
If object_hash (uid) or classification_hash (uid) are not in answer dictionaries, add key entry with empty classification list.