Balanced undersampling: a novel sentence-based undersampling method to improve recognition of named entities in chemical and biomedical text