Skip to contents

Save the full corpus including embeddings as a compressed RDS file.

Usage

sm_export_rds(corpus, path, compress = "xz")

Arguments

corpus

An sm_corpus object.

path

Output file path.

compress

Compression type. Default "xz".

Value

path invisibly.

Examples

corpus <- sm_example_corpus(n_works = 10)
path <- tempfile(fileext = ".rds")
sm_export_rds(corpus, path)
#>  Corpus saved to /tmp/RtmpIQMgiF/file2370169388bd.rds