Uber·Machine Learning Engineer·Technical Phone Screen
- Build a two-part text generation system: first, write a function that takes a text corpus and builds a frequency map tracking which words follow each word and how often. Second, write a generator that uses that map to produce a sequence of a given length by always picking the highest-frequency next word from the current one.
“The frequency map part was fine, tokenize on whitespace, strip punctuation, nested dict.”