Previously, setting num_processes to anything other than None resulted in an error. This was due to the simple_preprocessing_steps function expecting a list of documents as an argument, but the process_map function applied it to every document in the corpus. This change standardizes the use of simple_preprocessing_steps to operate over a single document which allows it to be used with map and process_map. In addition, this adds a progress bar for when num_processes=None.
Previously, setting
num_processes
to anything other thanNone
resulted in an error. This was due to thesimple_preprocessing_steps
function expecting a list of documents as an argument, but theprocess_map
function applied it to every document in the corpus. This change standardizes the use ofsimple_preprocessing_steps
to operate over a single document which allows it to be used withmap
andprocess_map
. In addition, this adds a progress bar for whennum_processes=None
.