cpp_build.corpus {textreg} | R Documentation |
Driver function for the C++ function.
Description
Given a labeling and a corpus, create a corpus object for use in textreg. Generally you should use the buildCorpus method, not this method.
Usage
cpp_build.corpus(corpus, labeling, banned = c(), params)
Arguments
corpus |
A list of strings or a corpus from the |
labeling |
A vector of +1/-1 or TRUE/FALSE indicating which documents are considered relevant and which are baseline. The +1/-1 can contain 0 whcih means drop the document. |
banned |
List of words that should be dropped from consideration. |
params |
List of parameters to pass to the call. |
Details
Warning: do not call directly. Use textreg instead
See Also
textreg, find_C_threshold
[Package textreg version 0.1.5 Index]