othamoth commited on
Commit
8016893
·
verified ·
1 Parent(s): 4b3f13b

Upload 30 files

Browse files
Files changed (30) hide show
  1. flow_moderation_predict.py +106 -0
  2. module_profanity/__init__.py +0 -0
  3. module_profanity/__pycache__/__init__.cpython-313.pyc +0 -0
  4. module_profanity/batch_predict.py +90 -0
  5. module_profanity/models/char_cnn_model.pth +3 -0
  6. module_profanity/models/tokenizer.json +2488 -0
  7. module_profanity/predict.py +84 -0
  8. module_profanity/src/__init__.py +0 -0
  9. module_profanity/src/__pycache__/__init__.cpython-313.pyc +0 -0
  10. module_profanity/src/__pycache__/model.cpython-313.pyc +0 -0
  11. module_profanity/src/__pycache__/tokenizer.cpython-313.pyc +0 -0
  12. module_profanity/src/dataset.py +22 -0
  13. module_profanity/src/model.py +46 -0
  14. module_profanity/src/tokenizer.py +54 -0
  15. module_profanity/train.py +207 -0
  16. module_toxicdetection/__init__.py +0 -0
  17. module_toxicdetection/__pycache__/__init__.cpython-313.pyc +0 -0
  18. module_toxicdetection/models/final_model/config.json +31 -0
  19. module_toxicdetection/models/final_model/model.safetensors +3 -0
  20. module_toxicdetection/models/final_model/special_tokens_map.json +37 -0
  21. module_toxicdetection/models/final_model/tokenizer.json +0 -0
  22. module_toxicdetection/models/final_model/tokenizer_config.json +58 -0
  23. module_toxicdetection/src/__init__.py +0 -0
  24. module_toxicdetection/src/__pycache__/__init__.cpython-313.pyc +0 -0
  25. module_toxicdetection/src/__pycache__/dataset.cpython-313.pyc +0 -0
  26. module_toxicdetection/src/__pycache__/predict.cpython-313.pyc +0 -0
  27. module_toxicdetection/src/dataset.py +45 -0
  28. module_toxicdetection/src/predict.py +57 -0
  29. module_toxicdetection/src/prepare_data.py +85 -0
  30. module_toxicdetection/train.py +83 -0
flow_moderation_predict.py ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import sys
3
+ import os
4
+
5
+ sys.path.append(os.getcwd())
6
+
7
+ from module_profanity.src.model import CharCNN
8
+ from module_profanity.src.tokenizer import CharTokenizer
9
+ from module_toxicdetection.src.predict import ToxicDetector
10
+
11
+ class IntegratedModerator:
12
+ def __init__(self):
13
+ self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
+ print(f"Initializing Integrated Moderator on {self.device}...")
15
+
16
+ # 1. Load Profanity Model (CharCNN)
17
+ print("Loading Profanity Model (CharCNN)...")
18
+ self.profanity_tokenizer = CharTokenizer.load("flow_moderation_model/models/tokenizer.json")
19
+ self.profanity_model = CharCNN(
20
+ vocab_size=len(self.profanity_tokenizer),
21
+ num_classes=2,
22
+ embedding_dim=300,
23
+ n_filters=384,
24
+ max_len=150
25
+ ).to(self.device)
26
+ self.profanity_model.load_state_dict(torch.load("flow_moderation_model/models/char_cnn_model.pth", map_location=self.device))
27
+ self.profanity_model.eval()
28
+
29
+ # 2. Load Toxic Model (KcELECTRA)
30
+ print("Loading Toxic Model (KcELECTRA)...")
31
+ self.toxic_detector = ToxicDetector("toxic_detection_model/models/final_model")
32
+
33
+ def predict_profanity(self, text):
34
+ encoded = self.profanity_tokenizer.encode(text)
35
+ input_tensor = torch.tensor([encoded], dtype=torch.long).to(self.device)
36
+ with torch.no_grad():
37
+ output = self.profanity_model(input_tensor)
38
+ probs = torch.nn.functional.softmax(output, dim=1)
39
+ score = probs[0][1].item()
40
+ return score
41
+
42
+ def predict(self, text):
43
+ profanity_score = self.predict_profanity(text)
44
+
45
+ toxic_score = self.toxic_detector.predict(text)
46
+
47
+ result = {
48
+ "text": text,
49
+ "profanity_score": profanity_score,
50
+ "toxic_score": toxic_score,
51
+ "final_label": "Clean",
52
+ "reason": "Normal conversation"
53
+ }
54
+
55
+ # Thresholds
56
+ PROFANITY_THRESHOLD = 0.5
57
+ TOXIC_THRESHOLD = 0.5
58
+
59
+ if profanity_score >= PROFANITY_THRESHOLD:
60
+ result["final_label"] = "PROFANITY"
61
+ result["reason"] = "Explicit bad language detected"
62
+ elif toxic_score >= TOXIC_THRESHOLD:
63
+ result["final_label"] = "TOXIC"
64
+ result["reason"] = "Toxic context or sarcasm detected (without explicit profanity)"
65
+
66
+ return result
67
+
68
+ def main():
69
+ print("\n" + "="*50)
70
+ print(" FLOW MODERATION SYSTEM (Integrated)")
71
+ print(" 1. Profanity Detection (CharCNN)")
72
+ print(" 2. Toxicity/Sarcasm Detection (KcELECTRA)")
73
+ print("="*50 + "\n")
74
+
75
+ moderator = IntegratedModerator()
76
+
77
+ print("\nSystem Ready. Type 'q' or 'exit' to quit.\n")
78
+
79
+ while True:
80
+ try:
81
+ user_input = input("User > ")
82
+ if user_input.strip().lower() in ['q', 'exit']:
83
+ print("Exiting...")
84
+ break
85
+
86
+ if not user_input.strip():
87
+ continue
88
+
89
+ res = moderator.predict(user_input)
90
+
91
+ print("-" * 40)
92
+ print(f"Input: {res['text']}")
93
+ print(f"Profanity Score : {res['profanity_score']:.4f}")
94
+ print(f"Toxic Score : {res['toxic_score']:.4f}")
95
+ print(f"Decision : [{res['final_label']}]")
96
+ print(f"Reason : {res['reason']}")
97
+ print("-" * 40 + "\n")
98
+
99
+ except KeyboardInterrupt:
100
+ print("\nExiting...")
101
+ break
102
+ except Exception as e:
103
+ print(f"Error: {e}")
104
+
105
+ if __name__ == "__main__":
106
+ main()
module_profanity/__init__.py ADDED
File without changes
module_profanity/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (170 Bytes). View file
 
