deborausujono / word2vecpy

Python implementation of CBOW and skip-gram word vector models, and hierarchical softmax and negative sampling learning algorithms
324 stars 159 forks source link

numpy.ctypeslib.c_double_Array_100 #1

Open qianqiangediao opened 8 years ago

qianqiangediao commented 8 years ago

Hi,I download the code and run it .However It gets the follow problem : pickle.PicklingError: Can't pickle <class 'numpy.ctypeslib.c_double_Array_100'>: it's not found as numpy.ctypeslib.c_double_Array_100 when it run into the line "pool = Pool(processes=num_processes, initializer=__init_process,nitargs=(vocab, syn0, syn1, table, cbow, neg,dim, alpha, win, num_processes,global_word_count, fi))".Can you get me some information?Thank you

kilickaya commented 8 years ago

I also have the same issue

laubonghaudoi commented 7 years ago

Are you running the script in Windows ? Try running in Linux.

zhezhaoa commented 7 years ago

Try it in linux. Pickling array in shared memory is not allowed in windows.