Description Usage Arguments Value Examples
Function to access meta data for textmining objects
1 | getMeta(x, parameter, i = 1)
|
x |
textmining object tmCorpus or tmTextDocument |
parameter |
name of metadata to be extracted |
i |
index |
returns i-th document of corpus x
1 2 3 4 5 6 7 8 9 10 11 12 | corp <- tmCorpus(c("This is first document", "This is second"))
getMeta(corp, parameter = "language", 1)
getMeta(corp, "title", 2)
meta(corp, "title")
text <- tmTextDocument("Text document")
getMeta(text, "language")
meta(text, "title")
parsed <- tmParsed(list(c("Parsed", "doc", "one"), c("Parsed", "two")))
getMeta(parsed, parameter = "title", 2)
meta(parsed, "title")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.