Update README.md
Browse files
README.md
CHANGED
@@ -9,4 +9,17 @@ pipeline_tag: token-classification
|
|
9 |
base_model:
|
10 |
- hezarai/roberta-base-fa
|
11 |
---
|
12 |
-
ParsRoBERTa model trained on the [LSCP-500k dataset](https://huggingface.co/datasets/hezarai/lscp-pos-500k) for part of speech tagging.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
base_model:
|
10 |
- hezarai/roberta-base-fa
|
11 |
---
|
12 |
+
ParsRoBERTa model trained on the [LSCP-500k dataset](https://huggingface.co/datasets/hezarai/lscp-pos-500k) for part of speech tagging.
|
13 |
+
|
14 |
+
### Usage
|
15 |
+
```
|
16 |
+
pip install hezar
|
17 |
+
```
|
18 |
+
```python
|
19 |
+
from hezar.models import Model
|
20 |
+
|
21 |
+
pos_model = Model.load("hezarai/roberta-fa-pos-lscp-500k")
|
22 |
+
inputs = ["کتابخانه هوش مصنوعی هزار"]
|
23 |
+
pos_outputs = pos_model.predict(inputs)
|
24 |
+
print(pos_outputs)
|
25 |
+
```
|