Basic example using bdpar package"


The goal of this document is to show the launch of a small example of data preprocessing. To achieve this from version 1.0.1, the package brings by default a folder with an example of files that can be used to test the tool. Specifically, they are 20 ham-type SMS files and another 20 spam-type files, which can be viewed by loading the data, called bdparData, associated with the package.


First of all, it is necessary to include the package. ```{R, echo = TRUE, results = "hide"} library(bdpar) wzxhzdk:0


For this preprocessing we will use both the default preprocessing flow (DefaultPipeline) and the default way to create the Instances (ExtractorFactory). Taking into account all the elements to be used to configure the preprocessing, the start of the pipe flow is launched as follows. ```{R, echo = TRUE, results = "hide", eval = FALSE} runPipeline(path = system.file(package = "bdpar", "example"), cache = FALSE, verbose = FALSE, summary = FALSE) ``` This function will generate a csv file in the user's working directory, where you can see the characteristics of the text obtained, such as cleaning the text to be preprocessed.

Try the bdpar package in your browser

Any scripts or data that you put into this service are public.

bdpar documentation built on May 18, 2022, 5:06 p.m.