#Parallel(n_jobs=4,backend="threading")(delayed(annotate_eval_sample)(annotater, fn, os.path.join(last_step_output, os.path.basename(fn)),size_str) for fn in tqdm(glob.glob(os.path.join(first_step_output,"*.csv")),desc="Annotate sample"))
text_and_spatial_entities=[self.parse(text)fortextintqdm(texts,desc="Extract spatial entities from the texts")]
#text_and_spatial_entities = [self.parse(text) for text in tqdm(texts,desc="Extract spatial entities from the texts")]
text_and_spatial_entities=Parallel(n_jobs=4,backend="multiprocessing")(delayed(self.parse)(text)fortextintqdm(texts,desc="Extract spatial entities from the texts"))