Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: sentence-similarity
|
3 |
+
tags:
|
4 |
+
- sentence-transformers
|
5 |
+
- feature-extraction
|
6 |
+
- sentence-similarity
|
7 |
+
- transformers
|
8 |
+
---
|
9 |
+
|
10 |
+
## Usage
|
11 |
+
from sentence_transformers import SentenceTransformer, models
|
12 |
+
|
13 |
+
embedding_model = models.Transformer("yobi/klue-roberta-base-sts")
|
14 |
+
pooling_model = models.Pooling(
|
15 |
+
embedding_model.get_word_embedding_dimension(),
|
16 |
+
pooling_mode_mean_tokens=True,
|
17 |
+
)
|
18 |
+
model = SentenceTransformer(modules=[embedding_model, pooling_model])
|
19 |
+
|
20 |
+
model.encode("์๋
ํ์ธ์.", convert_to_tensor=True)
|