Browsing by Author "Premadasa, H. K. S."
Now showing 1 - 2 of 2
- Results Per Page
- Sort Options
Item Capturing sentence-level positional data into N-gram profiles for document classification(Faculty of Science, University of Kelaniya Sri Lanka, 2023) Gunasekara, L. M. S.; Premadasa, H. K. S.Document classification is a crucial aspect in natural language processing with a wide range of applications in various domains such as email spam filtering, hate speech detection, political bias assessment, etc. While modern transformer-based classification approaches have shown promising results in this area, they rely on expensive parallel processing hardware, leaving them out of reach for simpler applications. Therefore, it is still safe to assume that there is room for improvement in terms of developing approaches with lower computational complexity. N-grams are a simple and efficient way of representing text data as features based on the distribution of contiguous tokens within the text. This approach is widely used in text analysis and research due to its language independence and minimal pre-processing requirements. However, most of these models do not possess sentence-level positional information in their n-gram profiles. Hence, in this study, we propose a revised algorithm for generating n-gram profiles related to document categories in a classification task. We combine this new algorithm with the Euclidean distance metric to assign class labels for raw documents. This algorithm was evaluated on two main tasks: language classification and subject classification (in English). Our results show that this approach achieves accuracy levels comparable to state-of-the-art models. For the language classification task, we were able to showcase an accuracy of 91% on the WiLI Benchmark Dataset consisting of 235 languages in total with an average prediction time of 1.88 × 10−2 seconds. Furthermore, we investigated several configurations in the dimensions of n-gram range and n-gram cutoff length for the subject classification task. The best performing configuration of a fixed n-gram length of 5 and a cutoff length of 5000 assumes an accuracy of 50% with an average inference time of 3.29 × 10−2 seconds on the 20 Newsgroups Dataset spanning a whole of 20 newsgroups categories. Overall, our findings suggest that this approach of including sentence-level positional data in n-gram profiles can facilitate an algorithm of minimal complexity, and this algorithm, combined with a suitable n-gram range and cutoff level, can perform well for document classification, particularly when dealing with noisy data with similar categorical labels.Item Mobile learning application usability: A pattern mining approach(Faculty of Science, University of Kelaniya, Sri Lanka., 2021) Dolawattha, D. D. M.; Premadasa, H. K. S.User satisfaction is very important for mobile learning applications to provide the maximum academic outcome. Hence evaluating mobile learning systems is important to test their usability. Most of the previous studies used statistical approaches to test the usability of learning systems. The main objective of this study is to evaluate the usability of the mobile learning system using a data science approach. To evaluate the proposed mobile learning system, responses for a questionnaire were obtained from 100 system users After applying several preprocessing steps, the responses were evaluated using two pattern mining algorithms: Apriori and FP-Growth. According to the results, the Apriori algorithm shows 94% system usability while the FP-Growth algorithm ensures 93% system usability. It confirms the proposed mobile learning system’s usability. Furthermore, it was observed that this pattern mining-based approach can be successfully applied in usability evaluation for learning systems.