Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- fa
|
4 |
+
library_name: hezar
|
5 |
+
tags:
|
6 |
+
- fill-mask
|
7 |
+
- hezar
|
8 |
+
pipeline_tag: fill-mask
|
9 |
+
---
|
10 |
+
A DistilBERT model for mask filling. The base DistilBERT model is initialized from https://huggingface.co/HooshvareLab/distilbert-fa-zwnj-base.
|
11 |
+
|
12 |
+
## Usage
|
13 |
+
```
|
14 |
+
pip install hezar
|
15 |
+
```
|
16 |
+
```python
|
17 |
+
from hezar.models import Model
|
18 |
+
|
19 |
+
model = Model.load("hezarai/distilbert-fa-mask-filling")
|
20 |
+
inputs = ["ایشالا از [MASK] شروع میکنم"]
|
21 |
+
outputs = model.predict(inputs)
|
22 |
+
print(outputs)
|
23 |
+
```
|