Colibri Core
Functions
patternmodel.cpp File Reference
#include <patternmodel.h>

Functions

int getmodeltype (const std::string &filename)
 
double comparemodels_loglikelihood (const Pattern pattern, std::vector< PatternModel< uint32_t > * > &models)
 
void comparemodels_loglikelihood (std::vector< PatternModel< uint32_t > * > &models, PatternMap< double > *resultmap, bool conjunctiononly, std::ostream *output, ClassDecoder *classdecoder)
 

Function Documentation

double comparemodels_loglikelihood ( const Pattern  pattern,
std::vector< PatternModel< uint32_t > * > &  models 
)

Computation of log likelihood for a single pattern, accross corpora.

Computation is as in Rayson and Garside (2000), Comparing corpora using frequency profiling. In proceedings of the workshop on Comparing Corpora, held in conjunction with the 38th annual meeting of the Association for Computational Linguistics (ACL 2000). 1-8 October 2000, Hong Kong, pp. 1 - 6: http://www.comp.lancs.ac.uk/~paul/publications/rg_acl2000.pdf

void comparemodels_loglikelihood ( std::vector< PatternModel< uint32_t > * > &  models,
PatternMap< double > *  resultmap,
bool  conjunctiononly,
std::ostream *  output,
ClassDecoder classdecoder 
)

Computation of log likelihood between patterns in corpora

Computation is as in Rayson and Garside (2000), Comparing corpora using frequency profiling. In proceedings of the workshop on Comparing Corpora, held in conjunction with the 38th annual meeting of the Association for Computational Linguistics (ACL 2000). 1-8 October 2000, Hong Kong, pp. 1 - 6: http://www.comp.lancs.ac.uk/~paul/publications/rg_acl2000.pdf

int getmodeltype ( const std::string &  filename)

Extracts the model type (one of ModelType) from a file