File size: 1,080 Bytes
3d88ec5
 
ce58aca
 
 
 
 
 
 
3d88ec5
ce58aca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
license: apache-2.0
language:
- ko
metrics:
- sklearn-accuracy_score
datasets:
- kor_3i4k
pipeline_tag: text-classification
---

# intent-classification-korean

fine-tuned for 'klue/roberta-base'
used data : 'kor_3i4k'

## How to Get Started with the Model

```python
from transformers import TextClassificationPipeline
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_path = "gg4ever/intent-classifcation-korean"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForSequenceClassification.from_pretrained(model_path)

text_classifier = TextClassificationPipeline(
    tokenizer=tokenizer, 
    model=model.to('cpu'), 
    return_all_scores=True
)

# predict
text = "이름이 뭐에요?"

preds_list = text_classifier(text)
preds_list

```

### Training Hyperparameters

|hyperparameters|values|
|-----------------------------|-------|
|predict_with_generate|True|
|evaluation_strategy|"steps"|
|per_device_train_batch_size|32|
|per_device_eval_batch_size|32|
|num_train_epochs|3|
|learning_rate|4e-5|
|warmup_steps|1000|