Uses the C++ "map" data structure to output predicted text from training text file.
A training file is already included (Trump.txt is most of Donald Trump's speech in Iowa on January 30th, 2020), but any text file can be used. Usage is as follows:
make
./text-predictor [training filename] [Output length (Ex: 100)]
This program is very entertaining because you can generate text that sounds like your training data. Here's an example output using Trump.txt and 100 output length:
I think she made a bad speech last night But irredeemable remember She called them deplorable and irredeemable and me being so brilliant I said Shes in trouble I went to him I said Listen your deal is no good so you got maniacs doing a number on you all the noises about their crazy debates nobodys watching their debates look NBC is horrible the NBC Nightly News its terrible The good news is reporting their fake news and all of the Socialists and were fighting the lobbyists and were working with China just so you have that its incredible