Access the text of documents as a string.

get_text(document)

# S3 method for document
get_text(document)

# S3 method for documents
get_text(document)

# S3 method for corpus
get_text(document)

Arguments

document

A document as returned by the *_document family of functions, i.e.: string_document.

Examples

# NOT RUN {
init_textanalysis()

# build document
doc <- string_document("This is a document.")

# extract text
get_text(doc)
# }