finish document vector