Tanl Linguistic Pipeline

Parser::WordFreq Class Reference
[Dependency Parser]

Inheritance diagram for Parser::WordFreq:
IXE::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc >

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.