Skip to content

pemagrg1/sentence-clustering

Repository files navigation

Created Date: 25 Apr 2018

sentence-clustering

Sentence clustering using various clustering algorithms

Current algorithms:

  1. Kmeans
  2. Affinity
  3. Agglomerative_clustering

To run the code:

  1. run main.py
  2. To test kmeans clustering, change the algo to clusters = sent_clus.kmeas_clustering() in main.py
  3. To test affinity clustering, change the algo to clusters = sent_clus.kmeas_clustering() in main.py
  4. To test Agglomerative_clustering, change the algo to sent_clus.Agglomerative_clustering() in main.py

Note: If you want to run the algorithms in different python files and test it, kindly check the "python files" folder.

In this Repo, I have used Justin Bieber's song "boyfiend" where am clustering his lyrics.

Kmeans plot:
alt text

Agglomerative plot:
alt text

affinity plot:
alt text

Releases

No releases published

Packages

No packages published

Languages