参数在函数调用tokenize_words
中可用。unnest_tokens
因此,您可以strip_punct = FALSE
直接用作unnest_tokens
.
例子:
txt <- data.frame(text = "Arguments for `tokenize_words` are available within the `unnest_tokens` function call. So you can use `strip_punct = FALSE` directly as an argument for `unnest_tokens`. ", stringsAsFactors = F)
unnest_tokens(txt, palabras, "text", strip_punct =FALSE)
palabras
1 arguments
1.1 for
1.2 `
1.3 tokenize_words
1.4 `
1.5 are
1.6 available
1.7 within
1.8 the
1.9 `
1.10 unnest_tokens
1.11 `
1.12 function
1.13 call
1.14 .
1.15 so
#And some more, but you get the point.
也可用:lowercase = FALSE
并strip_numeric = TRUE
更改默认的相反行为。