Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

moot::mootLexfreqs Class Reference

Class for storage and retrieval of raw lexical frequencies.

#include <mootLexfreqs.h>

List of all members.

Public Types

Public Member Functions

Public Attributes


Member Typedef Documentation

typedef CountT moot::mootLexfreqs::LexfreqCount
 

Type for a single lexeme+tag co-occurrence count

typedef map<mootTagString,LexfreqCount> moot::mootLexfreqs::LexfreqSubtable
 

Type for frequency lookup subtables.

typedef hash_map<mootTagString,LexfreqCount> moot::mootLexfreqs::LexfreqTagTable
 

Lookup table: tag->Count(tag)

typedef hash_map<mootTokString,LexfreqEntry> moot::mootLexfreqs::LexfreqTokTable
 

Type for the lexical frequency lookup table.


Constructor & Destructor Documentation

moot::mootLexfreqs::mootLexfreqs size_t  initial_bucket_count = 0  )  [inline]
 

Default constructor

moot::mootLexfreqs::~mootLexfreqs  )  [inline]
 

Default destructor


Member Function Documentation

void moot::mootLexfreqs::add_count const mootTokString text,
const mootTagString tag,
const LexfreqCount  count
[inline]
 

Add 'count' to the current count for (token,tag)

void moot::mootLexfreqs::clear void   ) 
 

Clear internal table(s)

void moot::mootLexfreqs::compute_specials void   ) 
 

Add counts for 'special' tokens to the object. This should be called after you have added all 'real' tokens.

See also:
token2type().

bool moot::mootLexfreqs::load FILE *  file,
const char *  filename = 0
 

Load data from a TnT-style parameter file (stream version)

bool moot::mootLexfreqs::load const char *  filename  ) 
 

Load data from a TnT-style parameter file

size_t moot::mootLexfreqs::n_pairs void   ) 
 

Return the number of distinct (token,tag) pairs we've counted.

bool moot::mootLexfreqs::save FILE *  file,
const char *  filename = 0
 

Save data to a TnT-style paramater file (stream version)

bool moot::mootLexfreqs::save const char *  filename  ) 
 

Save data to a TnT-style paramater file

const LexfreqCount moot::mootLexfreqs::taglookup const mootTagString tag  )  const [inline]
 


Member Data Documentation

LexfreqTokTable moot::mootLexfreqs::lftable
 

lexeme->(tag->count) lookup table

LexfreqCount moot::mootLexfreqs::n_tokens
 

total number of tokens counted

LexfreqTagTable moot::mootLexfreqs::tagtable
 

tag->count lookup table


The documentation for this class was generated from the following file:
Generated on Mon Jun 27 13:05:27 2005 for libmoot by  doxygen 1.3.8-20040913