DEFAULT_control1: A Default Value for corp_or_dtm 1

Description Usage Format Details Examples

Description

In the previous version, this list object is by default used by corp_or_dtm. In this version, it is not the default value but it can still be used by the user. See details in corp_or_dtm.

Usage

1

Format

An object of class list of length 2.

Details

The object specifies word length from 1 to 25. The second element, a tokenizer, is temporally deprecated. Also, DEFAULT_control2 sets length from 2 to 25.

Examples

1
2
3
4
5
6
7
require(tm)
x <- c(
  "Hello, what do you want to drink?", 
  "drink a bottle of milk", 
  "drink a cup of coffee", 
  "drink some water")
dtm <- corp_or_dtm(x, from = "v", type = "dtm", control = DEFAULT_control1)

chinese.misc documentation built on Sept. 13, 2020, 5:13 p.m.