Parser::WordFreq Class Reference
[Dependency Parser]
List of all members.
Public Types |
typedef unordered_map< const
char *, float, hash< const
char * >, eqstr > | HashMap |
Public Member Functions |
| WordFreq (char const *file) |
| Load from file containing one n-gram per line.
|
| WordFreq (std::string &file) |
bool | contains (char const *ngram) |
| Test for the presence of ngram ngram in the set.
|
bool | contains (std::string const &ngram) |
| Test for the presence of ngram ngram in the set.
|
std::pair< iterator, bool > | insert (const value_type &__obj) |
| Ensure we have our own copy of ngrams.
|
mapped_type & | operator[] (const key_type &_Keyval) |
void | load (char const *file) |
| Load from file: one ngram per line.
|
void | load (std::ifstream &ifs) |
| Format: one ngram per line.
|
Member Function Documentation
void Parser::WordFreq::load |
( |
std::ifstream & |
ifs |
) |
[inline] |
Format: one ngram per line.
Each line contains: ngram count
References insert().
The documentation for this class was generated from the following file: