gaaahee commited on
Commit
dcdbffb
·
verified ·
1 Parent(s): 8c692fc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +50 -0
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ko
3
+ license: mit
4
+ tags:
5
+ - kobert
6
+ - stance-detection
7
+ - korean
8
+ - text-classification
9
+ metrics:
10
+ - accuracy
11
+ - f1
12
+ ---
13
+
14
+ # KoBERT Stance Classifier v2
15
+
16
+ 한국어 정치 뉴스 스탠스 분류 모델
17
+
18
+ ## Performance
19
+
20
+ | Metric | Score |
21
+ |--------|-------|
22
+ | Test Accuracy | 73.37% |
23
+ | Test F1 (macro) | 0.7336 |
24
+
25
+ ## Labels
26
+
27
+ - 0: 옹호 (Support)
28
+ - 1: 중립 (Neutral)
29
+ - 2: 비판 (Oppose)
30
+
31
+ ## Usage
32
+
33
+ ```python
34
+ import torch
35
+ from transformers import AutoTokenizer
36
+
37
+ tokenizer = AutoTokenizer.from_pretrained('monologg/kobert', trust_remote_code=True)
38
+
39
+ # Load model
40
+ checkpoint = torch.load('pytorch_model.pt', map_location='cpu')
41
+ # model.load_state_dict(checkpoint['model_state_dict'])
42
+ ```
43
+
44
+ ## Training Config
45
+
46
+ - Base Model: monologg/kobert
47
+ - Max Length: 256
48
+ - Batch Size: 64
49
+ - Learning Rate: 2e-05
50
+ - Focal Loss: True