I got gensim to work in Google Collab by following this process:
!pip install gensim
from gensim.summarization import summarize
Then I was able to call summarize(some_text)
Now I'm trying to run the same thing in VS code:
I've installed gensim:
pip3 install gensim
but when I run
from gensim.summarization import summarize
I get the error
Import "gensim.summarization" could not be resolvedPylancereportMissingImports
I've also tried from gensim.summarization.summarizer import summarize
with same error. Regardless I haven't been able to call the function summarize(some_text)
outside of Google Collab.