def load_decontext_label_from_dict(annot_dict):
  """Reconstruct decontext label from its json representation."""
  label = DecontextLabel(
      example_id=annot_dict['example_id'],
      category=annot_dict['category'],
      original_sentence=annot_dict['original_sentence'],
      decontextualized_sentence=annot_dict['decontextualized_sentence'])
  return label
Reconstruct decontext label from its json representation.
language/decontext/decontext_util.py