Instructions to use johngiorgi/declutr-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use johngiorgi/declutr-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("johngiorgi/declutr-base") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
2d2698d | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:b6a56efbf6bc06b77c4b6c371455e226b2c78481f17780cf679df8d857931067
size 498796983
|