module_profanity/batch_predict.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import os
3
+ import sys
4
+ from src.tokenizer import CharTokenizer
5
+ from src.model import CharCNN
6
+
7
+ MAX_LEN = 150
8
+ EMBEDDING_DIM = 300
9
+ N_FILTERS = 384
10
+ MODEL_PATH = "models/flow_moderation_oss.pth"
11
+ TOKENIZER_PATH = "models/tokenizer.json"
12
+ INPUT_FILE = "../test.md"
13
+ OUTPUT_FILE = "../result.log"
14
+
15
+ CATEGORIES = {
16
+ 0: "정상 (Clean)",
17
+ 1: "비정상 (Abnormal/Profanity)"
18
+ }
19
+
20
+ def load_artifacts():
21
+ if not os.path.exists(TOKENIZER_PATH):
22
+ print(f"Error: {TOKENIZER_PATH} not found.")
23
+ sys.exit(1)
24
+ tokenizer = CharTokenizer.load(TOKENIZER_PATH)
25
+
26
+ if not os.path.exists(MODEL_PATH):
27
+ print(f"Error: {MODEL_PATH} not found.")
28
+ sys.exit(1)
29
+
30
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
31
+ model = CharCNN(
32
+ vocab_size=len(tokenizer),
33
+ num_classes=2,
34
+ embedding_dim=EMBEDDING_DIM,
35
+ n_filters=N_FILTERS,
36
+ max_len=MAX_LEN
37
+ ).to(device)
38
+
39
+ model.load_state_dict(torch.load(MODEL_PATH, map_location=device))
40
+ model.eval()
41
+
42
+ return tokenizer, model, device
43
+
44
+ def predict_line(text, tokenizer, model, device):
45
+ encoded = tokenizer.encode(text)
46
+ input_tensor = torch.tensor([encoded], dtype=torch.long).to(device)
47
+
48
+ with torch.no_grad():
49
+ output = model(input_tensor)
50
+ probs = torch.nn.functional.softmax(output, dim=1)
51
+
52
+ pred_idx = torch.argmax(probs, dim=1).item()
53
+ confidence = probs[0][pred_idx].item()
54
+
55
+ return pred_idx, confidence
56
+
57
+ def main():
58
+ if not os.path.exists(INPUT_FILE):
59
+ print(f"Error: Input file '{INPUT_FILE}' not found.")
60
+ sys.exit(1)
61
+
62
+ print("Loading model...")
63
+ tokenizer, model, device = load_artifacts()
64
+
65
+ print(f"Processing {INPUT_FILE}...")
66
+
67
+ with open(INPUT_FILE, 'r', encoding='utf-8') as fin, \
68
+ open(OUTPUT_FILE, 'w', encoding='utf-8') as fout:
69
+
70
+ lines = fin.readlines()
71
+ total = len(lines)
72
+
73
+ for i, line in enumerate(lines):
74
+ text = line.strip()
75
+ if not text:
76
+ continue
77
+
78
+ pred_idx, conf = predict_line(text, tokenizer, model, device)
79
+ if i < 10:
80
+ print(f"DEBUG: Line {i+1} text='{text}' pred_idx={pred_idx}")
81
+ result_str = f"Line {i+1}: [{CATEGORIES[pred_idx]}] (Conf: {conf*100:.2f}%) - {text}\n"
82
+ fout.write(result_str)
83
+
84
+ if (i+1) % 100 == 0:
85
+ print(f"Processed {i+1}/{total} lines...", end='\r')
86
+
87
+ print(f"\nDone! Results saved to {OUTPUT_FILE}")
88
+
89
+ if __name__ == "__main__":
90
+ main()
module_profanity/models/char_cnn_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c18f50a9e341e30d59cb3ea5875247cb6e80c7a1915b22e360803740900485c5
3
+ size 12223526
module_profanity/models/tokenizer.json ADDED
@@ -0,0 +1,2488 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "char2idx": {
3
+ "<PAD>": 0,
4
+ "<UNK>": 1,
5
+ " ": 2,
6
+ "!": 3,
7
+ "\"": 4,
8
+ "#": 5,
9
+ "$": 6,
10
+ "%": 7,
11
+ "&": 8,
12
+ "'": 9,
13
+ "(": 10,
14
+ ")": 11,
15
+ "*": 12,
16
+ "+": 13,
17
+ ",": 14,
18
+ "-": 15,
19
+ ".": 16,
20
+ "/": 17,
21
+ "0": 18,
22
+ "1": 19,
23
+ "2": 20,
24
+ "3": 21,
25
+ "4": 22,
26
+ "5": 23,
27
+ "6": 24,
28
+ "7": 25,
29
+ "8": 26,
30
+ "9": 27,
31
+ ":": 28,
32
+ ";": 29,
33
+ "<": 30,
34
+ "=": 31,
35
+ ">": 32,
36
+ "?": 33,
37
+ "@": 34,
38
+ "A": 35,
39
+ "B": 36,
40
+ "C": 37,
41
+ "D": 38,
42
+ "E": 39,
43
+ "F": 40,
44
+ "G": 41,
45
+ "H": 42,
46
+ "I": 43,
47
+ "J": 44,
48
+ "K": 45,
49
+ "L": 46,
50
+ "M": 47,
51
+ "N": 48,
52
+ "O": 49,
53
+ "P": 50,
54
+ "Q": 51,
55
+ "R": 52,
56
+ "S": 53,
57
+ "T": 54,
58
+ "U": 55,
59
+ "V": 56,
60
+ "W": 57,
61
+ "X": 58,
62
+ "Y": 59,
63
+ "Z": 60,
64
+ "[": 61,
65
+ "\\": 62,
66
+ "]": 63,
67
+ "^": 64,
68
+ "_": 65,
69
+ "`": 66,
70
+ "a": 67,
71
+ "b": 68,
72
+ "c": 69,
73
+ "d": 70,
74
+ "e": 71,
75
+ "f": 72,
76
+ "g": 73,
77
+ "h": 74,
78
+ "i": 75,
79
+ "j": 76,
80
+ "k": 77,
81
+ "l": 78,
82
+ "m": 79,
83
+ "n": 80,
84
+ "o": 81,
85
+ "p": 82,
86
+ "q": 83,
87
+ "r": 84,
88
+ "s": 85,
89
+ "t": 86,
90
+ "u": 87,
91
+ "v": 88,
92
+ "w": 89,
93
+ "x": 90,
94
+ "y": 91,
95
+ "z": 92,
96
+ "{": 93,
97
+ "|": 94,
98
+ "}": 95,
99
+ "~": 96,
100
+ "¡": 97,
101
+ "§": 98,
102
+ "­": 99,
103
+ "·": 100,
104
+ "è": 101,
105
+ "é": 102,
106
+ "ñ": 103,
107
+ "ó": 104,
108
+ "ö": 105,
109
+ "ü": 106,
110
+ "ć": 107,
111
+ "ł": 108,
112
+ "π": 109,
113
+ "‘": 110,
114
+ "’": 111,
115
+ "“": 112,
116
+ "”": 113,
117
+ "‥": 114,
118
+ "…": 115,
119
+ "₂": 116,
120
+ "→": 117,
121
+ "↓": 118,
122
+ "∼": 119,
123
+ "⌒": 120,
124
+ "⑦": 121,
125
+ "⑹": 122,
126
+ "⒠": 123,
127
+ "⒮": 124,
128
+ "⒳": 125,
129
+ "ⓑ": 126,
130
+ "ⓒ": 127,
131
+ "ⓔ": 128,
132
+ "ⓘ": 129,
133
+ "ⓛ": 130,
134
+ "ⓞ": 131,
135
+ "ⓢ": 132,
136
+ "ⓩ": 133,
137
+ "─": 134,
138
+ "┏": 135,
139
+ "■": 136,
140
+ "▶": 137,
141
+ "▼": 138,
142
+ "▽": 139,
143
+ "◀": 140,
144
+ "○": 141,
145
+ "★": 142,
146
+ "☆": 143,
147
+ "☞": 144,
148
+ "☻": 145,
149
+ "♡": 146,
150
+ "♥": 147,
151
+ "♪": 148,
152
+ "♬": 149,
153
+ "、": 150,
154
+ "。": 151,
155
+ "《": 152,
156
+ "》": 153,
157
+ "「": 154,
158
+ "」": 155,
159
+ "『": 156,
160
+ "』": 157,
161
+ "お": 158,
162
+ "け": 159,
163
+ "し": 160,
164
+ "で": 161,
165
+ "な": 162,
166
+ "の": 163,
167
+ "ひ": 164,
168
+ "ぽ": 165,
169
+ "む": 166,
170
+ "も": 167,
171
+ "よ": 168,
172
+ "ら": 169,
173
+ "る": 170,
174
+ "れ": 171,
175
+ "ろ": 172,
176
+ "エ": 173,
177
+ "カ": 174,
178
+ "ス": 175,
179
+ "チ": 176,
180
+ "ッ": 177,
181
+ "パ": 178,
182
+ "ピ": 179,
183
+ "ョ": 180,
184
+ "リ": 181,
185
+ "ロ": 182,
186
+ "ン": 183,
187
+ "ㄱ": 184,
188
+ "ㄲ": 185,
189
+ "ㄴ": 186,
190
+ "ㄵ": 187,
191
+ "ㄷ": 188,
192
+ "ㄸ": 189,
193
+ "ㄹ": 190,
194
+ "ㄻ": 191,
195
+ "ㅁ": 192,
196
+ "ㅂ": 193,
197
+ "ㅃ": 194,
198
+ "ㅄ": 195,
199
+ "ㅅ": 196,
200
+ "ㅆ": 197,
201
+ "ㅇ": 198,
202
+ "ㅈ": 199,
203
+ "ㅉ": 200,
204
+ "ㅊ": 201,
205
+ "ㅋ": 202,
206
+ "ㅌ": 203,
207
+ "ㅍ": 204,
208
+ "ㅎ": 205,
209
+ "ㅏ": 206,
210
+ "ㅐ": 207,
211
+ "ㅑ": 208,
212
+ "ㅓ": 209,
213
+ "ㅔ": 210,
214
+ "ㅕ": 211,
215
+ "ㅖ": 212,
216
+ "ㅗ": 213,
217
+ "ㅘ": 214,
218
+ "ㅛ": 215,
219
+ "ㅜ": 216,
220
+ "ㅝ": 217,
221
+ "ㅞ": 218,
222
+ "ㅟ": 219,
223
+ "ㅠ": 220,
224
+ "ㅡ": 221,
225
+ "ㅣ": 222,
226
+ "ㅤ": 223,
227
+ "ㆍ": 224,
228
+ "㉥": 225,
229
+ "㉨": 226,
230
+ "一": 227,
231
+ "三": 228,
232
+ "上": 229,
233
+ "下": 230,
234
+ "中": 231,
235
+ "乃": 232,
236
+ "也": 233,
237
+ "人": 234,
238
+ "佑": 235,
239
+ "作": 236,
240
+ "信": 237,
241
+ "倭": 238,
242
+ "僞": 239,
243
+ "典": 240,
244
+ "刀": 241,
245
+ "友": 242,
246
+ "反": 243,
247
+ "吐": 244,
248
+ "品": 245,
249
+ "善": 246,
250
+ "型": 247,
251
+ "天": 248,
252
+ "女": 249,
253
+ "岡": 250,
254
+ "峽": 251,
255
+ "師": 252,
256
+ "年": 253,
257
+ "彩": 254,
258
+ "後": 255,
259
+ "必": 256,
260
+ "忍": 257,
261
+ "急": 258,
262
+ "惡": 259,
263
+ "愛": 260,
264
+ "慶": 261,
265
+ "憎": 262,
266
+ "手": 263,
267
+ "故": 264,
268
+ "日": 265,
269
+ "映": 266,
270
+ "最": 267,
271
+ "木": 268,
272
+ "死": 269,
273
+ "派": 270,
274
+ "淇": 271,
275
+ "漁": 272,
276
+ "濡": 273,
277
+ "火": 274,
278
+ "田": 275,
279
+ "甲": 276,
280
+ "男": 277,
281
+ "画": 278,
282
+ "異": 279,
283
+ "的": 280,
284
+ "眠": 281,
285
+ "神": 282,
286
+ "秀": 283,
287
+ "糞": 284,
288
+ "美": 285,
289
+ "者": 286,
290
+ "舒": 287,
291
+ "色": 288,
292
+ "蒼": 289,
293
+ "蟲": 290,
294
+ "要": 291,
295
+ "部": 292,
296
+ "鈴": 293,
297
+ "非": 294,
298
+ "韓": 295,
299
+ "香": 296,
300
+ "驛": 297,
301
+ "高": 298,
302
+ "가": 299,
303
+ "각": 300,
304
+ "간": 301,
305
+ "갇": 302,
306
+ "갈": 303,
307
+ "갉": 304,
308
+ "감": 305,
309
+ "갑": 306,
310
+ "값": 307,
311
+ "갓": 308,
312
+ "갔": 309,
313
+ "강": 310,
314
+ "갖": 311,
315
+ "갘": 312,
316
+ "같": 313,
317
+ "갚": 314,
318
+ "갛": 315,
319
+ "개": 316,
320
+ "객": 317,
321
+ "갠": 318,
322
+ "갤": 319,
323
+ "갭": 320,
324
+ "갯": 321,
325
+ "갰": 322,
326
+ "갱": 323,
327
+ "갸": 324,
328
+ "걈": 325,
329
+ "걍": 326,
330
+ "걑": 327,
331
+ "걔": 328,
332
+ "거": 329,
333
+ "걱": 330,
334
+ "건": 331,
335
+ "걷": 332,
336
+ "걸": 333,
337
+ "검": 334,
338
+ "겁": 335,
339
+ "것": 336,
340
+ "겄": 337,
341
+ "겅": 338,
342
+ "겈": 339,
343
+ "겉": 340,
344
+ "겋": 341,
345
+ "게": 342,
346
+ "겐": 343,
347
+ "겔": 344,
348
+ "겜": 345,
349
+ "겟": 346,
350
+ "겠": 347,
351
+ "겡": 348,
352
+ "겨": 349,
353
+ "격": 350,
354
+ "겪": 351,
355
+ "견": 352,
356
+ "결": 353,
357
+ "겸": 354,
358
+ "겹": 355,
359
+ "겻": 356,
360
+ "겼": 357,
361
+ "경": 358,
362
+ "곀": 359,
363
+ "곁": 360,
364
+ "계": 361,
365
+ "곅": 362,
366
+ "곗": 363,
367
+ "곘": 364,
368
+ "고": 365,
369
+ "곡": 366,
370
+ "곤": 367,
371
+ "곧": 368,
372
+ "골": 369,
373
+ "곪": 370,
374
+ "곰": 371,
375
+ "곱": 372,
376
+ "곳": 373,
377
+ "공": 374,
378
+ "곶": 375,
379
+ "곸": 376,
380
+ "곻": 377,
381
+ "과": 378,
382
+ "곽": 379,
383
+ "관": 380,
384
+ "괄": 381,
385
+ "광": 382,
386
+ "괘": 383,
387
+ "괜": 384,
388
+ "괞": 385,
389
+ "괭": 386,
390
+ "괴": 387,
391
+ "괸": 388,
392
+ "굉": 389,
393
+ "교": 390,
394
+ "구": 391,
395
+ "국": 392,
396
+ "군": 393,
397
+ "굳": 394,
398
+ "굴": 395,
399
+ "굵": 396,
400
+ "굶": 397,
401
+ "굷": 398,
402
+ "굼": 399,
403
+ "굽": 400,
404
+ "굿": 401,
405
+ "궁": 402,
406
+ "궂": 403,
407
+ "궈": 404,
408
+ "권": 405,
409
+ "궐": 406,
410
+ "궤": 407,
411
+ "귀": 408,
412
+ "귄": 409,
413
+ "귈": 410,
414
+ "귐": 411,
415
+ "귓": 412,
416
+ "귘": 413,
417
+ "규": 414,
418
+ "균": 415,
419
+ "귤": 416,
420
+ "귯": 417,
421
+ "귱": 418,
422
+ "그": 419,
423
+ "극": 420,
424
+ "근": 421,
425
+ "글": 422,
426
+ "긁": 423,
427
+ "금": 424,
428
+ "급": 425,
429
+ "긋": 426,
430
+ "긍": 427,
431
+ "긔": 428,
432
+ "기": 429,
433
+ "긴": 430,
434
+ "길": 431,
435
+ "김": 432,
436
+ "깁": 433,
437
+ "깃": 434,
438
+ "깄": 435,
439
+ "깅": 436,
440
+ "깇": 437,
441
+ "깊": 438,
442
+ "까": 439,
443
+ "깍": 440,
444
+ "깎": 441,
445
+ "깐": 442,
446
+ "깓": 443,
447
+ "깔": 444,
448
+ "깜": 445,
449
+ "깝": 446,
450
+ "깟": 447,
451
+ "깠": 448,
452
+ "깡": 449,
453
+ "깤": 450,
454
+ "깥": 451,
455
+ "깦": 452,
456
+ "깨": 453,
457
+ "깩": 454,
458
+ "깬": 455,
459
+ "깰": 456,
460
+ "깸": 457,
461
+ "깻": 458,
462
+ "깼": 459,
463
+ "깽": 460,
464
+ "꺄": 461,
465
+ "꺅": 462,
466
+ "꺍": 463,
467
+ "꺠": 464,
468
+ "꺤": 465,
469
+ "꺼": 466,
470
+ "꺽": 467,
471
+ "꺾": 468,
472
+ "껀": 469,
473
+ "껄": 470,
474
+ "껌": 471,
475
+ "껍": 472,
476
+ "껏": 473,
477
+ "껐": 474,
478
+ "껑": 475,
479
+ "껒": 476,
480
+ "께": 477,
481
+ "껬": 478,
482
+ "껰": 479,
483
+ "껴": 480,
484
+ "꼅": 481,
485
+ "꼇": 482,
486
+ "꼈": 483,
487
+ "꼐": 484,
488
+ "꼬": 485,
489
+ "꼭": 486,
490
+ "꼰": 487,
491
+ "꼳": 488,
492
+ "꼴": 489,
493
+ "꼼": 490,
494
+ "꼽": 491,
495
+ "꽁": 492,
496
+ "꽂": 493,
497
+ "꽃": 494,
498
+ "꽈": 495,
499
+ "꽉": 496,
500
+ "꽛": 497,
501
+ "꽝": 498,
502
+ "꽤": 499,
503
+ "꽥": 500,
504
+ "꽦": 501,
505
+ "꽹": 502,
506
+ "꾀": 503,
507
+ "꾸": 504,
508
+ "꾹": 505,
509
+ "꾼": 506,
510
+ "꿀": 507,
511
+ "꿇": 508,
512
+ "꿈": 509,
513
+ "꿉": 510,
514
+ "꿋": 511,
515
+ "꿍": 512,
516
+ "꿎": 513,
517
+ "꿐": 514,
518
+ "꿑": 515,
519
+ "꿔": 516,
520
+ "꿧": 517,
521
+ "꿨": 518,
522
+ "꿰": 519,
523
+ "뀌": 520,
524
+ "뀐": 521,
525
+ "뀔": 522,
526
+ "뀜": 523,
527
+ "뀨": 524,
528
+ "뀰": 525,
529
+ "끄": 526,
530
+ "끅": 527,
531
+ "끆": 528,
532
+ "끈": 529,
533
+ "끊": 530,
534
+ "끌": 531,
535
+ "끓": 532,
536
+ "끔": 533,
537
+ "끕": 534,
538
+ "끗": 535,
539
+ "끙": 536,
540
+ "끝": 537,
541
+ "끠": 538,
542
+ "끼": 539,
543
+ "끽": 540,
544
+ "낀": 541,
545
+ "낄": 542,
546
+ "낌": 543,
547
+ "낍": 544,
548
+ "낏": 545,
549
+ "낑": 546,
550
+ "낔": 547,
551
+ "나": 548,
552
+ "낙": 549,
553
+ "낚": 550,
554
+ "난": 551,
555
+ "낞": 552,
556
+ "낟": 553,
557
+ "날": 554,
558
+ "낡": 555,
559
+ "남": 556,
560
+ "납": 557,
561
+ "낫": 558,
562
+ "났": 559,
563
+ "낭": 560,
564
+ "낮": 561,
565
+ "낯": 562,
566
+ "낰": 563,
567
+ "낱": 564,
568
+ "낳": 565,
569
+ "내": 566,
570
+ "낸": 567,
571
+ "낼": 568,
572
+ "냄": 569,
573
+ "냅": 570,
574
+ "냇": 571,
575
+ "냈": 572,
576
+ "냉": 573,
577
+ "냊": 574,
578
+ "냌": 575,
579
+ "냐": 576,
580
+ "냔": 577,
581
+ "냠": 578,
582
+ "냣": 579,
583
+ "냥": 580,
584
+ "냨": 581,
585
+ "너": 582,
586
+ "넉": 583,
587
+ "넋": 584,
588
+ "넌": 585,
589
+ "널": 586,
590
+ "넒": 587,
591
+ "넓": 588,
592
+ "넖": 589,
593
+ "넗": 590,
594
+ "넘": 591,
595
+ "넛": 592,
596
+ "넝": 593,
597
+ "넢": 594,
598
+ "넣": 595,
599
+ "네": 596,
600
+ "넥": 597,
601
+ "넨": 598,
602
+ "넬": 599,
603
+ "넴": 600,
604
+ "넵": 601,
605
+ "넷": 602,
606
+ "넹": 603,
607
+ "넼": 604,
608
+ "녀": 605,
609
+ "녁": 606,
610
+ "년": 607,
611
+ "녈": 608,
612
+ "념": 609,
613
+ "녓": 610,
614
+ "녔": 611,
615
+ "녕": 612,
616
+ "녘": 613,
617
+ "녜": 614,
618
+ "노": 615,
619
+ "녹": 616,
620
+ "논": 617,
621
+ "놀": 618,
622
+ "놈": 619,
623
+ "놉": 620,
624
+ "농": 621,
625
+ "높": 622,
626
+ "놓": 623,
627
+ "놔": 624,
628
+ "놘": 625,
629
+ "놧": 626,
630
+ "놨": 627,
631
+ "놬": 628,
632
+ "뇌": 629,
633
+ "뇔": 630,
634
+ "뇨": 631,
635
+ "뇬": 632,
636
+ "뇰": 633,
637
+ "뇸": 634,
638
+ "뇽": 635,
639
+ "누": 636,
640
+ "눅": 637,
641
+ "눈": 638,
642
+ "눌": 639,
643
+ "눔": 640,
644
+ "눕": 641,
645
+ "눙": 642,
646
+ "눠": 643,
647
+ "눼": 644,
648
+ "뉘": 645,
649
+ "뉜": 646,
650
+ "뉠": 647,
651
+ "뉨": 648,
652
+ "뉭": 649,
653
+ "뉴": 650,
654
+ "뉸": 651,
655
+ "늉": 652,
656
+ "느": 653,
657
+ "늑": 654,
658
+ "는": 655,
659
+ "늘": 656,
660
+ "늙": 657,
661
+ "늠": 658,
662
+ "늡": 659,
663
+ "늣": 660,
664
+ "능": 661,
665
+ "늦": 662,
666
+ "늨": 663,
667
+ "늪": 664,
668
+ "늬": 665,
669
+ "늴": 666,
670
+ "늼": 667,
671
+ "니": 668,
672
+ "닉": 669,
673
+ "닊": 670,
674
+ "닌": 671,
675
+ "닐": 672,
676
+ "님": 673,
677
+ "닙": 674,
678
+ "닛": 675,
679
+ "닝": 676,
680
+ "닠": 677,
681
+ "다": 678,
682
+ "닥": 679,
683
+ "닦": 680,
684
+ "단": 681,
685
+ "닫": 682,
686
+ "달": 683,
687
+ "닭": 684,
688
+ "닮": 685,
689
+ "닯": 686,
690
+ "닳": 687,
691
+ "담": 688,
692
+ "답": 689,
693
+ "닷": 690,
694
+ "당": 691,
695
+ "닼": 692,
696
+ "닿": 693,
697
+ "대": 694,
698
+ "댁": 695,
699
+ "댄": 696,
700
+ "댈": 697,
701
+ "댐": 698,
702
+ "댑": 699,
703
+ "댓": 700,
704
+ "댔": 701,
705
+ "댕": 702,
706
+ "댘": 703,
707
+ "댜": 704,
708
+ "댠": 705,
709
+ "댸": 706,
710
+ "더": 707,
711
+ "덕": 708,
712
+ "던": 709,
713
+ "덜": 710,
714
+ "덟": 711,
715
+ "덤": 712,
716
+ "덥": 713,
717
+ "덧": 714,
718
+ "덨": 715,
719
+ "덩": 716,
720
+ "덫": 717,
721
+ "덮": 718,
722
+ "데": 719,
723
+ "덱": 720,
724
+ "덴": 721,
725
+ "덷": 722,
726
+ "델": 723,
727
+ "뎀": 724,
728
+ "뎁": 725,
729
+ "뎃": 726,
730
+ "뎅": 727,
731
+ "뎈": 728,
732
+ "뎋": 729,
733
+ "뎌": 730,
734
+ "뎜": 731,
735
+ "뎠": 732,
736
+ "도": 733,
737
+ "독": 734,
738
+ "돈": 735,
739
+ "돋": 736,
740
+ "돌": 737,
741
+ "돔": 738,
742
+ "돕": 739,
743
+ "돗": 740,
744
+ "동": 741,
745
+ "돟": 742,
746
+ "돠": 743,
747
+ "돼": 744,
748
+ "됀": 745,
749
+ "됄": 746,
750
+ "됌": 747,
751
+ "됏": 748,
752
+ "됐": 749,
753
+ "되": 750,
754
+ "된": 751,
755
+ "될": 752,
756
+ "됨": 753,
757
+ "됩": 754,
758
+ "됫": 755,
759
+ "됬": 756,
760
+ "됭": 757,
761
+ "됴": 758,
762
+ "됻": 759,
763
+ "둇": 760,
764
+ "두": 761,
765
+ "둑": 762,
766
+ "둔": 763,
767
+ "둘": 764,
768
+ "둠": 765,
769
+ "둡": 766,
770
+ "둣": 767,
771
+ "둥": 768,
772
+ "둬": 769,
773
+ "둿": 770,
774
+ "뒀": 771,
775
+ "뒈": 772,
776
+ "뒌": 773,
777
+ "뒤": 774,
778
+ "뒷": 775,
779
+ "뒹": 776,
780
+ "듀": 777,
781
+ "듁": 778,
782
+ "드": 779,
783
+ "득": 780,
784
+ "든": 781,
785
+ "듣": 782,
786
+ "들": 783,
787
+ "듦": 784,
788
+ "듧": 785,
789
+ "듨": 786,
790
+ "듬": 787,
791
+ "듭": 788,
792
+ "듯": 789,
793
+ "등": 790,
794
+ "듸": 791,
795
+ "딍": 792,
796
+ "디": 793,
797
+ "딕": 794,
798
+ "딘": 795,
799
+ "딛": 796,
800
+ "딜": 797,
801
+ "딥": 798,
802
+ "딧": 799,
803
+ "딨": 800,
804
+ "딩": 801,
805
+ "딪": 802,
806
+ "딬": 803,
807
+ "따": 804,
808
+ "딱": 805,
809
+ "딲": 806,
810
+ "딴": 807,
811
+ "딸": 808,
812
+ "땀": 809,
813
+ "땃": 810,
814
+ "땄": 811,
815
+ "땅": 812,
816
+ "땋": 813,
817
+ "때": 814,
818
+ "땍": 815,
819
+ "땐": 816,
820
+ "땔": 817,
821
+ "땜": 818,
822
+ "땝": 819,
823
+ "땟": 820,
824
+ "땠": 821,
825
+ "땡": 822,
826
+ "땨": 823,
827
+ "떄": 824,
828
+ "떌": 825,
829
+ "떔": 826,
830
+ "떙": 827,
831
+ "떠": 828,
832
+ "떡": 829,
833
+ "떤": 830,
834
+ "떨": 831,
835
+ "떫": 832,
836
+ "떱": 833,
837
+ "떳": 834,
838
+ "떴": 835,
839
+ "떵": 836,
840
+ "떻": 837,
841
+ "떼": 838,
842
+ "떽": 839,
843
+ "뗀": 840,
844
+ "뗄": 841,
845
+ "뗑": 842,
846
+ "뗬": 843,
847
+ "뗴": 844,
848
+ "뗼": 845,
849
+ "또": 846,
850
+ "똑": 847,
851
+ "똔": 848,
852
+ "똗": 849,
853
+ "똘": 850,
854
+ "똥": 851,
855
+ "똭": 852,
856
+ "뙇": 853,
857
+ "뚜": 854,
858
+ "뚝": 855,
859
+ "뚤": 856,
860
+ "뚫": 857,
861
+ "뚱": 858,
862
+ "뛰": 859,
863
+ "뛴": 860,
864
+ "뛸": 861,
865
+ "뜀": 862,
866
+ "뜁": 863,
867
+ "뜌": 864,
868
+ "뜨": 865,
869
+ "뜩": 866,
870
+ "뜬": 867,
871
+ "뜯": 868,
872
+ "뜰": 869,
873
+ "뜸": 870,
874
+ "뜻": 871,
875
+ "뜽": 872,
876
+ "띁": 873,
877
+ "띄": 874,
878
+ "띈": 875,
879
+ "띔": 876,
880
+ "띕": 877,
881
+ "띠": 878,
882
+ "띤": 879,
883
+ "띨": 880,
884
+ "띱": 881,
885
+ "띵": 882,
886
+ "라": 883,
887
+ "락": 884,
888
+ "란": 885,
889
+ "랄": 886,
890
+ "랅": 887,
891
+ "람": 888,
892
+ "랍": 889,
893
+ "랏": 890,
894
+ "랐": 891,
895
+ "랑": 892,
896
+ "랒": 893,
897
+ "랔": 894,
898
+ "랖": 895,
899
+ "랗": 896,
900
+ "래": 897,
901
+ "랙": 898,
902
+ "랜": 899,
903
+ "랠": 900,
904
+ "램": 901,
905
+ "랩": 902,
906
+ "랫": 903,
907
+ "랬": 904,
908
+ "랭": 905,
909
+ "랰": 906,
910
+ "랴": 907,
911
+ "략": 908,
912
+ "랼": 909,
913
+ "량": 910,
914
+ "럤": 911,
915
+ "러": 912,
916
+ "럭": 913,
917
+ "런": 914,
918
+ "럴": 915,
919
+ "럼": 916,
920
+ "럽": 917,
921
+ "럿": 918,
922
+ "렀": 919,
923
+ "렁": 920,
924
+ "렇": 921,
925
+ "레": 922,
926
+ "렉": 923,
927
+ "렌": 924,
928
+ "렐": 925,
929
+ "렘": 926,
930
+ "렙": 927,
931
+ "렛": 928,
932
+ "렜": 929,
933
+ "려": 930,
934
+ "력": 931,
935
+ "련": 932,
936
+ "렬": 933,
937
+ "렴": 934,
938
+ "렵": 935,
939
+ "렷": 936,
940
+ "렸": 937,
941
+ "령": 938,
942
+ "례": 939,
943
+ "로": 940,
944
+ "록": 941,
945
+ "론": 942,
946
+ "롤": 943,
947
+ "롬": 944,
948
+ "롭": 945,
949
+ "롯": 946,
950
+ "롱": 947,
951
+ "롷": 948,
952
+ "롸": 949,
953
+ "롹": 950,
954
+ "뢀": 951,
955
+ "뢰": 952,
956
+ "료": 953,
957
+ "룔": 954,
958
+ "룡": 955,
959
+ "루": 956,
960
+ "룩": 957,
961
+ "룬": 958,
962
+ "룰": 959,
963
+ "룸": 960,
964
+ "룹": 961,
965
+ "룻": 962,
966
+ "룽": 963,
967
+ "뤄": 964,
968
+ "뤘": 965,
969
+ "뤠": 966,
970
+ "뤼": 967,
971
+ "뤽": 968,
972
+ "륀": 969,
973
+ "륄": 970,
974
+ "류": 971,
975
+ "륙": 972,
976
+ "륜": 973,
977
+ "률": 974,
978
+ "륨": 975,
979
+ "륭": 976,
980
+ "르": 977,
981
+ "륵": 978,
982
+ "른": 979,
983
+ "를": 980,
984
+ "름": 981,
985
+ "릅": 982,
986
+ "릇": 983,
987
+ "릉": 984,
988
+ "릌": 985,
989
+ "릎": 986,
990
+ "리": 987,
991
+ "릭": 988,
992
+ "린": 989,
993
+ "릴": 990,
994
+ "림": 991,
995
+ "립": 992,
996
+ "릿": 993,
997
+ "링": 994,
998
+ "맄": 995,
999
+ "마": 996,
1000
+ "막": 997,
1001
+ "만": 998,
1002
+ "많": 999,
1003
+ "말": 1000,
1004
+ "맑": 1001,
1005
+ "맗": 1002,
1006
+ "맘": 1003,
1007
+ "맙": 1004,
1008
+ "맛": 1005,
1009
+ "망": 1006,
1010
+ "맞": 1007,
1011
+ "맟": 1008,
1012
+ "맠": 1009,
1013
+ "맡": 1010,
1014
+ "맣": 1011,
1015
+ "매": 1012,
1016
+ "맥": 1013,
1017
+ "맨": 1014,
1018
+ "맬": 1015,
1019
+ "맴": 1016,
1020
+ "맵": 1017,
1021
+ "맷": 1018,
1022
+ "맸": 1019,
1023
+ "맹": 1020,
1024
+ "맺": 1021,
1025
+ "먀": 1022,
1026
+ "먄": 1023,
1027
+ "먠": 1024,
1028
+ "머": 1025,
1029
+ "먹": 1026,
1030
+ "먼": 1027,
1031
+ "먾": 1028,
1032
+ "멀": 1029,
1033
+ "멈": 1030,
1034
+ "멉": 1031,
1035
+ "멋": 1032,
1036
+ "멌": 1033,
1037
+ "멍": 1034,
1038
+ "멎": 1035,
1039
+ "멓": 1036,
1040
+ "메": 1037,
1041
+ "멕": 1038,
1042
+ "멘": 1039,
1043
+ "멜": 1040,
1044
+ "멤": 1041,
1045
+ "멧": 1042,
1046
+ "멩": 1043,
1047
+ "며": 1044,
1048
+ "멱": 1045,
1049
+ "면": 1046,
1050
+ "멸": 1047,
1051
+ "몀": 1048,
1052
+ "몃": 1049,
1053
+ "몄": 1050,
1054
+ "명": 1051,
1055
+ "몆": 1052,
1056
+ "몇": 1053,
1057
+ "모": 1054,
1058
+ "목": 1055,
1059
+ "몫": 1056,
1060
+ "몬": 1057,
1061
+ "몰": 1058,
1062
+ "몸": 1059,
1063
+ "몹": 1060,
1064
+ "못": 1061,
1065
+ "몽": 1062,
1066
+ "뫼": 1063,
1067
+ "묘": 1064,
1068
+ "묭": 1065,
1069
+ "무": 1066,
1070
+ "묵": 1067,
1071
+ "묶": 1068,
1072
+ "문": 1069,
1073
+ "묻": 1070,
1074
+ "물": 1071,
1075
+ "뭄": 1072,
1076
+ "뭇": 1073,
1077
+ "뭉": 1074,
1078
+ "뭍": 1075,
1079
+ "뭐": 1076,
1080
+ "뭔": 1077,
1081
+ "뭘": 1078,
1082
+ "뭡": 1079,
1083
+ "뭣": 1080,
1084
+ "뭥": 1081,
1085
+ "뭬": 1082,
1086
+ "뮁": 1083,
1087
+ "뮈": 1084,
1088
+ "뮤": 1085,
1089
+ "뮬": 1086,
1090
+ "므": 1087,
1091
+ "믄": 1088,
1092
+ "믈": 1089,
1093
+ "믓": 1090,
1094
+ "믜": 1091,
1095
+ "미": 1092,
1096
+ "믹": 1093,
1097
+ "민": 1094,
1098
+ "믿": 1095,
1099
+ "밀": 1096,
1100
+ "밈": 1097,
1101
+ "밉": 1098,
1102
+ "밋": 1099,
1103
+ "밌": 1100,
1104
+ "밍": 1101,
1105
+ "밎": 1102,
1106
+ "및": 1103,
1107
+ "밑": 1104,
1108
+ "밓": 1105,
1109
+ "바": 1106,
1110
+ "박": 1107,
1111
+ "밖": 1108,
1112
+ "반": 1109,
1113
+ "받": 1110,
1114
+ "발": 1111,
1115
+ "밝": 1112,
1116
+ "밟": 1113,
1117
+ "밠": 1114,
1118
+ "밣": 1115,
1119
+ "밤": 1116,
1120
+ "밥": 1117,
1121
+ "밦": 1118,
1122
+ "밧": 1119,
1123
+ "밨": 1120,
1124
+ "방": 1121,
1125
+ "밭": 1122,
1126
+ "밮": 1123,
1127
+ "밯": 1124,
1128
+ "배": 1125,
1129
+ "백": 1126,
1130
+ "밴": 1127,
1131
+ "밷": 1128,
1132
+ "밸": 1129,
1133
+ "뱀": 1130,
1134
+ "뱁": 1131,
1135
+ "뱃": 1132,
1136
+ "뱅": 1133,
1137
+ "뱉": 1134,
1138
+ "뱌": 1135,
1139
+ "뱎": 1136,
1140
+ "뱔": 1137,
1141
+ "뱜": 1138,
1142
+ "버": 1139,
1143
+ "벅": 1140,
1144
+ "번": 1141,
1145
+ "벋": 1142,
1146
+ "벌": 1143,
1147
+ "범": 1144,
1148
+ "법": 1145,
1149
+ "벗": 1146,
1150
+ "벙": 1147,
1151
+ "벚": 1148,
1152
+ "베": 1149,
1153
+ "벡": 1150,
1154
+ "벤": 1151,
1155
+ "벧": 1152,
1156
+ "벨": 1153,
1157
+ "벳": 1154,
1158
+ "벴": 1155,
1159
+ "벵": 1156,
1160
+ "벸": 1157,
1161
+ "벼": 1158,
1162
+ "벽": 1159,
1163
+ "변": 1160,
1164
+ "별": 1161,
1165
+ "볍": 1162,
1166
+ "볐": 1163,
1167
+ "병": 1164,
1168
+ "볕": 1165,
1169
+ "볠": 1166,
1170
+ "보": 1167,
1171
+ "복": 1168,
1172
+ "볶": 1169,
1173
+ "본": 1170,
1174
+ "볻": 1171,
1175
+ "볼": 1172,
1176
+ "봄": 1173,
1177
+ "봅": 1174,
1178
+ "봇": 1175,
1179
+ "봉": 1176,
1180
+ "봊": 1177,
1181
+ "봐": 1178,
1182
+ "봑": 1179,
1183
+ "봘": 1180,
1184
+ "봙": 1181,
1185
+ "봟": 1182,
1186
+ "봣": 1183,
1187
+ "봤": 1184,
1188
+ "봨": 1185,
1189
+ "봪": 1186,
1190
+ "봫": 1187,
1191
+ "봬": 1188,
1192
+ "봭": 1189,
1193
+ "봴": 1190,
1194
+ "봵": 1191,
1195
+ "뵈": 1192,
1196
+ "뵐": 1193,
1197
+ "뵙": 1194,
1198
+ "뵛": 1195,
1199
+ "뵜": 1196,
1200
+ "뵤": 1197,
1201
+ "뵹": 1198,
1202
+ "부": 1199,
1203
+ "북": 1200,
1204
+ "분": 1201,
1205
+ "붅": 1202,
1206
+ "붆": 1203,
1207
+ "붇": 1204,
1208
+ "불": 1205,
1209
+ "붉": 1206,
1210
+ "붐": 1207,
1211
+ "붓": 1208,
1212
+ "붕": 1209,
1213
+ "붙": 1210,
1214
+ "붜": 1211,
1215
+ "붤": 1212,
1216
+ "붹": 1213,
1217
+ "뷀": 1214,
1218
+ "뷁": 1215,
1219
+ "뷐": 1216,
1220
+ "뷔": 1217,
1221
+ "뷩": 1218,
1222
+ "뷰": 1219,
1223
+ "뷴": 1220,
1224
+ "뷸": 1221,
1225
+ "븅": 1222,
1226
+ "브": 1223,
1227
+ "븐": 1224,
1228
+ "블": 1225,
1229
+ "븜": 1226,
1230
+ "븡": 1227,
1231
+ "븨": 1228,
1232
+ "븽": 1229,
1233
+ "빂": 1230,
1234
+ "비": 1231,
1235
+ "빅": 1232,
1236
+ "빈": 1233,
1237
+ "빌": 1234,
1238
+ "빔": 1235,
1239
+ "빕": 1236,
1240
+ "빗": 1237,
1241
+ "빙": 1238,
1242
+ "빚": 1239,
1243
+ "빛": 1240,
1244
+ "빝": 1241,
1245
+ "빠": 1242,
1246
+ "빡": 1243,
1247
+ "빢": 1244,
1248
+ "빤": 1245,
1249
+ "빨": 1246,
1250
+ "빩": 1247,
1251
+ "빯": 1248,
1252
+ "빰": 1249,
1253
+ "빱": 1250,
1254
+ "빳": 1251,
1255
+ "빴": 1252,
1256
+ "빵": 1253,
1257
+ "빺": 1254,
1258
+ "빼": 1255,
1259
+ "빽": 1256,
1260
+ "뺀": 1257,
1261
+ "뺄": 1258,
1262
+ "뺌": 1259,
1263
+ "뺍": 1260,
1264
+ "뺏": 1261,
1265
+ "뺐": 1262,
1266
+ "뺑": 1263,
1267
+ "뺒": 1264,
1268
+ "뺨": 1265,
1269
+ "뺴": 1266,
1270
+ "뺵": 1267,
1271
+ "뻐": 1268,
1272
+ "뻑": 1269,
1273
+ "뻔": 1270,
1274
+ "뻗": 1271,
1275
+ "뻘": 1272,
1276
+ "뻡": 1273,
1277
+ "뻣": 1274,
1278
+ "뻤": 1275,
1279
+ "뻥": 1276,
1280
+ "뻨": 1277,
1281
+ "뻬": 1278,
1282
+ "뻴": 1279,
1283
+ "뼁": 1280,
1284
+ "뼈": 1281,
1285
+ "뼘": 1282,
1286
+ "뼛": 1283,
1287
+ "뼜": 1284,
1288
+ "뽀": 1285,
1289
+ "뽁": 1286,
1290
+ "뽄": 1287,
1291
+ "뽐": 1288,
1292
+ "뽑": 1289,
1293
+ "뽕": 1290,
1294
+ "뽤": 1291,
1295
+ "뽥": 1292,
1296
+ "뿅": 1293,
1297
+ "뿌": 1294,
1298
+ "뿍": 1295,
1299
+ "뿐": 1296,
1300
+ "뿔": 1297,
1301
+ "뿜": 1298,
1302
+ "뿡": 1299,
1303
+ "뿨": 1300,
1304
+ "뿰": 1301,
1305
+ "쀍": 1302,
1306
+ "쁘": 1303,
1307
+ "쁜": 1304,
1308
+ "쁠": 1305,
1309
+ "쁨": 1306,
1310
+ "쁩": 1307,
1311
+ "삐": 1308,
1312
+ "삑": 1309,
1313
+ "삔": 1310,
1314
+ "삘": 1311,
1315
+ "삥": 1312,
1316
+ "사": 1313,
1317
+ "삭": 1314,
1318
+ "산": 1315,
1319
+ "삳": 1316,
1320
+ "살": 1317,
1321
+ "삶": 1318,
1322
+ "삻": 1319,
1323
+ "삼": 1320,
1324
+ "삽": 1321,
1325
+ "삿": 1322,
1326
+ "샀": 1323,
1327
+ "상": 1324,
1328
+ "샅": 1325,
1329
+ "새": 1326,
1330
+ "색": 1327,
1331
+ "샊": 1328,
1332
+ "샌": 1329,
1333
+ "샐": 1330,
1334
+ "샘": 1331,
1335
+ "샙": 1332,
1336
+ "샛": 1333,
1337
+ "샜": 1334,
1338
+ "생": 1335,
1339
+ "샠": 1336,
1340
+ "샣": 1337,
1341
+ "샤": 1338,
1342
+ "샥": 1339,
1343
+ "샬": 1340,
1344
+ "샴": 1341,
1345
+ "샵": 1342,
1346
+ "샷": 1343,
1347
+ "샹": 1344,
1348
+ "섀": 1345,
1349
+ "서": 1346,
1350
+ "석": 1347,
1351
+ "섞": 1348,
1352
+ "선": 1349,
1353
+ "섣": 1350,
1354
+ "설": 1351,
1355
+ "섫": 1352,
1356
+ "섬": 1353,
1357
+ "섭": 1354,
1358
+ "섯": 1355,
1359
+ "섰": 1356,
1360
+ "성": 1357,
1361
+ "섲": 1358,
1362
+ "섳": 1359,
1363
+ "섴": 1360,
1364
+ "섶": 1361,
1365
+ "세": 1362,
1366
+ "섹": 1363,
1367
+ "섺": 1364,
1368
+ "섻": 1365,
1369
+ "센": 1366,
1370
+ "섿": 1367,
1371
+ "셀": 1368,
1372
+ "셁": 1369,
1373
+ "셃": 1370,
1374
+ "셈": 1371,
1375
+ "셉": 1372,
1376
+ "셋": 1373,
1377
+ "셍": 1374,
1378
+ "셐": 1375,
1379
+ "셔": 1376,
1380
+ "션": 1377,
1381
+ "셜": 1378,
1382
+ "셤": 1379,
1383
+ "셧": 1380,
1384
+ "셨": 1381,
1385
+ "셩": 1382,
1386
+ "셰": 1383,
1387
+ "셴": 1384,
1388
+ "셸": 1385,
1389
+ "솀": 1386,
1390
+ "소": 1387,
1391
+ "속": 1388,
1392
+ "솎": 1389,
1393
+ "손": 1390,
1394
+ "솔": 1391,
1395
+ "솜": 1392,
1396
+ "솝": 1393,
1397
+ "솟": 1394,
1398
+ "송": 1395,
1399
+ "솢": 1396,
1400
+ "솤": 1397,
1401
+ "솨": 1398,
1402
+ "솩": 1399,
1403
+ "쇄": 1400,
1404
+ "쇅": 1401,
1405
+ "쇍": 1402,
1406
+ "쇗": 1403,
1407
+ "쇠": 1404,
1408
+ "쇡": 1405,
1409
+ "쇸": 1406,
1410
+ "쇼": 1407,
1411
+ "숀": 1408,
1412
+ "숄": 1409,
1413
+ "숍": 1410,
1414
+ "숏": 1411,
1415
+ "숑": 1412,
1416
+ "수": 1413,
1417
+ "숙": 1414,
1418
+ "순": 1415,
1419
+ "숟": 1416,
1420
+ "술": 1417,
1421
+ "숨": 1418,
1422
+ "숩": 1419,
1423
+ "숫": 1420,
1424
+ "숭": 1421,
1425
+ "숯": 1422,
1426
+ "숰": 1423,
1427
+ "숱": 1424,
1428
+ "숲": 1425,
1429
+ "숴": 1426,
1430
+ "쉅": 1427,
1431
+ "쉈": 1428,
1432
+ "쉐": 1429,
1433
+ "쉑": 1430,
1434
+ "쉒": 1431,
1435
+ "쉔": 1432,
1436
+ "쉘": 1433,
1437
+ "쉡": 1434,
1438
+ "쉢": 1435,
1439
+ "쉣": 1436,
1440
+ "쉨": 1437,
1441
+ "쉬": 1438,
1442
+ "쉭": 1439,
1443
+ "쉰": 1440,
1444
+ "쉴": 1441,
1445
+ "쉻": 1442,
1446
+ "쉼": 1443,
1447
+ "쉽": 1444,
1448
+ "쉿": 1445,
1449
+ "슈": 1446,
1450
+ "슉": 1447,
1451
+ "슌": 1448,
1452
+ "슐": 1449,
1453
+ "슙": 1450,
1454
+ "슛": 1451,
1455
+ "슝": 1452,
1456
+ "스": 1453,
1457
+ "슥": 1454,
1458
+ "슨": 1455,
1459
+ "슬": 1456,
1460
+ "슴": 1457,
1461
+ "습": 1458,
1462
+ "슷": 1459,
1463
+ "승": 1460,
1464
+ "슼": 1461,
1465
+ "싀": 1462,
1466
+ "싁": 1463,
1467
+ "싄": 1464,
1468
+ "싏": 1465,
1469
+ "싑": 1466,
1470
+ "싓": 1467,
1471
+ "싘": 1468,
1472
+ "시": 1469,
1473
+ "식": 1470,
1474
+ "신": 1471,
1475
+ "싡": 1472,
1476
+ "싢": 1473,
1477
+ "싣": 1474,
1478
+ "실": 1475,
1479
+ "싥": 1476,
1480
+ "싫": 1477,
1481
+ "심": 1478,
1482
+ "십": 1479,
1483
+ "싯": 1480,
1484
+ "싰": 1481,
1485
+ "싱": 1482,
1486
+ "싲": 1483,
1487
+ "싴": 1484,
1488
+ "싵": 1485,
1489
+ "싶": 1486,
1490
+ "싸": 1487,
1491
+ "싹": 1488,
1492
+ "싼": 1489,
1493
+ "쌀": 1490,
1494
+ "쌈": 1491,
1495
+ "쌉": 1492,
1496
+ "쌌": 1493,
1497
+ "쌍": 1494,
1498
+ "쌓": 1495,
1499
+ "쌔": 1496,
1500
+ "쌕": 1497,
1501
+ "쌘": 1498,
1502
+ "쌤": 1499,
1503
+ "쌩": 1500,
1504
+ "쌰": 1501,
1505
+ "썁": 1502,
1506
+ "썅": 1503,
1507
+ "썌": 1504,
1508
+ "썎": 1505,
1509
+ "썡": 1506,
1510
+ "써": 1507,
1511
+ "썩": 1508,
1512
+ "썪": 1509,
1513
+ "썬": 1510,
1514
+ "썰": 1511,
1515
+ "썸": 1512,
1516
+ "썹": 1513,
1517
+ "썻": 1514,
1518
+ "썼": 1515,
1519
+ "썽": 1516,
1520
+ "쎄": 1517,
1521
+ "쎅": 1518,
1522
+ "쎆": 1519,
1523
+ "쎈": 1520,
1524
+ "쎔": 1521,
1525
+ "쎘": 1522,
1526
+ "쎝": 1523,
1527
+ "쎠": 1524,
1528
+ "쎤": 1525,
1529
+ "쎴": 1526,
1530
+ "쎼": 1527,
1531
+ "쎽": 1528,
1532
+ "쏘": 1529,
1533
+ "쏙": 1530,
1534
+ "쏜": 1531,
1535
+ "쏟": 1532,
1536
+ "쏠": 1533,
1537
+ "쏨": 1534,
1538
+ "쏩": 1535,
1539
+ "쏱": 1536,
1540
+ "쏴": 1537,
1541
+ "쐈": 1538,
1542
+ "쐉": 1539,
1543
+ "쐌": 1540,
1544
+ "쐐": 1541,
1545
+ "쐑": 1542,
1546
+ "쐬": 1543,
1547
+ "쑈": 1544,
1548
+ "쑝": 1545,
1549
+ "쑤": 1546,
1550
+ "쑥": 1547,
1551
+ "쑬": 1548,
1552
+ "쑵": 1549,
1553
+ "쒕": 1550,
1554
+ "쒜": 1551,
1555
+ "쒝": 1552,
1556
+ "쒭": 1553,
1557
+ "쒯": 1554,
1558
+ "쒸": 1555,
1559
+ "쒹": 1556,
1560
+ "쓉": 1557,
1561
+ "쓋": 1558,
1562
+ "쓕": 1559,
1563
+ "쓰": 1560,
1564
+ "쓱": 1561,
1565
+ "쓴": 1562,
1566
+ "쓸": 1563,
1567
+ "씀": 1564,
1568
+ "씁": 1565,
1569
+ "씌": 1566,
1570
+ "씐": 1567,
1571
+ "씜": 1568,
1572
+ "씝": 1569,
1573
+ "씞": 1570,
1574
+ "씦": 1571,
1575
+ "씨": 1572,
1576
+ "씩": 1573,
1577
+ "씪": 1574,
1578
+ "씬": 1575,
1579
+ "씰": 1576,
1580
+ "씳": 1577,
1581
+ "씸": 1578,
1582
+ "씹": 1579,
1583
+ "씺": 1580,
1584
+ "씻": 1581,
1585
+ "씼": 1582,
1586
+ "씽": 1583,
1587
+ "씾": 1584,
1588
+ "앂": 1585,
1589
+ "아": 1586,
1590
+ "악": 1587,
1591
+ "안": 1588,
1592
+ "앉": 1589,
1593
+ "않": 1590,
1594
+ "앋": 1591,
1595
+ "알": 1592,
1596
+ "앍": 1593,
1597
+ "앎": 1594,
1598
+ "앓": 1595,
1599
+ "암": 1596,
1600
+ "압": 1597,
1601
+ "앗": 1598,
1602
+ "았": 1599,
1603
+ "앙": 1600,
1604
+ "앚": 1601,
1605
+ "앜": 1602,
1606
+ "앞": 1603,
1607
+ "앟": 1604,
1608
+ "애": 1605,
1609
+ "액": 1606,
1610
+ "앤": 1607,
1611
+ "앨": 1608,
1612
+ "앰": 1609,
1613
+ "앱": 1610,
1614
+ "앳": 1611,
1615
+ "앴": 1612,
1616
+ "앵": 1613,
1617
+ "야": 1614,
1618
+ "약": 1615,
1619
+ "얀": 1616,
1620
+ "얄": 1617,
1621
+ "얇": 1618,
1622
+ "얌": 1619,
1623
+ "얍": 1620,
1624
+ "얏": 1621,
1625
+ "양": 1622,
1626
+ "얔": 1623,
1627
+ "얕": 1624,
1628
+ "얗": 1625,
1629
+ "얘": 1626,
1630
+ "얙": 1627,
1631
+ "얜": 1628,
1632
+ "얨": 1629,
1633
+ "어": 1630,
1634
+ "억": 1631,
1635
+ "언": 1632,
1636
+ "얹": 1633,
1637
+ "얺": 1634,
1638
+ "얻": 1635,
1639
+ "얼": 1636,
1640
+ "얽": 1637,
1641
+ "엄": 1638,
1642
+ "업": 1639,
1643
+ "없": 1640,
1644
+ "엇": 1641,
1645
+ "었": 1642,
1646
+ "엉": 1643,
1647
+ "엊": 1644,
1648
+ "엌": 1645,
1649
+ "엎": 1646,
1650
+ "엏": 1647,
1651
+ "에": 1648,
1652
+ "엑": 1649,
1653
+ "엔": 1650,
1654
+ "엘": 1651,
1655
+ "엠": 1652,
1656
+ "엡": 1653,
1657
+ "엣": 1654,
1658
+ "엥": 1655,
1659
+ "여": 1656,
1660
+ "역": 1657,
1661
+ "엮": 1658,
1662
+ "연": 1659,
1663
+ "열": 1660,
1664
+ "염": 1661,
1665
+ "엽": 1662,
1666
+ "엾": 1663,
1667
+ "엿": 1664,
1668
+ "였": 1665,
1669
+ "영": 1666,
1670
+ "옄": 1667,
1671
+ "옅": 1668,
1672
+ "옆": 1669,
1673
+ "옇": 1670,
1674
+ "예": 1671,
1675
+ "옌": 1672,
1676
+ "옐": 1673,
1677
+ "옘": 1674,
1678
+ "옛": 1675,
1679
+ "옜": 1676,
1680
+ "오": 1677,
1681
+ "옥": 1678,
1682
+ "온": 1679,
1683
+ "올": 1680,
1684
+ "옮": 1681,
1685
+ "옯": 1682,
1686
+ "옰": 1683,
1687
+ "옳": 1684,
1688
+ "옴": 1685,
1689
+ "옵": 1686,
1690
+ "옶": 1687,
1691
+ "옷": 1688,
1692
+ "옹": 1689,
1693
+ "옺": 1690,
1694
+ "옼": 1691,
1695
+ "와": 1692,
1696
+ "왁": 1693,
1697
+ "완": 1694,
1698
+ "왈": 1695,
1699
+ "왓": 1696,
1700
+ "왔": 1697,
1701
+ "왕": 1698,
1702
+ "왘": 1699,
1703
+ "왜": 1700,
1704
+ "왠": 1701,
1705
+ "왤": 1702,
1706
+ "외": 1703,
1707
+ "왼": 1704,
1708
+ "욀": 1705,
1709
+ "욈": 1706,
1710
+ "욌": 1707,
1711
+ "요": 1708,
1712
+ "욕": 1709,
1713
+ "욘": 1710,
1714
+ "욜": 1711,
1715
+ "욤": 1712,
1716
+ "욥": 1713,
1717
+ "욧": 1714,
1718
+ "용": 1715,
1719
+ "욬": 1716,
1720
+ "욯": 1717,
1721
+ "우": 1718,
1722
+ "욱": 1719,
1723
+ "운": 1720,
1724
+ "욷": 1721,
1725
+ "울": 1722,
1726
+ "욹": 1723,
1727
+ "움": 1724,
1728
+ "웁": 1725,
1729
+ "웃": 1726,
1730
+ "웄": 1727,
1731
+ "웅": 1728,
1732
+ "워": 1729,
1733
+ "웍": 1730,
1734
+ "원": 1731,
1735
+ "월": 1732,
1736
+ "웜": 1733,
1737
+ "웟": 1734,
1738
+ "웠": 1735,
1739
+ "웡": 1736,
1740
+ "웨": 1737,
1741
+ "웩": 1738,
1742
+ "웬": 1739,
1743
+ "웰": 1740,
1744
+ "웹": 1741,
1745
+ "웽": 1742,
1746
+ "위": 1743,
1747
+ "윅": 1744,
1748
+ "윈": 1745,
1749
+ "윌": 1746,
1750
+ "윔": 1747,
1751
+ "윖": 1748,
1752
+ "윗": 1749,
1753
+ "윘": 1750,
1754
+ "윙": 1751,
1755
+ "유": 1752,
1756
+ "육": 1753,
1757
+ "윤": 1754,
1758
+ "율": 1755,
1759
+ "윰": 1756,
1760
+ "윳": 1757,
1761
+ "융": 1758,
1762
+ "으": 1759,
1763
+ "윽": 1760,
1764
+ "은": 1761,
1765
+ "을": 1762,
1766
+ "읊": 1763,
1767
+ "음": 1764,
1768
+ "읍": 1765,
1769
+ "읎": 1766,
1770
+ "읏": 1767,
1771
+ "응": 1768,
1772
+ "읔": 1769,
1773
+ "의": 1770,
1774
+ "읭": 1771,
1775
+ "읮": 1772,
1776
+ "이": 1773,
1777
+ "익": 1774,
1778
+ "인": 1775,
1779
+ "읺": 1776,
1780
+ "일": 1777,
1781
+ "읽": 1778,
1782
+ "잃": 1779,
1783
+ "임": 1780,
1784
+ "입": 1781,
1785
+ "잇": 1782,
1786
+ "있": 1783,
1787
+ "잉": 1784,
1788
+ "잊": 1785,
1789
+ "잌": 1786,
1790
+ "잎": 1787,
1791
+ "잏": 1788,
1792
+ "자": 1789,
1793
+ "작": 1790,
1794
+ "잔": 1791,
1795
+ "잖": 1792,
1796
+ "잘": 1793,
1797
+ "잠": 1794,
1798
+ "잡": 1795,
1799
+ "잣": 1796,
1800
+ "잤": 1797,
1801
+ "장": 1798,
1802
+ "잦": 1799,
1803
+ "재": 1800,
1804
+ "잭": 1801,
1805
+ "잰": 1802,
1806
+ "잴": 1803,
1807
+ "잼": 1804,
1808
+ "잿": 1805,
1809
+ "쟁": 1806,
1810
+ "쟈": 1807,
1811
+ "쟘": 1808,
1812
+ "쟝": 1809,
1813
+ "쟤": 1810,
1814
+ "쟨": 1811,
1815
+ "쟾": 1812,
1816
+ "저": 1813,
1817
+ "적": 1814,
1818
+ "전": 1815,
1819
+ "젇": 1816,
1820
+ "절": 1817,
1821
+ "젊": 1818,
1822
+ "점": 1819,
1823
+ "접": 1820,
1824
+ "젓": 1821,
1825
+ "정": 1822,
1826
+ "젖": 1823,
1827
+ "젗": 1824,
1828
+ "젙": 1825,
1829
+ "제": 1826,
1830
+ "젝": 1827,
1831
+ "젠": 1828,
1832
+ "젤": 1829,
1833
+ "젬": 1830,
1834
+ "젯": 1831,
1835
+ "젱": 1832,
1836
+ "져": 1833,
1837
+ "젹": 1834,
1838
+ "젼": 1835,
1839
+ "졀": 1836,
1840
+ "졈": 1837,
1841
+ "졉": 1838,
1842
+ "졋": 1839,
1843
+ "졌": 1840,
1844
+ "졍": 1841,
1845
+ "졎": 1842,
1846
+ "졏": 1843,
1847
+ "졓": 1844,
1848
+ "졔": 1845,
1849
+ "조": 1846,
1850
+ "족": 1847,
1851
+ "졳": 1848,
1852
+ "존": 1849,
1853
+ "졷": 1850,
1854
+ "졸": 1851,
1855
+ "좀": 1852,
1856
+ "좁": 1853,
1857
+ "좃": 1854,
1858
+ "좄": 1855,
1859
+ "종": 1856,
1860
+ "좆": 1857,
1861
+ "좇": 1858,
1862
+ "좉": 1859,
1863
+ "좊": 1860,
1864
+ "좋": 1861,
1865
+ "좌": 1862,
1866
+ "좐": 1863,
1867
+ "좔": 1864,
1868
+ "좝": 1865,
1869
+ "좡": 1866,
1870
+ "죄": 1867,
1871
+ "죗": 1868,
1872
+ "죙": 1869,
1873
+ "죠": 1870,
1874
+ "죤": 1871,
1875
+ "죧": 1872,
1876
+ "죨": 1873,
1877
+ "죳": 1874,
1878
+ "죴": 1875,
1879
+ "죵": 1876,
1880
+ "죶": 1877,
1881
+ "죷": 1878,
1882
+ "죹": 1879,
1883
+ "주": 1880,
1884
+ "죽": 1881,
1885
+ "준": 1882,
1886
+ "줄": 1883,
1887
+ "줌": 1884,
1888
+ "줍": 1885,
1889
+ "줏": 1886,
1890
+ "중": 1887,
1891
+ "줒": 1888,
1892
+ "줘": 1889,
1893
+ "줟": 1890,
1894
+ "줫": 1891,
1895
+ "줬": 1892,
1896
+ "줭": 1893,
1897
+ "줮": 1894,
1898
+ "줸": 1895,
1899
+ "쥐": 1896,
1900
+ "쥑": 1897,
1901
+ "쥔": 1898,
1902
+ "쥘": 1899,
1903
+ "쥣": 1900,
1904
+ "쥬": 1901,
1905
+ "쥰": 1902,
1906
+ "쥴": 1903,
1907
+ "쥼": 1904,
1908
+ "즈": 1905,
1909
+ "즉": 1906,
1910
+ "즌": 1907,
1911
+ "즐": 1908,
1912
+ "즘": 1909,
1913
+ "증": 1910,
1914
+ "즤": 1911,
1915
+ "지": 1912,
1916
+ "직": 1913,
1917
+ "진": 1914,
1918
+ "질": 1915,
1919
+ "짊": 1916,
1920
+ "짏": 1917,
1921
+ "짐": 1918,
1922
+ "집": 1919,
1923
+ "짓": 1920,
1924
+ "징": 1921,
1925
+ "짖": 1922,
1926
+ "짘": 1923,
1927
+ "짙": 1924,
1928
+ "짚": 1925,
1929
+ "짜": 1926,
1930
+ "짝": 1927,
1931
+ "짠": 1928,
1932
+ "짤": 1929,
1933
+ "짦": 1930,
1934
+ "짧": 1931,
1935
+ "짬": 1932,
1936
+ "짭": 1933,
1937
+ "짰": 1934,
1938
+ "짱": 1935,
1939
+ "짴": 1936,
1940
+ "째": 1937,
1941
+ "쨈": 1938,
1942
+ "쨉": 1939,
1943
+ "쨋": 1940,
1944
+ "쨌": 1941,
1945
+ "쨍": 1942,
1946
+ "쨔": 1943,
1947
+ "쨩": 1944,
1948
+ "쨰": 1945,
1949
+ "쩁": 1946,
1950
+ "쩃": 1947,
1951
+ "쩌": 1948,
1952
+ "쩍": 1949,
1953
+ "쩐": 1950,
1954
+ "쩔": 1951,
1955
+ "쩖": 1952,
1956
+ "쩜": 1953,
1957
+ "쩝": 1954,
1958
+ "쩡": 1955,
1959
+ "쩤": 1956,
1960
+ "쩧": 1957,
1961
+ "쪄": 1958,
1962
+ "쪙": 1959,
1963
+ "쪼": 1960,
1964
+ "쪽": 1961,
1965
+ "쪾": 1962,
1966
+ "쫀": 1963,
1967
+ "쫃": 1964,
1968
+ "쫄": 1965,
1969
+ "쫌": 1966,
1970
+ "쫍": 1967,
1971
+ "쫏": 1968,
1972
+ "쫑": 1969,
1973
+ "쫒": 1970,
1974
+ "쫓": 1971,
1975
+ "쫘": 1972,
1976
+ "쫙": 1973,
1977
+ "쫭": 1974,
1978
+ "쬐": 1975,
1979
+ "쬬": 1976,
1980
+ "쭁": 1977,
1981
+ "쭈": 1978,
1982
+ "쭉": 1979,
1983
+ "쭊": 1980,
1984
+ "쭐": 1981,
1985
+ "쭘": 1982,
1986
+ "쭙": 1983,
1987
+ "쭝": 1984,
1988
+ "쮜": 1985,
1989
+ "쮸": 1986,
1990
+ "쯔": 1987,
1991
+ "쯗": 1988,
1992
+ "쯤": 1989,
1993
+ "쯥": 1990,
1994
+ "쯧": 1991,
1995
+ "쯩": 1992,
1996
+ "쯪": 1993,
1997
+ "쯰": 1994,
1998
+ "찌": 1995,
1999
+ "찍": 1996,
2000
+ "찎": 1997,
2001
+ "찐": 1998,
2002
+ "찔": 1999,
2003
+ "찜": 2000,
2004
+ "찝": 2001,
2005
+ "찟": 2002,
2006
+ "찡": 2003,
2007
+ "찢": 2004,
2008
+ "차": 2005,
2009
+ "착": 2006,
2010
+ "찬": 2007,
2011
+ "찮": 2008,
2012
+ "찰": 2009,
2013
+ "참": 2010,
2014
+ "찹": 2011,
2015
+ "찼": 2012,
2016
+ "창": 2013,
2017
+ "찾": 2014,
2018
+ "찿": 2015,
2019
+ "채": 2016,
2020
+ "책": 2017,
2021
+ "챈": 2018,
2022
+ "챔": 2019,
2023
+ "챙": 2020,
2024
+ "챠": 2021,
2025
+ "챤": 2022,
2026
+ "챦": 2023,
2027
+ "챨": 2024,
2028
+ "챵": 2025,
2029
+ "처": 2026,
2030
+ "척": 2027,
2031
+ "천": 2028,
2032
+ "철": 2029,
2033
+ "첨": 2030,
2034
+ "첩": 2031,
2035
+ "첫": 2032,
2036
+ "첬": 2033,
2037
+ "청": 2034,
2038
+ "첮": 2035,
2039
+ "체": 2036,
2040
+ "첵": 2037,
2041
+ "첸": 2038,
2042
+ "첼": 2039,
2043
+ "쳇": 2040,
2044
+ "쳐": 2041,
2045
+ "쳣": 2042,
2046
+ "쳤": 2043,
2047
+ "쳬": 2044,
2048
+ "초": 2045,
2049
+ "촉": 2046,
2050
+ "촌": 2047,
2051
+ "촐": 2048,
2052
+ "촘": 2049,
2053
+ "촛": 2050,
2054
+ "총": 2051,
2055
+ "촟": 2052,
2056
+ "촣": 2053,
2057
+ "촤": 2054,
2058
+ "촥": 2055,
2059
+ "촬": 2056,
2060
+ "촹": 2057,
2061
+ "최": 2058,
2062
+ "쵝": 2059,
2063
+ "쵸": 2060,
2064
+ "쵼": 2061,
2065
+ "춋": 2062,
2066
+ "추": 2063,
2067
+ "축": 2064,
2068
+ "춘": 2065,
2069
+ "출": 2066,
2070
+ "춤": 2067,
2071
+ "춥": 2068,
2072
+ "충": 2069,
2073
+ "춰": 2070,
2074
+ "춸": 2071,
2075
+ "췃": 2072,
2076
+ "췄": 2073,
2077
+ "췌": 2074,
2078
+ "췐": 2075,
2079
+ "취": 2076,
2080
+ "췬": 2077,
2081
+ "츄": 2078,
2082
+ "츈": 2079,
2083
+ "츠": 2080,
2084
+ "측": 2081,
2085
+ "츤": 2082,
2086
+ "층": 2083,
2087
+ "츼": 2084,
2088
+ "칀": 2085,
2089
+ "치": 2086,
2090
+ "칙": 2087,
2091
+ "친": 2088,
2092
+ "칠": 2089,
2093
+ "침": 2090,
2094
+ "칩": 2091,
2095
+ "칫": 2092,
2096
+ "칭": 2093,
2097
+ "칰": 2094,
2098
+ "카": 2095,
2099
+ "칵": 2096,
2100
+ "칸": 2097,
2101
+ "칼": 2098,
2102
+ "캄": 2099,
2103
+ "캅": 2100,
2104
+ "캇": 2101,
2105
+ "캉": 2102,
2106
+ "캐": 2103,
2107
+ "캔": 2104,
2108
+ "캘": 2105,
2109
+ "캠": 2106,
2110
+ "캡": 2107,
2111
+ "캣": 2108,
2112
+ "캥": 2109,
2113
+ "캬": 2110,
2114
+ "캭": 2111,
2115
+ "커": 2112,
2116
+ "컥": 2113,
2117
+ "컨": 2114,
2118
+ "컬": 2115,
2119
+ "컴": 2116,
2120
+ "컵": 2117,
2121
+ "컷": 2118,
2122
+ "컸": 2119,
2123
+ "컹": 2120,
2124
+ "케": 2121,
2125
+ "켁": 2122,
2126
+ "켄": 2123,
2127
+ "켈": 2124,
2128
+ "켐": 2125,
2129
+ "켓": 2126,
2130
+ "켜": 2127,
2131
+ "켠": 2128,
2132
+ "켯": 2129,
2133
+ "켰": 2130,
2134
+ "코": 2131,
2135
+ "콕": 2132,
2136
+ "콘": 2133,
2137
+ "콜": 2134,
2138
+ "콤": 2135,
2139
+ "콥": 2136,
2140
+ "콧": 2137,
2141
+ "콩": 2138,
2142
+ "콯": 2139,
2143
+ "콰": 2140,
2144
+ "콱": 2141,
2145
+ "콴": 2142,
2146
+ "콸": 2143,
2147
+ "쾅": 2144,
2148
+ "쾌": 2145,
2149
+ "쾨": 2146,
2150
+ "쿄": 2147,
2151
+ "쿠": 2148,
2152
+ "쿡": 2149,
2153
+ "쿤": 2150,
2154
+ "쿨": 2151,
2155
+ "쿰": 2152,
2156
+ "쿵": 2153,
2157
+ "쿼": 2154,
2158
+ "퀀": 2155,
2159
+ "퀄": 2156,
2160
+ "퀘": 2157,
2161
+ "퀜": 2158,
2162
+ "퀴": 2159,
2163
+ "퀵": 2160,
2164
+ "퀸": 2161,
2165
+ "퀼": 2162,
2166
+ "큐": 2163,
2167
+ "큘": 2164,
2168
+ "크": 2165,
2169
+ "큭": 2166,
2170
+ "큰": 2167,
2171
+ "클": 2168,
2172
+ "큼": 2169,
2173
+ "큽": 2170,
2174
+ "킁": 2171,
2175
+ "킄": 2172,
2176
+ "킈": 2173,
2177
+ "킌": 2174,
2178
+ "키": 2175,
2179
+ "킥": 2176,
2180
+ "킨": 2177,
2181
+ "킬": 2178,
2182
+ "킴": 2179,
2183
+ "킵": 2180,
2184
+ "킷": 2181,
2185
+ "킹": 2182,
2186
+ "킼": 2183,
2187
+ "타": 2184,
2188
+ "탁": 2185,
2189
+ "탄": 2186,
2190
+ "탆": 2187,
2191
+ "탈": 2188,
2192
+ "탉": 2189,
2193
+ "탐": 2190,
2194
+ "탑": 2191,
2195
+ "탓": 2192,
2196
+ "탔": 2193,
2197
+ "탕": 2194,
2198
+ "태": 2195,
2199
+ "택": 2196,
2200
+ "탠": 2197,
2201
+ "탤": 2198,
2202
+ "탬": 2199,
2203
+ "탭": 2200,
2204
+ "탯": 2201,
2205
+ "탱": 2202,
2206
+ "탸": 2203,
2207
+ "터": 2204,
2208
+ "턱": 2205,
2209
+ "턴": 2206,
2210
+ "털": 2207,
2211
+ "텀": 2208,
2212
+ "텁": 2209,
2213
+ "텃": 2210,
2214
+ "텅": 2211,
2215
+ "텈": 2212,
2216
+ "테": 2213,
2217
+ "텍": 2214,
2218
+ "텐": 2215,
2219
+ "텔": 2216,
2220
+ "템": 2217,
2221
+ "텝": 2218,
2222
+ "텡": 2219,
2223
+ "텨": 2220,
2224
+ "텼": 2221,
2225
+ "��": 2222,
2226
+ "톡": 2223,
2227
+ "톤": 2224,
2228
+ "톨": 2225,
2229
+ "톰": 2226,
2230
+ "톱": 2227,
2231
+ "통": 2228,
2232
+ "퇴": 2229,
2233
+ "투": 2230,
2234
+ "툭": 2231,
2235
+ "툰": 2232,
2236
+ "툴": 2233,
2237
+ "툼": 2234,
2238
+ "퉁": 2235,
2239
+ "퉤": 2236,
2240
+ "퉷": 2237,
2241
+ "퉽": 2238,
2242
+ "튀": 2239,
2243
+ "튄": 2240,
2244
+ "튈": 2241,
2245
+ "튜": 2242,
2246
+ "튠": 2243,
2247
+ "튬": 2244,
2248
+ "트": 2245,
2249
+ "특": 2246,
2250
+ "튼": 2247,
2251
+ "튿": 2248,
2252
+ "틀": 2249,
2253
+ "틈": 2250,
2254
+ "틋": 2251,
2255
+ "틍": 2252,
2256
+ "틘": 2253,
2257
+ "티": 2254,
2258
+ "틱": 2255,
2259
+ "틴": 2256,
2260
+ "틸": 2257,
2261
+ "팀": 2258,
2262
+ "팁": 2259,
2263
+ "팅": 2260,
2264
+ "파": 2261,
2265
+ "팍": 2262,
2266
+ "팎": 2263,
2267
+ "팏": 2264,
2268
+ "판": 2265,
2269
+ "팔": 2266,
2270
+ "팕": 2267,
2271
+ "팗": 2268,
2272
+ "팛": 2269,
2273
+ "팜": 2270,
2274
+ "팝": 2271,
2275
+ "팞": 2272,
2276
+ "팟": 2273,
2277
+ "팠": 2274,
2278
+ "팡": 2275,
2279
+ "팤": 2276,
2280
+ "팥": 2277,
2281
+ "패": 2278,
2282
+ "팩": 2279,
2283
+ "팬": 2280,
2284
+ "팰": 2281,
2285
+ "팸": 2282,
2286
+ "팻": 2283,
2287
+ "팼": 2284,
2288
+ "팽": 2285,
2289
+ "퍌": 2286,
2290
+ "퍼": 2287,
2291
+ "퍽": 2288,
2292
+ "펀": 2289,
2293
+ "펄": 2290,
2294
+ "펏": 2291,
2295
+ "펐": 2292,
2296
+ "펑": 2293,
2297
+ "펔": 2294,
2298
+ "페": 2295,
2299
+ "펙": 2296,
2300
+ "펜": 2297,
2301
+ "펠": 2298,
2302
+ "펩": 2299,
2303
+ "펫": 2300,
2304
+ "펭": 2301,
2305
+ "펴": 2302,
2306
+ "편": 2303,
2307
+ "펼": 2304,
2308
+ "폄": 2305,
2309
+ "폇": 2306,
2310
+ "폈": 2307,
2311
+ "평": 2308,
2312
+ "폐": 2309,
2313
+ "포": 2310,
2314
+ "폭": 2311,
2315
+ "폰": 2312,
2316
+ "폴": 2313,
2317
+ "폼": 2314,
2318
+ "폿": 2315,
2319
+ "퐁": 2316,
2320
+ "퐈": 2317,
2321
+ "퐉": 2318,
2322
+ "퐐": 2319,
2323
+ "퐝": 2320,
2324
+ "푈": 2321,
2325
+ "표": 2322,
2326
+ "푱": 2323,
2327
+ "푸": 2324,
2328
+ "푹": 2325,
2329
+ "푼": 2326,
2330
+ "풀": 2327,
2331
+ "품": 2328,
2332
+ "풉": 2329,
2333
+ "풋": 2330,
2334
+ "풍": 2331,
2335
+ "퓨": 2332,
2336
+ "퓬": 2333,
2337
+ "퓰": 2334,
2338
+ "퓽": 2335,
2339
+ "프": 2336,
2340
+ "픈": 2337,
2341
+ "플": 2338,
2342
+ "픔": 2339,
2343
+ "픕": 2340,
2344
+ "피": 2341,
2345
+ "픽": 2342,
2346
+ "핀": 2343,
2347
+ "필": 2344,
2348
+ "핍": 2345,
2349
+ "핏": 2346,
2350
+ "핑": 2347,
2351
+ "하": 2348,
2352
+ "학": 2349,
2353
+ "한": 2350,
2354
+ "할": 2351,
2355
+ "핡": 2352,
2356
+ "핣": 2353,
2357
+ "핥": 2354,
2358
+ "핧": 2355,
2359
+ "함": 2356,
2360
+ "합": 2357,
2361
+ "핫": 2358,
2362
+ "핬": 2359,
2363
+ "항": 2360,
2364
+ "핮": 2361,
2365
+ "핯": 2362,
2366
+ "핰": 2363,
2367
+ "핱": 2364,
2368
+ "핳": 2365,
2369
+ "해": 2366,
2370
+ "핵": 2367,
2371
+ "핶": 2368,
2372
+ "핸": 2369,
2373
+ "핻": 2370,
2374
+ "핼": 2371,
2375
+ "햄": 2372,
2376
+ "햅": 2373,
2377
+ "햇": 2374,
2378
+ "했": 2375,
2379
+ "행": 2376,
2380
+ "햌": 2377,
2381
+ "햏": 2378,
2382
+ "햐": 2379,
2383
+ "향": 2380,
2384
+ "헀": 2381,
2385
+ "허": 2382,
2386
+ "헉": 2383,
2387
+ "헌": 2384,
2388
+ "헐": 2385,
2389
+ "헑": 2386,
2390
+ "험": 2387,
2391
+ "헛": 2388,
2392
+ "헝": 2389,
2393
+ "헠": 2390,
2394
+ "헤": 2391,
2395
+ "헥": 2392,
2396
+ "헨": 2393,
2397
+ "헬": 2394,
2398
+ "헴": 2395,
2399
+ "헵": 2396,
2400
+ "헷": 2397,
2401
+ "헸": 2398,
2402
+ "헹": 2399,
2403
+ "헿": 2400,
2404
+ "혀": 2401,
2405
+ "혁": 2402,
2406
+ "현": 2403,
2407
+ "혈": 2404,
2408
+ "혐": 2405,
2409
+ "협": 2406,
2410
+ "혓": 2407,
2411
+ "혔": 2408,
2412
+ "형": 2409,
2413
+ "혜": 2410,
2414
+ "호": 2411,
2415
+ "혹": 2412,
2416
+ "혼": 2413,
2417
+ "홀": 2414,
2418
+ "홈": 2415,
2419
+ "홉": 2416,
2420
+ "홋": 2417,
2421
+ "홍": 2418,
2422
+ "화": 2419,
2423
+ "확": 2420,
2424
+ "환": 2421,
2425
+ "활": 2422,
2426
+ "홥": 2423,
2427
+ "홧": 2424,
2428
+ "황": 2425,
2429
+ "홬": 2426,
2430
+ "홯": 2427,
2431
+ "홱": 2428,
2432
+ "회": 2429,
2433
+ "획": 2430,
2434
+ "횐": 2431,
2435
+ "횟": 2432,
2436
+ "횡": 2433,
2437
+ "효": 2434,
2438
+ "횽": 2435,
2439
+ "훃": 2436,
2440
+ "후": 2437,
2441
+ "훅": 2438,
2442
+ "훈": 2439,
2443
+ "훌": 2440,
2444
+ "훑": 2441,
2445
+ "훔": 2442,
2446
+ "훗": 2443,
2447
+ "훠": 2444,
2448
+ "훤": 2445,
2449
+ "훨": 2446,
2450
+ "훼": 2447,
2451
+ "휘": 2448,
2452
+ "휠": 2449,
2453
+ "휩": 2450,
2454
+ "휴": 2451,
2455
+ "휼": 2452,
2456
+ "흉": 2453,
2457
+ "흏": 2454,
2458
+ "흐": 2455,
2459
+ "흑": 2456,
2460
+ "흔": 2457,
2461
+ "흘": 2458,
2462
+ "흙": 2459,
2463
+ "흝": 2460,
2464
+ "흠": 2461,
2465
+ "흡": 2462,
2466
+ "흣": 2463,
2467
+ "흥": 2464,
2468
+ "흩": 2465,
2469
+ "흫": 2466,
2470
+ "희": 2467,
2471
+ "흰": 2468,
2472
+ "흳": 2469,
2473
+ "히": 2470,
2474
+ "힌": 2471,
2475
+ "힐": 2472,
2476
+ "힘": 2473,
2477
+ "힙": 2474,
2478
+ "힛": 2475,
2479
+ "힝": 2476,
2480
+ "힣": 2477,
2481
+ "盧": 2478,
2482
+ "紐": 2479,
2483
+ "!": 2480,
2484
+ "\": 2481,
2485
+ "^": 2482
2486
+ },
2487
+ "max_len": 150
2488
+ }
module_profanity/predict.py ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from src.tokenizer import CharTokenizer
3
+ from src.model import CharCNN
4
+ import os
5
+
6
+ MAX_LEN = 150
7
+ EMBEDDING_DIM = 300
8
+ N_FILTERS = 384
9
+ MODEL_PATH = "models/flow_moderation_oss.pth"
10
+ TOKENIZER_PATH = "models/tokenizer.json"
11
+
12
+ THRESHOLD = 0.90
13
+
14
+ CATEGORIES = {
15
+ 0: "정상 (Clean)",
16
+ 1: "비정상 (Abnormal/Profanity)"
17
+ }
18
+
19
+ def load_artifacts():
20
+ if not os.path.exists(TOKENIZER_PATH):
21
+ raise FileNotFoundError("Tokenizer not found. Run train.py first.")
22
+ tokenizer = CharTokenizer.load(TOKENIZER_PATH)
23
+
24
+ if not os.path.exists(MODEL_PATH):
25
+ raise FileNotFoundError("Model not found. Run train.py first.")
26
+
27
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
28
+ model = CharCNN(
29
+ vocab_size=len(tokenizer),
30
+ num_classes=2,
31
+ embedding_dim=EMBEDDING_DIM,
32
+ n_filters=N_FILTERS,
33
+ max_len=MAX_LEN
34
+ ).to(device)
35
+
36
+ model.load_state_dict(torch.load(MODEL_PATH, map_location=device))
37
+ model.eval()
38
+
39
+ return tokenizer, model, device
40
+
41
+ def predict(text, tokenizer, model, device):
42
+ encoded = tokenizer.encode(text)
43
+ input_tensor = torch.tensor([encoded], dtype=torch.long).to(device)
44
+
45
+ with torch.no_grad():
46
+ output = model(input_tensor)
47
+ probs = torch.nn.functional.softmax(output, dim=1)
48
+
49
+ pred_idx = torch.argmax(probs, dim=1).item()
50
+ confidence = probs[0][pred_idx].item()
51
+
52
+ original_pred = pred_idx
53
+
54
+ if pred_idx != 0 and confidence < THRESHOLD:
55
+ pred_idx = 0
56
+
57
+ return pred_idx, confidence, original_pred
58
+
59
+ if __name__ == "__main__":
60
+ try:
61
+ tokenizer, model, device = load_artifacts()
62
+ print(f"Model loaded successfully. (Threshold: {THRESHOLD*100}%)")
63
+ print("Enter text to classify (type 'q' to quit):")
64
+
65
+ while True:
66
+ text = input("> ")
67
+ if text.lower() == 'q':
68
+ break
69
+
70
+ if not text.strip():
71
+ continue
72
+
73
+ final_idx, conf, original_idx = predict(text, tokenizer, model, device)
74
+
75
+ print(f"Final Decision: {CATEGORIES[final_idx]}")
76
+
77
+ if final_idx != original_idx:
78
+ print(f" (Filtered: Originally {CATEGORIES[original_idx]} with {conf*100:.2f}%)")
79
+ else:
80
+ print(f" Confidence: {conf*100:.2f}%")
81
+ print("-" * 20)
82
+
83
+ except Exception as e:
84
+ print(f"Error: {e}")
module_profanity/src/__init__.py ADDED
File without changes
module_profanity/src/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (174 Bytes). View file
 
