API to run sentiment analysis on a block of text