Token Classification
Transformers
TensorBoard
Safetensors
MLX
Norwegian
Norwegian Bokmål
Norwegian Nynorsk
bert
Trained with AutoTrain
Eval Results (legacy)
Instructions to use NbAiLab/nb-bert-base-pos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NbAiLab/nb-bert-base-pos with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="NbAiLab/nb-bert-base-pos")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("NbAiLab/nb-bert-base-pos") model = AutoModelForTokenClassification.from_pretrained("NbAiLab/nb-bert-base-pos") - MLX
How to use NbAiLab/nb-bert-base-pos with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir nb-bert-base-pos NbAiLab/nb-bert-base-pos
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
Update README.md
Browse files
README.md
CHANGED
|
@@ -57,7 +57,7 @@ NB-Bert base model fine-tuned on the Part of Speech task using the [NorNE datase
|
|
| 57 |
```python
|
| 58 |
from transformers import pipeline
|
| 59 |
|
| 60 |
-
pos = pipeline("
|
| 61 |
example = "Jeg heter Kjell og bor i Oslo."
|
| 62 |
|
| 63 |
pos_results = pos(example)
|
|
|
|
| 57 |
```python
|
| 58 |
from transformers import pipeline
|
| 59 |
|
| 60 |
+
pos = pipeline("token-classification", "NbAiLab/nb-bert-base-pos")
|
| 61 |
example = "Jeg heter Kjell og bor i Oslo."
|
| 62 |
|
| 63 |
pos_results = pos(example)
|