You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use gensim LDA module on cloud function, but it time out and show "/layers/google.python.pip/pip/lib/python3.8/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses".
But the same code worked on colab (python 3.8.16) and I did't find any bug in it. It can print 'LDA1' and 'LDA2', then time out.
Steps/code/corpus to reproduce
1.I have tried diffierent python version like 3.10, 3.8, 3.7
from __future__ importunicode_literalsimportbase64importimportlibimportreimportosimportsysimportnumpyasnpimportpandasaspdimportgensimimportgensim.corporaascorporafromgensim.utilsimportsimple_preprocessfromgensim.modelsimportCoherenceModelfromgensimimportcorpora, models, similaritiesfromgoogle.cloudimportbigqueryimportpandas_gbqimportrequestsimporttqdmimportjsonimportpyLDAvisimportpyLDAvis.gensim_modelsimportmatplotlib.pyplotaspltimportloggingimporttime
The text was updated successfully, but these errors were encountered:
Problem description
I want to use gensim LDA module on cloud function, but it time out and show "/layers/google.python.pip/pip/lib/python3.8/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses".
But the same code worked on colab (python 3.8.16) and I did't find any bug in it. It can print 'LDA1' and 'LDA2', then time out.
Steps/code/corpus to reproduce
1.I have tried diffierent python version like 3.10, 3.8, 3.7
2.ADD import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
3.It works on colab and 300 text just cost 10 sec, but I need it work on cloud function
Versions
Please provide the output of:
The text was updated successfully, but these errors were encountered: