Text Classification
Transformers
PyTorch
Safetensors
Indonesian
albert
indobert
indobenchmark
indonlu
Instructions to use tyqiangz/indobert-lite-large-p2-smsa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tyqiangz/indobert-lite-large-p2-smsa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tyqiangz/indobert-lite-large-p2-smsa")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tyqiangz/indobert-lite-large-p2-smsa") model = AutoModelForSequenceClassification.from_pretrained("tyqiangz/indobert-lite-large-p2-smsa") - Notebooks
- Google Colab
- Kaggle
Fixed another formatting error in README.md, text didnt fix into box on HuggingFace page
Browse files
README.md
CHANGED
|
@@ -20,7 +20,8 @@ Natural Language Understanding](https://arxiv.org/pdf/2009.05387.pdf).
|
|
| 20 |
```python
|
| 21 |
from transformers import pipeline
|
| 22 |
classifier = pipeline("text-classification",
|
| 23 |
-
model='tyqiangz/indobert-lite-large-p2-smsa',
|
|
|
|
| 24 |
text = "Penyakit koronavirus 2019"
|
| 25 |
prediction = classifier(text)
|
| 26 |
prediction
|
|
|
|
| 20 |
```python
|
| 21 |
from transformers import pipeline
|
| 22 |
classifier = pipeline("text-classification",
|
| 23 |
+
model='tyqiangz/indobert-lite-large-p2-smsa',
|
| 24 |
+
return_all_scores=True)
|
| 25 |
text = "Penyakit koronavirus 2019"
|
| 26 |
prediction = classifier(text)
|
| 27 |
prediction
|