This is my take on a generative AI. It generates text based on a given dataset using various algorithms.
- Ask the user for a one word prompt.
- Start a sentence with the prompt word.
- Repeat until the word ends with a period, question mark, or exclamation point:
- Open the book to a random location.
- Read words until you find the prompt word.
- Choose the next word.
- Add the word to the end of the sentence.
- This word becomes the next prompt.
- When the loop exits, print the sentence.
- g++ Download here
- gdb (if you want to debug) Download here
- python Download here
mkdir ../CFileRunner
git clone https://github.com/superg3m/CFileRunner.git ../CFileRunner
powershell -ExecutionPolicy Bypass -File ../CFileRunner/RunC.ps1
powershell -ExecutionPolicy Bypass -File ../CFileRunner/DebugC.ps1
- Compile and run/debug the program using g++/gdb.
python .\PythonScripts\WebScrapper.py
python .\PythonScripts\FormatTxtFiles.py
This project is licensed under the MIT License.
For questions or support, you can reach to me at jovannidstudent@gmail.com.
Special thanks to Leo C. Ureel II at MTU for prompting this idea.