added check for body response from sentiment training api