Description Usage Arguments Value Examples
Function to create tmParsed
1 |
x |
source |
package |
package of reading the data could be tm or stylo |
... |
metadata for the tmParsed document |
returns tmParsed object
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.