tmParsed: Function to create tmParsed

Description Usage Arguments Value Examples

Description

Function to create tmParsed

Usage

1
tmParsed(x = NULL, package = "base", ...)

Arguments

x

source

package

package of reading the data could be tm or stylo

...

metadata for the tmParsed document

Value

returns tmParsed object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
corp <- tmCorpus(c("This is corp", "Document 2"))
parsed <- parse(corp)
parsed_ngram <- ngram(corp, k = 2)
parsed <- tmParsed(list(c("This", "is", "corp"), c("Document", "2")))
## Not run: 
corp <- tmCorpus("directory", package = "stylo")
parsed <- parse(corp)
parsed_ngram <- ngram(corp, k = 2)
parsed <- tmParsed(source = "directory", package = "stylo")

## End(Not run)

textmining documentation built on May 2, 2019, 6:47 a.m.