Skip to content

This is a simple trigram AI text prediction algorithm that I made a few years ago.

License

Notifications You must be signed in to change notification settings

ruben-david-roy/Simple-Text-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Text Prediction Algorithm

This is a simple trigram AI text prediction algorithm that I made a few years ago.

Image

Table of Contents

Installation

First, clone the Github repository with this command:

git clone https://github.com/DarkTwentyFive/Simple-Text-Prediction.git

Usage

Then, enter the code directory with:

cd Simple-Text-Prediction

Finally, run the code with:

python main.py

You will then receive an input to enter a word or phrase, enter it in and you will receive the predicted next word.

Creating a Dataset

You can add to the existing dataset or create a new one by modifying or creating a new dataset.json.

This is a snippet of how dataset.json looks:

{
   "data":[
      "The quick brown fox jumps over the lazy dog.",
      "Hello, how are you today?",
      "What is the weather like?",
      "How are you doing?",
      "I like to code.",
      "Can you recommend a good book?",
      "Where is the nearest coffee shop?",
      "What time is the movie tonight?"
   ]
}

Credits

Developed by Ruben Roy.

License

This text prediction algorithm is entirely open-source and is under the MIT License. See the LICENSE for more information.

About

This is a simple trigram AI text prediction algorithm that I made a few years ago.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages