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, cogapi = 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

cogapi

Your API endpoint for Microsoft Cognitive Services

Value

response A data.frame with id and a sentiment score


lockedata/TextAnalysis documentation built on Nov. 21, 2019, 10:08 p.m.