|
|
@ -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
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|