"""
dirty_cat: Learning on dirty categories.
"""
from pathlib import Path as _Path

try:
    from ._check_dependencies import check_dependencies

    check_dependencies()
except ModuleNotFoundError:
    import warnings

    warnings.warn(
        "pkg_resources is not available, dependencies versions will not be checked."
    )

from ._datetime_encoder import DatetimeEncoder
from ._deduplicate import compute_ngram_distance, deduplicate
from ._feature_augmenter import FeatureAugmenter
from ._fuzzy_join import fuzzy_join
from ._gap_encoder import GapEncoder
from ._minhash_encoder import MinHashEncoder
from ._similarity_encoder import SimilarityEncoder
from ._table_vectorizer import SuperVectorizer, TableVectorizer
from ._target_encoder import TargetEncoder

with open(_Path(__file__).parent / "VERSION.txt") as _fh:
    __version__ = _fh.read().strip()


__all__ = [
    "DatetimeEncoder",
    "FeatureAugmenter",
    "fuzzy_join",
    "GapEncoder",
    "MinHashEncoder",
    "SimilarityEncoder",
    "SuperVectorizer",
    "TableVectorizer",
    "TargetEncoder",
    "deduplicate",
    "compute_ngram_distance",
]
