Update README.md
Browse files
README.md
CHANGED
@@ -30,17 +30,35 @@ This model is a fine-tuned version of [paust/pko-t5-large](https://huggingface.c
|
|
30 |
|
31 |
## Model description
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
### Training hyperparameters
|
46 |
|
@@ -56,9 +74,6 @@ The following hyperparameters were used during training:
|
|
56 |
- lr_scheduler_warmup_ratio: 0.06
|
57 |
- num_epochs: 8
|
58 |
|
59 |
-
### Training results
|
60 |
-
|
61 |
-
|
62 |
|
63 |
### Framework versions
|
64 |
|
|
|
30 |
|
31 |
## Model description
|
32 |
|
33 |
+
|의도 |개체 |
|
34 |
+
|:------:|:-----------|
|
35 |
+
| 일상대화 | |
|
36 |
+
| 전화연결 |대상|
|
37 |
+
| 장소안내 |장소, 대상|
|
38 |
+
| 날씨예보 |날짜, 장소, 대상, 시간, 조건|
|
39 |
+
| 화물추천 |날짜, 시간, 상차, 하차, 기준|
|
40 |
+
| 긍부정 |긍정, 부정, 중립|
|
41 |
+
|
42 |
+
## How to use
|
43 |
+
|
44 |
+
```python
|
45 |
+
import requests
|
46 |
+
|
47 |
+
API_URL = "https://api-inference.huggingface.co/models/yeye776/t5-large-finetuned-multi_v2"
|
48 |
+
headers = {"Authorization": "Bearer hf_key"}
|
49 |
+
|
50 |
+
def query(payload):
|
51 |
+
response = requests.post(API_URL, headers=headers, json=payload)
|
52 |
+
return response.json()
|
53 |
+
|
54 |
+
prompt = "브로캐리에 관련된 이용자의 대화인데 분류 및 인식 해줘! :"
|
55 |
+
input = "내일 심야 상차지가 분당인 화물 추천해줘"
|
56 |
+
|
57 |
+
output = query({
|
58 |
+
"inputs": prompt+input,
|
59 |
+
"options":{"wait_for_model":True}
|
60 |
+
})
|
61 |
+
```
|
62 |
|
63 |
### Training hyperparameters
|
64 |
|
|
|
74 |
- lr_scheduler_warmup_ratio: 0.06
|
75 |
- num_epochs: 8
|
76 |
|
|
|
|
|
|
|
77 |
|
78 |
### Framework versions
|
79 |
|