Update Usage
Browse files
README.md
CHANGED
@@ -12,6 +12,12 @@ This is a Japanese sentence-BERT model.
|
|
12 |
|
13 |
日本語用Sentence-BERTモデルです。
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
# 使い方
|
16 |
|
17 |
```python
|
@@ -49,6 +55,7 @@ class SentenceBertJapanese:
|
|
49 |
|
50 |
all_embeddings.extend(sentence_embeddings)
|
51 |
|
|
|
52 |
return torch.stack(all_embeddings)
|
53 |
|
54 |
|
|
|
12 |
|
13 |
日本語用Sentence-BERTモデルです。
|
14 |
|
15 |
+
|
16 |
+
# 解説
|
17 |
+
|
18 |
+
https://qiita.com/sonoisa/items/1df94d0a98cd4f209051
|
19 |
+
|
20 |
+
|
21 |
# 使い方
|
22 |
|
23 |
```python
|
|
|
55 |
|
56 |
all_embeddings.extend(sentence_embeddings)
|
57 |
|
58 |
+
# return torch.stack(all_embeddings).numpy()
|
59 |
return torch.stack(all_embeddings)
|
60 |
|
61 |
|