Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Memory Error - A Comprehensive Guide to Understand and Implement Text Classification in Python

$
0
0

@khushboo28 wrote:

This is with respect to this link :
A Comprehensive Guide to Understand and Implement Text Classification in Python

I am getting when I execute the

load the pre-trained word-embedding vectors

embeddings_index = {}
for i, line in enumerate(open(‘data/wiki-news-300d-1M.vec’)):
values = line.split()
embeddings_index[values[0]] = numpy.asarray(values[1:], dtype=‘float32’)

I get the following error :

embeddings_index-- Traceback (most recent call last):
File “f.py”, line 87, in
print(‘embeddings_index–’,embeddings_index)
MemoryError

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles