Deep learning in semantic kernel spaces