Create text documents from word lists.
WordListDocument(con, encoding = "unknown", meta = list())
a connection object or a character string.
See readLines()
for details.
encoding to be assumed for input strings.
See readLines()
for details.
a named or empty list of document metadata tag-value pairs.
An object inheriting from "WordListDocument"
and
"TextDocument"
.
WordListDocument()
uses readLines()
to read
collections of words from connections for which each line provides one
word, with blank lines ignored, and returns a word list document
object which inherits from classes "WordListDocument"
and
"TextDocument"
.
The words can be extracted using the words()
and
as.character()
methods for class
"WordListDocument"
.
TextDocument
for basic information on the text document
infrastructure employed by package NLP.