Upload folder using huggingface_hub
Browse files- 1_Pooling/config.json +10 -0
- README.md +266 -0
- config.json +25 -0
- config_sentence_transformers.json +14 -0
- eval/similarity_evaluation_results.csv +4 -0
- model.safetensors +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"word_embedding_dimension": 384,
|
| 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,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
library_name: sentence-transformers
|
| 5 |
+
tags:
|
| 6 |
+
- sentence-transformers
|
| 7 |
+
- sentence-similarity
|
| 8 |
+
- feature-extraction
|
| 9 |
+
- resume-matching
|
| 10 |
+
- job-matching
|
| 11 |
+
- recruiting
|
| 12 |
+
- talent-acquisition
|
| 13 |
+
pipeline_tag: sentence-similarity
|
| 14 |
+
base_model: sentence-transformers/all-MiniLM-L6-v2
|
| 15 |
+
datasets:
|
| 16 |
+
- custom
|
| 17 |
+
model-index:
|
| 18 |
+
- name: resumator
|
| 19 |
+
results: []
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# Resumator
|
| 23 |
+
|
| 24 |
+
A fine-tuned sentence-transformer model for **resume-to-job matching**. It encodes candidate resumes and job descriptions into a shared 384-dimensional embedding space, enabling fast semantic similarity search via cosine distance.
|
| 25 |
+
|
| 26 |
+
## Model Details
|
| 27 |
+
|
| 28 |
+
| Property | Value |
|
| 29 |
+
|---|---|
|
| 30 |
+
| **Base Model** | [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) |
|
| 31 |
+
| **Architecture** | BERT (6 layers, 12 attention heads) |
|
| 32 |
+
| **Embedding Dimensions** | 384 |
|
| 33 |
+
| **Max Sequence Length** | 512 tokens |
|
| 34 |
+
| **Pooling** | Mean token pooling + L2 normalization |
|
| 35 |
+
| **Similarity Function** | Cosine similarity |
|
| 36 |
+
| **Model Size** | ~91 MB (safetensors) |
|
| 37 |
+
| **Training Loss** | CosineSimilarityLoss |
|
| 38 |
+
| **Training Data** | 624 resume-job pairs with LLM-generated match scores |
|
| 39 |
+
| **Parameters** | ~22.7M |
|
| 40 |
+
|
| 41 |
+
## Use Case
|
| 42 |
+
|
| 43 |
+
Built specifically for **recruiting/talent matching** pipelines:
|
| 44 |
+
- Encode candidate resumes (name, skills, experience, location, full resume text)
|
| 45 |
+
- Encode job postings (title, company, location, description, requirements)
|
| 46 |
+
- Find best matches via cosine similarity (pgvector, FAISS, or in-memory)
|
| 47 |
+
|
| 48 |
+
The model understands domain-specific relationships like:
|
| 49 |
+
- "React developer" ↔ "Frontend Engineer" (skill-title alignment)
|
| 50 |
+
- "3 years Python" ↔ "Senior Python Developer" (experience-level mapping)
|
| 51 |
+
- Resume structure (summary, work history, skills sections)
|
| 52 |
+
|
| 53 |
+
## Usage
|
| 54 |
+
|
| 55 |
+
### sentence-transformers
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from sentence_transformers import SentenceTransformer
|
| 59 |
+
|
| 60 |
+
model = SentenceTransformer("shankerram3/resumator")
|
| 61 |
+
|
| 62 |
+
# Encode a candidate
|
| 63 |
+
candidate_text = """
|
| 64 |
+
Name: Jane Doe
|
| 65 |
+
Skills: Python, React, PostgreSQL, AWS
|
| 66 |
+
Experience: 4 years
|
| 67 |
+
Location: San Francisco, CA
|
| 68 |
+
Resume: Full-stack engineer with 4 years building scalable web applications...
|
| 69 |
+
"""
|
| 70 |
+
|
| 71 |
+
# Encode a job
|
| 72 |
+
job_text = """
|
| 73 |
+
Title: Senior Software Engineer
|
| 74 |
+
Company: TechCorp
|
| 75 |
+
Location: San Francisco, CA
|
| 76 |
+
Description: Looking for an experienced full-stack engineer with Python and React...
|
| 77 |
+
"""
|
| 78 |
+
|
| 79 |
+
embeddings = model.encode([candidate_text, job_text])
|
| 80 |
+
similarity = embeddings[0] @ embeddings[1] # cosine similarity (vectors are L2-normalized)
|
| 81 |
+
print(f"Match score: {similarity:.4f}")
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### With pgvector (PostgreSQL)
|
| 85 |
+
|
| 86 |
+
```sql
|
| 87 |
+
-- Store embeddings in pgvector columns (384 dimensions)
|
| 88 |
+
ALTER TABLE candidates ADD COLUMN embedding vector(384);
|
| 89 |
+
ALTER TABLE jobs ADD COLUMN embedding vector(384);
|
| 90 |
+
|
| 91 |
+
-- Find top matching jobs for a candidate
|
| 92 |
+
SELECT j.title, 1 - (c.embedding <=> j.embedding) AS similarity
|
| 93 |
+
FROM candidates c, jobs j
|
| 94 |
+
WHERE c.id = 123
|
| 95 |
+
ORDER BY c.embedding <=> j.embedding
|
| 96 |
+
LIMIT 20;
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
### Transformers (without sentence-transformers)
|
| 100 |
+
|
| 101 |
+
```python
|
| 102 |
+
from transformers import AutoTokenizer, AutoModel
|
| 103 |
+
import torch
|
| 104 |
+
|
| 105 |
+
tokenizer = AutoTokenizer.from_pretrained("shankerram3/resumator")
|
| 106 |
+
model = AutoModel.from_pretrained("shankerram3/resumator")
|
| 107 |
+
|
| 108 |
+
def encode(text):
|
| 109 |
+
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512, padding=True)
|
| 110 |
+
with torch.no_grad():
|
| 111 |
+
outputs = model(**inputs)
|
| 112 |
+
# Mean pooling + L2 normalize
|
| 113 |
+
embeddings = outputs.last_hidden_state.mean(dim=1)
|
| 114 |
+
return torch.nn.functional.normalize(embeddings, p=2, dim=1)
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
## Training
|
| 118 |
+
|
| 119 |
+
### Approach
|
| 120 |
+
|
| 121 |
+
Fine-tuned from `all-MiniLM-L6-v2` using **CosineSimilarityLoss** on 624 curated resume-job pairs. Each pair was scored by an LLM (scoring relevance from 0.0 to 1.0), and the model was trained to reproduce those similarity scores in embedding space.
|
| 122 |
+
|
| 123 |
+
### Training Data Format
|
| 124 |
+
|
| 125 |
+
Each training example is a (resume_text, job_text, similarity_score) triple:
|
| 126 |
+
- **resume_text**: Structured candidate profile (name, titles, skills, experience, location, full resume)
|
| 127 |
+
- **job_text**: Structured job posting (title, company, industry, location, description)
|
| 128 |
+
- **similarity_score**: Float 0.0–1.0 from LLM evaluation
|
| 129 |
+
|
| 130 |
+
### Why Fine-Tuning?
|
| 131 |
+
|
| 132 |
+
Generic sentence-transformers treat resumes and job descriptions as arbitrary text. Fine-tuning teaches the model:
|
| 133 |
+
1. **Domain vocabulary**: "OPT", "H1B", "C2C" are visa types, not random acronyms
|
| 134 |
+
2. **Structural alignment**: Match skills sections to requirements sections
|
| 135 |
+
3. **Experience calibration**: "3 years Java" is closer to "mid-level Java developer" than "senior architect"
|
| 136 |
+
4. **Recruiting context**: Company culture descriptions have lower weight than technical requirements
|
| 137 |
+
|
| 138 |
+
## Benchmarks
|
| 139 |
+
|
| 140 |
+
Evaluated on 50 candidates × 50 jobs = 2,500 pairs from anonymized recruiting data.
|
| 141 |
+
|
| 142 |
+
### Similarity Score Distribution
|
| 143 |
+
|
| 144 |
+
| Metric | Value |
|
| 145 |
+
|---|---|
|
| 146 |
+
| **Mean** | 0.5326 |
|
| 147 |
+
| **Median** | 0.5399 |
|
| 148 |
+
| **Std Dev** | 0.0917 |
|
| 149 |
+
| **Min** | 0.1378 |
|
| 150 |
+
| **Max** | 0.8341 |
|
| 151 |
+
| **P10** | 0.4203 |
|
| 152 |
+
| **P25** | 0.4815 |
|
| 153 |
+
| **P75** | 0.5939 |
|
| 154 |
+
| **P90** | 0.6376 |
|
| 155 |
+
| **P95** | 0.6668 |
|
| 156 |
+
|
| 157 |
+
### Score Histogram
|
| 158 |
+
|
| 159 |
+
```
|
| 160 |
+
0.0-0.1: 0 ( 0.0%)
|
| 161 |
+
0.1-0.2: 4 ( 0.2%)
|
| 162 |
+
0.2-0.3: # 45 ( 1.8%)
|
| 163 |
+
0.3-0.4: ##### 146 ( 5.8%)
|
| 164 |
+
0.4-0.5: #################### 601 (24.0%)
|
| 165 |
+
0.5-0.6: ######################## 1151 (46.0%)
|
| 166 |
+
0.6-0.7: ################# 506 (20.2%)
|
| 167 |
+
0.7-0.8: # 41 ( 1.6%)
|
| 168 |
+
0.8-0.9: 6 ( 0.2%)
|
| 169 |
+
0.9-1.0: 0 ( 0.0%)
|
| 170 |
+
```
|
| 171 |
+
|
| 172 |
+
The distribution shows good **discrimination** — most pairs score in the 0.4–0.6 range (mediocre match), while strong matches (>0.7) are rare and meaningful. A UI/UX designer candidate correctly scores 0.77 against UI/UX design jobs vs 0.55 against data engineering roles.
|
| 173 |
+
|
| 174 |
+
### Sample Matches
|
| 175 |
+
|
| 176 |
+
**Candidate: UI/UX Designer (anonymized)**
|
| 177 |
+
| Rank | Score | Job |
|
| 178 |
+
|---|---|---|
|
| 179 |
+
| #1 | 0.7770 | UI/UX Designer |
|
| 180 |
+
| #2 | 0.7343 | Graphic Designer |
|
| 181 |
+
| #3 | 0.7338 | UI/UX Designer |
|
| 182 |
+
| #4 | 0.7336 | Apparel Graphic Designer |
|
| 183 |
+
| #5 | 0.7282 | Graphic Designer (UI/UX) & Video Producer |
|
| 184 |
+
|
| 185 |
+
### Inference Speed
|
| 186 |
+
|
| 187 |
+
Measured on Apple M-series CPU (single thread):
|
| 188 |
+
|
| 189 |
+
| Operation | Latency |
|
| 190 |
+
|---|---|
|
| 191 |
+
| **Model load** (cold start) | 450 ms |
|
| 192 |
+
| **Single embedding** (mean) | 8.4 ms (P50) |
|
| 193 |
+
| **Single embedding** (worst case) | 335 ms (P99, first call warmup) |
|
| 194 |
+
| **Batch of 10** | 144 ms (14.4 ms/item) |
|
| 195 |
+
| **Batch of 25** | 141 ms (5.6 ms/item) |
|
| 196 |
+
| **Batch of 50** | 272 ms (5.4 ms/item) |
|
| 197 |
+
| **50 candidates** (full encode) | 210 ms |
|
| 198 |
+
| **50 jobs** (full encode) | 200 ms |
|
| 199 |
+
|
| 200 |
+
Batch encoding is ~1.5x more efficient per item than single encoding.
|
| 201 |
+
|
| 202 |
+
### Resource Usage
|
| 203 |
+
|
| 204 |
+
| Metric | Value |
|
| 205 |
+
|---|---|
|
| 206 |
+
| Peak RAM (inference) | ~300 MB |
|
| 207 |
+
| Model file size | 91 MB |
|
| 208 |
+
| Dependencies | torch (~200 MB), sentence-transformers (~50 MB) |
|
| 209 |
+
|
| 210 |
+
## Input Format
|
| 211 |
+
|
| 212 |
+
For best results, structure your input text consistently:
|
| 213 |
+
|
| 214 |
+
**Candidate format:**
|
| 215 |
+
```
|
| 216 |
+
Name: {name}
|
| 217 |
+
Titles: {current_title}, {previous_titles}
|
| 218 |
+
Skills: {skill1}, {skill2}, {skill3}
|
| 219 |
+
Experience: {years} years
|
| 220 |
+
Location: {city}, {state}
|
| 221 |
+
Visa: {visa_status}
|
| 222 |
+
Resume: {full_resume_text}
|
| 223 |
+
```
|
| 224 |
+
|
| 225 |
+
**Job format:**
|
| 226 |
+
```
|
| 227 |
+
Title: {job_title}
|
| 228 |
+
Company: {company_name}
|
| 229 |
+
Industry: {industry}
|
| 230 |
+
Location: {city}, {state}
|
| 231 |
+
Experience: {required_years} years
|
| 232 |
+
Description: {full_job_description}
|
| 233 |
+
```
|
| 234 |
+
|
| 235 |
+
## Limitations
|
| 236 |
+
|
| 237 |
+
- **English only** — trained exclusively on English resumes and US job postings
|
| 238 |
+
- **512 token limit** — long resumes/descriptions are truncated; key info should be early in the text
|
| 239 |
+
- **US tech market bias** — trained on US tech recruiting data; may not generalize well to other markets or industries
|
| 240 |
+
- **Small training set** — 624 pairs; performance may vary on underrepresented roles or industries
|
| 241 |
+
- **No temporal awareness** — doesn't account for job posting freshness or career progression timing
|
| 242 |
+
|
| 243 |
+
## Model Architecture
|
| 244 |
+
|
| 245 |
+
```
|
| 246 |
+
SentenceTransformer(
|
| 247 |
+
(0): Transformer (BertModel, 6 layers, 384 hidden)
|
| 248 |
+
(1): Pooling (mean tokens)
|
| 249 |
+
(2): Normalize (L2)
|
| 250 |
+
)
|
| 251 |
+
```
|
| 252 |
+
|
| 253 |
+
## Citation
|
| 254 |
+
|
| 255 |
+
```bibtex
|
| 256 |
+
@misc{resumator2026,
|
| 257 |
+
title={Resumator: Fine-tuned Sentence Transformer for Resume-Job Matching},
|
| 258 |
+
author={Shanker Ram},
|
| 259 |
+
year={2026},
|
| 260 |
+
url={https://huggingface.co/shankerram3/resumator}
|
| 261 |
+
}
|
| 262 |
+
```
|
| 263 |
+
|
| 264 |
+
## License
|
| 265 |
+
|
| 266 |
+
Apache 2.0
|
config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertModel"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"dtype": "float32",
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 384,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 1536,
|
| 14 |
+
"layer_norm_eps": 1e-12,
|
| 15 |
+
"max_position_embeddings": 512,
|
| 16 |
+
"model_type": "bert",
|
| 17 |
+
"num_attention_heads": 12,
|
| 18 |
+
"num_hidden_layers": 6,
|
| 19 |
+
"pad_token_id": 0,
|
| 20 |
+
"position_embedding_type": "absolute",
|
| 21 |
+
"transformers_version": "4.57.1",
|
| 22 |
+
"type_vocab_size": 2,
|
| 23 |
+
"use_cache": true,
|
| 24 |
+
"vocab_size": 30522
|
| 25 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "5.1.2",
|
| 4 |
+
"transformers": "4.57.1",
|
| 5 |
+
"pytorch": "2.9.0"
|
| 6 |
+
},
|
| 7 |
+
"model_type": "SentenceTransformer",
|
| 8 |
+
"prompts": {
|
| 9 |
+
"query": "",
|
| 10 |
+
"document": ""
|
| 11 |
+
},
|
| 12 |
+
"default_prompt_name": null,
|
| 13 |
+
"similarity_fn_name": "cosine"
|
| 14 |
+
}
|
eval/similarity_evaluation_results.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
epoch,steps,cosine_pearson,cosine_spearman
|
| 2 |
+
1.0,20,0.8070555830833193,0.5252090240303582
|
| 3 |
+
2.0,40,0.8526556431202823,0.6380171066139698
|
| 4 |
+
3.0,60,0.8607002737646279,0.6508924200349745
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b4b34f5117868f069b5bdfed455952c99945c76f66bbe12cd1b865a997b4382
|
| 3 |
+
size 90864192
|
modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.models.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 256,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"mask_token": {
|
| 10 |
+
"content": "[MASK]",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "[PAD]",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"sep_token": {
|
| 24 |
+
"content": "[SEP]",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"unk_token": {
|
| 31 |
+
"content": "[UNK]",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
}
|
| 37 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"100": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"101": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"102": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"103": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"clean_up_tokenization_spaces": false,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_basic_tokenize": true,
|
| 47 |
+
"do_lower_case": true,
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"max_length": 128,
|
| 51 |
+
"model_max_length": 256,
|
| 52 |
+
"never_split": null,
|
| 53 |
+
"pad_to_multiple_of": null,
|
| 54 |
+
"pad_token": "[PAD]",
|
| 55 |
+
"pad_token_type_id": 0,
|
| 56 |
+
"padding_side": "right",
|
| 57 |
+
"sep_token": "[SEP]",
|
| 58 |
+
"stride": 0,
|
| 59 |
+
"strip_accents": null,
|
| 60 |
+
"tokenize_chinese_chars": true,
|
| 61 |
+
"tokenizer_class": "BertTokenizer",
|
| 62 |
+
"truncation_side": "right",
|
| 63 |
+
"truncation_strategy": "longest_first",
|
| 64 |
+
"unk_token": "[UNK]"
|
| 65 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|