This code is originaly from https://towardsdatascience.com/cosine-similarity-how-does-it-measure-the-similarity-maths-behind-and-usage-in-python-50ad30aad7db and https://www.geeksforgeeks.org/create-inverted-index-for-file-using-python/ this code used Python Language the libraries are used NLTK, Matplotlib, and Pandas. the used methods for calculate similarities between documents are: Cosine-Similarity and Inverted-Index. لمعرفة لامزيد من التفاصيل يمكنكم متابعة كامل المقال على مدونة الذكاء االصطناعي باللغة العربية على الرابط التالي: https://aiinarabic.com/similarities-between-documents