F-PABEE: Flexible-patience-based Early Exiting for Single-label and Multi-label text Classification Tasks