basaldella / deepkeyphraseextraction

Deep Networks for Keyphrase Extraction
Apache License 2.0
7 stars 4 forks source link

ValueError #2

Open lovish1 opened 4 years ago

lovish1 commented 4 years ago

ValueError: could not broadcast input array from shape (100) into shape (300)

I'm running a file SimpleRNN.ipynb in Anaconda which is reporting above error on

--- preprocessing.py file 451 if embedding_vector is not None: 452 # words not found in embedding index will be all-zeros. --> 453 embedding_matrix[i] = embedding_vector 454 455 return train_x, train_y, test_x, test_y, val_x, val_y, embedding_matrix