Closed jakob-r closed 6 years ago
According to the documentation this should work:
ngram::preprocess("Keep Case", case = NULL)
But ngram:::check.is.string does not allow NULLs.
ngram:::check.is.string
Small tip: Instead of writing the check functions yourself you could use checkmate where it simply would be assertString(remove.punct, null.ok = TRUE)
assertString(remove.punct, null.ok = TRUE)
Thanks, should be fixed now.
Thanks
According to the documentation this should work:
But
ngram:::check.is.string
does not allow NULLs.Small tip: Instead of writing the check functions yourself you could use checkmate where it simply would be
assertString(remove.punct, null.ok = TRUE)