cerebras.modelzoo.data_preparation.data_preprocessing.custom_hook_examples.custom_hooks.obelics_hook#

cerebras.modelzoo.data_preparation.data_preprocessing.custom_hook_examples.custom_hooks.obelics_hook(example, **read_hook_kwargs)[source]#

Process obelics dataset examples into a semantic_data_array format.

Parameters
  • example (Dict[str, Any]) – The example data to process.

  • **read_hook_kwargs – Additional keyword arguments for processing.

Returns

A list of dictionaries in semantic_data_array format.

Return type

List[Dict[str, Any]]