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
Since migrating from 0.0.3.2.6-SNAPSHOT to 0.0.3.2.8-SNAPSHOT I've been receiving the following error when trying to serialize Word2Vec object:
Word2Vec vec = new Word2Vec.Builder().minWordFrequency(5).vocabCache(cache)
.windowSize(5)
.layerSize(100).iterate(iter).tokenizerFactory(tokenizer)
.build();
vec.setCache(cache);
vec.fit();
SerializationUtils.saveObject(vec, new File(VEC_PATH));
Exception in thread "main" java.lang.RuntimeException: java.io.NotSerializableException: akka.actor.ActorSystemImpl
at org.deeplearning4j.util.SerializationUtils.saveObject(SerializationUtils.java:88)
at org.deeplearning4j.word2vec.Word2VecExample.train(Word2VecExample.java:88)
at org.deeplearning4j.word2vec.Word2VecExample.main(Word2VecExample.java:58)
Caused by: java.io.NotSerializableException: akka.actor.ActorSystemImpl
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at org.deeplearning4j.util.SerializationUtils.saveObject(SerializationUtils.java:83)
The text was updated successfully, but these errors were encountered:
Since migrating from 0.0.3.2.6-SNAPSHOT to 0.0.3.2.8-SNAPSHOT I've been receiving the following error when trying to serialize Word2Vec object:
Word2Vec vec = new Word2Vec.Builder().minWordFrequency(5).vocabCache(cache)
.windowSize(5)
.layerSize(100).iterate(iter).tokenizerFactory(tokenizer)
.build();
vec.setCache(cache);
vec.fit();
SerializationUtils.saveObject(vec, new File(VEC_PATH));
Exception in thread "main" java.lang.RuntimeException: java.io.NotSerializableException: akka.actor.ActorSystemImpl
at org.deeplearning4j.util.SerializationUtils.saveObject(SerializationUtils.java:88)
at org.deeplearning4j.word2vec.Word2VecExample.train(Word2VecExample.java:88)
at org.deeplearning4j.word2vec.Word2VecExample.main(Word2VecExample.java:58)
Caused by: java.io.NotSerializableException: akka.actor.ActorSystemImpl
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at org.deeplearning4j.util.SerializationUtils.saveObject(SerializationUtils.java:83)
The text was updated successfully, but these errors were encountered: