import_corpus {R.temis} | R Documentation |
import_corpus
Description
Import a corpus from a file.
Usage
import_corpus(paths, format, language, textcolumn = 1, encoding = NULL)
Arguments
paths |
Path to one of more files, or to a directory (if |
format |
File format: can be |
language |
The language name or code (preferably as IETF language tags,
see |
textcolumn |
When |
encoding |
The character encoding of the file, or |
Value
A Corpus
object.
Examples
file <- system.file("texts", "reut21578-factiva.xml", package="tm.plugin.factiva")
import_corpus(file, "factiva", language="en")
[Package R.temis version 0.1.3 Index]