Natural language processing is still an emerging field in machine learning. Access to more and more data sets in textual form, new applications for artificial intelligence and the need for simple communication with operating systems all simultaneously affect the importance of natural language processing in evolving artificial intelligence. Traditional methods of textual representation, such as Bag-of-Words, have some limitations that result from the lack of consideration of semantics and dependencies between words. Therefore, we propose a new approach based on graph representations, which takes into account both local context and global relationships between words, allowing for a more expressive textual representation. The aim of the paper is to examine the possibility of using graph representations in natural language processing and to demonstrate their use in text classification. An innovative element of the proposed approach is the use of common cliques in graphs representing documents to create a feature vector. Experiments confirm that the proposed approach can improve classification efficiency. The use of a new text representation method to predict book categories based on the analysis of its content resulted in accuracy, precision, recall and an F1-score of over 90%. Moving from traditional approaches to a graph-based approach could make a big difference in natural language processing and text analysis and could open up new opportunities in the field.
Watching sports matches is a beloved pastime for every fan, and predicting the results and betting on which team will win adds to the excitement. Unfortunately, for some users, a lack of self-control can turn initially innocent play into a long-term problem. For this reason, problem gambling is among the crucial issues facing modern societies. Bookmaker companies, therefore, put considerable effort into implementing responsible gambling practices; however, identifying at-risk individuals remains a major challenge. Our paper focuses on identifying users who may currently have, or soon develop, potential issues with gambling. To achieve this, we introduce a set of machine learning methods combined with preprocessing tools that allow us to initially acquire and anonymize user data. This anonymized database is then used to identify high-risk groups. We tested our approach on a large dataset that was obtained and preprocessed specifically for this study. The experiments were conducted on actual data and verified by specialists responsible for identifying gambling problems. Using our method, we successfully identified and detected the early signs of potential gambling problems in multiple users.