IniziaInizia gratis

Quiz 2 - Question 2

Consider the following text:

jollof rice is a beloved one-pot rice dish from west africa , characterized by its vibrant reddish-orange color and rich , often slightly spicy , tomato-based flavor infused with onions , peppers , garlic , ginger , curry powder , and thyme , all cooked in stock.


For the purpose of this exercise, all words have been transformed to lowercase and punctuation marks have been split from the words. Assume that punctuation marks are considered to be individual words as well (e.g., “spicy , tomato-based” is split into the three words “spicy”, “,”, and “tomato-based”).
Compute the number of trigrams made up of any combination of words that appear in this text whose count is 0.

Questo esercizio fa parte del corso

Google DeepMind: Build Your Own Small Language Model

Visualizza il corso

Esercizio pratico interattivo

Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi

Inizia esercizio