Instructions to use RGarrido03/modernbert-conll2003-ner-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RGarrido03/modernbert-conll2003-ner-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="RGarrido03/modernbert-conll2003-ner-large")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("RGarrido03/modernbert-conll2003-ner-large") model = AutoModelForTokenClassification.from_pretrained("RGarrido03/modernbert-conll2003-ner-large") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -62,7 +62,7 @@ This model is intended for identifying entities (Persons, Organizations, Locatio
|
|
| 62 |
```python
|
| 63 |
from transformers import pipeline
|
| 64 |
|
| 65 |
-
ner_pipeline = pipeline("ner", model="RGarrido03/modernbert-conll2003-ner", aggregation_strategy="simple")
|
| 66 |
text = "The CERN headquarters are located in Geneva, Switzerland."
|
| 67 |
results = ner_pipeline(text)
|
| 68 |
|
|
@@ -96,26 +96,26 @@ The following hyperparameters were used during training:
|
|
| 96 |
|
| 97 |
| Metric | Value |
|
| 98 |
| :------------ | :----- |
|
| 99 |
-
| **Accuracy** | 0.
|
| 100 |
-
| **F1 Score** | 0.
|
| 101 |
-
| **Precision** | 0.
|
| 102 |
-
| **Recall** | 0.
|
| 103 |
-
| **Loss** | 0.
|
| 104 |
|
| 105 |
## Evaluation on Validation Split
|
| 106 |
|
| 107 |
| Metric | Value |
|
| 108 |
| :------------ | :----- |
|
| 109 |
-
| **Accuracy** | 0.
|
| 110 |
-
| **F1 Score** | 0.
|
| 111 |
-
| **Precision** | 0.
|
| 112 |
-
| **Recall** | 0.
|
| 113 |
-
| **Loss** | 0.
|
| 114 |
|
| 115 |
## Environmental Impact
|
| 116 |
|
| 117 |
-
- **Runtime:** ~
|
| 118 |
-
- **Hardware:** MacBook Pro, M5 Pro 24GB
|
| 119 |
|
| 120 |
## Citation
|
| 121 |
|
|
|
|
| 62 |
```python
|
| 63 |
from transformers import pipeline
|
| 64 |
|
| 65 |
+
ner_pipeline = pipeline("ner", model="RGarrido03/modernbert-conll2003-ner-large", aggregation_strategy="simple")
|
| 66 |
text = "The CERN headquarters are located in Geneva, Switzerland."
|
| 67 |
results = ner_pipeline(text)
|
| 68 |
|
|
|
|
| 96 |
|
| 97 |
| Metric | Value |
|
| 98 |
| :------------ | :----- |
|
| 99 |
+
| **Accuracy** | 0.9743 |
|
| 100 |
+
| **F1 Score** | 0.8969 |
|
| 101 |
+
| **Precision** | 0.8834 |
|
| 102 |
+
| **Recall** | 0.9108 |
|
| 103 |
+
| **Loss** | 0.1762 |
|
| 104 |
|
| 105 |
## Evaluation on Validation Split
|
| 106 |
|
| 107 |
| Metric | Value |
|
| 108 |
| :------------ | :----- |
|
| 109 |
+
| **Accuracy** | 0.9880 |
|
| 110 |
+
| **F1 Score** | 0.9456 |
|
| 111 |
+
| **Precision** | 0.9388 |
|
| 112 |
+
| **Recall** | 0.9525 |
|
| 113 |
+
| **Loss** | 0.0484 |
|
| 114 |
|
| 115 |
## Environmental Impact
|
| 116 |
|
| 117 |
+
- **Runtime:** ~44 minutes
|
| 118 |
+
- **Hardware:** MacBook Pro, M5 Pro 24GB
|
| 119 |
|
| 120 |
## Citation
|
| 121 |
|