📚 node [[n gram]]
📓
garden/KGBicheno/Artificial Intelligence/Introduction to AI/Week 3 - Introduction/Definitions/N-Gram.md by @KGBicheno
N-gram
Go back to the [[AI Glossary]]
#seq
An ordered sequence of N words. For example, truly madly is a 2-gram. Because order is relevant, madly truly is a different 2-gram than truly madly.
N | Name(s) for this kind of N-gram | Examples |
---|---|---|
2 | bigram or 2-gram | to go, go to, eat lunch, eat dinner |
3 | trigram or 3-gram | ate too much, three blind mice, the bell tolls |
4 | 4-gram | walk in the park, dust in the wind, the boy ate lentils |
Many natural language understanding models rely on N-grams to predict the next word that the user will type or say. For example, suppose a user typed three blind. An NLU model based on trigrams would likely predict that the user will next type mice.
Contrast N-grams with bag of words, which are unordered sets of words.
📖 stoas
- public document at doc.anagora.org/n-gram
- video call at meet.jit.si/n-gram
⥅ related node [[neuro linguistic programming]]
⥅ related node [[2003 07 22 wired news tired of the telly reprogram it]]
⥅ related node [[2011 04 11 how to play instagram]]
⥅ related node [[2020 03 14 on instagram off facebook]]
⥅ related node [[meditation for programmers]]
⥅ related node [[concepts techniques and models of computer programming]]
⥅ related node [[daniel ingram]]
⥅ related node [[daniel m ingram]]
⥅ related node [[pattern languages of programs]]
⥅ related node [[resources to learn to program]]
⥅ related node [[structure and interpretation of computer programs]]
⥅ related node [[tindallgrams]]
⥅ related node [[lionel shriver on grammar]]
⥅ related node [[bring back instagram]]
⥅ related node [[instagram]]
⥅ related node [[2020 09 07 instagram disabled]]
⥅ related node [[a new grammar of organization]]
⥅ related node [[an iterative enquiry diagram for digital ecosocialism]]
⥅ related node [[an iterative inquiry diagram for digital ecosocialism]]
⥅ related node [[antonio gramsci]]
⥅ related node [[linear programming]]
⥅ related node [[plantuml for weeknote diagrams]]
⥅ related node [[stock and flow diagram]]
⥅ related node [[structural adjustment program]]
⥅ related node [[systems thinking diagrams in plantuml]]
⥅ related node [[obsolescencia programada]]
⥅ related node [[20200604222704 functional_programming]]
⥅ related node [[20200629133954 nix_programming_language]]
⥅ related node [[20210311213212 object_oriented_programming]]
⥅ related node [[20210423171911 concurrent_programming]]
⥅ related node [[20210516174118 context_free_grammar]]
⥅ related node [[20210521211721 function_programming]]
⥅ related node [[20210607154216 pure_functional_programming]]
⥅ related node [[20210503215708 7_lines_of_code_3_minutes_implement_a_programming_language_from_scratch]]
🔎 full text search for 'n gram'