code: def load(fname, kind="auto", *args, **kwargs):
      
      if kind == "auto":
          if fname.endswith(".bin"):
              kind = "bin"
          elif fname.endswith(".txt"):
              kind = "txt"
          else:
              raise Exception("Could not identify kind")
      if kind == "bin":
          return word2vec.WordVectors.from_binary(fname, *args, **kwargs)
      elif kind == "txt":
          return word2vec.WordVectors.from_text(fname, *args, **kwargs)
      elif kind == "mmap":
          return word2vec.WordVectors.from_mmap(fname, *args, **kwargs)
      else:
          raise Exception("Unknown kind")
docs: Loads a word vectors file