International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 185 - Number 2 |
Year of Publication: 2023 |
Authors: Ahmad Farhan AlShammari |
10.5120/ijca2023922667 |
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
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.