Created Date: 25 Apr 2018
Sentence clustering using various clustering algorithms
- Kmeans
- Affinity
- Agglomerative_clustering
- run main.py
- To test kmeans clustering, change the algo to
clusters = sent_clus.kmeas_clustering()
in main.py - To test affinity clustering, change the algo to
clusters = sent_clus.kmeas_clustering()
in main.py - 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: