Downloads · 30 days
3
10% of all-time downloads
AnirudhLanka2002/finguard_distilBERT_37500
finguard_distilBERT_37500 is a token classification model from AnirudhLanka2002. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
The dataset used in this project is obtained from the Hugging Face library, named nlpaueb/finer-139. It contains annotated data for named entity recognition tasks.
Downloads · 30 days
3
10% of all-time downloads
All-time downloads
30
Public
Parameters
65.4M
785 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt523 MB · 67%
From the Hugging Face model README
The dataset used in this project is obtained from the Hugging Face library, named nlpaueb/finer-139. It contains annotated data for named entity recognition tasks.
Due to the large size of the dataset, we reduce it to a manageable size to achieve good accuracy during training. This step involves selecting a subset of the data for training, validation, and testing.
This section involves mapping indices to NER tag names and vice versa. These mappings are essential for converting between numerical indices and string representations of NER tags.
Here, we convert the encoded NER tags to their string representations to facilitate better understanding and interpretation of the data.
We load a pre-trained tokenizer, DistilBERT, from the Hugging Face Transformers library. The tokenizer is essential for tokenizing the input text data, which is a crucial step in NER tasks.
This section describes the process of aligning labels with tokens in tokenized sequences. It ensures that each label corresponds accurately to its respective token in the tokenized input sequence.
We use a DataCollatorForTokenClassification to create batches of tokenized input data for token classification tasks. This step prepares the data for training and evaluation of NER models.
Here, we install and use the seqeval library to compute evaluation metrics such as precision, recall, F1 score, and accuracy for evaluating the performance of NER models.
We set up a data pipeline to save all weights and model parameters in a folder for deployment on Hugging Face.
We define the NER model using AutoModelForTokenClassification from the Hugging Face Transformers library. The model is initialized with pre-trained weights and configured for token classification tasks.
This section involves setting up training arguments such as learning rate, number of training epochs, and weight decay for training the NER model.
We train the NER model using the defined model, training arguments, data collator, tokenizer, and evaluation metrics.
The final section concludes the project, mentioning the training duration, achieved accuracy, and deployment on Hugging Face. It also outlines any further steps or observations.