Modified sentiment classifier code