DIY: Suggest Relevant Sentences
Explore how to design and implement a suggestion system that guesses the completion of input strings by tracking historical entries. Understand how to return the top three relevant sentence suggestions dynamically as input is typed, and update the dataset with new completed inputs to improve accuracy and relevance during search.
We'll cover the following...
We'll cover the following...
Problem statement
Design a system that will guess how a specific string will end. This system will make suggestions by tracking the history of strings that it has seen before. The input() function should take a continuous stream of input, which will end when "#" is found. Each call to the function ...