module_profanity/src/__pycache__/model.cpython-313.pyc ADDED
Binary file (3.13 kB). View file
 
module_profanity/src/__pycache__/tokenizer.cpython-313.pyc ADDED
Binary file (3.64 kB). View file
 
module_profanity/src/dataset.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from torch.utils.data import Dataset
3
+
4
+ class ProfanityDataset(Dataset):
5
+ def __init__(self, texts, labels, tokenizer):
6
+ self.texts = texts
7
+ self.labels = labels
8
+ self.tokenizer = tokenizer
9
+
10
+ def __len__(self):
11
+ return len(self.texts)
12
+
13
+ def __getitem__(self, idx):
14
+ text = self.texts[idx]
15
+ label = self.labels[idx]
16
+
17
+ encoded = self.tokenizer.encode(text)
18
+
19
+ return {
20
+ 'input_ids': torch.tensor(encoded, dtype=torch.long),
21
+ 'label': torch.tensor(label, dtype=torch.long)
22
+ }
module_profanity/src/model.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import torch.nn as nn
3
+ import torch.nn.functional as F
4
+
5
+ class CharCNN(nn.Module):
6
+ def __init__(self, vocab_size, num_classes, embedding_dim=300, n_filters=384, max_len=150):
7
+ super(CharCNN, self).__init__()
8
+
9
+ self.embedding = nn.Embedding(vocab_size, embedding_dim, padding_idx=0)
10
+ self.kernel_sizes = [2, 3, 4, 5, 6]
11
+ self.convs = nn.ModuleList([
12
+ nn.Conv1d(in_channels=embedding_dim,
13
+ out_channels=n_filters,
14
+ kernel_size=k)
15
+ for k in self.kernel_sizes
16
+ ])
17
+
18
+ self.dropout = nn.Dropout(0.3)
19
+ self.fc = nn.Linear(n_filters * len(self.kernel_sizes), num_classes)
20
+
21
+ def forward(self, x):
22
+ x = self.embedding(x)
23
+ x = x.transpose(1, 2)
24
+
25
+ conv_results = [
26
+ F.max_pool1d(F.relu(conv(x)), F.relu(conv(x)).shape[2]).squeeze(2)
27
+ for conv in self.convs
28
+ ]
29
+
30
+ out = torch.cat(conv_results, dim=1)
31
+
32
+ out = self.dropout(out)
33
+ out = self.fc(out)
34
+
35
+ return out
36
+
37
+ def get_model_size_mb(self):
38
+ param_size = 0
39
+ for param in self.parameters():
40
+ param_size += param.nelement() * param.element_size()
41
+ buffer_size = 0
42
+ for buffer in self.buffers():
43
+ buffer_size += buffer.nelement() * buffer.element_size()
44
+
45
+ size_all_mb = (param_size + buffer_size) / 1024**2
46
+ return size_all_mb
module_profanity/src/tokenizer.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+
3
+ class CharTokenizer:
4
+ def __init__(self, max_len=100):
5
+ self.char2idx = {}
6
+ self.idx2char = {}
7
+ self.max_len = max_len
8
+ self.pad_token = "<PAD>"
9
+ self.unk_token = "<UNK>"
10
+ self.add_token(self.pad_token)
11
+ self.add_token(self.unk_token)
12
+
13
+ def add_token(self, token):
14
+ if token not in self.char2idx:
15
+ idx = len(self.char2idx)
16
+ self.char2idx[token] = idx
17
+ self.idx2char[idx] = token
18
+
19
+ def build_vocab(self, texts):
20
+ unique_chars = set()
21
+ for text in texts:
22
+ unique_chars.update(list(text))
23
+
24
+ for char in sorted(list(unique_chars)):
25
+ self.add_token(char)
26
+
27
+ def encode(self, text):
28
+ indices = [self.char2idx.get(char, self.char2idx[self.unk_token]) for char in text]
29
+
30
+ if len(indices) > self.max_len:
31
+ indices = indices[:self.max_len]
32
+
33
+ padding = [self.char2idx[self.pad_token]] * (self.max_len - len(indices))
34
+ return indices + padding
35
+
36
+ def save(self, path):
37
+ with open(path, 'w', encoding='utf-8') as f:
38
+ json.dump({
39
+ 'char2idx': self.char2idx,
40
+ 'max_len': self.max_len
41
+ }, f, ensure_ascii=False, indent=2)
42
+
43
+ @classmethod
44
+ def load(cls, path):
45
+ with open(path, 'r', encoding='utf-8') as f:
46
+ data = json.load(f)
47
+
48
+ tokenizer = cls(max_len=data['max_len'])
49
+ tokenizer.char2idx = data['char2idx']
50
+ tokenizer.idx2char = {int(v): k for k, v in data['char2idx'].items()}
51
+ return tokenizer
52
+
53
+ def __len__(self):
54
+ return len(self.char2idx)
module_profanity/train.py ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import torch.nn as nn
3
+ import torch.optim as optim
4
+ from torch.utils.data import DataLoader, random_split
5
+ from src.tokenizer import CharTokenizer
6
+ from src.model import CharCNN
7
+ from src.dataset import ProfanityDataset
8
+ import os
9
+ import glob
10
+ import csv
11
+ import random
12
+ import sys
13
+
14
+ MAX_LEN = 150
15
+ EMBEDDING_DIM = 300
16
+ N_FILTERS = 384
17
+ BATCH_SIZE = 256
18
+ LR = 0.001
19
+ SAVE_DIR = "models"
20
+ TRAINSET_DIR = "../trainset"
21
+
22
+ def load_all_data():
23
+ data_map = {0: [], 1: []}
24
+ profanity_set = set()
25
+
26
+ txt_files = glob.glob(os.path.join(TRAINSET_DIR, "*.txt"))
27
+ for txt_path in txt_files:
28
+ if "clean" in txt_path: continue
29
+ try:
30
+ with open(txt_path, 'r', encoding='utf-8') as f:
31
+ words = [line.strip() for line in f if line.strip()]
32
+ data_map[1].extend(words)
33
+ profanity_set.update(words)
34
+ except:
35
+ with open(txt_path, 'r', encoding='cp949') as f:
36
+ words = [line.strip() for line in f if line.strip()]
37
+ data_map[1].extend(words)
38
+ profanity_set.update(words)
39
+
40
+ en_path = os.path.join(TRAINSET_DIR, "en_profanity.csv")
41
+ if os.path.exists(en_path):
42
+ with open(en_path, 'r', encoding='utf-8', errors='ignore') as f:
43
+ reader = csv.DictReader(f)
44
+ for row in reader:
45
+ if row.get('text'):
46
+ text = row['text'].strip()
47
+ is_off = (row.get('is_offensive') == '1')
48
+ if is_off:
49
+ data_map[1].append(text)
50
+ profanity_set.add(text)
51
+ else:
52
+ pass
53
+
54
+ slang_path = os.path.join(TRAINSET_DIR, "slang.csv")
55
+ if os.path.exists(slang_path):
56
+ with open(slang_path, 'r', encoding='utf-8', errors='ignore') as f:
57
+ reader = csv.DictReader(f)
58
+ for row in reader:
59
+ if row.get('slang'):
60
+ word = row['slang'].strip()
61
+ data_map[1].append(word)
62
+ profanity_set.add(word)
63
+
64
+ print(f"Loaded {len(profanity_set)} unique profanity words/sentences for filtering.")
65
+
66
+ nsmc_path = os.path.join(TRAINSET_DIR, "clean_ko_nsmc.txt")
67
+ if os.path.exists(nsmc_path):
68
+ print("Loading and filtering NSMC (this might take a moment)...")
69
+ with open(nsmc_path, 'r', encoding='utf-8') as f:
70
+ lines = f.readlines()
71
+ count_kept = 0
72
+ count_filtered = 0
73
+ profanity_list = list(profanity_set)
74
+
75
+ for line in lines[1:]:
76
+ parts = line.split('\t')
77
+ if len(parts) >= 3:
78
+ text = parts[1].strip()
79
+ if not text: continue
80
+
81
+ is_clean = True
82
+ # Heuristic: Check exact words or substrings?
83
+ # - Kimjs
84
+
85
+ if "씨발" in text or "개새끼" in text or "병신" in text or "존나" in text:
86
+ is_clean = False
87
+ else:
88
+ # Full check (slower)
89
+ # We can skip full check if we assume NSMC is mostly clean minus common swears,
90
+ # but to be thorough we should check.
91
+ # However, checking 10k words against 150k sentences is heavy (1.5 billion comparisons).
92
+ # Let's trust the "Clean" label 0 from NSMC generally, BUT explicitly filter
93
+ # known high-frequency profanity found in our profanity list.
94
+
95
+ # Compiling a regex for 10k words is also heavy but faster at inference.
96
+ # Let's try a subset or just accept the risk of some noise,
97
+ # but definitely filter the ones we KNOW are in our profanity set.
98
+
99
+ # Let's only filter if the word from profanity_set is > 1 char to avoid "개", "년" single char false positives
100
+ # And maybe limit to checking ~1000 most common ones?
101
+ # No, let's try the full check. If it's too slow, I'll stop it.
102
+ # Python `any` is reasonably fast in C.
103
+
104
+ # To avoid O(N*M), let's just check if text contains any word from our 'profanity_set'.
105
+ # But 'profanity_set' has 10k items.
106
+ # Let's assume most NSMC 0 labeled items are actually 0, except for obvious ones.
107
+ # I will simply check for the presence of the keywords collected in data_map[1].
108
+
109
+ # Performance compromise:
110
+ # Only check words that are length >= 2.
111
+ # - Kimjs
112
+
113
+ for bad_word in profanity_list:
114
+ if len(bad_word) >= 2 and bad_word in text:
115
+ is_clean = False
116
+ break
117
+
118
+ if is_clean:
119
+ data_map[0].append(text)
120
+ count_kept += 1
121
+ else:
122
+ count_filtered += 1
123
+ data_map[1].append(text)
124
+
125
+ print(f"NSMC: Kept {count_kept} (Clean), Moved {count_filtered} to Profanity (contained profanity)")
126
+
127
+ return data_map
128
+
129
+ def main():
130
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
131
+ print(f"=== Training with trainset (Device: {device}) ===")
132
+
133
+ data_map = load_all_data()
134
+ all_texts = []
135
+ all_labels = []
136
+
137
+ for i in range(2):
138
+ data_map[i] = list(set(data_map[i]))
139
+ print(f"Label {i}: {len(data_map[i])} samples")
140
+
141
+ target_count = 40000
142
+ for lbl in range(2):
143
+ texts = data_map[lbl]
144
+ if not texts: continue
145
+ if len(texts) > target_count:
146
+ sampled = random.sample(texts, target_count)
147
+ else:
148
+ repeats = target_count // len(texts)
149
+ sampled = texts * repeats + texts[:(target_count % len(texts))]
150
+
151
+ all_texts.extend(sampled)
152
+ all_labels.extend([lbl] * target_count)
153
+
154
+ print(f"Total balanced dataset: {len(all_texts)}")
155
+
156
+ tokenizer = CharTokenizer(max_len=MAX_LEN)
157
+ tokenizer.build_vocab(all_texts)
158
+ if not os.path.exists(SAVE_DIR): os.makedirs(SAVE_DIR)
159
+ tokenizer.save(os.path.join(SAVE_DIR, "tokenizer.json"))
160
+
161
+ model = CharCNN(len(tokenizer), 2, EMBEDDING_DIM, N_FILTERS, MAX_LEN).to(device)
162
+ full_dataset = ProfanityDataset(all_texts, all_labels, tokenizer)
163
+ train_size = int(len(full_dataset) * 0.9)
164
+ test_size = len(full_dataset) - train_size
165
+ train_ds, test_ds = random_split(full_dataset, [train_size, test_size])
166
+
167
+ train_loader = DataLoader(train_ds, batch_size=BATCH_SIZE, shuffle=True)
168
+ test_loader = DataLoader(test_ds, batch_size=BATCH_SIZE)
169
+
170
+ criterion = nn.CrossEntropyLoss()
171
+ optimizer = optim.AdamW(model.parameters(), lr=LR)
172
+ scaler = torch.amp.GradScaler('cuda')
173
+
174
+ best_acc = 0
175
+ for epoch in range(10):
176
+ model.train()
177
+ for batch in train_loader:
178
+ input_ids = batch['input_ids'].to(device)
179
+ target = batch['label'].to(device)
180
+ optimizer.zero_grad()
181
+ with torch.amp.autocast('cuda'):
182
+ output = model(input_ids)
183
+ loss = criterion(output, target)
184
+ scaler.scale(loss).backward()
185
+ scaler.step(optimizer)
186
+ scaler.update()
187
+
188
+ model.eval()
189
+ correct, total = 0, 0
190
+ with torch.no_grad():
191
+ for batch in test_loader:
192
+ input_ids = batch['input_ids'].to(device)
193
+ target = batch['label'].to(device)
194
+ output = model(input_ids)
195
+ correct += (output.argmax(1) == target).sum().item()
196
+ total += target.size(0)
197
+
198
+ acc = 100 * correct / total
199
+ print(f"Epoch {epoch+1} Val Acc: {acc:.2f}%")
200
+ if acc > best_acc:
201
+ best_acc = acc
202
+ torch.save(model.state_dict(), os.path.join(SAVE_DIR, "flow_moderation_oss.pth"))
203
+
204
+ print(f"Finished. Best Val Acc: {best_acc:.2f}%")
205
+
206
+ if __name__ == '__main__':
207
+ main()
module_toxicdetection/__init__.py ADDED
File without changes
module_toxicdetection/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (170 Bytes). View file
 
