fabiancpl commited on
Commit
a14b963
·
1 Parent(s): fa86f1e

Pushing model, tokenizer and model card

Browse files
Files changed (8) hide show
  1. README.md +31 -0
  2. config.json +114 -0
  3. merges.txt +0 -0
  4. model.safetensors +3 -0
  5. special_tokens_map.json +51 -0
  6. tokenizer.json +0 -0
  7. tokenizer_config.json +58 -0
  8. vocab.json +0 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ language:
5
+ - en
6
+ metrics:
7
+ - seqeval
8
+ base_model:
9
+ - microsoft/codebert-base
10
+ pipeline_tag: token-classification
11
+ ---
12
+
13
+ # CodeBERT base for detecting software engineering terminology
14
+
15
+ This model detects software engineering terminology in developer forums (e.g., Stack Overflow) as 'Data_Structure', 'Application', 'Code_Block', 'Function", 'Data_Type', 'Language', 'Library', 'Variable', 'Device', 'User_Name', 'User_Interface_Element', 'Class', 'Website', 'Version', 'File_Name', 'File_Type', 'Operating_System', 'Output_Block', 'Algorithm' or 'HTML_XML_Tag'.
16
+
17
+ - **Developed by:** Fabian C. Peña, Steffen Herbold
18
+ - **Finetuned from:** [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base)
19
+ - **Replication kit:** [https://github.com/aieng-lab/senlp-benchmark](https://github.com/aieng-lab/senlp-benchmark)
20
+ - **Language:** English
21
+ - **License:** MIT
22
+
23
+ ## Citation
24
+
25
+ ```
26
+ @misc{pena2025benchmark,
27
+ author = {Fabian Peña and Steffen Herbold},
28
+ title = {Evaluating Large Language Models on Non-Code Software Engineering Tasks},
29
+ year = {2025}
30
+ }
31
+ ```
config.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/codebert-base",
3
+ "architectures": [
4
+ "RobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "O",
15
+ "1": "B-Data_Structure",
16
+ "2": "I-Data_Structure",
17
+ "3": "B-Application",
18
+ "4": "I-Application",
19
+ "5": "B-Code_Block",
20
+ "6": "I-Code_Block",
21
+ "7": "B-Function",
22
+ "8": "I-Function",
23
+ "9": "B-Data_Type",
24
+ "10": "I-Data_Type",
25
+ "11": "B-Language",
26
+ "12": "I-Language",
27
+ "13": "B-Library",
28
+ "14": "I-Library",
29
+ "15": "B-Variable",
30
+ "16": "I-Variable",
31
+ "17": "B-Device",
32
+ "18": "I-Device",
33
+ "19": "B-User_Name",
34
+ "20": "I-User_Name",
35
+ "21": "B-User_Interface_Element",
36
+ "22": "I-User_Interface_Element",
37
+ "23": "B-Class",
38
+ "24": "I-Class",
39
+ "25": "B-Website",
40
+ "26": "I-Website",
41
+ "27": "B-Version",
42
+ "28": "I-Version",
43
+ "29": "B-File_Name",
44
+ "30": "I-File_Name",
45
+ "31": "B-File_Type",
46
+ "32": "I-File_Type",
47
+ "33": "B-Operating_System",
48
+ "34": "I-Operating_System",
49
+ "35": "B-Output_Block",
50
+ "36": "I-Output_Block",
51
+ "37": "B-Algorithm",
52
+ "38": "I-Algorithm",
53
+ "39": "B-HTML_XML_Tag",
54
+ "40": "I-HTML_XML_Tag"
55
+ },
56
+ "initializer_range": 0.02,
57
+ "intermediate_size": 3072,
58
+ "label2id": {
59
+ "B-Algorithm": 37,
60
+ "B-Application": 3,
61
+ "B-Class": 23,
62
+ "B-Code_Block": 5,
63
+ "B-Data_Structure": 1,
64
+ "B-Data_Type": 9,
65
+ "B-Device": 17,
66
+ "B-File_Name": 29,
67
+ "B-File_Type": 31,
68
+ "B-Function": 7,
69
+ "B-HTML_XML_Tag": 39,
70
+ "B-Language": 11,
71
+ "B-Library": 13,
72
+ "B-Operating_System": 33,
73
+ "B-Output_Block": 35,
74
+ "B-User_Interface_Element": 21,
75
+ "B-User_Name": 19,
76
+ "B-Variable": 15,
77
+ "B-Version": 27,
78
+ "B-Website": 25,
79
+ "I-Algorithm": 38,
80
+ "I-Application": 4,
81
+ "I-Class": 24,
82
+ "I-Code_Block": 6,
83
+ "I-Data_Structure": 2,
84
+ "I-Data_Type": 10,
85
+ "I-Device": 18,
86
+ "I-File_Name": 30,
87
+ "I-File_Type": 32,
88
+ "I-Function": 8,
89
+ "I-HTML_XML_Tag": 40,
90
+ "I-Language": 12,
91
+ "I-Library": 14,
92
+ "I-Operating_System": 34,
93
+ "I-Output_Block": 36,
94
+ "I-User_Interface_Element": 22,
95
+ "I-User_Name": 20,
96
+ "I-Variable": 16,
97
+ "I-Version": 28,
98
+ "I-Website": 26,
99
+ "O": 0
100
+ },
101
+ "layer_norm_eps": 1e-05,
102
+ "max_position_embeddings": 514,
103
+ "model_type": "roberta",
104
+ "num_attention_heads": 12,
105
+ "num_hidden_layers": 12,
106
+ "output_past": true,
107
+ "pad_token_id": 1,
108
+ "position_embedding_type": "absolute",
109
+ "torch_dtype": "bfloat16",
110
+ "transformers_version": "4.48.3",
111
+ "type_vocab_size": 1,
112
+ "use_cache": true,
113
+ "vocab_size": 50265
114
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8caf3420c30ec0b789bb109e9c0c6b4473f641ec1a3357c54f3c1cba7e4b87b9
3
+ size 248197210
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "<mask>",
52
+ "model_max_length": 512,
53
+ "pad_token": "<pad>",
54
+ "sep_token": "</s>",
55
+ "tokenizer_class": "RobertaTokenizer",
56
+ "trim_offsets": true,
57
+ "unk_token": "<unk>"
58
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff