MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.
I am getting error message when running Topic modelling using LDA and Gensim. Then imported mallet for finding optimum number of clusters, but getting error can anyone help??
/opt/conda/lib/python3.7/site-packages/ipykernel/ipkernel.py:287: DeprecationWarning: should_run_async will not call transform_cell automatically in the future. Please pass the result to transformed_cell argument and any exception that happen during thetransform in preprocessing_exc_tuple in IPython 7.17 and above.
and should_run_async(code)
Unfortunately this looks like a problem with gensim, not with Mallet. You might try Little Mallet Wrapper as an alternative, or create an issue with gensim.
I am getting error message when running Topic modelling using LDA and Gensim. Then imported mallet for finding optimum number of clusters, but getting error can anyone help??
mallet_path = '/home/jupyter/TopicModelling/machine-learning/TopicModeling/Medium/mallet-2.0.8/bin/mallet.bet'
ldamallet = gensim.models.wrappers.LdaMallet(mallet_path, corpus=corpus, num_topics=10, id2word=id2word)
/opt/conda/lib/python3.7/site-packages/ipykernel/ipkernel.py:287: DeprecationWarning:
should_run_async
will not calltransform_cell
automatically in the future. Please pass the result totransformed_cell
argument and any exception that happen during thetransform inpreprocessing_exc_tuple
in IPython 7.17 and above. and should_run_async(code)CalledProcessError Traceback (most recent call last)