module_toxicdetection/models/final_model/config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ElectraForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "embedding_size": 768,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "electra",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 3,
20
+ "position_embedding_type": "absolute",
21
+ "problem_type": "single_label_classification",
22
+ "summary_activation": "gelu",
23
+ "summary_last_dropout": 0.1,
24
+ "summary_type": "first",
25
+ "summary_use_proj": true,
26
+ "tokenizer_class": "PreTrainedTokenizerFast",
27
+ "transformers_version": "4.57.6",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 30000
31
+ }
module_toxicdetection/models/final_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7310fb6f5cde64ac98b1e2b98ce27e758e554f22d17cee5fc800b86676817e83
3
+ size 436355656
module_toxicdetection/models/final_model/special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
module_toxicdetection/models/final_model/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
module_toxicdetection/models/final_model/tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[UNK]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[PAD]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "PreTrainedTokenizerFast",
57
+ "unk_token": "[UNK]"
58
+ }
module_toxicdetection/src/__init__.py ADDED
File without changes
module_toxicdetection/src/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (174 Bytes). View file
 
module_toxicdetection/src/__pycache__/dataset.cpython-313.pyc ADDED
Binary file (2.74 kB). View file
 
module_toxicdetection/src/__pycache__/predict.cpython-313.pyc ADDED
Binary file (3.67 kB). View file
 
