Muhammad7777's picture
Deploy application
7150d27
raw
history blame contribute delete
385 Bytes
class DiacritizerException(Exception):
"""Base exception for all errors raised by the diacritizer package."""
pass
class ModelNotFound(DiacritizerException):
"""Raised when the model files (ONNX, vocab, etc.) cannot be found."""
pass
class InvalidInputError(DiacritizerException):
"""Raised when the input text provided to the diacritizer is invalid."""
pass