1"""
2This package contains implementations of pairwise similarity queries.
3"""
4
5# bring classes directly into package namespace, to save some typing
6import warnings
7try:
8    import Levenshtein  # noqa:F401
9except ImportError:
10    msg = (
11        "The gensim.similarities.levenshtein submodule is disabled, because the optional "
12        "Levenshtein package <https://pypi.org/project/python-Levenshtein/> is unavailable. "
13        "Install Levenhstein (e.g. `pip install python-Levenshtein`) to suppress this warning."
14    )
15    warnings.warn(msg)
16    LevenshteinSimilarityIndex = None
17else:
18    from .levenshtein import LevenshteinSimilarityIndex  # noqa:F401
19from .docsim import (  # noqa:F401
20    Similarity,
21    MatrixSimilarity,
22    SparseMatrixSimilarity,
23    SoftCosineSimilarity,
24    WmdSimilarity)
25from .termsim import (  # noqa:F401
26    TermSimilarityIndex,
27    UniformTermSimilarityIndex,
28    WordEmbeddingSimilarityIndex,
29    SparseTermSimilarityMatrix)
30