Skip to content
Snippets Groups Projects
__init__.py 1.23 KiB
Newer Older
Michał Pogoda's avatar
Michał Pogoda committed
from src.detections.date import DateDetection
from src.detections.detection import (
    Detection,
    CityDetection,
    CountryDetection,
    EmailDetection,
    HydronymDetection,
    KRSDetection,
    LocationDetection,
    MorphosyntacticInfoMixin,
    NameDetection,
    NumberDetection,
    OrganizationNameDetection,
    PhoneNumberDetection,
    ProperNameDetection,
    SerialNumberDetection,
    StreetNameDetection,
    OtherDetection,
    SurnameDetection,
    TINDetection,
    TitleDetection,
    UrlDetection,
    UserDetection,
)
Michał Pogoda's avatar
Michał Pogoda committed
from src.utils.utils import get_sublcasses

DETECTION_CLASSES_MAP = {
    detection_class.TYPE_NAME: detection_class
    for detection_class in get_sublcasses(Detection)
Michał Pogoda's avatar
Michał Pogoda committed
}
Michał Pogoda's avatar
Michał Pogoda committed

__all__ = [
    "Detection",
    "CityDetection",
    "CountryDetection",
    "EmailDetection",
    "HydronymDetection",
    "KRSDetection",
    "LocationDetection",
    "MorphosyntacticInfoMixin",
    "NameDetection",
    "NumberDetection",
    "OrganizationNameDetection",
    "PhoneNumberDetection",
    "ProperNameDetection",
    "SerialNumberDetection",
    "StreetNameDetection",
    "OtherDetection",
    "SurnameDetection",
    "TINDetection",
    "TitleDetection",
    "UrlDetection",
    "UserDetection",
    "DateDetection",
]