2025
Software  Open Access

Named entity recognition with BERT

Esuli A.

Named entity recognition  Machine Learning  Transformer 

Two scripts for training and testing BERT-like pretrained models on Named Entity Recognition (NER) tasks. Train (finetune) a BERT-based NER model (from Hugging Face or a model stored on your computer) on a dataset formatted in CoNLL-like format. Use the trained model to predict NER tags on test data, getting an evaluation report, or new data, getting a tagged version the data. The scripts handle sequences longer than the maximum length defined by the models by splitting the sequences in multiple chunks with a context overlap.


Metrics



Back to previous page
BibTeX entry
@misc{oai:iris.cnr.it:20.500.14243/536705,
	title = {Named entity recognition with BERT},
	author = {Esuli A.},
	doi = {10.5281/zenodo.14760697},
	year = {2025}
}

Future Artificial Intelligence Research
Future Artificial Intelligence Research

Italian Strengthening of the ESFRI RI RESILIENCE
Italian Strengthening of the ESFRI RI RESILIENCE

SoBigData.it
SoBigData.it