Robust inference method for profile-based text Classification