yobi commited on
Commit
862bc5c
โ€ข
1 Parent(s): c9c39a7

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
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)