Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +244 -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,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 이글루캠 S3플러스 2K 300만화소 가정용 CCTV 홈 카메라 홈캠 (주) 트루엔
|
14 |
+
- text: 멕시코 조트비누 400g 만능세제 세탁 세제 빨래 기름때 얼룩제거 욕실청소 라코로나 조트비누 400g (블루) 리아앤리브
|
15 |
+
- text: 피플연구소 양면방수 매트 돗자리 145x150cm 로지브라운 피크닉 감성 화이트_M 스트림프러덕
|
16 |
+
- text: 다우니 울트라 에이프릴 프레시 5.03L [생활] 섬유유연제_피죤 핑크로즈 3.1L x 4개 옐로우로켓
|
17 |
+
- text: 창문 자동 롤방충망 상하식 미세 대형 셀프교체 사면 가로300x세로250mm 사면_가로1600mm(1501~1600)_세로600mm(501~600)
|
18 |
+
NK테크
|
19 |
+
inference: true
|
20 |
+
model-index:
|
21 |
+
- name: SetFit with mini1013/master_domain
|
22 |
+
results:
|
23 |
+
- task:
|
24 |
+
type: text-classification
|
25 |
+
name: Text Classification
|
26 |
+
dataset:
|
27 |
+
name: Unknown
|
28 |
+
type: unknown
|
29 |
+
split: test
|
30 |
+
metrics:
|
31 |
+
- type: metric
|
32 |
+
value: 0.7296620438939007
|
33 |
+
name: Metric
|
34 |
+
---
|
35 |
+
|
36 |
+
# SetFit with mini1013/master_domain
|
37 |
+
|
38 |
+
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.
|
39 |
+
|
40 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
41 |
+
|
42 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
43 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
44 |
+
|
45 |
+
## Model Details
|
46 |
+
|
47 |
+
### Model Description
|
48 |
+
- **Model Type:** SetFit
|
49 |
+
- **Sentence Transformer body:** [mini1013/master_domain](https://huggingface.co/mini1013/master_domain)
|
50 |
+
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
51 |
+
- **Maximum Sequence Length:** 512 tokens
|
52 |
+
- **Number of Classes:** 10 classes
|
53 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
54 |
+
<!-- - **Language:** Unknown -->
|
55 |
+
<!-- - **License:** Unknown -->
|
56 |
+
|
57 |
+
### Model Sources
|
58 |
+
|
59 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
60 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
61 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
62 |
+
|
63 |
+
### Model Labels
|
64 |
+
| Label | Examples |
|
65 |
+
|:------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
66 |
+
| 9.0 | <ul><li>'선반형 스텐 점보롤 디스펜서 폰 거치 케이스 유광실버 04_CNDH-03 스텐점보 유광 골드선반 (주)엘에스트레이드'</li><li>'하이브리드 쓰리킹 미트페이퍼 해동지 2롤 선택04.크록스 위생멸균 흡수지 2롤 찐텐마켓'</li><li>'크리넥스 클린케어 아쿠아 메가롤 3겹 50m 30롤 클린소프트 3겹 데코 30m 30롤 메리앤'</li></ul> |
|
67 |
+
| 2.0 | <ul><li>'애경 로얄 프로폴리스 에디션 선물세트 추석 선물세트 명절선물세트 샴푸 린스 강성수'</li><li>'로얄 프로폴리스 셀렉션 29호 X 1개 고기능 에디션으로 행복 선물 MinSellAmount 현둘마마'</li><li>'대림바스 카카오 라이언 선물세트 GIFT BOX (샤워기+샤워줄+필터4P+염소제거볼1P) 카카오 선물세트 GIFT BOX [라이언] 바스템'</li></ul> |
|
68 |
+
| 0.0 | <ul><li>'초소형 카메라 CCTV 무선 미니 감시 초소형 카메라 + 128GB SD카드_(리뷰약속)SD카드 32GB+방수케이스+거치대2종 일레닉'</li><li>'지르콘 멀티 탐지기 HD70 멀티탐색기 ZIRCON 멀티탐지 프랑스달'</li><li>'메모리선택 티피링크 Tapo TC70 200만화소 360도회전 실내무선카메라 홈CCTV 야간흑백전환 선택4 Tapo TC70+메모리카드128G 삼성디앤씨주식회사'</li></ul> |
|
69 |
+
| 4.0 | <ul><li>'바운스 건조기 드라이시트 아웃도어후레쉬 160매 1개 에너저틱'</li><li>'피죤 핑크로즈 3.1L 피죤 비앙카 3100ml 1입 주식회사 드림쇼핑'</li><li>'다우니 엑스퍼트 실내건조 섬유유연제 1L 생화향기 코튼퓨어 용기 1L (주)모던컴퍼니'</li></ul> |
|
70 |
+
| 8.0 | <ul><li>'엔젤가드 특허 90도 회전 전기모기채 충전식전자파리채 건전지대 01. 특허받은 led회전모기채(충전식 대) 핑크 WOOD파크'</li><li>'ODF169432해피홈 에어넷 걸이형 제이엘 코리아(JL KOREA)'</li><li>'초강력해충킬러전기모기채(특대) 비트테크노'</li></ul> |
|
71 |
+
| 6.0 | <ul><li>'헨켈 퍼실 파워젤 라벤더 드럼용 리필 1.8L 퍼실 파워젤 드럼용 1.8L(일반/드럼 겸용) 누리플러스'</li><li>'다우니 프리미엄 엑스퍼트 실내건조 세탁세제 액체형 1.9L 08_다우니 코튼 퓨어러브 1L (주)넥스트월드코퍼레이션'</li><li>'애경산업 스파크 찬물에 잘녹는 세탁세제 리필 9.5kg 1개 쇼킹(SHOW KING)'</li></ul> |
|
72 |
+
| 3.0 | <ul><li>'쇼핑카트 바퀴달린장바구니 시장바구니캐리어 접이식 손수레 핸드 카트 마트 베이지체크패턴 (타입07) 소형 패턴 8종_체크 곤색 에이오더스(A Orders)'</li><li>'스테인레스 가정용 소형 원형 스퀘어 스탠드 방지 재 01.락 구형 블랙 라지 에이미어블'</li><li>'1초완성 원터치모기장 텐트 침대 사각 아기 대형 창문 2_베이직 블루 2~3인용(200X150) 다샵몰'</li></ul> |
|
73 |
+
| 5.0 | <ul><li>'금비 겉기저귀 프리미엄 와이드매직 실속형 대형 10p+10p(총 2팩) 팬티기저귀 대형 10p+10p 나루(NARU)리테일'</li><li>'디펜드 스타일 언더웨어 슬림 라이트핏 중형 여성용 10개입x8팩/요실금팬티 성인기저귀 송광물류'</li><li>'유한킴벌리 디펜드 안심플러스 중형 9매 -1개 주식회사 민영'</li></ul> |
|
74 |
+
| 7.0 | <ul><li>'말표 신발 탈취제 100ml 발냄새 신발냄새 제거 MinSellAmount 대코아'</li><li>'슈즈쿨 빨강색 신발건조탈취제 냄새 습기제거 MinSellAmount SMH만물상회'</li><li>'페브리즈 포맨 쿨아쿠아향 리필 320ml 포맨 쿨아쿠아향 리필 320ml 지기샵'</li></ul> |
|
75 |
+
| 1.0 | <ul><li>'좋은느낌 입는 오버나이트 중형 8매 x 1팩 주식회사 다올연구소'</li><li>'닉스컵 내몸을 생각하는 안전한 실리콘 생리컵 소형 luckytiger3'</li><li>'화이트 수퍼흡수 중형 (30+6)개입 (주) 삼성 에이치엔씨'</li></ul> |
|
76 |
+
|
77 |
+
## Evaluation
|
78 |
+
|
79 |
+
### Metrics
|
80 |
+
| Label | Metric |
|
81 |
+
|:--------|:-------|
|
82 |
+
| **all** | 0.7297 |
|
83 |
+
|
84 |
+
## Uses
|
85 |
+
|
86 |
+
### Direct Use for Inference
|
87 |
+
|
88 |
+
First install the SetFit library:
|
89 |
+
|
90 |
+
```bash
|
91 |
+
pip install setfit
|
92 |
+
```
|
93 |
+
|
94 |
+
Then you can load this model and run inference.
|
95 |
+
|
96 |
+
```python
|
97 |
+
from setfit import SetFitModel
|
98 |
+
|
99 |
+
# Download from the 🤗 Hub
|
100 |
+
model = SetFitModel.from_pretrained("mini1013/master_cate_lh12")
|
101 |
+
# Run inference
|
102 |
+
preds = model("이글루캠 S3플러스 2K 300만화소 가정용 CCTV 홈 카메라 홈캠 (주) 트루엔")
|
103 |
+
```
|
104 |
+
|
105 |
+
<!--
|
106 |
+
### Downstream Use
|
107 |
+
|
108 |
+
*List how someone could finetune this model on their own dataset.*
|
109 |
+
-->
|
110 |
+
|
111 |
+
<!--
|
112 |
+
### Out-of-Scope Use
|
113 |
+
|
114 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
115 |
+
-->
|
116 |
+
|
117 |
+
<!--
|
118 |
+
## Bias, Risks and Limitations
|
119 |
+
|
120 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
121 |
+
-->
|
122 |
+
|
123 |
+
<!--
|
124 |
+
### Recommendations
|
125 |
+
|
126 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
127 |
+
-->
|
128 |
+
|
129 |
+
## Training Details
|
130 |
+
|
131 |
+
### Training Set Metrics
|
132 |
+
| Training set | Min | Median | Max |
|
133 |
+
|:-------------|:----|:-------|:----|
|
134 |
+
| Word count | 3 | 9.964 | 24 |
|
135 |
+
|
136 |
+
| Label | Training Sample Count |
|
137 |
+
|:------|:----------------------|
|
138 |
+
| 0.0 | 50 |
|
139 |
+
| 1.0 | 50 |
|
140 |
+
| 2.0 | 50 |
|
141 |
+
| 3.0 | 50 |
|
142 |
+
| 4.0 | 50 |
|
143 |
+
| 5.0 | 50 |
|
144 |
+
| 6.0 | 50 |
|
145 |
+
| 7.0 | 50 |
|
146 |
+
| 8.0 | 50 |
|
147 |
+
| 9.0 | 50 |
|
148 |
+
|
149 |
+
### Training Hyperparameters
|
150 |
+
- batch_size: (512, 512)
|
151 |
+
- num_epochs: (20, 20)
|
152 |
+
- max_steps: -1
|
153 |
+
- sampling_strategy: oversampling
|
154 |
+
- num_iterations: 40
|
155 |
+
- body_learning_rate: (2e-05, 2e-05)
|
156 |
+
- head_learning_rate: 2e-05
|
157 |
+
- loss: CosineSimilarityLoss
|
158 |
+
- distance_metric: cosine_distance
|
159 |
+
- margin: 0.25
|
160 |
+
- end_to_end: False
|
161 |
+
- use_amp: False
|
162 |
+
- warmup_proportion: 0.1
|
163 |
+
- seed: 42
|
164 |
+
- eval_max_steps: -1
|
165 |
+
- load_best_model_at_end: False
|
166 |
+
|
167 |
+
### Training Results
|
168 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
169 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
170 |
+
| 0.0127 | 1 | 0.3941 | - |
|
171 |
+
| 0.6329 | 50 | 0.3041 | - |
|
172 |
+
| 1.2658 | 100 | 0.1323 | - |
|
173 |
+
| 1.8987 | 150 | 0.0705 | - |
|
174 |
+
| 2.5316 | 200 | 0.0185 | - |
|
175 |
+
| 3.1646 | 250 | 0.021 | - |
|
176 |
+
| 3.7975 | 300 | 0.0292 | - |
|
177 |
+
| 4.4304 | 350 | 0.0158 | - |
|
178 |
+
| 5.0633 | 400 | 0.0176 | - |
|
179 |
+
| 5.6962 | 450 | 0.0001 | - |
|
180 |
+
| 6.3291 | 500 | 0.0079 | - |
|
181 |
+
| 6.9620 | 550 | 0.0004 | - |
|
182 |
+
| 7.5949 | 600 | 0.0001 | - |
|
183 |
+
| 8.2278 | 650 | 0.0001 | - |
|
184 |
+
| 8.8608 | 700 | 0.0001 | - |
|
185 |
+
| 9.4937 | 750 | 0.0001 | - |
|
186 |
+
| 10.1266 | 800 | 0.0001 | - |
|
187 |
+
| 10.7595 | 850 | 0.0001 | - |
|
188 |
+
| 11.3924 | 900 | 0.0001 | - |
|
189 |
+
| 12.0253 | 950 | 0.0001 | - |
|
190 |
+
| 12.6582 | 1000 | 0.0 | - |
|
191 |
+
| 13.2911 | 1050 | 0.0 | - |
|
192 |
+
| 13.9241 | 1100 | 0.0001 | - |
|
193 |
+
| 14.5570 | 1150 | 0.0 | - |
|
194 |
+
| 15.1899 | 1200 | 0.0 | - |
|
195 |
+
| 15.8228 | 1250 | 0.0 | - |
|
196 |
+
| 16.4557 | 1300 | 0.0001 | - |
|
197 |
+
| 17.0886 | 1350 | 0.0 | - |
|
198 |
+
| 17.7215 | 1400 | 0.0 | - |
|
199 |
+
| 18.3544 | 1450 | 0.0 | - |
|
200 |
+
| 18.9873 | 1500 | 0.0 | - |
|
201 |
+
| 19.6203 | 1550 | 0.0001 | - |
|
202 |
+
|
203 |
+
### Framework Versions
|
204 |
+
- Python: 3.10.12
|
205 |
+
- SetFit: 1.1.0.dev0
|
206 |
+
- Sentence Transformers: 3.1.1
|
207 |
+
- Transformers: 4.46.1
|
208 |
+
- PyTorch: 2.4.0+cu121
|
209 |
+
- Datasets: 2.20.0
|
210 |
+
- Tokenizers: 0.20.0
|
211 |
+
|
212 |
+
## Citation
|
213 |
+
|
214 |
+
### BibTeX
|
215 |
+
```bibtex
|
216 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
217 |
+
doi = {10.48550/ARXIV.2209.11055},
|
218 |
+
url = {https://arxiv.org/abs/2209.11055},
|
219 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
220 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
221 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
222 |
+
publisher = {arXiv},
|
223 |
+
year = {2022},
|
224 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
225 |
+
}
|
226 |
+
```
|
227 |
+
|
228 |
+
<!--
|
229 |
+
## Glossary
|
230 |
+
|
231 |
+
*Clearly define terms in order to be accessible across audiences.*
|
232 |
+
-->
|
233 |
+
|
234 |
+
<!--
|
235 |
+
## Model Card Authors
|
236 |
+
|
237 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
238 |
+
-->
|
239 |
+
|
240 |
+
<!--
|
241 |
+
## Model Card Contact
|
242 |
+
|
243 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
244 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mini1013/master_item_lh",
|
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 |
+
"normalize_embeddings": false,
|
3 |
+
"labels": null
|
4 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:550c532852ac77c3cb2fb4de241b43c1fdef3e7968e88a4bb6339b4c6e43f9ce
|
3 |
+
size 442494816
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34e337e4390958bba889ece4391499d46374914ad456c507b9709448c845f5e8
|
3 |
+
size 62407
|
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
|
|