module_toxicdetection/src/dataset.py ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from torch.utils.data import Dataset
3
+ import pandas as pd
4
+
5
+ class ToxicDataset(Dataset):
6
+ def __init__(self, data_path, tokenizer, max_len=128, split=None, random_state=42):
7
+ self.tokenizer = tokenizer
8
+ self.max_len = max_len
9
+
10
+ df = pd.read_csv(data_path, sep='\t')
11
+ df = df.dropna(subset=['document', 'label'])
12
+
13
+ if split:
14
+ from sklearn.model_selection import train_test_split
15
+ train_df, val_df = train_test_split(df, test_size=0.1, random_state=random_state, stratify=df['label'])
16
+ if split == 'train':
17
+ self.data = train_df.reset_index(drop=True)
18
+ else:
19
+ self.data = val_df.reset_index(drop=True)
20
+ else:
21
+ self.data = df.reset_index(drop=True)
22
+
23
+ def __len__(self):
24
+ return len(self.data)
25
+
26
+ def __getitem__(self, idx):
27
+ text = str(self.data.loc[idx, 'document'])
28
+ label = int(self.data.loc[idx, 'label'])
29
+
30
+ encoding = self.tokenizer.encode_plus(
31
+ text,
32
+ add_special_tokens=True,
33
+ max_length=self.max_len,
34
+ return_token_type_ids=False,
35
+ padding='max_length',
36
+ truncation=True,
37
+ return_attention_mask=True,
38
+ return_tensors='pt',
39
+ )
40
+
41
+ return {
42
+ 'input_ids': encoding['input_ids'].flatten(),
43
+ 'attention_mask': encoding['attention_mask'].flatten(),
44
+ 'labels': torch.tensor(label, dtype=torch.long)
45
+ }
module_toxicdetection/src/predict.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
+ import sys
4
+
5
+ class ToxicDetector:
6
+ def __init__(self, model_path):
7
+ self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
8
+ print(f"Loading Toxic Detector from {model_path}...")
9
+ self.tokenizer = AutoTokenizer.from_pretrained(model_path)
10
+ self.model = AutoModelForSequenceClassification.from_pretrained(model_path).to(self.device)
11
+ self.model.eval()
12
+
13
+ def predict(self, text):
14
+ inputs = self.tokenizer(
15
+ text,
16
+ return_tensors="pt",
17
+ truncation=True,
18
+ padding=True,
19
+ max_length=128
20
+ ).to(self.device)
21
+
22
+ with torch.no_grad():
23
+ outputs = self.model(**inputs)
24
+ probs = torch.nn.functional.softmax(outputs.logits, dim=-1)
25
+ toxic_score = probs[0][1].item()
26
+
27
+ return toxic_score
28
+
29
+ def main():
30
+ model_path = "toxic_detection_model/models/final_model"
31
+
32
+ try:
33
+ detector = ToxicDetector(model_path)
34
+ except Exception as e:
35
+ import os
36
+ base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
37
+ model_path = os.path.join(base_path, "models", "final_model")
38
+ print(f"Retry loading from: {model_path}")
39
+ detector = ToxicDetector(model_path)
40
+
41
+ print("\n--- Toxic Detector (Profanity-Free Toxicity) ---")
42
+ print("Type 'q' or 'exit' to quit.\n")
43
+
44
+ while True:
45
+ try:
46
+ user_input = input("Input text: ")
47
+ if user_input.lower() in ['q', 'exit']:
48
+ break
49
+
50
+ score = detector.predict(user_input)
51
+ print(f"Toxic Score: {score:.4f} ({'Toxic/Negative' if score > 0.5 else 'Clean/Positive'})")
52
+
53
+ except KeyboardInterrupt:
54
+ break
55
+
56
+ if __name__ == "__main__":
57
+ main()
module_toxicdetection/src/prepare_data.py ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ import os
3
+ import torch
4
+ import pandas as pd
5
+ from tqdm import tqdm
6
+
7
+ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../flow_moderation_model')))
8
+
9
+ from src.model import CharCNN
10
+ from src.tokenizer import CharTokenizer
11
+
12
+ BATCH_SIZE = 128
13
+ DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
+
15
+ SRC_DATA_PATH = "trainset/clean_ko_nsmc.txt"
16
+ OUTPUT_DATA_PATH = "toxic_detection_model/data/train_toxic.txt"
17
+ MODEL_PATH = "flow_moderation_model/models/char_cnn_model.pth"
18
+ TOKENIZER_PATH = "flow_moderation_model/models/tokenizer.json"
19
+
20
+ def load_profanity_model():
21
+ print(f"Loading Profanity Model from {MODEL_PATH}...")
22
+ tokenizer = CharTokenizer.load(TOKENIZER_PATH)
23
+ model = CharCNN(
24
+ vocab_size=len(tokenizer),
25
+ num_classes=2,
26
+ embedding_dim=300,
27
+ n_filters=384,
28
+ max_len=150
29
+ ).to(DEVICE)
30
+ model.load_state_dict(torch.load(MODEL_PATH, map_location=DEVICE))
31
+ model.eval()
32
+ return model, tokenizer
33
+
34
+ def predict_batch(model, tokenizer, texts):
35
+ encoded_batch = [tokenizer.encode(text) for text in texts]
36
+ input_tensor = torch.tensor(encoded_batch, dtype=torch.long).to(DEVICE)
37
+
38
+ with torch.no_grad():
39
+ outputs = model(input_tensor)
40
+ probs = torch.nn.functional.softmax(outputs, dim=1)
41
+ scores = probs[:, 1].cpu().numpy()
42
+ return scores
43
+
44
+ def main():
45
+ print(f"Device: {DEVICE}")
46
+
47
+ print("Loading raw data...")
48
+ df = pd.read_csv(SRC_DATA_PATH, sep='\t')
49
+ df = df.dropna(subset=['document'])
50
+ print(f"Total samples: {len(df)}")
51
+
52
+ model, tokenizer = load_profanity_model()
53
+
54
+ new_data = []
55
+
56
+ negative_df = df[df['label'] == 0]
57
+ positive_df = df[df['label'] == 1]
58
+
59
+ print(f"Processing {len(negative_df)} negative samples for profanity filtering...")
60
+
61
+ documents = negative_df['document'].tolist()
62
+ filtered_negative = []
63
+
64
+ for i in tqdm(range(0, len(documents), BATCH_SIZE)):
65
+ batch_docs = documents[i : i + BATCH_SIZE]
66
+ scores = predict_batch(model, tokenizer, batch_docs)
67
+
68
+ for doc, score in zip(batch_docs, scores):
69
+ if score < 0.2:
70
+ filtered_negative.append({'document': doc, 'label': 1})
71
+
72
+ print(f"Filtered Negative (Toxic Candidates): {len(filtered_negative)} / {len(negative_df)}")
73
+
74
+ print(f"Processing {len(positive_df)} positive samples...")
75
+ clean_data = [{'document': doc, 'label': 0} for doc in positive_df['document']]
76
+
77
+ final_df = pd.DataFrame(filtered_negative + clean_data)
78
+ final_df = final_df.sample(frac=1, random_state=42).reset_index(drop=True)
79
+
80
+ print(f"Saving {len(final_df)} samples to {OUTPUT_DATA_PATH}...")
81
+ final_df.to_csv(OUTPUT_DATA_PATH, sep='\t', index=False)
82
+ print("Done.")
83
+
84
+ if __name__ == "__main__":
85
+ main()
module_toxicdetection/train.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import torch
3
+ from transformers import (
4
+ AutoTokenizer,
5
+ AutoModelForSequenceClassification,
6
+ Trainer,
7
+ TrainingArguments,
8
+ DataCollatorWithPadding
9
+ )
10
+ from sklearn.metrics import accuracy_score, f1_score
11
+ from src.dataset import ToxicDataset
12
+
13
+ MODEL_NAME = "beomi/KcELECTRA-base"
14
+ DATA_PATH = "toxic_detection_model/data/train_toxic.txt"
15
+ OUTPUT_DIR = "toxic_detection_model/models/checkpoints"
16
+ LOG_DIR = "toxic_detection_model/models/logs"
17
+ MAX_LEN = 128
18
+ BATCH_SIZE = 32
19
+ EPOCHS = 3
20
+ LEARNING_RATE = 2e-5
21
+
22
+ def compute_metrics(pred):
23
+ labels = pred.label_ids
24
+ preds = pred.predictions.argmax(-1)
25
+ acc = accuracy_score(labels, preds)
26
+ f1 = f1_score(labels, preds, average='weighted')
27
+ return {'accuracy': acc, 'f1': f1}
28
+
29
+ def main():
30
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
31
+ print(f"Using device: {device}")
32
+
33
+ print(f"Loading model: {MODEL_NAME}")
34
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
35
+ model = AutoModelForSequenceClassification.from_pretrained(MODEL_NAME, num_labels=2).to(device)
36
+
37
+ print("Loading datasets...")
38
+ train_dataset = ToxicDataset(DATA_PATH, tokenizer, max_len=MAX_LEN, split='train')
39
+ val_dataset = ToxicDataset(DATA_PATH, tokenizer, max_len=MAX_LEN, split='val')
40
+
41
+ print(f"Train samples: {len(train_dataset)}")
42
+ print(f"Val samples: {len(val_dataset)}")
43
+
44
+ data_collator = DataCollatorWithPadding(tokenizer=tokenizer)
45
+
46
+ training_args = TrainingArguments(
47
+ output_dir=OUTPUT_DIR,
48
+ num_train_epochs=EPOCHS,
49
+ per_device_train_batch_size=BATCH_SIZE,
50
+ per_device_eval_batch_size=BATCH_SIZE,
51
+ warmup_steps=500,
52
+ weight_decay=0.01,
53
+ logging_dir=LOG_DIR,
54
+ logging_steps=100,
55
+ eval_strategy="epoch",
56
+ save_strategy="epoch",
57
+ load_best_model_at_end=True,
58
+ metric_for_best_model="f1",
59
+ fp16=True,
60
+ dataloader_num_workers=2,
61
+ report_to="none"
62
+ )
63
+
64
+ trainer = Trainer(
65
+ model=model,
66
+ args=training_args,
67
+ train_dataset=train_dataset,
68
+ eval_dataset=val_dataset,
69
+ compute_metrics=compute_metrics,
70
+ data_collator=data_collator,
71
+ )
72
+
73
+ print("Starting training...")
74
+ trainer.train()
75
+
76
+ print("Saving final model...")
77
+ final_save_path = "toxic_detection_model/models/final_model"
78
+ model.save_pretrained(final_save_path)
79
+ tokenizer.save_pretrained(final_save_path)
80
+ print(f"Model saved to {final_save_path}")
81
+
82
+ if __name__ == "__main__":
83
+ main()