Upload loaders.py with huggingface_hub
Browse files3 unmodified lines456778910109 unmodified lines12012112212312312412512626 unmodified lines1531541551561561571581593 unmodified lines==============================================================
Unitxt is all about readily preparing of any given data source for feeding into any given language model, and then,postprocessing the model's output, preparing it for any given evaluator.post-processing the model's output, preparing it for any given evaluator.
Through that journey, the data advances in the form of Unitxt Multistream, undergoing a sequential applicationof various off the shelf operators (i.e, picked from Unitxt catalog), or operators easily implemented by inheriting.109 unmodified lines except ValueError as e: if "trust_remote_code" in str(e): raise ValueError( f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment vairable: UNITXT_ALLOW_UNVERIFIED_CODE." f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment variable: UNITXT_ALLOW_UNVERIFIED_CODE." ) from e
if self.filtering_lambda is not None:26 unmodified lines except ValueError as e: if "trust_remote_code" in str(e): raise ValueError( f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment vairable: UNITXT_ALLOW_UNVERIFIED_CODE." f"{self.__class__.__name__} cannot run remote code from huggingface without setting unitxt.settings.allow_unverified_code=True or by setting environment variable: UNITXT_ALLOW_UNVERIFIED_CODE." ) from e
if self.filtering_lambda is not None:loaders.py+3-3