Lauler commited on
Commit
df5efae
1 Parent(s): 8c19693

DeFormer v2.0 de/dem/det/enda/ända support

Browse files
Files changed (3) hide show
  1. config.json +11 -4
  2. pytorch_model.bin +2 -2
  3. tokenizer_config.json +16 -1
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "KB/bert-base-swedish-cased",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
@@ -12,17 +12,24 @@
12
  "id2label": {
13
  "0": "ord",
14
  "1": "DE",
15
- "2": "DEM"
 
 
 
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
  "DE": "1",
21
  "DEM": "2",
22
- "ord": "0"
 
 
 
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "max_position_embeddings": 512,
 
26
  "model_type": "bert",
27
  "num_attention_heads": 12,
28
  "num_hidden_layers": 12,
@@ -34,4 +41,4 @@
34
  "type_vocab_size": 2,
35
  "use_cache": true,
36
  "vocab_size": 50325
37
- }
 
1
  {
2
+ "_name_or_path": "KBLab/bert-base-swedish-cased",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
 
12
  "id2label": {
13
  "0": "ord",
14
  "1": "DE",
15
+ "2": "DEM",
16
+ "3": "DET",
17
+ "4": "ENDA",
18
+ "5": "\u00c4NDA"
19
  },
20
  "initializer_range": 0.02,
21
  "intermediate_size": 3072,
22
  "label2id": {
23
  "DE": "1",
24
  "DEM": "2",
25
+ "DET": "3",
26
+ "ENDA": "4",
27
+ "ord": "0",
28
+ "\u00c4NDA": "5"
29
  },
30
  "layer_norm_eps": 1e-12,
31
  "max_position_embeddings": 512,
32
+ "model_max_length": 512,
33
  "model_type": "bert",
34
  "num_attention_heads": 12,
35
  "num_hidden_layers": 12,
 
41
  "type_vocab_size": 2,
42
  "use_cache": true,
43
  "vocab_size": 50325
44
+ }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ec20b9e452bb5c2bf69c55f58f28c35aaad89d5947332bd0515ba478eafab87d
3
- size 496494065
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36c8f21e841ea95e7f491f1468a822931cf1d9399835542d1f136eb7463730bc
3
+ size 496503281
tokenizer_config.json CHANGED
@@ -1 +1,16 @@
1
- {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": false, "special_tokens_map_file": "/home/faton/.cache/huggingface/transformers/37f2eab7cd9b3716ce0160ea9562138ae9247fb3ea61a2fd0190b16d0970444e.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "KB/bert-base-swedish-cased", "do_basic_tokenize": true, "never_split": null}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_lower_case": false,
3
+ "unk_token": "[UNK]",
4
+ "sep_token": "[SEP]",
5
+ "pad_token": "[PAD]",
6
+ "cls_token": "[CLS]",
7
+ "mask_token": "[MASK]",
8
+ "tokenize_chinese_chars": true,
9
+ "strip_accents": false,
10
+ "special_tokens_map_file": "/home/faton/.cache/huggingface/transformers/04a84d173cafb30222a62efc0407878ebf2dc63e1871634cccbd4b68b923b031.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d",
11
+ "name_or_path": "KBLab/bert-base-swedish-cased",
12
+ "do_basic_tokenize": true,
13
+ "never_split": null,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "model_max_length": 512
16
+ }