Cpgeragh / Emerging-Technologies

0 stars 0 forks source link

Define and Implement generate_text Function #11

Open Cpgeragh opened 3 days ago

Cpgeragh commented 3 days ago

Description: Create a function that uses the trigram model from Task 1 to generate synthetic text sequences, starting with an initial two-character seed.

Checklist:

Cpgeragh commented 2 days ago

Research:

https://medium.com/@vsagziyagli/text-generation-using-n-grams-ef49e6e43d39#:~:text=Tokenize%20Words%20and%20Create%20N%2DGRAM%20Dictionary%3A&text=We%20fill%20the%20keys%20by,the%20values%20by%20following%20words. https://towardsdatascience.com/text-generation-using-n-gram-model-8d12d9802aa0 https://www.numpyninja.com/post/n-gram-and-its-use-in-text-generation https://www.kaggle.com/code/dimitriirfan/text-generation-using-n-gram-model