File size: 385 Bytes
7150d27
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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