code: public static INDArray asExampleMatrix(Window window, Word2Vec vec) {
          INDArray[] data = new INDArray[window.getWords().size()];
          for (int i = 0; i < data.length; i++) {
              data[i] = vec.getWordVectorMatrix(window.getWord(i));
  
              // if there's null elements
              if (data[i] == null)
                  data[i] = Nd4j.zeros(1, vec.getLayerSize());
          }
          return Nd4j.hstack(data);
      }
docs: Converts a window (each word in the window)
  
  in to a vector.
  
  Keep in mind each window is a multi word context.
  
  From there, each word uses the passed in model
  as a lookup table to get what vectors are relevant
  to the passed in windows
  @param window the window to take in.
  @param vec the model to use as a lookup table
  @return a concatneated 1 row array
  containing all of the numbers for each word in the window