A Learning Scheme Based on Similarity Functions for Affective Common-Sense Reasoning