Errors

Deepparse raises the following exceptions, in addition to the standard Python ones (e.g. ValueError).

DataError

Raised by the dataset containers and the parser when the addresses or the tags are not valid (e.g. None, empty or whitespace-only addresses).

class deepparse.errors.DataError(value: str)[source]

User error occurs when the data structure is not as expected.

FastTextModelError

Raised by AddressParser when an operation is not supported with a FastText Light ("fasttext-light") model, namely retraining or testing such a model, or using data loading workers (num_workers > 0) with it on Windows.

class deepparse.errors.FastTextModelError(value: str)[source]

User error occurs when a user uses a FastText-like model on an OS that does not correctly support multithreading.

ServerError

class deepparse.errors.ServerError(value: str)[source]

User error occurs when the Deepparse server is not responding.