I meet a problem
the problem I met is as follows: Traceback (most recent call last): File "/home/joyous-yim/pycode/sentence2vec-master/spacy_sentence2vec_demo.py", line 63, in
can you help me? hope for your reply.
strange - the line number doesn't match (sentence_to_vec() is on line 79, not line 80) - however - it looks from the error message like the sentence vectors you're passing in are size 12, and not 300?
strange - the line number doesn't match (sentence_to_vec() is on line 79, not line 80) - however - it looks from the error message like the sentence vectors you're passing in are size 12, and not 300? I add a print line before the error line ,so the line number is 80 not 79. and I check the error line : pca.fit(np.array(sentence_set)) be sure of that senterce_set I passing in are shape(12,300), Is there any wrong with it?
hey dude - there is indeed a problem with the sizes. Perhaps they changed sklearn? Anyway -I've fixed it. I got the same error you did, and have changed the code so it runs like it did before. Have fun!!