Python, NLP, Numpy, Scikit Learn.
= encoder.count_vector(sent2) print(vec2) # [0. 0. 0. 0. 0.06896552 0. # 0. 0.03448276 0. 0. 0. 0. # 0.03448276 0. 0. 0. 0.03448276 0. # 0. 0. 0.03448276 0. 0. 0.03448276 # 0. 0.03448276 0.03448276 0. 0. 0. # 0. 0.03448276 0. 0. 0.03448276 0. # 0.03448276 0.03448276 0.03448276 0.03448276]