code: public Vector getVector(String word) {
          // determine the index for the word
          int index = termToIndex.getDimension(word);
          
          return (index < 0) ? null : wordSpace.getRowVector(index);
      }
docs: {@inheritDoc}