Get and set corpus metadata.

titles_(corpus, ...)

# S3 method for corpus
titles_(corpus, ...)

# S3 method for JuliaObject
titles_(corpus, ...)

languages_(corpus, ...)

# S3 method for corpus
languages_(corpus, ...)

# S3 method for JuliaObject
languages_(corpus, ...)

authors_(corpus, ...)

# S3 method for corpus
authors_(corpus, ...)

# S3 method for JuliaObject
authors_(corpus, ...)

timestamps_(corpus, ...)

# S3 method for corpus
timestamps_(corpus, ...)

# S3 method for JuliaObject
timestamps_(corpus, ...)

Arguments

corpus

A corpus, as returned vy corpus.

...

A character string to set.

Details

Note that the value (three dots) for the language function is taken from the Julia Language package.

Examples

# NOT RUN {
init_textanalysis()

# build document
doc1 <- string_document("First document.")
doc2 <- string_document("Second document.")

corpus <- corpus(doc1, doc2)

# get and et metadata
titles_(corpus) # get
titles_(corpus, list("Hello", "World")) # set
# }