Skip to content

Instantly share code, notes, and snippets.

@3rt4nm4n
Last active September 16, 2022 21:45
Show Gist options
  • Save 3rt4nm4n/bde8417166177c03815099d9d036e948 to your computer and use it in GitHub Desktop.
Save 3rt4nm4n/bde8417166177c03815099d9d036e948 to your computer and use it in GitHub Desktop.
Steps to follow in a natural language processing machine learning model development

NLP Machine Learning Model Development Steps:

  1. Library import (nlp, numpy, pandas, matplotlib, seaborn etc.)
  2. NLTK downloads (checking packages' status)
  3. Importing data
  4. Data analysis (EDA)
  5. Converting target/classes to int class type (Like orange : 0, red : 1)
  6. Converting dtype text data to string type with astype
  7. Regex
  8. Data visualization
  9. Getting max features (CountVectorizer)
  10. Sparce matrix
  11. Most used words
  12. Train & Test data split
  13. Importing the model (e.g. SVM)
  14. Training the model
  15. Classification, confusion matrix, accuracy results
  16. Saving the model
  17. Reloading and trying the saved model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment