Skip to content Skip to sidebar Skip to footer
Showing posts with the label Gensim

Gensim Word2vec Freeze Some Wordvectors And Update Others

Regarding word2vec with gensim, Suppose you already trained a model on a big corpus, and you want t… Read more Gensim Word2vec Freeze Some Wordvectors And Update Others

Intel Mkl Fatal Error: While Trying To Import Gensim Package

We have Anaconda 4.3.1 installed on our hosts and recently we have installed several packages for d… Read more Intel Mkl Fatal Error: While Trying To Import Gensim Package

Why Gensim Doc2vec Give Attributeerror: 'list' Object Has No Attribute 'words'?

I am trying to experiment gensim doc2vec, by using following code. As far as I understand from tut… Read more Why Gensim Doc2vec Give Attributeerror: 'list' Object Has No Attribute 'words'?

No Module Named 'gensim.sklearn_api'

I try to use from gensim.sklearn_api import W2VTransformer and get ImportError: No module named &#… Read more No Module Named 'gensim.sklearn_api'

Gensim Phrases Usage To Filter N-grams

I am using Gensim Phrases to identify important n-grams in my text as follows. bigram = Phrases(doc… Read more Gensim Phrases Usage To Filter N-grams

Loss Does Not Decrease During Training (word2vec, Gensim)

What can cause loss from model.get_latest_training_loss() increase on each epoch? Code, used for … Read more Loss Does Not Decrease During Training (word2vec, Gensim)

Word2vec - What Is Best? Add, Concatenate Or Average Word Vectors?

I am working on a recurrent language model. To learn word embeddings that can be used to initialize… Read more Word2vec - What Is Best? Add, Concatenate Or Average Word Vectors?

Gensim Word2vec Print Log Loss

how to print to log (file or stout) the loss of each epoch in the training phase, when using gensim… Read more Gensim Word2vec Print Log Loss

How To Perform Efficient Queries With Gensim Doc2vec?

I’m working on a sentence similarity algorithm with the following use case: given a new sentence, I… Read more How To Perform Efficient Queries With Gensim Doc2vec?

How To Load Sentences Into Python Gensim?

I am trying to use the word2vec module from gensim natural language processing library in Python. T… Read more How To Load Sentences Into Python Gensim?

How To Use Cosssim In Gensim

My questioon is about cossim usage. I have this fragment of a very big fuction: for elem in lList: … Read more How To Use Cosssim In Gensim

Disabling Gensim's Removal Of Punctuation Etc. When Parsing A Wiki Corpus

I want to train a word2vec model on the english wikipedia using python with gensim. I closely follo… Read more Disabling Gensim's Removal Of Punctuation Etc. When Parsing A Wiki Corpus

Python: Gensim Memory Error

import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', leve… Read more Python: Gensim Memory Error

Error In Extracting Phrases Using Gensim

I am trying to get the bigrams in the sentences using Phrases in Gensim as follows. from gensim.mod… Read more Error In Extracting Phrases Using Gensim

Converting String Tokens Into Integers

I am trying to convert tokens of sentences into integers. But it is giving me floats. from nltk.to… Read more Converting String Tokens Into Integers

TypeError: Doc2bow Expects An Array Of Unicode Tokens On Input, Not A Single String When Using Gensim.corpora.Dictionary()

There is a dataframe like this: index terms 1345 ['jays', 'place', '… Read more TypeError: Doc2bow Expects An Array Of Unicode Tokens On Input, Not A Single String When Using Gensim.corpora.Dictionary()

How To Load Sentences Into Python Gensim?

I am trying to use the word2vec module from gensim natural language processing library in Python. T… Read more How To Load Sentences Into Python Gensim?

Saved Gensim LdaMallet Model Not Working In Different Console

I am training a ldamallet model in python and saving it. I am also saving training dictionary that … Read more Saved Gensim LdaMallet Model Not Working In Different Console