Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +237 -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,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mini1013/master_domain
|
3 |
+
library_name: setfit
|
4 |
+
metrics:
|
5 |
+
- accuracy
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
tags:
|
8 |
+
- setfit
|
9 |
+
- sentence-transformers
|
10 |
+
- text-classification
|
11 |
+
- generated_from_setfit_trainer
|
12 |
+
widget:
|
13 |
+
- text: 니베아 센서티브 쉐이빙폼 3개 면도크림 04_센서티브 젤_03_맨프로텍트 폼 250_03_맨프로텍트 폼 250 유한회사대동종합유통
|
14 |
+
- text: 헤라 옴므 파워부스팅 토너 150ml 토너 150ml(케이스 O) 케이상사
|
15 |
+
- text: Avon 마크 주얼 세트 오 드 화장실과 바디 크림 옵션없음 하셀나
|
16 |
+
- text: 랩시리즈 데일리 레스큐 워터 로션 200ml 1개 2015690 옵션없음 에필로리아
|
17 |
+
- text: 키엘 훼이셜 퓨얼 에너자이징 훼이스 워시 250ml 옵션없음 유한회사 리화
|
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: accuracy
|
31 |
+
value: 0.6154589371980677
|
32 |
+
name: Accuracy
|
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 |
+
| 13.0 | <ul><li>'일본세안제 오일클리어 모공관리 아크네 맨즈 여드름 약산성 폼클렌징 세안제 옵션없음 (주)나민인터내셔널'</li><li>'페어아크네 크리미폼 80g x 1개 /지성피부 저자극 풍부한거품 남자클렌징폼 1.페어아크네 크리미폼 80g 본품 라이온코리아 주식회사'</li><li>'랩시리즈 올인원 멀티 액션 훼이스 워시 100ml 11203616 올인원 멀티 액션 훼이스 워시 100ml 볼크'</li></ul> |
|
66 |
+
| 12.0 | <ul><li>'피지오겔 데일리 모이스쳐 테라피 포맨 페이셜 크림 80ml 피지오겔'</li><li>'랩시리즈 데일리 레스큐 에너자이징 젤크림 50ml 랩시리즈'</li><li>'미프 미남크림 톤업 화이트닝 남자 남성 미백 보습 크림 50ml 미프'</li></ul> |
|
67 |
+
| 6.0 | <ul><li>'질레트 퓨전 프로글라이드 센서티브 액티브 스포츠 폼 245g 옵션없음 주식회사 공감능력'</li><li>'쉐이브젤 면도 폼 크림 영국 킹오브쉐이브 센시티브 안티박테리얼 쉐이브젤 센시티브 크리스탈링크'</li><li>'갸스비 여행용 쉐이빙폼 면도트러블 면도진정크림 190g 옵션없음 주식회사 서정커머스'</li></ul> |
|
68 |
+
| 0.0 | <ul><li>'더고래 롱타임스프레이 남자사타구니 쿨링스프레이 30ml 옵션없음 주식회사 버루디(Burudy Corp.)'</li><li>'사타구니 가려움 연고 습진 낭습증 완선 백선 연고 옵션없음 주블랑'</li><li>'엠도씨 프라이드 케어 앤 스트롱 워시 옵션없음 스테디세일러'</li></ul> |
|
69 |
+
| 5.0 | <ul><li>'랩시리즈 파워 프로텍터 100ml SPF50 옵션없음 메가랜드'</li><li>'[현대백화점][빌리프]빌리프 맨올로지 울트라 레스큐 에브리데이 선스크린 60ml 옵션없음 (주)현대백화점'</li><li>'엔프라니 옴므 선블럭 70ml SPF50+/PA++++ (신형) 옵션없음 연'</li></ul> |
|
70 |
+
| 2.0 | <ul><li>'미스쾌남 엑스퍼트 남자로션 300ml 엑스퍼트 300ml 미스쾌남 옵션없음 제이에이리 주식회사'</li><li>'오딧세이 로맨틱 에멀젼 130ml 옵션없음 다인유통'</li><li>'[오딧세이] 로맨틱 에멀전 130ml 옵션없음 안느의집'</li></ul> |
|
71 |
+
| 3.0 | <ul><li>'메디힐 M.E.N 타임톡스 숯미네랄 마스크팩 10매/남성전용 시트마스크팩 스타걸7'</li><li>'카오 맨즈 비오레 모공 블랙 코팩 10매입 ULTRAMARKET'</li><li>'엠도씨 세붐 스트라이크 맨테라피 마스크 4매 엠도씨'</li></ul> |
|
72 |
+
| 8.0 | <ul><li>'아라미스 애프터 쉐이브 스킨 200ml, 1개 옵션없음 지크(JIC)'</li><li>'오딧세이 로맨틱 미니어쳐 스킨 25ml 로션 25ml (선택) 스킨 반려랜드'</li><li>'꽃을든남자 옴므 스킨 140ml 옵션없음 씀(SSM) 리테일'</li></ul> |
|
73 |
+
| 10.0 | <ul><li>'크리니크 포 맨 맥시멈 하이드레이터 액티베이티드 워터-젤 컨센트레이트 48ml 옵션없음 에이치코리아'</li><li>'아이오페 맨 바이오 에센스 인텐시브 컨디셔닝 이엑스 145ml IOPE'</li><li>'SK-II 피테라 에센스 포 맨 230ml 롯데ON'</li></ul> |
|
74 |
+
| 9.0 | <ul><li>'디올 옴므 더모 시스템 (DIOR HOMME DERMO SYSTEM) 아이케어 15ml 롯데백화점'</li><li>'랩시리즈 데일리 레스큐 에너자이징 아이 트리트먼트 15ml 랩시리즈'</li><li>'클라랑스 맨 에너자이징 아이 젤 15ml 클라랑스'</li></ul> |
|
75 |
+
| 11.0 | <ul><li>'싸이닉 파워 옴므 올인원 플루이드 150ml 싸이닉 파워 옴므 올인원 플루이드 150ml 탑서비스'</li><li>'[코스트코] 우르오스 스킨 밀크 200ML x1 옵션없음 명성간식'</li><li>'BRTC 파워 옴므 올인원 솔루션 200ml, 1개 옵션없음 지크(JIC)'</li></ul> |
|
76 |
+
| 1.0 | <ul><li>'보닌 더캐릭터 블랙 시그니처 2종 단품세트 1개 ★ 보닌 더캐릭터 블랙 시그니처 2종 기획세트 디제이커머스(DJ커머스)'</li><li>'네오니스 바이옴 2종 세트 옵션없음 (주)랜디오션'</li><li>'보닌 더 캐릭터 / 더캐릭터 2종 기획세트 (미니 2종 내장) 옵션없음 (주)글로벌세림'</li></ul> |
|
77 |
+
| 4.0 | <ul><li>'아이디얼포맨 베러톤 커버쿠션 비비쿠션 15g SPF50 1021891 22호 라이트 베이지 메가랜드'</li><li>'오브제 매직 타투 브로우 남자 눈썹 정리 그리기 옵션없음 포리프'</li><li>'비레디 블루쿠션 본품 15g 1호 덩이네'</li></ul> |
|
78 |
+
|
79 |
+
## Evaluation
|
80 |
+
|
81 |
+
### Metrics
|
82 |
+
| Label | Accuracy |
|
83 |
+
|:--------|:---------|
|
84 |
+
| **all** | 0.6155 |
|
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_bt0_test")
|
103 |
+
# Run inference
|
104 |
+
preds = model("Avon 마크 주얼 세트 오 드 화장실과 바디 크림 옵션없음 하셀나")
|
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 | 4 | 8.8913 | 19 |
|
137 |
+
|
138 |
+
| Label | Training Sample Count |
|
139 |
+
|:------|:----------------------|
|
140 |
+
| 0.0 | 12 |
|
141 |
+
| 1.0 | 25 |
|
142 |
+
| 2.0 | 20 |
|
143 |
+
| 3.0 | 19 |
|
144 |
+
| 4.0 | 17 |
|
145 |
+
| 5.0 | 18 |
|
146 |
+
| 6.0 | 22 |
|
147 |
+
| 8.0 | 19 |
|
148 |
+
| 9.0 | 10 |
|
149 |
+
| 10.0 | 11 |
|
150 |
+
| 11.0 | 22 |
|
151 |
+
| 12.0 | 18 |
|
152 |
+
| 13.0 | 17 |
|
153 |
+
|
154 |
+
### Training Hyperparameters
|
155 |
+
- batch_size: (512, 512)
|
156 |
+
- num_epochs: (40, 40)
|
157 |
+
- max_steps: -1
|
158 |
+
- sampling_strategy: oversampling
|
159 |
+
- num_iterations: 50
|
160 |
+
- body_learning_rate: (2e-05, 1e-05)
|
161 |
+
- head_learning_rate: 0.01
|
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 |
+
- l2_weight: 0.01
|
169 |
+
- seed: 42
|
170 |
+
- eval_max_steps: -1
|
171 |
+
- load_best_model_at_end: False
|
172 |
+
|
173 |
+
### Training Results
|
174 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
175 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
176 |
+
| 0.0435 | 1 | 0.5129 | - |
|
177 |
+
| 2.1739 | 50 | 0.3154 | - |
|
178 |
+
| 4.3478 | 100 | 0.0598 | - |
|
179 |
+
| 6.5217 | 150 | 0.0107 | - |
|
180 |
+
| 8.6957 | 200 | 0.0038 | - |
|
181 |
+
| 10.8696 | 250 | 0.0014 | - |
|
182 |
+
| 13.0435 | 300 | 0.0006 | - |
|
183 |
+
| 15.2174 | 350 | 0.0004 | - |
|
184 |
+
| 17.3913 | 400 | 0.0003 | - |
|
185 |
+
| 19.5652 | 450 | 0.0003 | - |
|
186 |
+
| 21.7391 | 500 | 0.0002 | - |
|
187 |
+
| 23.9130 | 550 | 0.0002 | - |
|
188 |
+
| 26.0870 | 600 | 0.0002 | - |
|
189 |
+
| 28.2609 | 650 | 0.0002 | - |
|
190 |
+
| 30.4348 | 700 | 0.0002 | - |
|
191 |
+
| 32.6087 | 750 | 0.0002 | - |
|
192 |
+
| 34.7826 | 800 | 0.0002 | - |
|
193 |
+
| 36.9565 | 850 | 0.0002 | - |
|
194 |
+
| 39.1304 | 900 | 0.0002 | - |
|
195 |
+
|
196 |
+
### Framework Versions
|
197 |
+
- Python: 3.10.12
|
198 |
+
- SetFit: 1.1.0
|
199 |
+
- Sentence Transformers: 3.3.1
|
200 |
+
- Transformers: 4.44.2
|
201 |
+
- PyTorch: 2.2.0a0+81ea7a4
|
202 |
+
- Datasets: 3.2.0
|
203 |
+
- Tokenizers: 0.19.1
|
204 |
+
|
205 |
+
## Citation
|
206 |
+
|
207 |
+
### BibTeX
|
208 |
+
```bibtex
|
209 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
210 |
+
doi = {10.48550/ARXIV.2209.11055},
|
211 |
+
url = {https://arxiv.org/abs/2209.11055},
|
212 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
213 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
214 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
215 |
+
publisher = {arXiv},
|
216 |
+
year = {2022},
|
217 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
218 |
+
}
|
219 |
+
```
|
220 |
+
|
221 |
+
<!--
|
222 |
+
## Glossary
|
223 |
+
|
224 |
+
*Clearly define terms in order to be accessible across audiences.*
|
225 |
+
-->
|
226 |
+
|
227 |
+
<!--
|
228 |
+
## Model Card Authors
|
229 |
+
|
230 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
231 |
+
-->
|
232 |
+
|
233 |
+
<!--
|
234 |
+
## Model Card Contact
|
235 |
+
|
236 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
237 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mini1013/master_item_bt_test",
|
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.44.2",
|
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.3.1",
|
4 |
+
"transformers": "4.44.2",
|
5 |
+
"pytorch": "2.2.0a0+81ea7a4"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": "cosine"
|
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:1e3a19dfe0d950fd42f2185b3bae045085fb53fd4e582e032171e6e022877b75
|
3 |
+
size 442494816
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:48020d4a6ad7ce70e01b4d3668d9c473d6ff4c6f695d6128bcf4389042d3fcf7
|
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
|
|