How Sentiment Analysis Produces Signals