Feature Extraction
sentence-transformers
PyTorch
ONNX
English
bert
splade++
document-expansion
sparse representation
bag-of-words
passage-retrieval
knowledge-distillation
document encoder
sparse-encoder
sparse
splade
text-embeddings-inference
Instructions to use prithivida/Splade_PP_en_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use prithivida/Splade_PP_en_v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("prithivida/Splade_PP_en_v1") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Commit ·
eab0e17
1
Parent(s): 64b5b5e
Update README.md
Browse files
README.md
CHANGED
|
@@ -212,7 +212,7 @@ pip install -U sentence-transformers
|
|
| 212 |
|
| 213 |
Then you can load this model and run inference.
|
| 214 |
```python
|
| 215 |
-
|
| 216 |
|
| 217 |
# Download from the 🤗 Hub
|
| 218 |
model = SparseEncoder("prithivida/Splade_PP_en_v1")
|
|
|
|
| 212 |
|
| 213 |
Then you can load this model and run inference.
|
| 214 |
```python
|
| 215 |
+
from sentence_transformers import SparseEncoder
|
| 216 |
|
| 217 |
# Download from the 🤗 Hub
|
| 218 |
model = SparseEncoder("prithivida/Splade_PP_en_v1")
|