OpenAI: Exploring next word prediction using long-form text data to uncover patterns, insights, and key questions.
You've certainly heard about the GPT language models that are used by many AI tools such as ChatGPT. What these models do, in simple terms, they try to accurately predict what the most logical next word would be given an input. In this project, you will try to implement a similar model, of course, much less advanced. Select a set of training data with a lot of real-life text (e.g. a book) and use it to train a neural network which, given input with a couple of words, returns the list of the most probable words that would make for a logical continuation.
Tips
The file book.txt contains the entire eBook 'The Adventures of Sherlock Holmes' by Arthur Conan Doyle in Plain Text (UTF-8) format. This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever under the terms of the Project Gutenberg License (https://www.gutenberg.org/).
However, you can use any other long text or book as input for this project.
Make sure that the solution reflects your entire thought process - it is more important how the code is structured rather than the final results.
See the full interview round by round, with questions for each stage.