Add new SentenceTransformer model.
Browse files
README.md
CHANGED
@@ -1,201 +1,578 @@
|
|
1 |
---
|
2 |
base_model: colorfulscoop/sbert-base-ja
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
---
|
7 |
|
8 |
-
#
|
9 |
-
|
10 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
11 |
-
|
12 |
|
|
|
13 |
|
14 |
## Model Details
|
15 |
|
16 |
### Model Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
Generates similarity embeddings
|
21 |
-
|
22 |
-
- **Developed by:** [More Information Needed]
|
23 |
-
- **Funded by [optional]:** [More Information Needed]
|
24 |
-
- **Shared by [optional]:** [More Information Needed]
|
25 |
-
- **Model type:** [More Information Needed]
|
26 |
-
- **Language(s) (NLP):** ja
|
27 |
-
- **License:** cc-by-sa-4.0
|
28 |
-
- **Finetuned from model [optional]:** colorfulscoop/sbert-base-ja
|
29 |
-
|
30 |
-
### Model Sources [optional]
|
31 |
-
|
32 |
-
<!-- Provide the basic links for the model. -->
|
33 |
-
|
34 |
-
- **Repository:** [More Information Needed]
|
35 |
-
- **Paper [optional]:** [More Information Needed]
|
36 |
-
- **Demo [optional]:** [More Information Needed]
|
37 |
-
|
38 |
-
## Uses
|
39 |
-
|
40 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
41 |
|
42 |
-
|
|
|
|
|
43 |
|
44 |
-
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
-
|
49 |
|
50 |
-
|
51 |
|
52 |
-
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
[More Information Needed]
|
59 |
|
60 |
-
|
|
|
|
|
61 |
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
|
|
|
|
67 |
|
68 |
-
<!--
|
|
|
69 |
|
70 |
-
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
Use the code below to get started with the model.
|
75 |
-
|
76 |
-
[More Information Needed]
|
77 |
-
|
78 |
-
## Training Details
|
79 |
|
80 |
-
|
|
|
81 |
|
82 |
-
|
83 |
|
84 |
-
|
85 |
|
86 |
-
|
|
|
87 |
|
88 |
-
<!--
|
89 |
-
|
90 |
-
#### Preprocessing [optional]
|
91 |
-
|
92 |
-
[More Information Needed]
|
93 |
-
|
94 |
-
|
95 |
-
#### Training Hyperparameters
|
96 |
-
|
97 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
98 |
-
|
99 |
-
#### Speeds, Sizes, Times [optional]
|
100 |
-
|
101 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
102 |
|
103 |
-
|
|
|
104 |
|
105 |
## Evaluation
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
[More Information Needed]
|
160 |
-
|
161 |
-
### Compute Infrastructure
|
162 |
-
|
163 |
-
[More Information Needed]
|
164 |
-
|
165 |
-
#### Hardware
|
166 |
-
|
167 |
-
[More Information Needed]
|
168 |
-
|
169 |
-
#### Software
|
170 |
-
|
171 |
-
[More Information Needed]
|
172 |
-
|
173 |
-
## Citation [optional]
|
174 |
-
|
175 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
176 |
-
|
177 |
-
**BibTeX:**
|
178 |
-
|
179 |
-
[More Information Needed]
|
180 |
-
|
181 |
-
**APA:**
|
182 |
-
|
183 |
-
[More Information Needed]
|
184 |
-
|
185 |
-
## Glossary [optional]
|
186 |
-
|
187 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
188 |
-
|
189 |
-
[More Information Needed]
|
190 |
-
|
191 |
-
## More Information [optional]
|
192 |
-
|
193 |
-
[More Information Needed]
|
194 |
|
195 |
-
|
|
|
196 |
|
197 |
-
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
## Model Card Contact
|
200 |
|
201 |
-
|
|
|
|
1 |
---
|
2 |
base_model: colorfulscoop/sbert-base-ja
|
3 |
+
library_name: sentence-transformers
|
4 |
+
metrics:
|
5 |
+
- cosine_accuracy
|
6 |
+
- cosine_accuracy_threshold
|
7 |
+
- cosine_f1
|
8 |
+
- cosine_f1_threshold
|
9 |
+
- cosine_precision
|
10 |
+
- cosine_recall
|
11 |
+
- cosine_ap
|
12 |
+
- dot_accuracy
|
13 |
+
- dot_accuracy_threshold
|
14 |
+
- dot_f1
|
15 |
+
- dot_f1_threshold
|
16 |
+
- dot_precision
|
17 |
+
- dot_recall
|
18 |
+
- dot_ap
|
19 |
+
- manhattan_accuracy
|
20 |
+
- manhattan_accuracy_threshold
|
21 |
+
- manhattan_f1
|
22 |
+
- manhattan_f1_threshold
|
23 |
+
- manhattan_precision
|
24 |
+
- manhattan_recall
|
25 |
+
- manhattan_ap
|
26 |
+
- euclidean_accuracy
|
27 |
+
- euclidean_accuracy_threshold
|
28 |
+
- euclidean_f1
|
29 |
+
- euclidean_f1_threshold
|
30 |
+
- euclidean_precision
|
31 |
+
- euclidean_recall
|
32 |
+
- euclidean_ap
|
33 |
+
- max_accuracy
|
34 |
+
- max_accuracy_threshold
|
35 |
+
- max_f1
|
36 |
+
- max_f1_threshold
|
37 |
+
- max_precision
|
38 |
+
- max_recall
|
39 |
+
- max_ap
|
40 |
+
pipeline_tag: sentence-similarity
|
41 |
+
tags:
|
42 |
+
- sentence-transformers
|
43 |
+
- sentence-similarity
|
44 |
+
- feature-extraction
|
45 |
+
- generated_from_trainer
|
46 |
+
- dataset_size:533
|
47 |
+
- loss:CoSENTLoss
|
48 |
+
widget:
|
49 |
+
- source_sentence: 日中 は 、 さまざまな 人々 の 集まり が カメラ から 離れて 灰色 の 建物 の 周り を 歩いて い ます 。
|
50 |
+
sentences:
|
51 |
+
- 女性 が 崖 の 上 に 立って い ます 。
|
52 |
+
- 楽譜 を 編集 する 人 。
|
53 |
+
- 人々 は 仕事 の シフト を 去って い ます 。
|
54 |
+
- source_sentence: 白い シャツ と 黒い 野球 帽 を かぶった 男 が レンガ の 壁 の 看板 に 手 を 伸ばし ます 。
|
55 |
+
sentences:
|
56 |
+
- 少年 は 代わり に 彼 が 歌う 楽器 を 演奏 し ませ ん
|
57 |
+
- 背 の 高い 人間
|
58 |
+
- 男の子 が 宿題 を して い ます 。
|
59 |
+
- source_sentence: 遊歩道 に 沿って 並ぶ 自転車 。
|
60 |
+
sentences:
|
61 |
+
- 男 が 地面 に 座って い ます 。
|
62 |
+
- ハロウィーン パーティー で 踊る 女の子 。
|
63 |
+
- 自転車 は 遊歩道 近く の ラック に あり ます 。
|
64 |
+
- source_sentence: 2 人 の 登山 者 が 山 に 座って い ます 。
|
65 |
+
sentences:
|
66 |
+
- 二 人 の クライマー が 座って い ます
|
67 |
+
- 少年 は 海 の 水 の 中 を 歩いて い ます 。
|
68 |
+
- 丘 は 音楽 の 音 と ともに 生きて い ます 。
|
69 |
+
- source_sentence: オクラホマ の フットボール 選手 が 試合 中 に ウィスコンシン の 選手 を 追い かけて い ます 。
|
70 |
+
sentences:
|
71 |
+
- この 写真 に は 3 人 の 人物 が いて 、 全員 が 働いて い ます 。
|
72 |
+
- バスケットボール を して いる 男の子 が い ます 。
|
73 |
+
- 猫 は 泳ぐ こと を 学び ます 。
|
74 |
+
model-index:
|
75 |
+
- name: SentenceTransformer based on colorfulscoop/sbert-base-ja
|
76 |
+
results:
|
77 |
+
- task:
|
78 |
+
type: binary-classification
|
79 |
+
name: Binary Classification
|
80 |
+
dataset:
|
81 |
+
name: custom arc semantics data jp
|
82 |
+
type: custom-arc-semantics-data-jp
|
83 |
+
metrics:
|
84 |
+
- type: cosine_accuracy
|
85 |
+
value: 0.719626168224299
|
86 |
+
name: Cosine Accuracy
|
87 |
+
- type: cosine_accuracy_threshold
|
88 |
+
value: 0.9530074000358582
|
89 |
+
name: Cosine Accuracy Threshold
|
90 |
+
- type: cosine_f1
|
91 |
+
value: 0.7647058823529411
|
92 |
+
name: Cosine F1
|
93 |
+
- type: cosine_f1_threshold
|
94 |
+
value: 0.9352529048919678
|
95 |
+
name: Cosine F1 Threshold
|
96 |
+
- type: cosine_precision
|
97 |
+
value: 0.7027027027027027
|
98 |
+
name: Cosine Precision
|
99 |
+
- type: cosine_recall
|
100 |
+
value: 0.8387096774193549
|
101 |
+
name: Cosine Recall
|
102 |
+
- type: cosine_ap
|
103 |
+
value: 0.7269827062837623
|
104 |
+
name: Cosine Ap
|
105 |
+
- type: dot_accuracy
|
106 |
+
value: 0.7289719626168224
|
107 |
+
name: Dot Accuracy
|
108 |
+
- type: dot_accuracy_threshold
|
109 |
+
value: 586.882568359375
|
110 |
+
name: Dot Accuracy Threshold
|
111 |
+
- type: dot_f1
|
112 |
+
value: 0.7794117647058824
|
113 |
+
name: Dot F1
|
114 |
+
- type: dot_f1_threshold
|
115 |
+
value: 580.3487548828125
|
116 |
+
name: Dot F1 Threshold
|
117 |
+
- type: dot_precision
|
118 |
+
value: 0.7162162162162162
|
119 |
+
name: Dot Precision
|
120 |
+
- type: dot_recall
|
121 |
+
value: 0.8548387096774194
|
122 |
+
name: Dot Recall
|
123 |
+
- type: dot_ap
|
124 |
+
value: 0.7165051508080719
|
125 |
+
name: Dot Ap
|
126 |
+
- type: manhattan_accuracy
|
127 |
+
value: 0.7102803738317757
|
128 |
+
name: Manhattan Accuracy
|
129 |
+
- type: manhattan_accuracy_threshold
|
130 |
+
value: 168.15194702148438
|
131 |
+
name: Manhattan Accuracy Threshold
|
132 |
+
- type: manhattan_f1
|
133 |
+
value: 0.7647058823529411
|
134 |
+
name: Manhattan F1
|
135 |
+
- type: manhattan_f1_threshold
|
136 |
+
value: 197.73638916015625
|
137 |
+
name: Manhattan F1 Threshold
|
138 |
+
- type: manhattan_precision
|
139 |
+
value: 0.7027027027027027
|
140 |
+
name: Manhattan Precision
|
141 |
+
- type: manhattan_recall
|
142 |
+
value: 0.8387096774193549
|
143 |
+
name: Manhattan Recall
|
144 |
+
- type: manhattan_ap
|
145 |
+
value: 0.7257938675452797
|
146 |
+
name: Manhattan Ap
|
147 |
+
- type: euclidean_accuracy
|
148 |
+
value: 0.7102803738317757
|
149 |
+
name: Euclidean Accuracy
|
150 |
+
- type: euclidean_accuracy_threshold
|
151 |
+
value: 7.578760147094727
|
152 |
+
name: Euclidean Accuracy Threshold
|
153 |
+
- type: euclidean_f1
|
154 |
+
value: 0.7647058823529411
|
155 |
+
name: Euclidean F1
|
156 |
+
- type: euclidean_f1_threshold
|
157 |
+
value: 8.979024887084961
|
158 |
+
name: Euclidean F1 Threshold
|
159 |
+
- type: euclidean_precision
|
160 |
+
value: 0.7027027027027027
|
161 |
+
name: Euclidean Precision
|
162 |
+
- type: euclidean_recall
|
163 |
+
value: 0.8387096774193549
|
164 |
+
name: Euclidean Recall
|
165 |
+
- type: euclidean_ap
|
166 |
+
value: 0.7259114754786087
|
167 |
+
name: Euclidean Ap
|
168 |
+
- type: max_accuracy
|
169 |
+
value: 0.7289719626168224
|
170 |
+
name: Max Accuracy
|
171 |
+
- type: max_accuracy_threshold
|
172 |
+
value: 586.882568359375
|
173 |
+
name: Max Accuracy Threshold
|
174 |
+
- type: max_f1
|
175 |
+
value: 0.7794117647058824
|
176 |
+
name: Max F1
|
177 |
+
- type: max_f1_threshold
|
178 |
+
value: 580.3487548828125
|
179 |
+
name: Max F1 Threshold
|
180 |
+
- type: max_precision
|
181 |
+
value: 0.7162162162162162
|
182 |
+
name: Max Precision
|
183 |
+
- type: max_recall
|
184 |
+
value: 0.8548387096774194
|
185 |
+
name: Max Recall
|
186 |
+
- type: max_ap
|
187 |
+
value: 0.7269827062837623
|
188 |
+
name: Max Ap
|
189 |
---
|
190 |
|
191 |
+
# SentenceTransformer based on colorfulscoop/sbert-base-ja
|
|
|
|
|
|
|
192 |
|
193 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [colorfulscoop/sbert-base-ja](https://huggingface.co/colorfulscoop/sbert-base-ja) on the csv dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
194 |
|
195 |
## Model Details
|
196 |
|
197 |
### Model Description
|
198 |
+
- **Model Type:** Sentence Transformer
|
199 |
+
- **Base model:** [colorfulscoop/sbert-base-ja](https://huggingface.co/colorfulscoop/sbert-base-ja) <!-- at revision ecb8a98cd5176719ff7ab0d770a27420118732cf -->
|
200 |
+
- **Maximum Sequence Length:** 512 tokens
|
201 |
+
- **Output Dimensionality:** 768 tokens
|
202 |
+
- **Similarity Function:** Cosine Similarity
|
203 |
+
- **Training Dataset:**
|
204 |
+
- csv
|
205 |
+
<!-- - **Language:** Unknown -->
|
206 |
+
<!-- - **License:** Unknown -->
|
207 |
|
208 |
+
### Model Sources
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
211 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
212 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
213 |
|
214 |
+
### Full Model Architecture
|
215 |
|
216 |
+
```
|
217 |
+
SentenceTransformer(
|
218 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
|
219 |
+
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
220 |
+
)
|
221 |
+
```
|
222 |
|
223 |
+
## Usage
|
224 |
|
225 |
+
### Direct Usage (Sentence Transformers)
|
226 |
|
227 |
+
First install the Sentence Transformers library:
|
228 |
|
229 |
+
```bash
|
230 |
+
pip install -U sentence-transformers
|
231 |
+
```
|
|
|
|
|
232 |
|
233 |
+
Then you can load this model and run inference.
|
234 |
+
```python
|
235 |
+
from sentence_transformers import SentenceTransformer
|
236 |
|
237 |
+
# Download from the 🤗 Hub
|
238 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
239 |
+
# Run inference
|
240 |
+
sentences = [
|
241 |
+
'オクラホマ の フットボール 選手 が 試合 中 に ウィスコンシン の 選手 を 追い かけて い ます 。',
|
242 |
+
'バスケットボール を して いる 男の子 が い ます 。',
|
243 |
+
'猫 は 泳ぐ こと を 学び ます 。',
|
244 |
+
]
|
245 |
+
embeddings = model.encode(sentences)
|
246 |
+
print(embeddings.shape)
|
247 |
+
# [3, 768]
|
248 |
|
249 |
+
# Get the similarity scores for the embeddings
|
250 |
+
similarities = model.similarity(embeddings, embeddings)
|
251 |
+
print(similarities.shape)
|
252 |
+
# [3, 3]
|
253 |
+
```
|
254 |
|
255 |
+
<!--
|
256 |
+
### Direct Usage (Transformers)
|
257 |
|
258 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
259 |
|
260 |
+
</details>
|
261 |
+
-->
|
|
|
|
|
|
|
|
|
|
|
262 |
|
263 |
+
<!--
|
264 |
+
### Downstream Usage (Sentence Transformers)
|
265 |
|
266 |
+
You can finetune this model on your own dataset.
|
267 |
|
268 |
+
<details><summary>Click to expand</summary>
|
269 |
|
270 |
+
</details>
|
271 |
+
-->
|
272 |
|
273 |
+
<!--
|
274 |
+
### Out-of-Scope Use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
|
276 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
277 |
+
-->
|
278 |
|
279 |
## Evaluation
|
280 |
|
281 |
+
### Metrics
|
282 |
+
|
283 |
+
#### Binary Classification
|
284 |
+
* Dataset: `custom-arc-semantics-data-jp`
|
285 |
+
* Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
|
286 |
+
|
287 |
+
| Metric | Value |
|
288 |
+
|:-----------------------------|:----------|
|
289 |
+
| cosine_accuracy | 0.7196 |
|
290 |
+
| cosine_accuracy_threshold | 0.953 |
|
291 |
+
| cosine_f1 | 0.7647 |
|
292 |
+
| cosine_f1_threshold | 0.9353 |
|
293 |
+
| cosine_precision | 0.7027 |
|
294 |
+
| cosine_recall | 0.8387 |
|
295 |
+
| cosine_ap | 0.727 |
|
296 |
+
| dot_accuracy | 0.729 |
|
297 |
+
| dot_accuracy_threshold | 586.8826 |
|
298 |
+
| dot_f1 | 0.7794 |
|
299 |
+
| dot_f1_threshold | 580.3488 |
|
300 |
+
| dot_precision | 0.7162 |
|
301 |
+
| dot_recall | 0.8548 |
|
302 |
+
| dot_ap | 0.7165 |
|
303 |
+
| manhattan_accuracy | 0.7103 |
|
304 |
+
| manhattan_accuracy_threshold | 168.1519 |
|
305 |
+
| manhattan_f1 | 0.7647 |
|
306 |
+
| manhattan_f1_threshold | 197.7364 |
|
307 |
+
| manhattan_precision | 0.7027 |
|
308 |
+
| manhattan_recall | 0.8387 |
|
309 |
+
| manhattan_ap | 0.7258 |
|
310 |
+
| euclidean_accuracy | 0.7103 |
|
311 |
+
| euclidean_accuracy_threshold | 7.5788 |
|
312 |
+
| euclidean_f1 | 0.7647 |
|
313 |
+
| euclidean_f1_threshold | 8.979 |
|
314 |
+
| euclidean_precision | 0.7027 |
|
315 |
+
| euclidean_recall | 0.8387 |
|
316 |
+
| euclidean_ap | 0.7259 |
|
317 |
+
| max_accuracy | 0.729 |
|
318 |
+
| max_accuracy_threshold | 586.8826 |
|
319 |
+
| max_f1 | 0.7794 |
|
320 |
+
| max_f1_threshold | 580.3488 |
|
321 |
+
| max_precision | 0.7162 |
|
322 |
+
| max_recall | 0.8548 |
|
323 |
+
| **max_ap** | **0.727** |
|
324 |
+
|
325 |
+
<!--
|
326 |
+
## Bias, Risks and Limitations
|
327 |
+
|
328 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
329 |
+
-->
|
330 |
+
|
331 |
+
<!--
|
332 |
+
### Recommendations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
|
334 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
335 |
+
-->
|
336 |
|
337 |
+
## Training Details
|
338 |
|
339 |
+
### Training Dataset
|
340 |
+
|
341 |
+
#### csv
|
342 |
+
|
343 |
+
* Dataset: csv
|
344 |
+
* Size: 533 training samples
|
345 |
+
* Columns: <code>text1</code>, <code>text2</code>, and <code>label</code>
|
346 |
+
* Approximate statistics based on the first 533 samples:
|
347 |
+
| | text1 | text2 | label |
|
348 |
+
|:--------|:------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:------------------------------------------------|
|
349 |
+
| type | string | string | int |
|
350 |
+
| details | <ul><li>min: 12 tokens</li><li>mean: 36.54 tokens</li><li>max: 108 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 23.04 tokens</li><li>max: 62 tokens</li></ul> | <ul><li>0: ~37.09%</li><li>1: ~62.91%</li></ul> |
|
351 |
+
* Samples:
|
352 |
+
| text1 | text2 | label |
|
353 |
+
|:-----------------------------------------------------------------------|:---------------------------------------------------------------|:---------------|
|
354 |
+
| <code>男性 の グループ は 古い 軍事 衣装 を 着て 、 パレード の ように 楽器 を 運んで い ます 。</code> | <code>まるで 戦争 の 準備 の ように 、 男性 の グループ は 武器 を 運んで い ます 。</code> | <code>1</code> |
|
355 |
+
| <code>赤い Tシャツ を 着た 男性 は 、 ジャケット を 着て い なくて も スノーボード を して い ます 。</code> | <code>スノー ボーダー が Tシャツ を 着て い ます 。</code> | <code>0</code> |
|
356 |
+
| <code>男 が パン ハンドラー に 寄付 し ます 。</code> | <code>古い パン ハンドラー に は 、 若い 大学生 から の 寛大な 寄付 が 与え られ ます 。</code> | <code>1</code> |
|
357 |
+
* Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
|
358 |
+
```json
|
359 |
+
{
|
360 |
+
"scale": 20.0,
|
361 |
+
"similarity_fct": "pairwise_cos_sim"
|
362 |
+
}
|
363 |
+
```
|
364 |
+
|
365 |
+
### Evaluation Dataset
|
366 |
+
|
367 |
+
#### csv
|
368 |
+
|
369 |
+
* Dataset: csv
|
370 |
+
* Size: 533 evaluation samples
|
371 |
+
* Columns: <code>text1</code>, <code>text2</code>, and <code>label</code>
|
372 |
+
* Approximate statistics based on the first 533 samples:
|
373 |
+
| | text1 | text2 | label |
|
374 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:------------------------------------------------|
|
375 |
+
| type | string | string | int |
|
376 |
+
| details | <ul><li>min: 14 tokens</li><li>mean: 33.4 tokens</li><li>max: 84 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 21.71 tokens</li><li>max: 43 tokens</li></ul> | <ul><li>0: ~42.06%</li><li>1: ~57.94%</li></ul> |
|
377 |
+
* Samples:
|
378 |
+
| text1 | text2 | label |
|
379 |
+
|:---------------------------------------------------------------|:------------------------------------------------|:---------------|
|
380 |
+
| <code>黒い シャツ と ジーンズ を 着た 男性 が 配管 システム に 取り組んで いる ようです 。</code> | <code>パイプ の 隣 の 男 。</code> | <code>0</code> |
|
381 |
+
| <code>一緒に 通り を 歩いて いる 人 。</code> | <code>背 の 高い 人間 が 歩いて</code> | <code>1</code> |
|
382 |
+
| <code>女の子 が ロボット の Wall - E に dress 装 して い ます 。</code> | <code>ロボット の 衣装 を 着て いる Wall - E の 女の子 。</code> | <code>1</code> |
|
383 |
+
* Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
|
384 |
+
```json
|
385 |
+
{
|
386 |
+
"scale": 20.0,
|
387 |
+
"similarity_fct": "pairwise_cos_sim"
|
388 |
+
}
|
389 |
+
```
|
390 |
+
|
391 |
+
### Training Hyperparameters
|
392 |
+
#### Non-Default Hyperparameters
|
393 |
+
|
394 |
+
- `eval_strategy`: epoch
|
395 |
+
- `learning_rate`: 2e-05
|
396 |
+
- `warmup_ratio`: 0.4
|
397 |
+
- `fp16`: True
|
398 |
+
- `batch_sampler`: no_duplicates
|
399 |
+
|
400 |
+
#### All Hyperparameters
|
401 |
+
<details><summary>Click to expand</summary>
|
402 |
+
|
403 |
+
- `overwrite_output_dir`: False
|
404 |
+
- `do_predict`: False
|
405 |
+
- `eval_strategy`: epoch
|
406 |
+
- `prediction_loss_only`: True
|
407 |
+
- `per_device_train_batch_size`: 8
|
408 |
+
- `per_device_eval_batch_size`: 8
|
409 |
+
- `per_gpu_train_batch_size`: None
|
410 |
+
- `per_gpu_eval_batch_size`: None
|
411 |
+
- `gradient_accumulation_steps`: 1
|
412 |
+
- `eval_accumulation_steps`: None
|
413 |
+
- `torch_empty_cache_steps`: None
|
414 |
+
- `learning_rate`: 2e-05
|
415 |
+
- `weight_decay`: 0.0
|
416 |
+
- `adam_beta1`: 0.9
|
417 |
+
- `adam_beta2`: 0.999
|
418 |
+
- `adam_epsilon`: 1e-08
|
419 |
+
- `max_grad_norm`: 1.0
|
420 |
+
- `num_train_epochs`: 3
|
421 |
+
- `max_steps`: -1
|
422 |
+
- `lr_scheduler_type`: linear
|
423 |
+
- `lr_scheduler_kwargs`: {}
|
424 |
+
- `warmup_ratio`: 0.4
|
425 |
+
- `warmup_steps`: 0
|
426 |
+
- `log_level`: passive
|
427 |
+
- `log_level_replica`: warning
|
428 |
+
- `log_on_each_node`: True
|
429 |
+
- `logging_nan_inf_filter`: True
|
430 |
+
- `save_safetensors`: True
|
431 |
+
- `save_on_each_node`: False
|
432 |
+
- `save_only_model`: False
|
433 |
+
- `restore_callback_states_from_checkpoint`: False
|
434 |
+
- `no_cuda`: False
|
435 |
+
- `use_cpu`: False
|
436 |
+
- `use_mps_device`: False
|
437 |
+
- `seed`: 42
|
438 |
+
- `data_seed`: None
|
439 |
+
- `jit_mode_eval`: False
|
440 |
+
- `use_ipex`: False
|
441 |
+
- `bf16`: False
|
442 |
+
- `fp16`: True
|
443 |
+
- `fp16_opt_level`: O1
|
444 |
+
- `half_precision_backend`: auto
|
445 |
+
- `bf16_full_eval`: False
|
446 |
+
- `fp16_full_eval`: False
|
447 |
+
- `tf32`: None
|
448 |
+
- `local_rank`: 0
|
449 |
+
- `ddp_backend`: None
|
450 |
+
- `tpu_num_cores`: None
|
451 |
+
- `tpu_metrics_debug`: False
|
452 |
+
- `debug`: []
|
453 |
+
- `dataloader_drop_last`: False
|
454 |
+
- `dataloader_num_workers`: 0
|
455 |
+
- `dataloader_prefetch_factor`: None
|
456 |
+
- `past_index`: -1
|
457 |
+
- `disable_tqdm`: False
|
458 |
+
- `remove_unused_columns`: True
|
459 |
+
- `label_names`: None
|
460 |
+
- `load_best_model_at_end`: False
|
461 |
+
- `ignore_data_skip`: False
|
462 |
+
- `fsdp`: []
|
463 |
+
- `fsdp_min_num_params`: 0
|
464 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
465 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
466 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
467 |
+
- `deepspeed`: None
|
468 |
+
- `label_smoothing_factor`: 0.0
|
469 |
+
- `optim`: adamw_torch
|
470 |
+
- `optim_args`: None
|
471 |
+
- `adafactor`: False
|
472 |
+
- `group_by_length`: False
|
473 |
+
- `length_column_name`: length
|
474 |
+
- `ddp_find_unused_parameters`: None
|
475 |
+
- `ddp_bucket_cap_mb`: None
|
476 |
+
- `ddp_broadcast_buffers`: False
|
477 |
+
- `dataloader_pin_memory`: True
|
478 |
+
- `dataloader_persistent_workers`: False
|
479 |
+
- `skip_memory_metrics`: True
|
480 |
+
- `use_legacy_prediction_loop`: False
|
481 |
+
- `push_to_hub`: False
|
482 |
+
- `resume_from_checkpoint`: None
|
483 |
+
- `hub_model_id`: None
|
484 |
+
- `hub_strategy`: every_save
|
485 |
+
- `hub_private_repo`: False
|
486 |
+
- `hub_always_push`: False
|
487 |
+
- `gradient_checkpointing`: False
|
488 |
+
- `gradient_checkpointing_kwargs`: None
|
489 |
+
- `include_inputs_for_metrics`: False
|
490 |
+
- `eval_do_concat_batches`: True
|
491 |
+
- `fp16_backend`: auto
|
492 |
+
- `push_to_hub_model_id`: None
|
493 |
+
- `push_to_hub_organization`: None
|
494 |
+
- `mp_parameters`:
|
495 |
+
- `auto_find_batch_size`: False
|
496 |
+
- `full_determinism`: False
|
497 |
+
- `torchdynamo`: None
|
498 |
+
- `ray_scope`: last
|
499 |
+
- `ddp_timeout`: 1800
|
500 |
+
- `torch_compile`: False
|
501 |
+
- `torch_compile_backend`: None
|
502 |
+
- `torch_compile_mode`: None
|
503 |
+
- `dispatch_batches`: None
|
504 |
+
- `split_batches`: None
|
505 |
+
- `include_tokens_per_second`: False
|
506 |
+
- `include_num_input_tokens_seen`: False
|
507 |
+
- `neftune_noise_alpha`: None
|
508 |
+
- `optim_target_modules`: None
|
509 |
+
- `batch_eval_metrics`: False
|
510 |
+
- `eval_on_start`: False
|
511 |
+
- `eval_use_gather_object`: False
|
512 |
+
- `batch_sampler`: no_duplicates
|
513 |
+
- `multi_dataset_batch_sampler`: proportional
|
514 |
+
|
515 |
+
</details>
|
516 |
+
|
517 |
+
### Training Logs
|
518 |
+
| Epoch | Step | Training Loss | loss | custom-arc-semantics-data-jp_max_ap |
|
519 |
+
|:-----:|:----:|:-------------:|:------:|:-----------------------------------:|
|
520 |
+
| 1.0 | 54 | 6.8257 | 2.9371 | 0.6004 |
|
521 |
+
| 2.0 | 108 | 2.5093 | 2.5029 | 0.7100 |
|
522 |
+
| 3.0 | 162 | 2.2611 | 2.6394 | 0.7270 |
|
523 |
+
|
524 |
+
|
525 |
+
### Framework Versions
|
526 |
+
- Python: 3.10.14
|
527 |
+
- Sentence Transformers: 3.1.0
|
528 |
+
- Transformers: 4.44.2
|
529 |
+
- PyTorch: 2.4.1+cu121
|
530 |
+
- Accelerate: 0.34.2
|
531 |
+
- Datasets: 2.20.0
|
532 |
+
- Tokenizers: 0.19.1
|
533 |
+
|
534 |
+
## Citation
|
535 |
+
|
536 |
+
### BibTeX
|
537 |
+
|
538 |
+
#### Sentence Transformers
|
539 |
+
```bibtex
|
540 |
+
@inproceedings{reimers-2019-sentence-bert,
|
541 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
542 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
543 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
544 |
+
month = "11",
|
545 |
+
year = "2019",
|
546 |
+
publisher = "Association for Computational Linguistics",
|
547 |
+
url = "https://arxiv.org/abs/1908.10084",
|
548 |
+
}
|
549 |
+
```
|
550 |
+
|
551 |
+
#### CoSENTLoss
|
552 |
+
```bibtex
|
553 |
+
@online{kexuefm-8847,
|
554 |
+
title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
|
555 |
+
author={Su Jianlin},
|
556 |
+
year={2022},
|
557 |
+
month={Jan},
|
558 |
+
url={https://kexue.fm/archives/8847},
|
559 |
+
}
|
560 |
+
```
|
561 |
+
|
562 |
+
<!--
|
563 |
+
## Glossary
|
564 |
+
|
565 |
+
*Clearly define terms in order to be accessible across audiences.*
|
566 |
+
-->
|
567 |
+
|
568 |
+
<!--
|
569 |
+
## Model Card Authors
|
570 |
+
|
571 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
572 |
+
-->
|
573 |
+
|
574 |
+
<!--
|
575 |
## Model Card Contact
|
576 |
|
577 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
578 |
+
-->
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 442491744
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11289ad3b76cfd7cb74302ed4af41feddd84af8ad2e28f01cac891d9b87a34d2
|
3 |
size 442491744
|
runs/Sep17_03-51-54_default/events.out.tfevents.1726545116.default.8326.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2ec8bd7b79b1f187055f093fc759dce936eeeec5d8065c70001cfdd5114e893
|
3 |
+
size 15245
|