Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +254 -0
- config.json +29 -0
- config_sentence_transformers.json +10 -0
- config_setfit.json +4 -0
- model.safetensors +3 -0
- model_head.pkl +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +66 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 768,
|
3 |
+
"pooling_mode_cls_token": false,
|
4 |
+
"pooling_mode_mean_tokens": true,
|
5 |
+
"pooling_mode_max_tokens": false,
|
6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
7 |
+
"pooling_mode_weightedmean_tokens": false,
|
8 |
+
"pooling_mode_lasttoken": false,
|
9 |
+
"include_prompt": true
|
10 |
+
}
|
README.md
ADDED
@@ -0,0 +1,254 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mini1013/master_domain
|
3 |
+
library_name: setfit
|
4 |
+
metrics:
|
5 |
+
- metric
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
tags:
|
8 |
+
- setfit
|
9 |
+
- sentence-transformers
|
10 |
+
- text-classification
|
11 |
+
- generated_from_setfit_trainer
|
12 |
+
widget:
|
13 |
+
- text: 파인트리 홀그레인 머스타드 850g (주)우주식품디씨오피
|
14 |
+
- text: 오뚜기 오쉐프 마요네스 3.2kg 이금기 팬더굴소스 2kg 디에치커머스 주식회사
|
15 |
+
- text: 샘표 샤브샤브 담백한 육수 200g 외 10종 / 샤브육수소스 10. 티아시아 피넛소스 275g 주식회사 통통마트
|
16 |
+
- text: 해천 시그니처 굴소스 캔 2.27kg 대륙 깊은맛 주식회사 다솜식자재유통
|
17 |
+
- text: 청정원 토마토와 생크림 로제 스파게티소스 2kg 호호푸드
|
18 |
+
inference: true
|
19 |
+
model-index:
|
20 |
+
- name: SetFit with mini1013/master_domain
|
21 |
+
results:
|
22 |
+
- task:
|
23 |
+
type: text-classification
|
24 |
+
name: Text Classification
|
25 |
+
dataset:
|
26 |
+
name: Unknown
|
27 |
+
type: unknown
|
28 |
+
split: test
|
29 |
+
metrics:
|
30 |
+
- type: metric
|
31 |
+
value: 0.9092549161104095
|
32 |
+
name: Metric
|
33 |
+
---
|
34 |
+
|
35 |
+
# SetFit with mini1013/master_domain
|
36 |
+
|
37 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [mini1013/master_domain](https://huggingface.co/mini1013/master_domain) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
|
38 |
+
|
39 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
40 |
+
|
41 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
42 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
43 |
+
|
44 |
+
## Model Details
|
45 |
+
|
46 |
+
### Model Description
|
47 |
+
- **Model Type:** SetFit
|
48 |
+
- **Sentence Transformer body:** [mini1013/master_domain](https://huggingface.co/mini1013/master_domain)
|
49 |
+
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
50 |
+
- **Maximum Sequence Length:** 512 tokens
|
51 |
+
- **Number of Classes:** 13 classes
|
52 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
53 |
+
<!-- - **Language:** Unknown -->
|
54 |
+
<!-- - **License:** Unknown -->
|
55 |
+
|
56 |
+
### Model Sources
|
57 |
+
|
58 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
59 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
60 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
61 |
+
|
62 |
+
### Model Labels
|
63 |
+
| Label | Examples |
|
64 |
+
|:------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
65 |
+
| 5.0 | <ul><li>'폰타나 발사믹 드레싱 270ml 더착한유통'</li><li>'벨레이 유기농 발사믹크림 250ml 발사믹소스 오크통숙성 와인식초 주식회사 감자스위트'</li><li>'쥬세페 크레모니니 발사믹크림 500ml 발사믹 소스 화남F.C'</li></ul> |
|
66 |
+
| 11.0 | <ul><li>'오뚜기 토마토 케찹(1kg) 금성식품 주식회사'</li><li>'하인즈 리듀스드 슈가 케찹 369g 외 5종 (노슈가 케찹 옐로우 머스타드 우스타 등) 2. 토마토케찹 342g (주)아이미에프에스'</li><li>'오뚜기 할라피뇨케챂 280G 다이어트 샐러드 가정용 식당용 미진통상'</li></ul> |
|
67 |
+
| 2.0 | <ul><li>'오뚜기 참깨돈까스소스 470G 1개 버킷마켓'</li><li>'미담채 옛날 돈가스 소스 1.9kg [업소용] 블레스(Bless)'</li><li>'오뚜기 부어먹는돈까스소스 2kg 돈가스 오므라이스 소스 수제 옛날 맛 통카스 2.1kg 오쉐프 서해 돈까스소스 1.9kg(PET) (주)수인식자재'</li></ul> |
|
68 |
+
| 6.0 | <ul><li>'오뚜기 스테이크소스 2.1kg 오뚜기 스테이크소스 2.1kg (주) 식자재민족'</li><li>'코스트코 A1 스테이크 소스 283g 스테이크소스 283g x 1 주식회사 로씨네'</li><li>'오뚜기 스테이크 소스 470g 솔드컵'</li></ul> |
|
69 |
+
| 0.0 | <ul><li>'백설 프리미엄 굴소스 350g 1개 백설 프리미엄 굴소스 350g 2개 주식회사베이비또'</li><li>'오뚜기 이금기 팬더 굴소스 스파우트팩 2kg 이금기 팬더 굴소스 스파우트팩 2kg (주) 식자재민족'</li><li>'CJ 제일제당 맛있는 우리집 백설 남해굴소스 500g 간단한 양념.레시피요리 레인보우'</li></ul> |
|
70 |
+
| 4.0 | <ul><li>'유기농 홀그레인 머스타드 겨자소스 200g 둘레푸드'</li><li>'오뚜기 홀그레인 머스타드 소스 280g 1개 더진컴퍼니'</li><li>'머스타드(모아하우스 623g) 더나인에스제이에프'</li></ul> |
|
71 |
+
| 8.0 | <ul><li>'폰타나 샐러드 소스 오리엔탈 드레싱 270g 이탈리안 드레싱 270g (주)두배로'</li><li>'대상 청정원 오리엔탈 드레싱 325g 대상 청정원 참깨 흑임자 드레싱 300g 행복마켓'</li><li>'오뚜기 오리엔탈어니언드레싱 소스 조미료 샐러드 다이어트 210G 1세트 청주그릇주방설비'</li></ul> |
|
72 |
+
| 3.0 | <ul><li>'오뚜기 담백한 소이마요 310g 주식회사 우창상사'</li><li>'풀무원 리얼디핑 핫스파이시마요 310g 요리 레시피 반찬거리 비법소스 식사준비 규비에스오퍼레이션'</li><li>'오뚜기 후레시 마요네즈 500g 에이치브이마켓'</li></ul> |
|
73 |
+
| 10.0 | <ul><li>'친수 베트남 오리지널 칠리소스 250g 친수 오리지널 핫 칠리소스(250g) 욤요미몰'</li><li>'피코크 살사소스450g(마일드) (영등포점) 주식회사 에스에스지닷컴'</li><li>'촐룰라 멕시코 핫소스 오리저널 150ml 멕시코 타코 요리 재료 (주)푸링'</li></ul> |
|
74 |
+
| 1.0 | <ul><li>'면사랑 멸치육수1.8L 프리미엄 밑국물 쌀국수, 찌개, 칼국수, 바지락, 멸치국물 바지락육수(유통기한:23년11월23일) (주)아이미에프에스'</li><li>'청수식품우동다시 1.8L1개 주식회사 밀레'</li><li>'청수 우동다시 1.8L / 국물 소스 육수 쯔유 가쓰오 참치액 일본식 간장 청수 우동다시 1.8L_1개 제이와이유통판매'</li></ul> |
|
75 |
+
| 7.0 | <ul><li>'헌트 엔젤라미아 스파게티소스 2.95kg 대용량 파스타소스 (주)동그랑'</li><li>'대상 청정원 구운 마늘과 양파 토마토 스파게티소스 600g 소암들'</li><li>'오뚜기 프레스코 미트 스파게티소스 600g 올템몰'</li></ul> |
|
76 |
+
| 9.0 | <ul><li>'기꼬만 쯔유 (혼쯔유 500m) 샤브샤브육수 메밀소바육수 일본우동다시 매크로온'</li><li>'코스트코 미즈칸 쯔유 1.8L 3배 농축 미쯔칸 라이트 코스트'</li><li>'아리아케-간사이우동쯔유 1.8L 3개 쿠팡'</li></ul> |
|
77 |
+
| 12.0 | <ul><li>'쏨땀 느억맘 태국 요리 피쉬 소스 욤요미몰'</li><li>'홍콩 삼게표 비엣흐엉 피쉬 소스 682ml 1개 분짜소스 헬시네이처'</li><li>'피쉬소스 느억맘 남플라 태국 액젓소스 700ml 세기푸드'</li></ul> |
|
78 |
+
|
79 |
+
## Evaluation
|
80 |
+
|
81 |
+
### Metrics
|
82 |
+
| Label | Metric |
|
83 |
+
|:--------|:-------|
|
84 |
+
| **all** | 0.9093 |
|
85 |
+
|
86 |
+
## Uses
|
87 |
+
|
88 |
+
### Direct Use for Inference
|
89 |
+
|
90 |
+
First install the SetFit library:
|
91 |
+
|
92 |
+
```bash
|
93 |
+
pip install setfit
|
94 |
+
```
|
95 |
+
|
96 |
+
Then you can load this model and run inference.
|
97 |
+
|
98 |
+
```python
|
99 |
+
from setfit import SetFitModel
|
100 |
+
|
101 |
+
# Download from the 🤗 Hub
|
102 |
+
model = SetFitModel.from_pretrained("mini1013/master_cate_fd10")
|
103 |
+
# Run inference
|
104 |
+
preds = model("파인트리 홀그레인 머스타드 850g (주)우주식품디씨오피")
|
105 |
+
```
|
106 |
+
|
107 |
+
<!--
|
108 |
+
### Downstream Use
|
109 |
+
|
110 |
+
*List how someone could finetune this model on their own dataset.*
|
111 |
+
-->
|
112 |
+
|
113 |
+
<!--
|
114 |
+
### Out-of-Scope Use
|
115 |
+
|
116 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
117 |
+
-->
|
118 |
+
|
119 |
+
<!--
|
120 |
+
## Bias, Risks and Limitations
|
121 |
+
|
122 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
123 |
+
-->
|
124 |
+
|
125 |
+
<!--
|
126 |
+
### Recommendations
|
127 |
+
|
128 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
129 |
+
-->
|
130 |
+
|
131 |
+
## Training Details
|
132 |
+
|
133 |
+
### Training Set Metrics
|
134 |
+
| Training set | Min | Median | Max |
|
135 |
+
|:-------------|:----|:-------|:----|
|
136 |
+
| Word count | 3 | 8.5284 | 19 |
|
137 |
+
|
138 |
+
| Label | Training Sample Count |
|
139 |
+
|:------|:----------------------|
|
140 |
+
| 0.0 | 50 |
|
141 |
+
| 1.0 | 50 |
|
142 |
+
| 2.0 | 50 |
|
143 |
+
| 3.0 | 50 |
|
144 |
+
| 4.0 | 50 |
|
145 |
+
| 5.0 | 50 |
|
146 |
+
| 6.0 | 50 |
|
147 |
+
| 7.0 | 50 |
|
148 |
+
| 8.0 | 50 |
|
149 |
+
| 9.0 | 16 |
|
150 |
+
| 10.0 | 50 |
|
151 |
+
| 11.0 | 50 |
|
152 |
+
| 12.0 | 15 |
|
153 |
+
|
154 |
+
### Training Hyperparameters
|
155 |
+
- batch_size: (512, 512)
|
156 |
+
- num_epochs: (20, 20)
|
157 |
+
- max_steps: -1
|
158 |
+
- sampling_strategy: oversampling
|
159 |
+
- num_iterations: 40
|
160 |
+
- body_learning_rate: (2e-05, 2e-05)
|
161 |
+
- head_learning_rate: 2e-05
|
162 |
+
- loss: CosineSimilarityLoss
|
163 |
+
- distance_metric: cosine_distance
|
164 |
+
- margin: 0.25
|
165 |
+
- end_to_end: False
|
166 |
+
- use_amp: False
|
167 |
+
- warmup_proportion: 0.1
|
168 |
+
- seed: 42
|
169 |
+
- eval_max_steps: -1
|
170 |
+
- load_best_model_at_end: False
|
171 |
+
|
172 |
+
### Training Results
|
173 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
174 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
175 |
+
| 0.0110 | 1 | 0.4378 | - |
|
176 |
+
| 0.5495 | 50 | 0.381 | - |
|
177 |
+
| 1.0989 | 100 | 0.1591 | - |
|
178 |
+
| 1.6484 | 150 | 0.0501 | - |
|
179 |
+
| 2.1978 | 200 | 0.0362 | - |
|
180 |
+
| 2.7473 | 250 | 0.0292 | - |
|
181 |
+
| 3.2967 | 300 | 0.0296 | - |
|
182 |
+
| 3.8462 | 350 | 0.0276 | - |
|
183 |
+
| 4.3956 | 400 | 0.0177 | - |
|
184 |
+
| 4.9451 | 450 | 0.007 | - |
|
185 |
+
| 5.4945 | 500 | 0.014 | - |
|
186 |
+
| 6.0440 | 550 | 0.0012 | - |
|
187 |
+
| 6.5934 | 600 | 0.0001 | - |
|
188 |
+
| 7.1429 | 650 | 0.0001 | - |
|
189 |
+
| 7.6923 | 700 | 0.0001 | - |
|
190 |
+
| 8.2418 | 750 | 0.0001 | - |
|
191 |
+
| 8.7912 | 800 | 0.0001 | - |
|
192 |
+
| 9.3407 | 850 | 0.0001 | - |
|
193 |
+
| 9.8901 | 900 | 0.0001 | - |
|
194 |
+
| 10.4396 | 950 | 0.0001 | - |
|
195 |
+
| 10.9890 | 1000 | 0.0001 | - |
|
196 |
+
| 11.5385 | 1050 | 0.0001 | - |
|
197 |
+
| 12.0879 | 1100 | 0.0001 | - |
|
198 |
+
| 12.6374 | 1150 | 0.0001 | - |
|
199 |
+
| 13.1868 | 1200 | 0.0001 | - |
|
200 |
+
| 13.7363 | 1250 | 0.0001 | - |
|
201 |
+
| 14.2857 | 1300 | 0.0001 | - |
|
202 |
+
| 14.8352 | 1350 | 0.0 | - |
|
203 |
+
| 15.3846 | 1400 | 0.0001 | - |
|
204 |
+
| 15.9341 | 1450 | 0.0001 | - |
|
205 |
+
| 16.4835 | 1500 | 0.0001 | - |
|
206 |
+
| 17.0330 | 1550 | 0.0001 | - |
|
207 |
+
| 17.5824 | 1600 | 0.0 | - |
|
208 |
+
| 18.1319 | 1650 | 0.0 | - |
|
209 |
+
| 18.6813 | 1700 | 0.0 | - |
|
210 |
+
| 19.2308 | 1750 | 0.0 | - |
|
211 |
+
| 19.7802 | 1800 | 0.0001 | - |
|
212 |
+
|
213 |
+
### Framework Versions
|
214 |
+
- Python: 3.10.12
|
215 |
+
- SetFit: 1.1.0.dev0
|
216 |
+
- Sentence Transformers: 3.1.1
|
217 |
+
- Transformers: 4.46.1
|
218 |
+
- PyTorch: 2.4.0+cu121
|
219 |
+
- Datasets: 2.20.0
|
220 |
+
- Tokenizers: 0.20.0
|
221 |
+
|
222 |
+
## Citation
|
223 |
+
|
224 |
+
### BibTeX
|
225 |
+
```bibtex
|
226 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
227 |
+
doi = {10.48550/ARXIV.2209.11055},
|
228 |
+
url = {https://arxiv.org/abs/2209.11055},
|
229 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
230 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
231 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
232 |
+
publisher = {arXiv},
|
233 |
+
year = {2022},
|
234 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
235 |
+
}
|
236 |
+
```
|
237 |
+
|
238 |
+
<!--
|
239 |
+
## Glossary
|
240 |
+
|
241 |
+
*Clearly define terms in order to be accessible across audiences.*
|
242 |
+
-->
|
243 |
+
|
244 |
+
<!--
|
245 |
+
## Model Card Authors
|
246 |
+
|
247 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
248 |
+
-->
|
249 |
+
|
250 |
+
<!--
|
251 |
+
## Model Card Contact
|
252 |
+
|
253 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
254 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mini1013/master_item_fd",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 3072,
|
16 |
+
"layer_norm_eps": 1e-05,
|
17 |
+
"max_position_embeddings": 514,
|
18 |
+
"model_type": "roberta",
|
19 |
+
"num_attention_heads": 12,
|
20 |
+
"num_hidden_layers": 12,
|
21 |
+
"pad_token_id": 1,
|
22 |
+
"position_embedding_type": "absolute",
|
23 |
+
"tokenizer_class": "BertTokenizer",
|
24 |
+
"torch_dtype": "float32",
|
25 |
+
"transformers_version": "4.46.1",
|
26 |
+
"type_vocab_size": 1,
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 32000
|
29 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.1.1",
|
4 |
+
"transformers": "4.46.1",
|
5 |
+
"pytorch": "2.4.0+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": null
|
10 |
+
}
|
config_setfit.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"labels": null,
|
3 |
+
"normalize_embeddings": false
|
4 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9962a6d2ff380d05de10ec3566aa74273c6dce4a33aeb8ed8572e2310776135e
|
3 |
+
size 442494816
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c45cb37fd6664c599aea026bb9980d756df7ef48dd60dd67d5246482ef03541c
|
3 |
+
size 80895
|
modules.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"idx": 0,
|
4 |
+
"name": "0",
|
5 |
+
"path": "",
|
6 |
+
"type": "sentence_transformers.models.Transformer"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"idx": 1,
|
10 |
+
"name": "1",
|
11 |
+
"path": "1_Pooling",
|
12 |
+
"type": "sentence_transformers.models.Pooling"
|
13 |
+
}
|
14 |
+
]
|
sentence_bert_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"max_seq_length": 512,
|
3 |
+
"do_lower_case": false
|
4 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "[CLS]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "[SEP]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "[MASK]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "[PAD]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "[SEP]",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "[UNK]",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": false,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[CLS]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "[PAD]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "[SEP]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "[UNK]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"4": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"bos_token": "[CLS]",
|
45 |
+
"clean_up_tokenization_spaces": false,
|
46 |
+
"cls_token": "[CLS]",
|
47 |
+
"do_basic_tokenize": true,
|
48 |
+
"do_lower_case": false,
|
49 |
+
"eos_token": "[SEP]",
|
50 |
+
"mask_token": "[MASK]",
|
51 |
+
"max_length": 512,
|
52 |
+
"model_max_length": 512,
|
53 |
+
"never_split": null,
|
54 |
+
"pad_to_multiple_of": null,
|
55 |
+
"pad_token": "[PAD]",
|
56 |
+
"pad_token_type_id": 0,
|
57 |
+
"padding_side": "right",
|
58 |
+
"sep_token": "[SEP]",
|
59 |
+
"stride": 0,
|
60 |
+
"strip_accents": null,
|
61 |
+
"tokenize_chinese_chars": true,
|
62 |
+
"tokenizer_class": "BertTokenizer",
|
63 |
+
"truncation_side": "right",
|
64 |
+
"truncation_strategy": "longest_first",
|
65 |
+
"unk_token": "[UNK]"
|
66 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|