Run this model with HF Jobs
Run samirmsallem/gbert-base-definitions_ner on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/samirmsallem/gbert-base-definitions_ner. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/samirmsallem/gbert-base-definitions_ner on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use samirmsallem/gbert-base-definitions_ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use samirmsallem/gbert-base-definitions_ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="samirmsallem/gbert-base-definitions_ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("samirmsallem/gbert-base-definitions_ner") model = AutoModelForTokenClassification.from_pretrained("samirmsallem/gbert-base-definitions_ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
NER model for definition component recognition in German scientific texts
gbert-base-definitions_ner is a NER model (token classification) in the scientific domain in German, finetuned from the model gbert-base. It was trained using a custom annotated dataset of around 10,000 training and 2,000 test examples containing definition- and non-definition-related sentences from wikipedia articles in german.
The model is specifically designed to recognize and classify components of definitions, using the following entity labels:
- DF: Definiendum (the term being defined)
- VF: Definitor (the verb or phrase introducing the definition)
- GF: Definiens (the explanation or meaning)
Training was conducted using a standard NER objective. The model achieves an F1 score of approximately 83% on the evaluation set.
Here are the overall final metrics on the test dataset after 5 epochs of training:
- f1: 0.8314215362440694
- precision: 0.8272977172224214
- recall: 0.8355866731047803
- loss: 0.28708234429359436
Model Performance Comparision on wiki_definitions_de_multitask:
| Model | Precision | Recall | F1 Score | Eval Samples per Second | Epoch |
|---|---|---|---|---|---|
| distilbert-base-multilingual-cased-definitions_ner | 80.76 | 81.74 | 81.25 | 457.53 | 5.0 |
| scibert_scivocab_cased-definitions_ner | 80.54 | 82.11 | 81.32 | 236.61 | 4.0 |
| GottBERT_base_best-definitions_ner | 82.98 | 82.81 | 82.90 | 272.26 | 5.0 |
| xlm-roberta-base-definitions_ner | 81.90 | 83.35 | 82.62 | 241.21 | 5.0 |
| gbert-base-definitions_ner | 82.73 | 83.56 | 83.14 | 278.87 | 5.0 |
| gbert-large-definitions_ner | 80.67 | 83.36 | 81.99 | 109.83 | 2.0 |
- Downloads last month
- 132
Model tree for samirmsallem/gbert-base-definitions_ner
Base model
deepset/gbert-baseDataset used to train samirmsallem/gbert-base-definitions_ner
Collection including samirmsallem/gbert-base-definitions_ner
Evaluation results
- F1 on samirmsallem/wiki_def_de_multitaskself-reported0.831
- Precision on samirmsallem/wiki_def_de_multitaskself-reported0.827
- Recall on samirmsallem/wiki_def_de_multitaskself-reported0.836
- Loss on samirmsallem/wiki_def_de_multitaskself-reported0.287