Closed vbomiv closed 1 year ago
Seems this might be a problem with your input text. What happens if you just try this: sample <- "This is a test. In the event of a real emergency, you would be notified who to love and who to hate." sample_sents <- get_sentences(sample) test <- lapply(sample_sents, mixed_messages)
test [[1]] entropy metric_entropy 0 0
[[2]] entropy metric_entropy 1.00000000 0.05555556
Thank you! You were right. it was my input text that had an issue. I had to remove some punctuation marks that were placed in a row.
Whenever I try to use the function for prose texts, the same error pops up as below. (I used the same code from "Introduction to the Syuzhet Package"):
Can anyone help me solve this issue?