This presentation will introduce the Sentence Autocomplete App, its prediction algorithm and the user interface.
The App can be reached by following the link below:
2023-11-27
This presentation will introduce the Sentence Autocomplete App, its prediction algorithm and the user interface.
The App can be reached by following the link below:
In very simple terms, the Sentence Autocomplete app tries to predict what the next word in a given incomplete sentence is going to be.
The app will suggest the next word based on a large collection of twitter data, news feeds and blogs, which was analyzed using natural language processing algorithms to yield realistic suggestions.
The application will then read the incomplete sentence and predict the following word using n-grams (the last n words in a sequence of text), as will be explained.
====================================
The model was based on, and built over, a sample of over 800,000 sentences extracted from a collection of blog texts, news feeds and posts from tweeter, so the app works with real world data.
All those texts were further cleaned, that is, standardize capitalization, remove non-ascii characters, punctuation, et alia. Additionally, profane words were also filtered off, making the app safe for all audiences and ad-friendly.
When a text is entered, the algorithm tries to predict first using a tetragram (4 last words), then a trigram, then a bigram. So for example, the algorithm will search the data for the expression “I have never seen”; if nothing is found, “have never seen”, and lastly, “never seen”, each iteration with more potential for results! Then, depending on user choice, 1 to 3 suggestions will be returned, from most frequent to last frequent.
====================================
The user interface is quite simple and straighforward. Simply type an incomplete sentence on the box and choose the number of suggestions you want returned. After a brief delay, the text will be shown on the right pane and the autocomplete suggestions, below the text entered.