code: public Vector getVector(String term) {
          SparseDoubleVector v = termToVector.get(term);
          return (v == null) ? null : Vectors.immutable(
              Vectors.subview(v, 0, basisMapping.numDimensions()));
      }
docs: {@inheritDoc}