getSentiment: Send text to Microsoft Cognitive Services' Sentiment API

Description Usage Arguments Value

View source: R/getSentiment.R

Description

Send lines of text to an API to get the sentiment score returned

Usage

1
getSentiment(textdf, apikey = NULL)

Arguments

textdf

A data.frame consisting of two cols with colnames c("id","text"). Optionally you can also provide a "language" column with ISO country codes, otherwise it will default to "en".

apikey

Your key for working with Microsoft Cognitive Services

Value

response A data.frame with id and a sentiment score


lockedata/TextAnalysis documentation built on May 12, 2018, 1:53 a.m.