Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

WordListDocument

Word List Text Documents


Description

Create text documents from word lists.

Usage

WordListDocument(con, encoding = "unknown", meta = list())

Arguments

con

a connection object or a character string. See readLines() for details.

encoding

encoding to be assumed for input strings. See readLines() for details.

meta

a named or empty list of document metadata tag-value pairs.

Details

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 methods for generics words() and as.character() and class "WordListDocument" can be used to extract the words.

Value

A word list document object inheriting from "WordListDocument" and "TextDocument".

See Also

TextDocument for basic information on the text document infrastructure employed by package NLP.


NLP

Natural Language Processing Infrastructure

v0.2-1
GPL-3
Authors
Kurt Hornik [aut, cre] (<https://orcid.org/0000-0003-4198-9911>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.