Extract text data using text analysis of cognitive services activity

Hello,
Can any one please help, how NLP useful to extract information from input text like positivity/negativity of text.