Click4Ai

235.

Hard

Implement a function to predict the next word in a sentence given a context. **Example:** Given the context 'I love to', the function should predict the next word. **Constraints:** The function should use a pre-trained language model and the input context should be a string.

Test Cases

Test Case 1
Input: 'I love to'
Expected: eat
Test Case 2
Input: 'This is a'
Expected: test
+ 3 hidden test cases