Feature Extraction
sentence-transformers
Safetensors
xlm-roberta
datadreamer
datadreamer-0.35.0
Synthetic
sentence-similarity
text-embeddings-inference
Instructions to use StyleDistance/mstyledistance with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use StyleDistance/mstyledistance with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("StyleDistance/mstyledistance") sentences = [ "彼は技術的な複雑さと格闘し、彼の作品は驚くべき視覚的緊張を生み出した。", "Serviste mariscos frescos en el condado de Middlesex y áreas circundantes.", "Él sirvió mariscos frescos en el condado de Middlesex y áreas circundantes." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,7 +45,7 @@ mStyleDistance was contrastively trained on [mSynthSTEL](https://huggingface.co/
|
|
| 45 |
from sentence_transformers import SentenceTransformer
|
| 46 |
from sentence_transformers.util import cos_sim
|
| 47 |
|
| 48 |
-
model = SentenceTransformer('StyleDistance/
|
| 49 |
|
| 50 |
input = model.encode("Did you hear about the Wales wing? He'll h8 2 withdraw due 2 injuries from future competitions.")
|
| 51 |
others = model.encode(["We're raising funds 2 improve our school's storage facilities and add new playground equipment!", "Did you hear about the Wales wing? He'll hate to withdraw due to injuries from future competitions."])
|
|
|
|
| 45 |
from sentence_transformers import SentenceTransformer
|
| 46 |
from sentence_transformers.util import cos_sim
|
| 47 |
|
| 48 |
+
model = SentenceTransformer('StyleDistance/mstyledistance') # Load model
|
| 49 |
|
| 50 |
input = model.encode("Did you hear about the Wales wing? He'll h8 2 withdraw due 2 injuries from future competitions.")
|
| 51 |
others = model.encode(["We're raising funds 2 improve our school's storage facilities and add new playground equipment!", "Did you hear about the Wales wing? He'll hate to withdraw due to injuries from future competitions."])
|