The logic of feeling: Teaching computers to identify emotions