Raonak Jahan Mimi, Md. Abdul Masud, Rifat Rahman, Nusrat Sultana Dina
{"title":"Text Prediction Zero Probability Problem Handling with N-gram Model and Laplace Smoothing","authors":"Raonak Jahan Mimi, Md. Abdul Masud, Rifat Rahman, Nusrat Sultana Dina","doi":"10.1109/icaeee54957.2022.9836419","DOIUrl":null,"url":null,"abstract":"In Natural Language Processing, text prediction represents the process of predicting the word with the highest probability through a predictive language model from a series of text corpus. The N-gram model is familiar and considered the handiest and most computationally cost-effective model for text processing. Additionally, higher N-gram models, especially the 5-gram ones, give the best text prediction. Interestingly, these better prediction results were obtained only on the training dataset. In contrast, the highest N-gram model imploded badly on the evaluation dataset. This paper proposes an approach where the N-gram model, especially the bi-gram model, and the fine tuning with Laplace Smoothing, provide the best prediction results at the evaluation stage.","PeriodicalId":383872,"journal":{"name":"2022 International Conference on Advancement in Electrical and Electronic Engineering (ICAEEE)","volume":"22 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-02-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Advancement in Electrical and Electronic Engineering (ICAEEE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/icaeee54957.2022.9836419","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
In Natural Language Processing, text prediction represents the process of predicting the word with the highest probability through a predictive language model from a series of text corpus. The N-gram model is familiar and considered the handiest and most computationally cost-effective model for text processing. Additionally, higher N-gram models, especially the 5-gram ones, give the best text prediction. Interestingly, these better prediction results were obtained only on the training dataset. In contrast, the highest N-gram model imploded badly on the evaluation dataset. This paper proposes an approach where the N-gram model, especially the bi-gram model, and the fine tuning with Laplace Smoothing, provide the best prediction results at the evaluation stage.