Remove clean_multicore function

This commit is contained in:
simon987 2022-01-28 20:11:26 -05:00
parent 62e74ed292
commit cd5a1ac50c
2 changed files with 1 additions and 10 deletions

View File

@ -25,15 +25,6 @@ nltk.download("wordnet", quiet=True)
lemmatizer = WordNetLemmatizer()
def clean_multicore(texts, processes, chunk_size=10000, **kwargs):
pool = Pool(processes=processes)
yield from pool.imap(
func=partial(preprocess, **kwargs),
iterable=texts,
chunksize=chunk_size
)
def _transform_bigram(ngram_seq, ngrams):
for ngram in ngram_seq:
if ngram in ngrams:

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name="hexlib",
version="1.72",
version="1.73",
description="Misc utility methods",
author="simon987",
author_email="me@simon987.net",