# NOT RUN {
## Inspect the algorithm classification
x <- c("Kate's got no appetite doesn't she?",
"Wanna tell Daddy what you did today?",
"You helped getting out a book?", "umm hum?",
"Do you know what it is?", "What do you want?",
"Who's there?", "Whose?", "Why do you want it?",
"Want some?", "Where did it go?", "Was it fun?")
left_just(preprocessed(question_type(x))[, c(2, 6)])
## Transcript/dialogue examples
(x <- question_type(DATA.SPLIT$state, DATA.SPLIT$person))
## methods
scores(x)
plot(scores(x))
counts(x)
plot(counts(x))
proportions(x)
plot(proportions(x))
truncdf(preprocessed(x), 15)
plot(preprocessed(x))
plot(x)
plot(x, label = TRUE)
plot(x, label = TRUE, text.color = "red")
question_type(DATA.SPLIT$state, DATA.SPLIT$person, percent = FALSE)
DATA[8, 4] <- "Won't I distrust you?"
question_type(DATA.SPLIT$state, DATA.SPLIT$person)
DATA <- qdap::DATA
with(DATA.SPLIT, question_type(state, list(sex, adult)))
out1 <- with(mraja1spl, question_type(dialogue, person))
## out1
out2 <- with(mraja1spl, question_type(dialogue, list(sex, fam.aff)))
## out2
out3 <- with(mraja1spl, question_type(dialogue, list(sex, fam.aff),
percent = FALSE))
plot(out3, label = TRUE, lab.digits = 3)
# }
Run the code above in your browser using DataLab