43 lines
911 B
C++
43 lines
911 B
C++
#include "../include/FileUtils.h"
|
|
#include "../include/WordUtils.h"
|
|
#include "../include/ServerUtils.h"
|
|
|
|
using namespace std;
|
|
|
|
int main(int argc, const char* argv[]) {
|
|
/*if (argc > 2)
|
|
{
|
|
cout << "Too many arguments";
|
|
return 0;
|
|
}
|
|
|
|
if (!FileUtils::fileExists(argv[1]))
|
|
{
|
|
cout << "Filepath: " << argv[1] << " doesn't exist.";
|
|
return 0;
|
|
}*/
|
|
|
|
|
|
/*auto lol = WordUtils::load_data("/home/skingging/Documents/Projects/CPP/AI-Tarpit-Reimagined/wordlist/wordlist-Food.txt");
|
|
string word;
|
|
|
|
while (true)
|
|
{
|
|
cout << "Please input word: \n";
|
|
cin >> word;
|
|
|
|
vector<string> words = WordUtils::predict_next_word(word, lol, 10);
|
|
|
|
for (const auto& out : words)
|
|
{
|
|
cout << "Next word is: " << out << endl;
|
|
}
|
|
}*/
|
|
|
|
|
|
//argv[1]
|
|
ServerUtils server;
|
|
server.serve();
|
|
|
|
return 0;
|
|
} |