PyDA Course
🎲
Advanced ⏱ 50 min 📖 2 Lessons

Module 4: The generate_text() Function

Use random.choices to sample the next word from a bigram table and generate coherent text sequences.

randomsamplingtext-generationfunctionnlp

Lessons

Bigram Probability Tables CLI Text Generator & Temperature