Confidence score for NER using BERT

How to calculate the confidence score for each identified and extracted entity for custom NER model built on bert-base-cased?