summary.textrank_sentences {textrank}R Documentation

Extract the most important sentences which were identified with textrank_sentences

Description

Extract the most important sentences which were identified by textrank_sentences

Usage

## S3 method for class 'textrank_sentences'
summary(object, n = 3, keep.sentence.order = FALSE, ...)

Arguments

object

an object of class textrank_sentences

n

integer indicating to extract only the top n sentences

keep.sentence.order

logical indicating to keep the sentence order as provided in the original data argument of the textrank_sentences function or to order it by the pagerank score. Defaults to FALSE indicating to order by pagerank score.

...

not used

Value

a character vector with the top n most important sentences which were identified by textrank_sentences

See Also

textrank_sentences


[Package textrank version 0.3.1 Index]