-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
from sklearn.feature_extraction.text import HashingVectorizer
list of text documents
text = ["The quick brown fox jumped over the lazy dog."]
create the transform
vectorizer = HashingVectorizer(n_features=20)
encode document
vector = vectorizer.transform(text)
summarize encoded vector
print(vector.shape)
print(vector.toarray())
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels