Tanl Linguistic Pipeline |
Public Member Functions | |
WordSetBase (char const *file) | |
Load from file containing one word per line. | |
WordSetBase (std::string &file) | |
void | clear () |
bool | contains (char const *word) |
Test for the presence of word word in the set. | |
bool | contains (std::string const &word) |
Test for the presence of word word in the set. | |
std::pair< typename _Base::iterator, bool > | insert (const char *word) |
Ensure we have our own copy of words. | |
void | store (char const *file) |
Store to file: one word per line. | |
void | load (char const *file) |
Load from file: one word per line. | |
Protected Types | |
typedef unordered_set< const char *, _Hash, _Pred > | _Base |
Protected Member Functions | |
void | load (std::ifstream &ifs) |