Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: tr
|
3 |
+
widget:
|
4 |
+
- text: "Mustafa Kemal Atatürk 19 Mayıs 1919'da Samsun'a çıktı."
|
5 |
+
---
|
6 |
+
|
7 |
+
# Turkish Named Entity Recognition (NER) Quantized Model
|
8 |
+
|
9 |
+
This model is the dynamically quantized version of the model
|
10 |
+
"akdeniz27/bert-base-turkish-cased-ner"
|
11 |
+
|
12 |
+
# How to use:
|
13 |
+
```
|
14 |
+
model_onnx = ORTModelForTokenClassification.from_pretrained("akdeniz27/bert-base-turkish-cased-ner-quantized", file_name="model_quantized.onnx")
|
15 |
+
tokenizer = AutoTokenizer.from_pretrained("akdeniz27/bert-base-turkish-cased-ner-quantized")
|
16 |
+
ner = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="first")
|
17 |
+
ner("<your text here>")
|
18 |
+
```
|
19 |
+
Pls refer "https://github.com/akdeniz27/dynamic_quantization/blob/main/Dynamic_Quantization.ipynb" for details of quantization.
|