Update README.md
Browse files
README.md
CHANGED
@@ -11,51 +11,22 @@ model-index:
|
|
11 |
results: []
|
12 |
---
|
13 |
|
14 |
-
|
15 |
-
|
|
|
16 |
|
17 |
-
|
|
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
-
## Intended uses & limitations
|
26 |
-
|
27 |
-
More information needed
|
28 |
-
|
29 |
-
## Training and evaluation data
|
30 |
-
|
31 |
-
More information needed
|
32 |
-
|
33 |
-
## Training procedure
|
34 |
-
|
35 |
-
### Training hyperparameters
|
36 |
-
|
37 |
-
The following hyperparameters were used during training:
|
38 |
-
- learning_rate: 1e-06
|
39 |
-
- train_batch_size: 1
|
40 |
-
- eval_batch_size: 8
|
41 |
-
- seed: 42
|
42 |
-
- distributed_type: multi-GPU
|
43 |
-
- num_devices: 8
|
44 |
-
- gradient_accumulation_steps: 4
|
45 |
-
- total_train_batch_size: 32
|
46 |
-
- total_eval_batch_size: 64
|
47 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
-
- lr_scheduler_type: cosine
|
49 |
-
- lr_scheduler_warmup_ratio: 0.03
|
50 |
-
- num_epochs: 1
|
51 |
-
|
52 |
-
### Training results
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
### Framework versions
|
57 |
-
|
58 |
-
- Transformers 4.36.2
|
59 |
-
- Pytorch 2.2.0+cu118
|
60 |
-
- Datasets 2.20.0
|
61 |
-
- Tokenizers 0.15.2
|
|
|
11 |
results: []
|
12 |
---
|
13 |
|
14 |
+
``` python
|
15 |
+
sys_text = """Given the following HTML table, convert it to a descriptive text format.
|
16 |
+
Summarize the content of the table. and then describe the key features or characteristics of the table."""
|
17 |
|
18 |
+
table = """WHO์ ICD-11 'Gaming Disorder' ์ง๋ณ์ฝ๋ํ ์๊ธฐ๋ณ ์ถ์ง๊ฒฝ๊ณผ ๋ด์ฉ
|
19 |
+
<table><tr><td colspan="1" rowspan="1">2014๋
</td><td colspan="1" rowspan="1">ยทWHO ์ ์ ๊ฑด๊ฐ๋ถ ์ค๋
์น์
์๋ฌธ ๊ทธ๋ฃน ํ์์ฒด๋ฅผ ํตํด ๊ฒ์ ๋ฑ ๋์งํธ๋ฏธ๋ ์ด์๊ณผ๋ํ ์ฌ์ฉ์ด ๊ณต์ค๋ณด๊ฑดํ์ ๋ฌธ์ ๋ก ๋์์ด ํ์ํ๋ค๋ ์๊ฒฌ ๋์ถ </td></tr><tr><td colspan="1" rowspan="1">2015๋
</td><td colspan="1" rowspan="1">ยท2์ฐจ TF ํ์ ํตํด Gaming Disorder๋ก ๋ช
๋ช
ํ์ฌ ICD-11 ๋ฑ์ฌ๋ฅผ ์ถ์งํ๊ธฐ๋ก ์ ๋ฌธ๊ฐํฉ์ ๋์ถ </td></tr><tr><td colspan="1" rowspan="1">2016๋
</td><td colspan="1" rowspan="1">ยทICD-11 ๊ฐ์ ์ฌ์ดํธ์ ์ง๋จ๊ธฐ์ค ๊ฒ์ ๋ณด๊ฑด์ ๋ฌธ๊ฐ์ ์๊ฒฌ ์๋ ด ์์ </td></tr><tr><td colspan="1" rowspan="1">2017๋
12์ </td><td colspan="1" rowspan="1">ยทICD-11 ๊ฐ์ ์ ๊ณต๊ฐ </td></tr><tr><td colspan="1" rowspan="1">2018๋
5์ </td><td colspan="1" rowspan="1">ยท71์ฐจ ์ธ๊ณ๋ณด๊ฑด์ดํ์์ ์๊ฑด ์์ ์๊ณ ยท๊ณต๊ฐ๋ ๊ฐ์ ์์ ๋ํ ๊ฐ ํ์๊ตญ์ ๊ฒํ ์๊ฐ ํ๋ณด๋ฅผ ์ํด ICD-11์ฐจ ๊ฐ์ ์ ์์ดํ ์๊ฑด ์์ ์ 1๋
๊ฐ ์ฐ๊ธฐ(2019๋
5์ 72์ฐจ ์ธ๊ณ๋ณด๊ฑด์ดํ) </td></tr><tr><td colspan="1" rowspan="1">2018๋
6์</td><td colspan="1" rowspan="1">ยทICD-11 ์ต์ข
์์ WHO ํํ์ด์ง ๊ฒ์ฌ </td></tr><tr><td colspan="1" rowspan="1">2019๋
5์ </td><td colspan="1" rowspan="1">ยทICD-11 ๊ฐ์ ์ ๋ง์ฅ์ผ์น ํต๊ณผ </td></tr></table>"""
|
20 |
|
21 |
+
messages = [{'role': 'system', 'content': sys_text}, {'role': 'user', 'content': table}]
|
22 |
|
23 |
+
output = pipeline(Conversation(messages))
|
24 |
|
25 |
+
print(output)
|
26 |
+
```
|
27 |
+
* ๊ฒฐ๊ณผ
|
28 |
+
```text
|
29 |
+
ํ๋ WHO์ ICD-11 'Gaming Disorder' ์ง๋ณ์ฝ๋ํ ์๊ธฐ๋ณ ์ถ์ง๊ฒฝ๊ณผ ๋ด์ฉ์ ๊ดํ ํ๋ก 7ํ 2์ด์ด๋ฉฐ 2014๋
๋ถํฐ 2019๋
๊น์ง WHO๊ฐ ๊ฒ์ ๋ฑ ๋์งํธ ๋ฏธ๋์ด์ ๊ณผ๋ํ ์ฌ์ฉ์ด ๊ณต์ค๋ณด๊ฑดํ์ ๋ฌธ์ ๋ก ๋์์ด ํ์ํ๋ค๋ ์๊ฒฌ์ ๋์ถํ๊ณ , ์ด๋ฅผ ๋ฐํ์ผ๋ก 'Gaming Disorder'๋ฅผ ๋ช
๋ช
ํ์ฌ ICD-11์ ๋ฑ์ฌํ๊ธฐ๋ก ํฉ์ํ๋ ๊ณผ์ ์ ๋ณด์ฌ์ค๋ค.
|
30 |
+
1. 2014๋
์ WHO ์ ์ ๊ฑด๊ฐ๋ถ ์ค๋
์น์
์๋ฌธ ๊ทธ๋ฃน ํ์์ฒด์์ ๊ฒ์ ๋ฑ ๋์งํธ ๋ฏธ๋์ด์ ๊ณผ๋ํ ์ฌ์ฉ์ด ๊ณต์ค๋ณด๊ฑดํ์ ๋ฌธ์ ๋ก ๋์์ด ํ์ํ๋ค๋ ์๊ฒฌ์ด ๋์ถ๋์๋ค. 2. 2015๋
์๋ 2์ฐจ TF ํ์๋ฅผ ํตํด 'Gaming Disorder'๋ฅผ ๋ช
๋ช
ํ์ฌ ICD-11์ ๋ฑ์ฌํ๊ธฐ๋ก ์ ๋ฌธ๊ฐ ํฉ์๊ฐ ๋์ถ๋์๋ค. 3. 2019๋
5์์๋ ICD-11 ๊ฐ์ ์์ด ๋ง์ฅ์ผ์น๋ก ํต๊ณผ๋์๋ค.
|
31 |
+
```
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|