Last active
January 29, 2016 15:27
-
-
Save dulimarta/91e1a576e43a2c0e2382 to your computer and use it in GitHub Desktop.
CS263 TextPredictor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Hans Dulimarta | |
// | |
#ifndef TEXTPREDICTOR_TEXTPREDICTOR_H | |
#define TEXTPREDICTOR_TEXTPREDICTOR_H | |
#include <fstream> | |
#include <vector> | |
#include <map> | |
#include <set> | |
#include <unordered_map> | |
using namespace std; | |
class TextPredictor { | |
private: | |
/* TODO: declare your data structures here */ | |
public: | |
TextPredictor(); | |
void scanWordsFrom (istream&); | |
vector<string> wordsFromPrefix (const string& a_prefix) const; | |
vector<string> wordsAfter (const string& a_word) const; | |
private: | |
string lowercaseof (const string&) const; | |
/* TODO add your private functions here */ | |
}; | |
#endif //TEXTPREDICTOR_TEXTPREDICTOR_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment