Minimum threshold for predictions LayoutLMv3

I am using LayoutLMv3 for document classification. I have 4 labels and each document is semi-structured. I am training the model on the 4 labels. Is there a way I can infer the provided document as Other based on a minimum confidence score or threshold?