International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
|
Volume 185 - Issue 2 |
Published: Apr 2023 |
Authors: Ahmad Farhan Alshammari |
![]() |
Ahmad Farhan Alshammari . Implementation of Text Similarity using Cosine Similarity Method in Python. International Journal of Computer Applications. 185, 2 (Apr 2023), 11-14. DOI=10.5120/ijca2023922667
@article{ 10.5120/ijca2023922667, author = { Ahmad Farhan Alshammari }, title = { Implementation of Text Similarity using Cosine Similarity Method in Python }, journal = { International Journal of Computer Applications }, year = { 2023 }, volume = { 185 }, number = { 2 }, pages = { 11-14 }, doi = { 10.5120/ijca2023922667 }, publisher = { Foundation of Computer Science (FCS), NY, USA } }
%0 Journal Article %D 2023 %A Ahmad Farhan Alshammari %T Implementation of Text Similarity using Cosine Similarity Method in Python%T %J International Journal of Computer Applications %V 185 %N 2 %P 11-14 %R 10.5120/ijca2023922667 %I Foundation of Computer Science (FCS), NY, USA
The goal of this research is to develop a text similarity program using cosine similarity method in Python. The steps of text similarity process are: preprocessing text, word-tokenization, creating list of words, creating bag of words, calculating word frequency, and calculating cosine similarity. The developed program was examined on two experimental texts from Wikipedia. The program successfully performed the steps of text similarity and provided the required results.