% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/textrank.R
\name{textrank}
\alias{textrank}
\title{Extract TextRank keywords from text}
\usage{
textrank(code, jiebar, ..., format = c("vector", "data.frame", "legacy"))
}
\arguments{
\item{code}{A character to analyze.}

\item{jiebar}{A \code{jieba_worker} object created with \code{worker(type = "textrank")}.}

\item{...}{Must be empty. This enforces that optional arguments such as
\code{format} are supplied with explicit names.}

\item{format}{Output format. \code{"vector"} returns a named numeric vector,
\code{"data.frame"} returns a data frame with \code{term} and \code{weight} columns, and
\code{"legacy"} returns a \code{jiebaR}-style character vector with weights in
\code{names()}. Default is \code{"vector"}.}
}
\value{
TextRank results in the requested format.
}
\description{
Extract TextRank-ranked keywords from a single in-memory string with a
TextRank worker created by \code{\link[=worker]{worker()}}. This is separate from \code{\link[=keywords]{keywords()}},
which uses TF-IDF weighting.
}
