journal article·2019-05-07Open access

The N-Grams Based Text Similarity Detection Approach Using Self-Organizing Maps and Similarity Measures

Pavel Stefanovič, Olga Kurasova, Rokas Štrimaitis

Applied Sciences· Volume 9· Issue 9

Abstract

In the paper the word-level n-grams based approach is proposed to find similarity between texts. The approach is a combination of two separate and independent techniques: self-organizing map (SOM) and text similarity measures. SOM’s uniqueness is that the obtained results of data clustering, as well as dimensionality reduction, are presented in a visual form. The four measures have been evaluated: cosine, dice, extended Jaccard’s, and overlap. First of all, texts have to be converted to numerical expression. For that purpose, the text has been split into the word-level n-grams and after that, the bag of n-grams has been created. The n-grams’ frequencies are calculated and the frequency matrix of dataset is formed. Various filters are used to create a bag of n-grams: stemming algorithms, number and punctuation removers, stop words, etc. All experimental investigation has been made using a corpus of plagiarized short answers dataset.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Text Analysis Techniques · Text and Document Classification Technologies · Time Series Analysis and Forecasting

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Fundamental Science, Vilnius Gediminas Technical University, Saulėtekio al. 11, LT-10223 Vilnius, Lithuania

Institute of Data Science and Digital Technologies, Vilnius University, Akademijos str. 4, LT–08663 Vilnius, Lithuania

References (28)

Show source-provided references
1. Miner, G., Elder, J., Fast, A., Hill, T., Nisbet, R., and Delen, D. (2012). Practical Text Mining and Statistical Analysis for Non-Structured Text Data Applications, Elsevier Inc.
2. Words versus character n-grams for anti-spam filtering10.1142/S0218213007003692 ↗
3. Mohammadi, H., and Khasteh, S.H. (2018). A Fast Text Similarity Measure for Large Document Collections using Multi-reference Cosine and Genetic Algorithm. arXiv.
4. Comparison of Automatic Keyphrase Extraction Systems in Scientific Papers10.13053/rcs-115-1-15 ↗
5. Contextual plagiarism detection using latent semantic analysis
6. Word n-gram attention models for sentence similarity and inference10.1016/j.eswa.2019.04.054 ↗
7. Bao, J., Lyon, C., Lane, P.C.R., Ji, W., and Malcolm, J. (2007). Comparing Different Text Similarity Methods, University of Hertfordshire. Technical Report.
8. Arora, S., Khodak, M., Saunshi, N., and Vodrahalli, K. (May, January 30). A compressed sensingview of unsupervised text embeddings, bag-of-n-grams, and lstms. Proceedings of the ICLR 2018, Vancouver, BC, Canada.
9. Framework for syntactic string similarity measures10.1016/j.eswa.2019.03.048 ↗
10. Kimmel, R., Klette, R., and Sugimoto, A. (2010, January 8–12). Cosine Similarity Metric Learning for Face Verification. Proceedings of the Computer Vision (ACCV 2010), Queenstown, New Zealand. Lecture Notes in Computer Science.10.1007/978-3-642-19318-7 ↗
11. Niwattanakul, S., Singthongchai, J., Naenudorn, E., and Wanapu, S. (2013, January 13–15). Using of jaccard coefficient for keywords similarity. Proceedings of the International Multi Conference of Engineers and Computer Scientists, Hong Kong, China.
12. Zeimpekis, D., and Gallopoulos, E. (2005). TMG: A Matlab Toolbox for Generating Term-Text document Matrices from Text Collections, University of Patras. Technical Report HPCLAB-SCG 1/01-05.
13. Berthold, M.R., Cebron, N., Dill, F., Gabriel, T.R., Kötter, T., Meinl, T., Ohl, P., Sieb, C., Thiel, K., and Wiswedel, B. (2017). Data Analysis, Machine Learning and Applications. Studies in Classification, Data Analysis, and Knowledge Organization, Springer.
14. Ritthoff, O., Klinkenberg, R., Fisher, S., Mierswa, I., and Felske, S. (2001). YALE: Yet Another Learning Environment, University of Dortmund. Technical Report 763.
15. Creation of Text document Matrices and Visualization by Self-Organizing Map
16. An algorithm for suffix stripping10.1108/eb046814 ↗
17. Li, B., Liu, T., Zhao, Z., Wang, P., and Du, X. (2017, January 4–9). Neural Bag-of-Ngrams. Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, San Francisco, CA, USA.10.1609/aaai.v31i1.10954 ↗
18. Balabantaray, R.C., Sarma, C., and Jha, M. (2015). Document Clustering using K-Means and K-Medoids. arXiv.
19. Document Clustering: A Detailed Review
20. Aggarwal, C.C., and Zhai, C. (2012). A Survey of Text Clustering Algorithms. Mining Text Data, Springer.10.1007/978-1-4614-3223-4 ↗
21. Kohonen, T. (2001). Self-Organizing Maps, Springer. [3rd ed.].10.1007/978-3-642-56927-2 ↗
22. Visual analysis of self-organizing maps10.15388/NA.16.4.14091 ↗
23. Johnsson, M. (2012). Application of Self-Organizing Maps in Text Clustering: A Review. Applications of Self-Organizing Maps, InTech.10.5772/3464 ↗
24. Sharma, A., and Dey, S. (2013). Using Self-Organizing Maps for Sentiment Analysis. arXiv.
25. Metzler, D., Dumais, S.T., and Meek, C. (2007, January 2–5). Similarity Measures for Short Segments of Text. Proceedings of the European Conference on Information Retrieval 2007, Rome, Italy.10.1007/978-3-540-71496-5_5 ↗
26. Rokach, L., and Maimon, O. (2005). Clustering Methods. The Data Mining and Knowledge Discovery Handbook 2005, Springer.10.1007/0-387-25465-X_15 ↗
27. Clough, P., and Stevenson, M. (2011). Developing a Corpus of Plagiarized Short Answers. Language Resources and Evaluation, Springer. Special Issue on Plagiarism and Authorship Analysis.
28. Orange: Data Mining Toolbox in Python