Skip to content

Using n-gram models, application will predict the next word based on the previous inputs

Notifications You must be signed in to change notification settings

hrithik2200/Text-Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-Predictor

How to run the program:

Step 1:

Run the python script server.py and terminate the program after Step 3.

Step 2:

Open the index.html on any web browser

Step 3:

Follow the instructions displayed upon opening the page and the predicted words will be displayed on top of the keyboard.

Dataset Used:

Counting of things in NLP is based on a corpus. NLTK (Natural Language Toolkit) provides a diverse set of corpora. For our project we'll be using the Brown corpus. The Brown corpus is a 1-million-word collection of samples from 500 written texts from different genres (newspaper, novels, non-fiction etc.). There are tasks such as spelling error detection, word prediction for which the location of the punctuation is important. Our application counts punctuation as words.

About

Using n-gram models, application will predict the next word based on the previous inputs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published