Skip to content Skip to sidebar Skip to footer

Gensim.ldamulticore Throwing Exception:

I am running LDAMulticore from the python gensim library, and the script cannot seem to create more than one thread. Here is the error: Traceback (most recent call last): File

Solution 1:

OSError: [Errno 12] Cannot allocate memory sounds like you are running out of RAM.

Check your available free memory and swap.

You can try to to reduce the number of threads with the workers parameter or the number of documents to be used in each training chunk with the chunksize parameter.

Post a Comment for "Gensim.ldamulticore Throwing Exception:"