Generalized knowledge-enhanced framework for biomedical entity and relation extraction