Closed Anjs04 closed 6 years ago
What is the point in applying textrank_sentences
if you only have one sentence?
Applying textrank_sentences to multiple pieces of text with an unknown amount of sentences. It causes a memory leak instead of just returning an error.
I've added your suggested stop condition in the function.
textrank_sentences() should contain stopif(dim(sentences)[1] == 1) to cover the case in which textrank_sentences if fed a piece of text that tokenises to only one sentence.