Adityansh004 commited on
Commit
f5a8672
·
1 Parent(s): 0461260

Add title and description NER checkpoint folders

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Here’s a clean `README.md` template for your Hugging Face repo with **both NER models** and usage instructions:
2
+
3
+ # Job NER Pipeline Models
4
+
5
+ This repository contains two pretrained NER models for job-related text processing:
6
+
7
+ 1. **Job Title NER** (`title_ner/`)
8
+ Detects entities in job titles.
9
+
10
+ 2. **Job Description NER** (`desc_ner/`)
11
+ Detects entities in full job descriptions.
12
+
13
+ Both models include:
14
+ - `model.safetensors` (weights)
15
+ - `config.json`
16
+ - `tokenizer.json`
17
+ - `tokenizer_config.json`
18
+ - `special_tokens_map.json`
19
+
20
+ ## Repository Structure
21
+
22
+ README.md
23
+ title_ner/
24
+ model.safetensors
25
+ config.json
26
+ tokenizer.json
27
+ tokenizer_config.json
28
+ special_tokens_map.json
29
+ desc_ner/
30
+ model.safetensors
31
+ config.json
32
+ tokenizer.json
33
+ tokenizer_config.json
34
+ special_tokens_map.json
35
+
36
+ ## Usage
37
+
38
+ Install required packages:
39
+ ```bash
40
+ pip install transformers huggingface_hub
41
+ ````
42
+
43
+ Load models in Python:
44
+
45
+ ```python
46
+ from huggingface_hub import snapshot_download
47
+ from transformers import AutoTokenizer, AutoModelForTokenClassification
48
+
49
+ # Download full repo
50
+ repo_dir = snapshot_download("username/job-ner-pipeline")
51
+
52
+ # Job Title NER
53
+ title_path = f"{repo_dir}/title_ner"
54
+ title_model = AutoModelForTokenClassification.from_pretrained(title_path)
55
+ title_tokenizer = AutoTokenizer.from_pretrained(title_path)
56
+
57
+ # Job Description NER
58
+ desc_path = f"{repo_dir}/desc_ner"
59
+ desc_model = AutoModelForTokenClassification.from_pretrained(desc_path)
60
+ desc_tokenizer = AutoTokenizer.from_pretrained(desc_path)
61
+ ```
62
+
63
+ You can now use these models in your pipeline for entity recognition on job titles and descriptions.
64
+
65
+ ---
66
+
67
+ ## Notes
68
+
69
+ * Both models are required for the full pipeline.
70
+ * Do **not modify the folder names**; the pipeline expects `title_ner` and `desc_ner`.
71
+ * Large files (`.safetensors`) are tracked using Git LFS. Ensure you have it installed:
72
+
73
+ ```bash
74
+ git lfs install
75
+ ```
76
+
77
+
jd-distilbert-job-ner/added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "[BENEFITS]": 30522,
3
+ "[RESPONSIBILITIES]": 30523,
4
+ "[SKILLS]": 30524
5
+ }
jd-distilbert-job-ner/config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForTokenClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "dtype": "float32",
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-BENEFIT",
14
+ "2": "I-BENEFIT",
15
+ "3": "B-RESPONSIBILITY",
16
+ "4": "I-RESPONSIBILITY",
17
+ "5": "B-SKILL",
18
+ "6": "I-SKILL"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "label2id": {
22
+ "B-BENEFIT": 1,
23
+ "B-RESPONSIBILITY": 3,
24
+ "B-SKILL": 5,
25
+ "I-BENEFIT": 2,
26
+ "I-RESPONSIBILITY": 4,
27
+ "I-SKILL": 6,
28
+ "O": 0
29
+ },
30
+ "max_position_embeddings": 512,
31
+ "model_type": "distilbert",
32
+ "n_heads": 12,
33
+ "n_layers": 6,
34
+ "pad_token_id": 0,
35
+ "qa_dropout": 0.1,
36
+ "seq_classif_dropout": 0.2,
37
+ "sinusoidal_pos_embds": false,
38
+ "tie_weights_": true,
39
+ "transformers_version": "4.56.1",
40
+ "vocab_size": 30525
41
+ }
jd-distilbert-job-ner/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93e7f2600abf1e6f7b38ba1cbd48cd0967df0055eeed43c239d0515f6b2a56da
3
+ size 265494612
jd-distilbert-job-ner/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "[BENEFITS]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "[RESPONSIBILITIES]",
12
+ "lstrip": false,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ {
18
+ "content": "[SKILLS]",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ ],
25
+ "cls_token": "[CLS]",
26
+ "mask_token": "[MASK]",
27
+ "pad_token": "[PAD]",
28
+ "sep_token": "[SEP]",
29
+ "unk_token": "[UNK]"
30
+ }
jd-distilbert-job-ner/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
jd-distilbert-job-ner/tokenizer_config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "30522": {
44
+ "content": "[BENEFITS]",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "30523": {
52
+ "content": "[RESPONSIBILITIES]",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "30524": {
60
+ "content": "[SKILLS]",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ }
67
+ },
68
+ "additional_special_tokens": [
69
+ "[BENEFITS]",
70
+ "[RESPONSIBILITIES]",
71
+ "[SKILLS]"
72
+ ],
73
+ "clean_up_tokenization_spaces": false,
74
+ "cls_token": "[CLS]",
75
+ "do_lower_case": true,
76
+ "extra_special_tokens": {},
77
+ "mask_token": "[MASK]",
78
+ "model_max_length": 512,
79
+ "pad_token": "[PAD]",
80
+ "sep_token": "[SEP]",
81
+ "strip_accents": null,
82
+ "tokenize_chinese_chars": true,
83
+ "tokenizer_class": "DistilBertTokenizer",
84
+ "unk_token": "[UNK]"
85
+ }
jd-distilbert-job-ner/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
title-distilbert-job-ner/config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForTokenClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "dtype": "float32",
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-LEVEL",
14
+ "2": "I-LEVEL",
15
+ "3": "B-ROLE",
16
+ "4": "I-ROLE",
17
+ "5": "B-FUNCTION",
18
+ "6": "I-FUNCTION",
19
+ "7": "B-DOMAIN",
20
+ "8": "I-DOMAIN",
21
+ "9": "B-TECH_STACK",
22
+ "10": "I-TECH_STACK",
23
+ "11": "B-REGION",
24
+ "12": "I-REGION",
25
+ "13": "B-WORK_SETTING",
26
+ "14": "I-WORK_SETTING",
27
+ "15": "B-EMPLOYMENT_TYPE",
28
+ "16": "I-EMPLOYMENT_TYPE",
29
+ "17": "B-LANGUAGE",
30
+ "18": "I-LANGUAGE"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "label2id": {
34
+ "B-DOMAIN": 7,
35
+ "B-EMPLOYMENT_TYPE": 15,
36
+ "B-FUNCTION": 5,
37
+ "B-LANGUAGE": 17,
38
+ "B-LEVEL": 1,
39
+ "B-REGION": 11,
40
+ "B-ROLE": 3,
41
+ "B-TECH_STACK": 9,
42
+ "B-WORK_SETTING": 13,
43
+ "I-DOMAIN": 8,
44
+ "I-EMPLOYMENT_TYPE": 16,
45
+ "I-FUNCTION": 6,
46
+ "I-LANGUAGE": 18,
47
+ "I-LEVEL": 2,
48
+ "I-REGION": 12,
49
+ "I-ROLE": 4,
50
+ "I-TECH_STACK": 10,
51
+ "I-WORK_SETTING": 14,
52
+ "O": 0
53
+ },
54
+ "max_position_embeddings": 512,
55
+ "model_type": "distilbert",
56
+ "n_heads": 12,
57
+ "n_layers": 6,
58
+ "pad_token_id": 0,
59
+ "qa_dropout": 0.1,
60
+ "seq_classif_dropout": 0.2,
61
+ "sinusoidal_pos_embds": false,
62
+ "tie_weights_": true,
63
+ "transformers_version": "4.56.2",
64
+ "vocab_size": 30522
65
+ }
title-distilbert-job-ner/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52dbd698faea6d5bc75295232ade8fb061cbedafd79f650b9dbdd75548f3decc
3
+ size 265522308
title-distilbert-job-ner/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
title-distilbert-job-ner/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
title-distilbert-job-ner/tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_lower_case": true,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "DistilBertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
title-distilbert-job-ner/vocab.txt ADDED
The diff for this file is too large to render. See raw diff