localminimum / R-net

A Tensorflow Implementation of R-net: Machine reading comprehension with self matching networks
MIT License
323 stars 122 forks source link

cannot reshape array of size 26920800 into shape (91605,300) #44

Open ajinkyaThorwat opened 5 years ago

ajinkyaThorwat commented 5 years ago

glove = np.reshape(glove,(Params.vocab_size,Params.emb_size)) File "/home/kamal/.local/share/virtualenvs/R-net-master-kpkmZweY/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 292, in reshape return _wrapfunc(a, 'reshape', newshape, order=order) File "/home/kamal/.local/share/virtualenvs/R-net-master-kpkmZweY/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc return getattr(obj, method)(*args, **kwds) ValueError: cannot reshape array of size 26920800 into shape (91605,300)

Im getting this...please help thank you in advance

rajdeinno commented 5 years ago

Change the vocab_size to 89736 in params.py file and start train again. Hope this will help