split
work in hashed.model.matrix
to split the string into
tokensSimulate how split
work in hashed.model.matrix
to split the string into
tokens
simulate.split(x, delim = ",", type = c("existence", "count"))
character vector or factor. The source of concatenated feature.
character value. The string to use for splitting.
character value. Either "count
" or "existence
".
"count
" indicates the number of occurrence of the token.
"existence
" indicates the boolean that whether the token exist or not.
integer vector for type = "count"
and logical vector for type = "existence"
.