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
Improve model card
Browse filesThis PR improves the model card by:
- Adding a link to the paper
- Changing the pipeline tag to `feature-extraction`
- Adding the license
- Linking to the project page
README.md
CHANGED
|
@@ -3,7 +3,8 @@ base_model: FacebookAI/xlm-roberta-base
|
|
| 3 |
datasets:
|
| 4 |
- StyleDistance/mstyledistance_training_triplets
|
| 5 |
library_name: sentence-transformers
|
| 6 |
-
pipeline_tag:
|
|
|
|
| 7 |
tags:
|
| 8 |
- datadreamer
|
| 9 |
- datadreamer-0.35.0
|
|
@@ -29,9 +30,10 @@ widget:
|
|
| 29 |
меня.
|
| 30 |
- 你将使用有限的色调和小尺寸进行像素艺术的简化和风格化设计。
|
| 31 |
---
|
|
|
|
| 32 |
# Model Card
|
| 33 |
|
| 34 |
-
mStyleDistance is a **multilingual style embedding model** that aims to embed texts with similar writing styles closely and different styles far apart, regardless of content and regardless of language. You may find this model useful for stylistic analysis of multilingual text, clustering, authorship identfication and verification tasks, and automatic style transfer evaluation.
|
| 35 |
|
| 36 |
This model is an multilingual version of the English-only [StyleDistance](https://huggingface.co/StyleDistance/styledistance) model.
|
| 37 |
|
|
@@ -52,6 +54,9 @@ others = model.encode(["TOCARÁS LA GUITARRA CON TU AMIGO; SERÁ UNA EXCELENTE O
|
|
| 52 |
print(cos_sim(input, others))
|
| 53 |
```
|
| 54 |
|
|
|
|
|
|
|
|
|
|
| 55 |
---
|
| 56 |
## Trained with DataDreamer
|
| 57 |
|
|
|
|
| 3 |
datasets:
|
| 4 |
- StyleDistance/mstyledistance_training_triplets
|
| 5 |
library_name: sentence-transformers
|
| 6 |
+
pipeline_tag: feature-extraction
|
| 7 |
+
license: mit
|
| 8 |
tags:
|
| 9 |
- datadreamer
|
| 10 |
- datadreamer-0.35.0
|
|
|
|
| 30 |
меня.
|
| 31 |
- 你将使用有限的色调和小尺寸进行像素艺术的简化和风格化设计。
|
| 32 |
---
|
| 33 |
+
|
| 34 |
# Model Card
|
| 35 |
|
| 36 |
+
mStyleDistance is a **multilingual style embedding model** that aims to embed texts with similar writing styles closely and different styles far apart, regardless of content and regardless of language. You may find this model useful for stylistic analysis of multilingual text, clustering, authorship identfication and verification tasks, and automatic style transfer evaluation. The model is described in the paper [StyleDistance/mstyledistance](https://hf.co/papers/2502.15168).
|
| 37 |
|
| 38 |
This model is an multilingual version of the English-only [StyleDistance](https://huggingface.co/StyleDistance/styledistance) model.
|
| 39 |
|
|
|
|
| 54 |
print(cos_sim(input, others))
|
| 55 |
```
|
| 56 |
|
| 57 |
+
## Project page
|
| 58 |
+
For further information, please check the project page at https://huggingface.co/StyleDistance/mstyledistance.
|
| 59 |
+
|
| 60 |
---
|
| 61 |
## Trained with DataDreamer
|
| 62 |
|