convert document to vector, use vector to train