Created
October 27, 2020 20:29
-
-
Save ehzawad/efcff3cd0de13e1ba41db764adf5917d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
freqs = build_freqs(tweets, labels) | |
X = np.zeros((m, 3)) | |
for i in range(m): | |
p_tweet = process_tweet(tweets[i]) | |
X[i, :] = extract_features(p_tweet, freqs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment