Skip to content

Instantly share code, notes, and snippets.

@AnasAlmasri
Created February 13, 2019 01:37
Show Gist options
  • Save AnasAlmasri/afbcf4b1c229166fd4a3264ef719a288 to your computer and use it in GitHub Desktop.
Save AnasAlmasri/afbcf4b1c229166fd4a3264ef719a288 to your computer and use it in GitHub Desktop.
building feature vector
word_features = buildVocabulary(preprocessedTrainingData)
trainingFeatures = nltk.classify.apply_features(extract_features, preprocessedTrainingData)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment