Skip to content

Commit

Permalink
Update WordVectorTraining.java
Browse files Browse the repository at this point in the history
  • Loading branch information
vijay033 authored Feb 16, 2019
1 parent a6462d1 commit aaec1f8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions WordVectorTraining.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ public void run() {
public void trainW2V(){
SentenceIterator iterator = null;
TokenizerFactory tokenizerFactory = null;
VocabCache<VocabWord> cache = null;
WeightLookupTable<VocabWord> table = null;
word2Vec = new Word2Vec[in_vectorStream.length];

// VocabCache<VocabWord> cache = null;
// WeightLookupTable<VocabWord> table = null;

if(wordVectorSaver.getSavedModelState() == false){

new Thread(mMessageSender).start();
Expand All @@ -168,9 +169,9 @@ public void trainW2V(){
.seed(42)
.windowSize(5)
.epochs(1)
// .batchSize(10)
// .stopWords(stopwords)
// .stopWords(extendedStopwords)
.batchSize(10)
.stopWords(stopwords)
.stopWords(extendedStopwords)
.iterate(iterator)
.tokenizerFactory(tokenizerFactory)
// .lookupTable(table)
Expand Down

0 comments on commit aaec1f8

Please sign in to comment.