CLAPE , a generalizable model developed for performing DNA-Binding sites predictions (CLAPE-DB) based on contrastive Learning and a pre-trained encoder. CLAPE was generalized as a binding site predictor model of DNA-binding sites (CLAPE-DB), protein-RNA binding sites (CLAPE-RB), and antibody-antigen binding sites (CLAPE-AB). In the case of DNA-binding sites, CLAPE-DB outperformed the second-best benchmark model. Moreover, it interestingly outperformed a structure-based model without being trained on any structural information. In the case of protein-RNA binding sites, CLAPE-RB outperformed pre-existing sequence-based models, and showed potential in protein structure prediction. CLAPE-AB also achieved relatively high Area Under the Curve (AUC) results, 0.92, accurately predicting antibody paratopes from sequence inputs.