Update README.md
Browse files
README.md
CHANGED
|
@@ -1,26 +1,65 @@
|
|
| 1 |
-
|
| 2 |
---
|
| 3 |
tags:
|
| 4 |
- autotrain
|
| 5 |
- token-classification
|
|
|
|
| 6 |
base_model: NbAiLab/nb-bert-base
|
| 7 |
-
widget:
|
| 8 |
-
- text: "I love AutoTrain"
|
| 9 |
datasets:
|
| 10 |
- ltgoslo/norne
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
|
|
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
-
- Problem type: Token Classification
|
| 16 |
|
| 17 |
-
##
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- autotrain
|
| 4 |
- token-classification
|
| 5 |
+
- arxiv:2104.09617
|
| 6 |
base_model: NbAiLab/nb-bert-base
|
|
|
|
|
|
|
| 7 |
datasets:
|
| 8 |
- ltgoslo/norne
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
language:
|
| 11 |
+
- 'no'
|
| 12 |
+
- nb
|
| 13 |
+
- nn
|
| 14 |
+
pipeline_tag: token-classification
|
| 15 |
+
library_name: transformers
|
| 16 |
+
inference:
|
| 17 |
+
parameters:
|
| 18 |
+
aggregation_strategy: "first"
|
| 19 |
+
widget:
|
| 20 |
+
- text: Trond Giske har bekreftet på spørsmål fra Adresseavisen at Hansen leide et rom i hans leilighet i Trondheim.
|
| 21 |
+
model-index:
|
| 22 |
+
- name: NbAiLab/nb-bert-base-pos
|
| 23 |
+
results:
|
| 24 |
+
- task:
|
| 25 |
+
name: Token Classification
|
| 26 |
+
type: token-classification
|
| 27 |
+
dataset:
|
| 28 |
+
name: ltgoslo/norne
|
| 29 |
+
type: ltgoslo/norne
|
| 30 |
+
args: bokmaal
|
| 31 |
+
metrics:
|
| 32 |
+
- name: Test Loss
|
| 33 |
+
type: loss
|
| 34 |
+
value: 0.0650700181722641
|
| 35 |
+
- name: Test Precision
|
| 36 |
+
type: precision
|
| 37 |
+
value: 0.985085078075765
|
| 38 |
+
- name: Test Recall
|
| 39 |
+
type: recall
|
| 40 |
+
value: 0.9877826148012919
|
| 41 |
+
- name: Test F1
|
| 42 |
+
type: f1
|
| 43 |
+
value: 0.9864320022438031
|
| 44 |
+
- name: Test Accuracy
|
| 45 |
+
type: accuracy
|
| 46 |
+
value: 0.9861949007001629
|
| 47 |
---
|
| 48 |
+
**Release 1.0** (November 6, 2024)
|
| 49 |
|
| 50 |
+
# nb-bert-base-pos
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
## Description
|
| 53 |
+
NB-Bert base model fine-tuned on the Part of Speech task using the [NorNE dataset](https://huggingface.co/datasets/ltgoslo/norne).
|
| 54 |
|
| 55 |
+
## Usage
|
| 56 |
|
| 57 |
+
```python
|
| 58 |
+
from transformers import pipeline
|
| 59 |
|
| 60 |
+
pos = pipeline("ner", "NbAiLab/nb-bert-base-pos")
|
| 61 |
+
example = "Jeg heter Kjell og bor i Oslo."
|
| 62 |
|
| 63 |
+
pos_results = pos(example)
|
| 64 |
+
print(ner_results)
|
| 65 |
+
```
|