Documentation Index
Fetch the complete documentation index at: https://docs.encord.com/llms.txt
Use this file to discover all available pages before exploring further.
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:
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.