Downloads · 30 days
4
8% of all-time downloads
l52mas/L52-PosTag-XmlRoberta-BHD
L52-PosTag-XmlRoberta-BHD is a token classification model from l52mas. Use it when you need labels on individual words, such as names. It is set up for transformers.
L52-PosTag-XmlRoberta is a token classification model, trained in the Spanish language.
Downloads · 30 days
4
8% of all-time downloads
All-time downloads
49
Public
Parameters
277M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
L52-PosTag-XmlRoberta is a token classification model, trained in the Spanish language.
As the model is trained with the Ancora corpus, the tags used are listed as follows:
The task performed by the model works alongside the XLMRobertaTokenizerFast tokenizer, which is fitted with the xlm-Roberta base model to help us obtain the tokenized version of our corpus. Once tokenization is done, the model will classify each word in our sentences into a specific part of speech (17 categories). For further analysis and comprehension, a small algorithm is included at the end to obtain the classification with the original POS labels.
El siguiente repositorio contiene el notebook donde fue dessarrollado el modelo
POS tagging acts as an initial part of the process in multiple NLP tasks. It is crucial for:
The training is conducted in epochs, with the help of torch DataLoaders. An early stopping process is also added, and the best model is saved. The AdamW optimizer is used, and CrossEntropyLoss is employed as the loss function.
The hyperparameters used are:
For training purposes, the Ancora corpus was chosen. Given the format of the corpus, a few pre-processing tasks are needed. All the sentences and words in Ancora have the necessary information, making it easy to create the lists of words that XLMRobertaTokenizerFast receives as input. Simultaneously, the list of tags is crafted. Once we have tokenized the sentences, the tags need to be realigned according to the new dimensions of the lists. The last steps related to processing the data are more related to optimization and good practices, which include obtaining Datasets and DataLoaders to achieve batch loading.
After testing, an F1 score metric of 0.97 was obtained. This high score indicates that the model performs very well in accurately tagging parts of speech in the Spanish language. The F1 score combines both precision and recall, providing a balanced measure of the model's accuracy. The dataset used for evaluation was pre-split, ensuring that the model's performance was thoroughly assessed on unseen data.