Skip to content

About

A KNN model for classifying text reviews into binary 1 and -1 scores to indicate positive and negative sentiments with NLP text preprocessing, feature extraction, dimensionality reduction and k-fold cross validation.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

KNN-Text-review-classification

A KNN model for classifying text reviews into binary 1 and -1 scores to indicate positive and negative sentiments with NLP text preprocessing, feature extraction, dimensionality reduction and k-fold cross validation.

  1. Preprocessing:
  • Removing
    • HTML tags
    • URLs
    • Email-ids
    • Numbers
    • Punctuation
    • Accented text
  • Tokenizing
  • Removing stop words
  • Lemmatizing
  1. Feature extraction - Countvectorizer
  2. Similarity/Distance metric used for knn - Cosine similarity
  3. Cross-validation - k-fold

About

A KNN model for classifying text reviews into binary 1 and -1 scores to indicate positive and negative sentiments with NLP text preprocessing, feature extraction, dimensionality reduction and k-fold cross validation.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages