You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using a dataset with sentences longer than 65 words, you have to set the the max_l variable manually. You can fix this little issue by replacing the second last line in process_data.py with:
If you are using a dataset with sentences longer than 65 words, you have to set the the max_l variable manually. You can fix this little issue by replacing the second last line in process_data.py with:
cPickle.dump([revs, W, W2, word_idx_map, vocab, max_l], open("mr.p", "wb"))
and in conv_net_sentence.py after loading the pickled file:
revs, W, W2, word_idx_map, vocab, max_l = x[0], x[1], x[2], x[3], x[4], x[5]
Now you only have to replace the make_idx_data_cv function call by:
make_idx_data_cv(revs, word_idx_map, i, max_l=max_l, k=300, filter_h=5)
It drove me crazy finding that the max sentence length limitation was the problem for the error
The text was updated successfully, but these errors were encountered: