Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Created October 27, 2020 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehzawad/efcff3cd0de13e1ba41db764adf5917d to your computer and use it in GitHub Desktop.
Save ehzawad/efcff3cd0de13e1ba41db764adf5917d to your computer and use it in GitHub Desktop.
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