Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model being passed as existing has no syn1/syn1Neg available #4449

Closed
heyongcs opened this issue Dec 26, 2017 · 3 comments

Comments

@heyongcs
Copy link

@heyongcs heyongcs commented Dec 26, 2017

useExistingWordVectors(word2Vec)

Exception in thread "main" org.nd4j.linalg.exception.ND4JIllegalStateException: Model being passed as existing has no syn1/syn1Neg available
at org.deeplearning4j.models.paragraphvectors.ParagraphVectors$Builder.useExistingWordVectors(ParagraphVectors.java:709)
at com.aliyun.ga.batch.SimilarityCase.main(SimilarityCase.java:126)

@OmSao

This comment has been minimized.

Copy link

@OmSao OmSao commented Jan 31, 2018

I also faced same issue. Here is my code, which hit the same issue:

File gModel = new File("GoogleNews-vectors-negative300.bin.gz");
Word2Vec vecGoogle = WordVectorSerializer.readWord2VecModel(gModel);

ParagraphVectors vecGoogleForSentences = new ParagraphVectors.Builder()
.useExistingWordVectors(vecGoogle)
.build();

@raver119

This comment has been minimized.

Copy link
Contributor

@raver119 raver119 commented Jan 31, 2018

This is not a bug.
Exception message says: you can't use model which only has word vectors in.

@raver119 raver119 closed this Jan 31, 2018
@lock

This comment has been minimized.

Copy link

@lock lock bot commented Sep 23, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Sep 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.