snorkelflow.utils.resolve_data_path
warning
This is a beta function in 25.4. Beta features may have known gaps or bugs, but are functional workflows and eligible for Snorkel Support. To access beta features, contact Snorkel Support to enable the feature flag for your Snorkel-hosted instance.
- snorkelflow.utils.resolve_data_path(path)
Resolve a MinIO path to a local file path.
This method can resolve a MinIO path only if it is called from the in-app notebook.
Parameters
Parameters
Returns
Returns
File path
Return type
Return type
str
Name Type Default Info path str
MinIO path (e.g., “minio://path/to/file.parquet”). Examples
>>> import pandas as pd
>>> from snorkelflow.utils import resolve_data_path
>>> minio_path = "minio://path/to/file.parquet"
>>> resolved_path = resolve_data_path(minio_path)
>>> df = pd.read_parquet(resolved_path)