ehdwns1516
commited on
Commit
•
5ebed1f
1
Parent(s):
9e4703e
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# klue-roberta-base-sae
|
2 |
+
|
3 |
+
* This model trained with Korean dataset.
|
4 |
+
* Input sentence what you want to grasp intent.
|
5 |
+
* You can use English, but don't expect accuracy.
|
6 |
+
|
7 |
+
klue-roberta-base-kornli DEMO: [Ainize DEMO](https://main-klue-roberta-base-kornli-ehdwns1516.endpoint.ainize.ai/)
|
8 |
+
|
9 |
+
klue-roberta-base-kornli API: [Ainize API](https://ainize.web.app/redirect?git_repo=https://github.com/ehdwns1516/KLUE-RoBERTa-base_sae)
|
10 |
+
|
11 |
+
## Overview
|
12 |
+
|
13 |
+
Language model: [klue/roberta-base](https://huggingface.co/klue/roberta-base)
|
14 |
+
|
15 |
+
Language: Korean
|
16 |
+
|
17 |
+
Training data: [kor_sae](https://huggingface.co/datasets/kor_sae)
|
18 |
+
|
19 |
+
Eval data: [kor_sae](https://huggingface.co/datasets/kor_sae)
|
20 |
+
|
21 |
+
Code: See [Ainize Workspace](https://ainize.ai/workspace/create?imageId=hnj95592adzr02xPTqss&git=https://github.com/ehdwns1516/klue-roberta-base_finetunning_exsd)
|
22 |
+
|
23 |
+
## Usage
|
24 |
+
## In Transformers
|
25 |
+
|
26 |
+
```
|
27 |
+
from transformers import AutoTokenizer, pipeline
|
28 |
+
|
29 |
+
tokenizer = AutoTokenizer.from_pretrained("ehdwns1516/klue-roberta-base-sae")
|
30 |
+
|
31 |
+
classifier = pipeline(
|
32 |
+
"text-classification",
|
33 |
+
model="ehdwns1516/klue-roberta-base-kornli",
|
34 |
+
return_all_scores=True,
|
35 |
+
)
|
36 |
+
|
37 |
+
context = "sentence what you want to grasp intent"
|
38 |
+
|
39 |
+
result = dict()
|
40 |
+
result[0] = classifier(context)[0]
|
41 |
+
```
|