mahsaamani
commited on
Commit
•
ee93bb2
1
Parent(s):
af63e8e
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ku
|
4 |
+
metrics:
|
5 |
+
- perplexity
|
6 |
+
pipeline_tag: fill-mask
|
7 |
+
---
|
8 |
+
|
9 |
+
# KurdBERT
|
10 |
+
- Type: BERT-based language model transformer
|
11 |
+
- Description: KurdBERT is a pre-trained language model specifically tailored for the Kurdish languages (Sorani and Kurmanji). It can be used for various NLP tasks, including text classification, named entity recognition, and more.
|
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("fill-mask", model="language-ml-lab/KurdBert")
|
19 |
+
```
|
20 |
+
|
21 |
+
```python
|
22 |
+
# Load model directly
|
23 |
+
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
24 |
+
|
25 |
+
tokenizer = AutoTokenizer.from_pretrained("language-ml-lab/KurdBert")
|
26 |
+
model = AutoModelForMaskedLM.from_pretrained("language-ml-lab/KurdBert")
|
27 |
+
```
|