Source: wikibot/language-modeling

= Language modeling
{wiki=Language_modeling}

Language modeling is a fundamental task in natural language processing (NLP) that involves predicting the probability of a sequence of words or characters in a language. The goal of a language model is to understand and generate language in a way that is coherent and contextually relevant. There are two main types of language models: 1. **Statistical Language Models**: These models use statistical techniques to estimate the likelihood of a particular word given its context (previous words).