lunarlist/tagging_thai
Viewer • Updated • 131k • 37
How to use lunarlist/pos_thai with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="lunarlist/pos_thai") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("lunarlist/pos_thai")
model = AutoModelForTokenClassification.from_pretrained("lunarlist/pos_thai")This model is a fine-tuned version of Geotrend/bert-base-th-cased on an unknown dataset. It achieves the following results on the evaluation set:
This model is train on thai pos_tag datasets to help with pos tagging in Thai language.
from transformers import AutoModelForTokenClassification, AutoTokenizer, TokenClassificationPipeline
model = AutoModelForTokenClassification.from_pretrained("lunarlist/pos_thai")
tokenizer = AutoTokenizer.from_pretrained("lunarlist/pos_thai")
pipeline = TokenClassificationPipeline(model=model, tokenizer=tokenizer, grouped_entities=True)
outputs = pipeline("ภาษาไทย ง่าย นิดเดียว")
print(outputs)
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1124 | 1.0 | 7344 | 0.1048 | 0.9505 | 0.9478 | 0.9492 | 0.9670 |
| 0.0866 | 2.0 | 14688 | 0.0935 | 0.9525 | 0.9540 | 0.9533 | 0.9693 |
Base model
Geotrend/bert-base-th-cased