2,460 questions
4
votes
2
answers
830
views
Pip install gensim is not working. Error in generation metadata for scipy
I am trying to install gensim to do some topic modelling. But I keep having the same problem, which is that it can't prepare metadata when collecting from scipy. I hope maybe you guys can help.
Here ...
1
vote
1
answer
418
views
import gensim binary incompatibility [duplicate]
import gensim
import numpy
import scipy
print("gensim version:", gensim.__version__)
print("numpy version:", numpy.__version__)
print("scipy version:", scipy.__version__)
...
0
votes
0
answers
72
views
LDA perplexity with train-test split leads to absurd results (best model = 1 topic)
I'm working with LDA on a Portuguese news corpus (~800k documents with an average of 28 words each after cleaning the data), and I’m trying to evaluate topic quality using perplexity.
When I compute ...
1
vote
1
answer
198
views
error when trying to install gensim via pip on windows
I am trying to install the python package gensim. I installed scipy, smart_open and numpy, and ran pip install gensim.
the installation failed in the preparing metadata stage and a behemoth 954 lines ...
0
votes
1
answer
869
views
Trouble getting importing gensim to work in colab [duplicate]
I am trying to import gensim into colab.
!pip install gensim
I get the following error:
/usr/local/lib/python3.11/dist-packages/numpy/__init__.py in __getattr__(attr)
365 raise ...
2
votes
1
answer
3k
views
Gensim on Google Colab : ModuleNotFoundError: No module named 'numpy.strings'
I've had some problems using GENSIM.
After running:
pip install --upgrade gensim
i execute:
import gensim.downloader as api
I get the following error:
------------------------------------------------...
0
votes
1
answer
111
views
Correct topics from LDA Sequence Model in Gensim
Python's Gensim package offers a dynamic topic model called LdaSeqModel(). I have run into the same problem as in this issue from the Gensim mailing list (which has not been solved). The problem is ...
2
votes
0
answers
49
views
unpacking error while loading word2vec pretrained model
I have a word2vec.model file. I am using this file in my lambda function. It was working fine. There was some change in the data file, so I had to retrain the model and use the updated word2vec.model
...
0
votes
3
answers
3k
views
Python error trying to install gensim on MacOS
trying to install gensim on MacBook Pro (i7, Sonoma 14.7.1) using PyCharm ([email protected]). I've tried several suggestions from stack, github and other sources but none worked.
Based on what little I ...
0
votes
1
answer
88
views
word2vec download taking too long
Windows10, IDLE, The download time is too long for the below code.
import gensim.downloader as api
word_vec_list = api.load('word2vec-google-news-300')
Is it possible that I download only fewer words?
...
-4
votes
1
answer
94
views
Not able to install gensim
Code:
import nltk
import numpy as np
import re
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from scipy.sparse.linalg import svds
from gensim.summarization.summarizer ...
0
votes
1
answer
329
views
SpaCy and Gensim on Jupyter Notebooks
I have bought a new macbook and have installed python 3.12.5 on it. I am trying to import and run libraries for Natural Langauge Processing in a Jupyter Notebook, and all is well... except when it ...
0
votes
1
answer
103
views
How to load word2vec model from zip file not having .bin file inside?
Trying this project: webvectors
This code works fine
nlpl_zip="C:/180.zip"
with zipfile.ZipFile(nlpl_zip, "r") as archive:
stream = archive.open("model.bin")
...
1
vote
3
answers
242
views
Getting GloVe embeddings using gensim, triu not found in scipy.linalg
I am trying to build a sentiment analysing model, using the GloVe word embeddings...
I found multiple sources on how to import the embeddings into python, this one seemed to be the simplest...
Trying ...
-1
votes
1
answer
33
views
gensim for Political Ad verification?
I am trying to build a model that uses transcribed audio and on-screen text to classify a video ad as political or non-political, as well as extracts the name of the candidate and sponsor. How can I ...