KoichiYasuoka's picture
bug fix
1f8b4db
---
language:
- "th"
tags:
- "thai"
- "token-classification"
- "pos"
- "dependency-parsing"
base_model: KoichiYasuoka/camembert-thai-base
datasets:
- "universal_dependencies"
license: "apache-2.0"
pipeline_tag: "token-classification"
widget:
- text: "หลายหัวดีกว่าหัวเดียว"
---
# camembert-thai-base-upos
## Model Description
This is a CamemBERT model pre-trained on Thai texts for POS-tagging and dependency-parsing, derived from [camembert-thai-base](https://huggingface.co/KoichiYasuoka/camembert-thai-base). Every word is tagged by [UPOS](https://universaldependencies.org/u/pos/) (Universal Part-Of-Speech).
## How to Use
```py
from transformers import pipeline
nlp=pipeline("token-classification","KoichiYasuoka/camembert-thai-base-upos",aggregation_strategy="simple")
print(nlp("หลายหัวดีกว่าหัวเดียว"))
```
or
```
import esupar
nlp=esupar.load("KoichiYasuoka/camembert-thai-base-upos")
print(nlp("หลายหัวดีกว่าหัวเดียว"))
```
## See Also
[esupar](https://github.com/KoichiYasuoka/esupar): Tokenizer POS-tagger and Dependency-parser with BERT/RoBERTa/DeBERTa models