MaartenGr / MaartenGr/BERTopic

joblib.externals.loky.process_executor. TerminatedWorkerError:

Open
#1,444 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
920
Avg merge
22h 24m
Merged PRs (30d)
5

Description

bertopic = 0.15.0
joblib = 1.2.0

>>> # train the model
>>> topic_model = BERTopic(
... n_gram_range=(1,2),
... verbose=True,
... calculate_probabilities=True,
... )
>>>
>>> topics, probs = topic_model.fit_transform(text)

**Batches: 100%|██████████| 1050/1050 [07:47<00:00, 2.24it/s]
2023-07-31 14:37:25,655 - BERTopic - Transformed documents to Embeddings
2023-07-31 14:38:07,059 - BERTopic - Reduced dimensionality
.......
joblib.externals.loky.process_executor.TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.**

please help @MaartenGr

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported BERTopic 0.15.0 and joblib 1.2.0 fit_transform call with the shown configuration. Investigate the TerminatedWorkerError after dimensionality reduction and determine whether the failure is reproducible, then document a verified project-level fix or guidance; no source file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.