Python, NLP, Numpy, Scikit Learn.
print(vec1.shape) # (40,) vec2 = encoder.TfIdf_vector('sent2.txt') print(vec2) # [0. 0. 0. 0. 0.06896552 0. # 0. 0.03788318 0. 0. 0. 0. # 0.03788318 0. 0. 0. 0.03788318 0. # 0. 0. 0.03788318 0. 0. 0.03788318 # 0. 0.03788318 0.03788318 0. 0. 0. # 0. 0.03788318 0. 0. 0.03788318 0. # 0.01398156