sentencizer: removed text sentiment computation from script, because of incorrect implementation

master
Your Name 4 years ago
parent c99ac23bb5
commit 74909ca3a0

@ -104,13 +104,11 @@ sentencizer <- function(out, sent_dict = NULL, localhost = NULL, validation = F)
if(!is.null(sent_dict)) { if(!is.null(sent_dict)) {
text_sent <- out %>% text_sent <- out %>%
summarise( summarise(
text.sent_sum = sum(sent_sum),
text.words = sum(words), text.words = sum(words),
text.sent_words = sum(sent_words), text.sent_words = sum(sent_words),
text.sentences = n() text.sentences = n()
) %>% ) %>%
mutate( mutate(
text.sent = text.sent_sum/text.words,
text.arousal = text.sent_words/text.words text.arousal = text.sent_words/text.words
) )

Loading…
Cancel
Save