code: def ix(self, word):
          
          temp = np.where(self.vocab == word)[0]
          if temp.size == 0:
              raise KeyError("Word not in vocabulary")
          else:
              return temp[0]
docs: Returns the index on self.vocab and self.clusters for 'word'