document_metadata: Document Metadata

Description Usage Arguments Details Examples

Description

Get and set document metadata.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
title_(document, ...)

## S3 method for class 'document'
title_(document, ...)

## S3 method for class 'JuliaObject'
title_(document, ...)

## S3 method for class 'documents'
title_(document, ...)

language_(document, ...)

## S3 method for class 'document'
language_(document, ...)

## S3 method for class 'documents'
language_(document, ...)

## S3 method for class 'JuliaObject'
language_(document, ...)

author_(document, ...)

## S3 method for class 'document'
author_(document, ...)

## S3 method for class 'documents'
author_(document, ...)

## S3 method for class 'JuliaObject'
author_(document, ...)

timestamp_(document, ...)

## S3 method for class 'document'
timestamp_(document, ...)

## S3 method for class 'documents'
timestamp_(document, ...)

## S3 method for class 'JuliaObject'
timestamp_(document, ...)

Arguments

document

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

...

A character string to set.

Details

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
init_textanalysis()

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

# get and et metadata
title_(doc) # get
title_(doc, "Hello World") # set
language_(doc, "Spanish") # from Language pack

## End(Not run)

news-r/textanalysis documentation built on Nov. 4, 2019, 9:40 p.m.