data_juicer.core.data.config_validator module¶ exception data_juicer.core.data.config_validator.ConfigValidationError[源代码]¶ 基类:Exception Custom exception for validation errors class data_juicer.core.data.config_validator.ConfigValidator[源代码]¶ 基类:object Mixin class for configuration validation CONFIG_VALIDATION_RULES = {'custom_validators': {}, 'field_types': {}, 'optional_fields': [], 'required_fields': []}¶ validate_config(ds_config: Dict) → None[源代码]¶ Validate the configuration dictionary. 参数: ds_config -- Configuration dictionary to validate 抛出: ValidationError -- If validation fails