Skip to content

genericSummary in LSAfun

2 messages · Mehdi Dadkhah, Abby Spurdle

#
Hi,
I hope you are doing well!
I have a data frame with a column. it contains about 140 posts. In each
row, there is a blog post. I named this data frame as "posttext". When i
use  genericSummary() function, it returns paragraph instead sentences.
What is problem?


Command which i use:

summaryp<-genericSummary(posttext,k=1,split=c(".","!","?"),min=5,breakdown=FALSE)



Many thanks!
With best regards,
2 days later
#
Does increasing the value of k (the second argument) help?

Also, if I understand the documentation correctly, the first argument
should a single string, not a data.frame.
I note that the paste function (with collapse="") can be used to turn
a character vector into a single string.
On Sat, May 9, 2020 at 10:07 PM Mehdi Dadkhah <mehdidadkhah91 at gmail.com> wrote: