Incorporating Template-based Contrastive Learning into cognitively inspired, low resource relation extraction | Synapse