strip_sparse_terms.Rd
Remove sparse words.
Remove sparse words.
strip_sparse_terms(text) # S3 method for corpus strip_sparse_terms(text) # S3 method for documents strip_sparse_terms(text) # S3 method for document strip_sparse_terms(text) strip_sparse_terms(text) # S3 method for corpus strip_sparse_terms(text) # S3 method for documents strip_sparse_terms(text) # S3 method for document strip_sparse_terms(text)
text | An object inheriting of class |
---|
# NOT RUN { init_textanalysis() # build document # must be lowercase doc <- string_document("This is 1 document.") # replaces in place! strip_sparse_terms(doc) get_text(doc) # }# NOT RUN { init_textanalysis() # build document str <- paste0( "This is a sentence.", "This is another sentence." ) doc <- string_document(str) # replaces in place! strip_sparse_terms(doc) get_text(doc) # }