mletsana commited on
Commit
a5343ef
·
verified ·
1 Parent(s): 33773d4

CJIS v3.0 cjis-frames-classifier - Climate journalism multi-label classifier

Browse files
Files changed (5) hide show
  1. README.md +44 -0
  2. config.json +58 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +21 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ library_name: pytorch
5
+ tags:
6
+ - climate-journalism
7
+ - cjis-copilot
8
+ - frames
9
+ - multi-label-classification
10
+ # Base: Custom MLM-trained DeBERTa (not on HuggingFace Hub)
11
+ ---
12
+
13
+ # CJIS Co-pilot: Frames Classifier
14
+
15
+ Part of the Climate Journalism Intelligence System (CJIS) v3.0 "Journalistic Co-pilot".
16
+
17
+ ## Architecture
18
+ - Base: Climate-pretrained DeBERTa (MLM on 20k climate articles)
19
+ - Head: Specialist classifier for frames
20
+
21
+ ## Task
22
+ Frames classification for climate journalism articles.
23
+
24
+ ## Labels (8)
25
+ - `scientific`
26
+ - `crisis`
27
+ - `economic_solutions`
28
+ - `political`
29
+ - `justice_responsibility`
30
+ - `health_ecological`
31
+ - `security`
32
+ - `human_interest`
33
+
34
+ ## Usage
35
+ ```python
36
+ from transformers import pipeline
37
+
38
+ classifier = pipeline(
39
+ "text-classification",
40
+ model="maai-org/cjis-frames-classifier",
41
+ return_all_scores=True
42
+ )
43
+
44
+ result = classifier("Your climate article here...")
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DebertaV2ForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": null,
7
+ "dtype": "float32",
8
+ "eos_token_id": null,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "scientific",
14
+ "1": "crisis",
15
+ "2": "economic_solutions",
16
+ "3": "political",
17
+ "4": "justice_responsibility",
18
+ "5": "health_ecological",
19
+ "6": "security",
20
+ "7": "human_interest"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "crisis": 1,
26
+ "economic_solutions": 2,
27
+ "health_ecological": 5,
28
+ "human_interest": 7,
29
+ "justice_responsibility": 4,
30
+ "political": 3,
31
+ "scientific": 0,
32
+ "security": 6
33
+ },
34
+ "layer_norm_eps": 1e-07,
35
+ "legacy": true,
36
+ "max_position_embeddings": 512,
37
+ "max_relative_positions": -1,
38
+ "model_type": "deberta-v2",
39
+ "norm_rel_ebd": "layer_norm",
40
+ "num_attention_heads": 12,
41
+ "num_hidden_layers": 12,
42
+ "pad_token_id": 0,
43
+ "pooler_dropout": 0,
44
+ "pooler_hidden_act": "gelu",
45
+ "pooler_hidden_size": 768,
46
+ "pos_att_type": [
47
+ "p2c",
48
+ "c2p"
49
+ ],
50
+ "position_biased_input": false,
51
+ "position_buckets": 256,
52
+ "relative_attention": true,
53
+ "share_att_key": true,
54
+ "tie_word_embeddings": true,
55
+ "transformers_version": "5.0.0",
56
+ "type_vocab_size": 0,
57
+ "vocab_size": 128100
58
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8190c0ba919ed4ff6fd7cba655ef1556bff761494a16a1f3b981f2a1ed9c5be
3
+ size 737737736
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "[CLS]",
5
+ "clean_up_tokenization_spaces": false,
6
+ "cls_token": "[CLS]",
7
+ "do_lower_case": false,
8
+ "eos_token": "[SEP]",
9
+ "is_local": true,
10
+ "mask_token": "[MASK]",
11
+ "model_max_length": 1000000000000000019884624838656,
12
+ "model_specific_special_tokens": {},
13
+ "pad_token": "[PAD]",
14
+ "sep_token": "[SEP]",
15
+ "sp_model_kwargs": {},
16
+ "split_by_punct": false,
17
+ "tokenizer_class": "DebertaV2Tokenizer",
18
+ "unk_id": 3,
19
+ "unk_token": "[UNK]",
20
+ "vocab_type": "spm"
21
+ }