|
|
--- |
|
|
library_name: model2vec |
|
|
license: mit |
|
|
model_name: cnmoro/low-dimension-static-model |
|
|
tags: |
|
|
- embeddings |
|
|
- static-embeddings |
|
|
- sentence-transformers |
|
|
--- |
|
|
|
|
|
A low dimension static embedding model (3d) to be used as a text encoder in ML pipelines |
|
|
|
|
|
## Installation |
|
|
|
|
|
Install model2vec using pip: |
|
|
``` |
|
|
pip install model2vec |
|
|
``` |
|
|
|
|
|
```python |
|
|
from sentence_transformers import SentenceTransformer |
|
|
|
|
|
# Load a pretrained Sentence Transformer model |
|
|
model = SentenceTransformer("cnmoro/low-dimension-static-model") |
|
|
|
|
|
# Compute text embeddings |
|
|
embeddings = model.encode(["Example sentence"]) |
|
|
``` |
|
|
|