Instructions to use syubraj/spanish_bert_based_ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use syubraj/spanish_bert_based_ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="syubraj/spanish_bert_based_ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("syubraj/spanish_bert_based_ner") model = AutoModelForTokenClassification.from_pretrained("syubraj/spanish_bert_based_ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,6 +7,13 @@ tags:
|
|
| 7 |
model-index:
|
| 8 |
- name: fine_tune_bert_output
|
| 9 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -14,7 +21,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
# fine_tune_bert_output
|
| 16 |
|
| 17 |
-
This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
- Loss: 0.3320
|
| 20 |
- Overall Precision: 0.9051
|
|
@@ -25,17 +32,31 @@ It achieves the following results on the evaluation set:
|
|
| 25 |
- Org F1: 0.8663
|
| 26 |
- Per F1: 0.9367
|
| 27 |
|
| 28 |
-
## Model
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
##
|
| 33 |
|
| 34 |
-
|
|
|
|
| 35 |
|
| 36 |
-
#
|
|
|
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
## Training procedure
|
| 41 |
|
|
@@ -73,4 +94,4 @@ The following hyperparameters were used during training:
|
|
| 73 |
- Transformers 4.44.2
|
| 74 |
- Pytorch 2.4.1+cu121
|
| 75 |
- Datasets 3.2.0
|
| 76 |
-
- Tokenizers 0.19.1
|
|
|
|
| 7 |
model-index:
|
| 8 |
- name: fine_tune_bert_output
|
| 9 |
results: []
|
| 10 |
+
language:
|
| 11 |
+
- es
|
| 12 |
+
metrics:
|
| 13 |
+
- precision
|
| 14 |
+
- recall
|
| 15 |
+
- f1
|
| 16 |
+
pipeline_tag: token-classification
|
| 17 |
---
|
| 18 |
|
| 19 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 21 |
|
| 22 |
# fine_tune_bert_output
|
| 23 |
|
| 24 |
+
This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an [wikiann](https://huggingface.co/datasets/unimelb-nlp/wikiann) dataset.
|
| 25 |
It achieves the following results on the evaluation set:
|
| 26 |
- Loss: 0.3320
|
| 27 |
- Overall Precision: 0.9051
|
|
|
|
| 32 |
- Org F1: 0.8663
|
| 33 |
- Per F1: 0.9367
|
| 34 |
|
| 35 |
+
## Model Overview
|
| 36 |
+
This is a BERT-based model fine-tuned on the CoNLL-2003 dataset for Named Entity Recognition (NER). It recognizes the following entities:
|
| 37 |
+
- PER (Person)
|
| 38 |
+
- LOC (Location)
|
| 39 |
+
- ORG (Organization)
|
| 40 |
|
| 41 |
+
## Intended Use
|
| 42 |
+
- Text analysis for structured information extraction.
|
| 43 |
+
- Applications like document parsing, chatbots, or customer service systems.
|
| 44 |
|
| 45 |
+
### Inference Example
|
| 46 |
|
| 47 |
+
```python
|
| 48 |
+
from transformers import pipeline
|
| 49 |
|
| 50 |
+
# Load the model
|
| 51 |
+
ner_pipeline = pipeline("ner", model="syubraj/espanyol_bert_based_ner")
|
| 52 |
|
| 53 |
+
# Example text
|
| 54 |
+
text = "Donald trabaja en Twitter"
|
| 55 |
+
|
| 56 |
+
# Perform inference
|
| 57 |
+
entities = ner_pipeline(text)
|
| 58 |
+
print(entities)
|
| 59 |
+
```
|
| 60 |
|
| 61 |
## Training procedure
|
| 62 |
|
|
|
|
| 94 |
- Transformers 4.44.2
|
| 95 |
- Pytorch 2.4.1+cu121
|
| 96 |
- Datasets 3.2.0
|
| 97 |
+
- Tokenizers 0.19.1
|