get_stanford_sentiment: Get Sentiment from the Stanford Tagger

View source: R/syuzhet.R

get_stanford_sentimentR Documentation

Get Sentiment from the Stanford Tagger

Description

Call the Stanford Sentiment tagger with a vector of strings. The Stanford tagger automatically detects sentence boundaries and treats each sentence as a distinct instance to measure. As a result, the vector that gets returned will not be the same length as the input vector.

Usage

get_stanford_sentiment(text_vector, path_to_stanford_tagger)

Arguments

text_vector

A vector of strings

path_to_stanford_tagger

a local file path indicating where the coreNLP package is installed.


mjockers/syuzhet documentation built on Aug. 22, 2023, 7:42 a.m.