8f2f0408337cf96ca3d737075068d870a3d0a36c,mordecai/geoparse.py,Geoparser,batch_geoparse,#Geoparser#,1029

Before Change


        //processed = pool.map(self.geoparse, nlped_docs)
        //pool.close()
        //pool.join()
        processed = [self.geoparse(i) for i in nlped_docs]
        return processed

After Change


            print("batch_geoparsed should be used with threaded searches. Please set `threads=True` when initializing the geoparser.")
        nlped_docs = list(nlp.pipe(text_list, as_tuples=False, n_threads=multiprocessing.cpu_count()))
        processed = []
        for i in tqdm(nlped_docs, disable=not self.progress):
            p = self.geoparse(i)
            processed.append(p)
        return processed
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: openeventdata/mordecai
Commit Name: 8f2f0408337cf96ca3d737075068d870a3d0a36c
Time: 2018-07-02
Author: ahalterman0@gmail.com
File Name: mordecai/geoparse.py
Class Name: Geoparser
Method Name: batch_geoparse


Project Name: ClementPinard/SfmLearner-Pytorch
Commit Name: 2a74e12fec206dd222f98cd3ac2a15c48ebdf0a9
Time: 2019-02-18
Author: clement.pinard@parrot.com
File Name: data/prepare_train_data.py
Class Name:
Method Name: main


Project Name: aertslab/pySCENIC
Commit Name: 153e513a7de088160b4a567e2b9528f8fcc1d436
Time: 2018-04-05
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/rnkdb.py
Class Name: InvertedRankingDatabase
Method Name: invert