MCPcopy Create free account
hub / github.com/allenai/OLMoASR / init_worker

Function init_worker

scripts/data/processing/reseg_yodas.py:62–70  ·  view source on GitHub ↗

Initialize worker process with shared dataset. Args: dataset: The dataset to share across worker processes

(dataset: Dataset)

Source from the content-addressed store, hash-verified

60
61
62def init_worker(dataset: Dataset) -> None:
63 """
64 Initialize worker process with shared dataset.
65
66 Args:
67 dataset: The dataset to share across worker processes
68 """
69 global shared_ds
70 shared_ds = dataset
71
72
73def extract_id(utt_id: UtteranceID) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected