Commit
·
735fa23
1
Parent(s):
8a3296f
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,4 +5,23 @@ widget:
|
|
| 5 |
example_title: سن نجورسن؟
|
| 6 |
- text: من سنی سویرم.
|
| 7 |
example_title: من سنی سویرم.
|
| 8 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
example_title: سن نجورسن؟
|
| 6 |
- text: من سنی سویرم.
|
| 7 |
example_title: من سنی سویرم.
|
| 8 |
+
---
|
| 9 |
+
# POS Tagger
|
| 10 |
+
Type: Fine-tuned BERT-based Part-of-Speech (POS) tagging model
|
| 11 |
+
Description: This model has been fine-tuned using [AzerBERT](https://huggingface.co/language-ml-lab/AzerBert) for part-of-speech tagging tasks in Iranian Azerbaijani text. It can be used to annotate text with 11 POS tags, which is essential for various downstream NLP applications.
|
| 12 |
+
|
| 13 |
+
## How to use
|
| 14 |
+
```python
|
| 15 |
+
# Use a pipeline as a high-level helper
|
| 16 |
+
from transformers import pipeline
|
| 17 |
+
|
| 18 |
+
pipe = pipeline("token-classification", model="language-ml-lab/postagger-azb")
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
# Load model directly
|
| 23 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 24 |
+
|
| 25 |
+
tokenizer = AutoTokenizer.from_pretrained("language-ml-lab/postagger-azb")
|
| 26 |
+
model = AutoModelForTokenClassification.from_pretrained("language-ml-lab/postagger-azb")
|
| 27 |
+
```
|