Healthcare, Medcat, NLP, Hugging Face, Bert.
batch the data and pad where needed, we use the CollateAndPadNER from MedCAT.datasets , and for the metrics, we write a simple function that prints a token classification report. Now that all is ready we create an instance of the Trainer from 🤗 and run the training: trainer = Trainer( model=model,