replace_special_characters | R Documentation |
When using non-english languages, the column names of the document-term matrix can contain special characters. These might lead to encoding problems, when this matrix is used to train a machine learning model. This functions automatically replaces all special characters by the nearest equivalent character, e.g. "é" would be replaced by "e".
replace_special_characters(object)
## S4 method for signature 'MetaNLP'
replace_special_characters(object)
object |
An object of class MetaNLP. |
An object of class MetaNLP, where the column names do not have special characters anymore.
path <- system.file("extdata", "test_data.csv", package = "MetaNLP", mustWork = TRUE)
obj <- MetaNLP(path, language = "french")
obj <- replace_special_characters(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.