Python, NLP, Numpy, Scikit Learn.
0. 0.03571429 0. 0.03571429 0. # 0. 0. 0. 0. 0. 0.03571429 # 0. 0. 0. 0.03571429 0. 0. # 0.03571429 0. 0. 0.07142857 0. 0. # 0.03571429 0. 0. 0. 0.03571429 0. # 0. 0. 0. 0. 0. 0.03571429 # 0. 0. 0. 0. ] print(vec1.shape) # (40,) sent2 = [word for word in word_tokenize(corpus.raw('sent2.txt'))] vec2