code: public static Word2Vec readWord2VecModel(@NonNull File file, boolean extendedModel) {
  
          if (!file.exists() || !file.isFile())
              throw new ND4JIllegalStateException("File [" + file.getAbsolutePath() + "] doesn't exist");
  
          Word2Vec vec = null;
  
          int originalFreq = Nd4j.getMemoryManager().getOccasionalGcFrequency();
          boolean originalPeriodic = Nd4j.getMemoryManager().isPeriodicGcActive();
          if (originalPeriodic)
              Nd4j.getMemoryManager().togglePeriodicGc(false);
          Nd4j.getMemoryManager().setOccasionalGcFrequency(50000);
  
          // try to load zip format
          try {
              vec = readWord2Vec(file, extendedModel);
              return vec;
          } catch (Exception e) {
              // let's try to load this file as csv file
              try {
                  if (extendedModel) {
                      vec = readAsExtendedModel(file);
                      return vec;
                  } else {
                      vec = readAsSimplifiedModel(file);
                      return vec;
                  }
              } catch (Exception ex) {
                  try {
                      vec = readAsCsv(file);
                      return vec;
                  } catch (Exception exc) {
                      try {
                          vec = readAsBinary(file);
                          return vec;
                      } catch (Exception exce) {
                          try {
                              vec = readAsBinaryNoLineBreaks(file);
                              return vec;
  
                          } catch (Exception excep) {
                              throw new RuntimeException("Unable to guess input file format. Please use corresponding loader directly");
                          }
                      }
                  }
              }
          }
      }
docs: This method
  1) Binary model, either compressed or not. Like well-known Google Model
  2) Popular CSV word2vec text format
  3) DL4j compressed format
  <p>
  Please note: if extended data isn't available, only weights will be loaded instead.
  
  @param file
  @param extendedModel if TRUE, we'll try to load HS states & Huffman tree info, if FALSE, only weights will be loaded
  @return