January 2019
Intermediate to advanced
294 pages
6h 43m
English
The following are the steps for executing the CountVectorizer:
from sklearn.feature_extraction.text import CountVectorizer
text = [" Machine translation automatically translate text from one human language to another text"]
vectorizer.fit(text)
You will get the following output:

print(vectorizer.vocabulary_)
We get the following output:
vector = vectorizer.transform(text)
Read now
Unlock full access