Agra2002 commited on
Commit
c812c14
·
1 Parent(s): 183f1f5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -40
README.md CHANGED
@@ -1,40 +0,0 @@
1
- ---
2
- language:
3
- - en
4
- license: apache-2.0
5
- ---
6
-
7
- ## Evaluation Results
8
-
9
- The model was trained for 10 epochs and the best model was loaded at the end.
10
-
11
- | Epoch | Training Loss | Validation Loss | Accuracy | F1 | Precision | Recall |
12
- | ----- | ------------- | --------------- | -------- | -------- | --------- | -------- |
13
- | 1 | 0.563500 | 0.420457 | 0.796992 | 0.626728 | 0.680000 | 0.581197 |
14
- | 2 | 0.293600 | 0.281360 | 0.884712 | 0.811475 | 0.779528 | 0.846154 |
15
- | 3 | 0.163000 | 0.267922 | 0.904762 | 0.844262 | 0.811024 | 0.880342 |
16
- | 4 | 0.090200 | 0.335411 | 0.899749 | 0.838710 | 0.793893 | 0.888889 |
17
- | 5 | 0.065200 | 0.462526 | 0.897243 | 0.835341 | 0.787879 | 0.888889 |
18
- | 6 | 0.039200 | 0.423001 | 0.912281 | 0.859438 | 0.810606 | 0.914530 |
19
- | 7 | 0.025300 | 0.452100 | 0.912281 | 0.859438 | 0.810606 | 0.914530 |
20
- | 8 | 0.010400 | 0.525200 | 0.914787 | 0.855932 | 0.848739 | 0.863248 |
21
- | 9 | 0.007100 | 0.513585 | 0.909774 | 0.850000 | 0.829268 | 0.871795 |
22
- | 10 | 0.007200 | 0.537254 | 0.917293 | 0.864198 | 0.833333 | 0.897436 |
23
-
24
- ## How to Use
25
-
26
- ### As Text Classifier
27
-
28
- ```python
29
- from transformers import pipeline
30
-
31
- pretrained_name = "w11wo/indonesian-roberta-base-indolem-sentiment-classifier-fold-0"
32
-
33
- nlp = pipeline(
34
- "sentiment-analysis",
35
- model=pretrained_name,
36
- tokenizer=pretrained_name
37
- )
38
-
39
- nlp("Pelayanan hotel ini sangat baik.")
40
- ```