Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,43 +1,52 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
4 |
-
# ์๋ฃ ์๋ด ์ฑ๋ด
|
5 |
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
- ์ฆ์ ๊ธฐ๋ฐ ์งํ ๋งค์นญ
|
10 |
-
- ์ฐ๋ น๋๋ณ ๋ง์ถค ์ ๋ณด ์ ๊ณต
|
11 |
-
- ์์ฝํ ์ ๋ณด ์ ๊ณต
|
12 |
-
- ์์ฌ ์ง๋ฃ ํ์ ์ฌ๋ถ ์๋ด
|
13 |
|
14 |
-
##
|
15 |
-
|
16 |
-
|
17 |
-
```
|
18 |
|
19 |
-
##
|
20 |
```python
|
21 |
-
|
22 |
-
|
23 |
-
# ์ฑ๋ด ์ธ์คํด์ค ์์ฑ
|
24 |
-
chatbot = SimplifiedMedicalChatbot("๋ฐ์ดํฐํ์ผ๊ฒฝ๋ก.xlsx")
|
25 |
-
|
26 |
-
# ์์ฒญ ์ฒ๋ฆฌ
|
27 |
-
request_data = {
|
28 |
-
"userId": "user1",
|
29 |
-
"bornYear": "1990",
|
30 |
-
"sex": "male",
|
31 |
-
"pain": "๋ํต",
|
32 |
-
"description": "ํ์ชฝ ๋จธ๋ฆฌ๊ฐ ์ํ๊ณ ๋ฉ์ค๊บผ์์",
|
33 |
-
"mediTF": True
|
34 |
}
|
|
|
35 |
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
38 |
```
|
39 |
|
40 |
-
##
|
41 |
-
-
|
42 |
-
-
|
43 |
-
-
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language: ko
|
3 |
+
tags:
|
4 |
+
- medical
|
5 |
+
- bert
|
6 |
+
- korean
|
7 |
+
license: apache-2.0
|
8 |
+
datasets:
|
9 |
+
- other
|
10 |
+
model-index:
|
11 |
+
- name: Medical Chatbot
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Medical Text Classification
|
15 |
+
type: text-classification
|
16 |
+
metrics:
|
17 |
+
- type: accuracy
|
18 |
+
value: 0.95
|
19 |
+
name: Validation Accuracy
|
20 |
---
|
|
|
21 |
|
22 |
+
# Medical Chatbot Model
|
23 |
|
24 |
+
This model is a fine-tuned version of KLUE BERT base for medical symptom classification.
|
|
|
|
|
|
|
|
|
25 |
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
The model uses KLUE BERT base architecture fine-tuned on a custom medical dataset. It performs classification for various diseases and provides treatment recommendations.
|
|
|
29 |
|
30 |
+
## Input Format
|
31 |
```python
|
32 |
+
{
|
33 |
+
"text": "๋ํต์ด ์ฌํ๊ณ ๋ฉ์ค๊บผ์์"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
+
```
|
36 |
|
37 |
+
## Output Format
|
38 |
+
```python
|
39 |
+
{
|
40 |
+
"label": "ํธ๋ํต",
|
41 |
+
"score": 0.95
|
42 |
+
}
|
43 |
```
|
44 |
|
45 |
+
## Training procedure
|
46 |
+
- Epochs: 5
|
47 |
+
- Batch size: 8
|
48 |
+
- Learning rate: 2e-5
|
49 |
+
- Maximum sequence length: 128
|
50 |
+
|
51 |
+
## Limitations and bias
|
52 |
+
This model should be used for reference only and not as a substitute for professional medical advice.
|