A fast Python library for multimodal semantic deduplication and filtering. Currently at version 0.4.1, with active development and an irregular release cadence.
pip install semhashNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic example showing how to compute semantic hashes and deduplicate text.
Pass a custom model via SemHash(model_name='path/to/model').
Update code to expect list of tuples (e.g., [(index, duplicate_index), ...]). Before 0.4.0, it returned a dict mapping indices to lists of indices.
Use model_name='...' instead of model='...'.
Upgrade semhash to 0.4.0 or later: pip install --upgrade semhash
Ensure semhash is installed: pip install semhash. If that fails, check for conflicting packages.
Install sentence-transformers: pip install sentence-transformers. Or specify a different model via model_name parameter.