By using stock prices from Yahoo Finance, they annotated all the news in a transaction date with going up or down categories.
the weakness of this assumption is that all the news in one day will have the same category.