google/xtreme
Viewer • Updated • 2.77M • 22.8k • 116
How to use Sultannn/bert-base-ft-ner-xtreme-id with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Sultannn/bert-base-ft-ner-xtreme-id") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Sultannn/bert-base-ft-ner-xtreme-id")
model = AutoModelForTokenClassification.from_pretrained("Sultannn/bert-base-ft-ner-xtreme-id")This model is a fine-tuned version of bert-base-multilingual-uncased on an xtreme PAN-X.id for NER downstream task.
| Dataset | # Examples |
|---|---|
| Train | 35 K |
| Validation | 5 K |
| Metrics | Score |
|---|---|
| Accuracy | 97.18 |
| F1 | 93.26 |
| Precision | 92.36 |
| Recall | 94.18 |
# pipeline example
from transformers import pipeline
model_checkpoint = "Sultannn/bert-base-ft-ner-xtreme-id"
token_classifier = pipeline(
"token-classification", model=model_checkpoint, aggregation_strategy="simple")
text = "nama saya Tono saya bekerja di Facebook dan tinggal di Jawa"
token_classifier(text)
Made with ♥ in 🌏