Learn R Programming

textrank (version 0.1.0)

summary.textrank: Extract the most important sentences which were identified with textrank

Description

Extract the most important sentences which were identified by textrank

Usage

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

Arguments

object

an object of class textrank

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 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

See Also

textrank