code: public static WordVectors fromTableAndVocab(WeightLookupTable table, VocabCache vocab) {
          WordVectorsImpl vectors = new WordVectorsImpl();
          vectors.setLookupTable(table);
          vectors.setVocab(vocab);
          vectors.setModelUtils(new BasicModelUtils());
          return vectors;
      }
docs: Load word vectors for the given vocab and table
  
  @param table the weights to use
  @param vocab the vocab to use
  @return wordvectors based on the given parameters