public static WordVectors fromTableAndVocab ( WeightLookupTable table , VocabCache vocab ) { WordVectorsImpl vectors = new WordVectorsImpl ( ) ; vectors . setLookupTable ( table ) ; vectors . setVocab ( vocab ) ; vectors . setModelUtils ( new BasicModelUtils ( ) ) ; return vectors ; }
Load word vectors for the given vocab and table