convert sentiment string to float