| Stopwords | R Documentation |
Stopwords is for filter result.
print()print method for Stopwords objects
Stopwords$print(x, ...)
xself
...ignored
new()Create a stopwords object for filter stopwords on analyze() and tokenize() results.
Stopwords$new(use_system_dict = TRUE)
use_system_dictbool(optional): use system stopwords dictionary or not.
Defualt is TRUE.
add()add stopword one at a time.
Stopwords$add(form = NA, tag = Tags$nnp)
formchar(optional): Form information. Default is NA.
tagchar(optional): Tag information. Default is "NNP". Please check Tags.
\dontrun{
sw <- Stopwords$new()
sw$add("word", "NNG")
sw$add("word", Tags$nng)
}
add_from_dict()add stopword from text file. text file need to form "TEXT/TAG". TEXT can remove like "/NNP". TAG required like "FORM/NNP".
Stopwords$add_from_dict(path, dict_name = "user")
pathchar(required): dictionary file path.
dict_namechar(optional): default is "user"
remove()remove stopword one at a time.
Stopwords$remove(form = NULL, tag = NULL)
formchar(optional): Form information. If form not set, remove tag in input.
tagchar(required): Tag information. Please check Tags.
save_dict()save current stopwords list in text file.
Stopwords$save_dict(path)
pathchar(required): file path to save stopwords list.
get()return tibble of stopwords.
Stopwords$get()
a tibble for stopwords options
for analyze() / tokenize() function.
clone()The objects of this class are cloneable with this method.
Stopwords$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run:
Stopwords$new()
## End(Not run)
## ------------------------------------------------
## Method `Stopwords$add`
## ------------------------------------------------
## Not run:
sw <- Stopwords$new()
sw$add("word", "NNG")
sw$add("word", Tags$nng)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.