Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ tags:
|
|
6 |
- bartpho
|
7 |
license: apache-2.0
|
8 |
datasets:
|
9 |
-
- VN-HSD
|
10 |
metrics:
|
11 |
- accuracy
|
12 |
- f1
|
@@ -58,8 +58,8 @@ Fine‑tuned from [`vinai/bartpho-syllable`](https://huggingface.co/vinai/bartph
|
|
58 |
```python
|
59 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
60 |
|
61 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
62 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
63 |
|
64 |
text = "Anh ta đang lan truyền những lời lẽ căm ghét."
|
65 |
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
|
|
|
6 |
- bartpho
|
7 |
license: apache-2.0
|
8 |
datasets:
|
9 |
+
- visolex/VN-HSD
|
10 |
metrics:
|
11 |
- accuracy
|
12 |
- f1
|
|
|
58 |
```python
|
59 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
60 |
|
61 |
+
tokenizer = AutoTokenizer.from_pretrained("visolex/bartpho-hsd")
|
62 |
+
model = AutoModelForSequenceClassification.from_pretrained("visolex/bartpho-hsd")
|
63 |
|
64 |
text = "Anh ta đang lan truyền những lời lẽ căm ghét."
|
65 |
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
|