public static Word2Vec fromPair ( Pair < InMemoryLookupTable , VocabCache > pair ) { Word2Vec vectors = new Word2Vec ( ) ; vectors . setLookupTable ( pair . getFirst ( ) ) ; vectors . setVocab ( pair . getSecond ( ) ) ; vectors . setModelUtils ( new BasicModelUtils ( ) ) ; return vectors ; }
Load word vectors from the given pair