Biomedical relation extraction with knowledge base–refined weak supervision