An n-gram is a contiguous sequence of 'n' items from a given sample of text or speech. It is a fundamental concept in natural language processing and is used to analyze and understand language patterns by breaking down sentences into smaller pieces, which can help with various tasks like text classification, sentiment analysis, and machine translation.
congrats on reading the definition of n-gram. now let's actually learn it.