
Apply parallel processing for document analysis
Source:R/performance_optimalization.R
parallel_analysis.Rd
This function uses parallel processing to analyze documents faster.
Usage
parallel_analysis(
text_data,
analysis_function,
text_column = "abstract",
...,
n_cores = NULL
)
Arguments
- text_data
A data frame containing text data.
- analysis_function
Function to apply to each document.
- text_column
Name of the column containing text to analyze.
- ...
Additional arguments passed to the analysis function.
- n_cores
Number of cores to use for parallel processing. If NULL, uses all available cores minus 1.