Foundations of uncertainty management for text-based sentiment prediction