#3642·gensim

Python interpreter is aborted upon word2vec model training

Author: yarulaCreated Nov 10, 2025Updated Nov 10, 2025
from gensim.models import Word2Vec
...
model = Word2Vec(
                vector_size=100,
                window=5,
                min_count=1,
                workers=4,
                sg=1, 
                hs=0, 
                negative=5, 
                ns_exponent=0.75,  
                alpha=0.025,  
                min_alpha=0.0001,  
                epochs=5 
            )
...
model.train($texts,  total_examples=29311, epochs=5)

leads to

25-11-09 21:44:03,206 - gensim.utils - INFO - Word2Vec lifecycle event {'msg': 'training model with 4 workers on 29311 vocabulary and 100 features, using sg=1 hs=0 sample=0.001 negative=5 window=5 shrink_windows=True', 'datetime': '2025-11-09T21:44:03.206638', 'gensim': '4.4.0', 'python': '3.12.12 (main, Nov  6 2025, 00:03:09) [Clang 20.1.8 ]', 'platform': 'macOS-15.6.1-arm64-arm-64bit', 'event': 'train'}
Assertion failed: (exc_type != NULL), function _PyErr_WriteUnraisableMsg, file errors.c, line 1634.