Colibri Core
Functions
patternmodeller.cpp File Reference
#include <fstream>
#include <iostream>
#include <string>
#include <cmath>
#include <algorithms.h>
#include <common.h>
#include <getopt.h>
#include <patternmodel.h>
#include <config.h>

Functions

void usage ()
 
template<class ModelType = IndexedPatternModel<>>
void processquerypattern (ModelType &model, ClassDecoder *classdecoder, const Pattern &pattern, bool dorelations)
 
template<class ModelType = IndexedPatternModel<>>
void processquerypatterns (ModelType &model, ClassEncoder *classencoder, ClassDecoder *classdecoder, const vector< string > &querypatterns, bool dorelations)
 
template<class ModelType = IndexedPatternModel<>>
void querymodel (ModelType &model, ClassEncoder *classencoder, ClassDecoder *classdecoder, bool dorelations, bool repeat=true)
 
void assert_file_exists (const string &filename)
 
template<class ModelType = IndexedPatternModel<>>
void viewmodel (ModelType &model, ClassDecoder *classdecoder, ClassEncoder *classencoder, bool print, bool report, bool histogram, bool query, bool relations, bool info, bool printreverseindex, int cooc, double coocthreshold=0.1)
 
template<class ModelType >
bool processmodel (const string &inputmodelfile, int inputmodeltype, const string &outputmodelfile, int outputmodeltype, const string &corpusfile, PatternSetModel *constrainbymodel, IndexedCorpus *corpus, PatternModelOptions &options, bool continued, bool expand, int firstsentence, bool ignoreerrors, string inputmodelfile2, ClassDecoder *classdecoder, ClassEncoder *classencoder, bool print, bool report, bool histogram, bool query, bool relations, bool info, bool printreverseindex, int cooc, double coocthreshold, bool flexfromskip, const vector< string > &querypatterns)
 
int main (int argc, char *argv[])
 

Function Documentation

void assert_file_exists ( const string &  filename)
int main ( int  argc,
char *  argv[] 
)


template<class ModelType >
bool processmodel ( const string &  inputmodelfile,
int  inputmodeltype,
const string &  outputmodelfile,
int  outputmodeltype,
const string &  corpusfile,
PatternSetModel constrainbymodel,
IndexedCorpus corpus,
PatternModelOptions options,
bool  continued,
bool  expand,
int  firstsentence,
bool  ignoreerrors,
string  inputmodelfile2,
ClassDecoder classdecoder,
ClassEncoder classencoder,
bool  print,
bool  report,
bool  histogram,
bool  query,
bool  relations,
bool  info,
bool  printreverseindex,
int  cooc,
double  coocthreshold,
bool  flexfromskip,
const vector< string > &  querypatterns 
)
template<class ModelType = IndexedPatternModel<>>
void processquerypattern ( ModelType model,
ClassDecoder classdecoder,
const Pattern pattern,
bool  dorelations 
)
template<class ModelType = IndexedPatternModel<>>
void processquerypatterns ( ModelType model,
ClassEncoder classencoder,
ClassDecoder classdecoder,
const vector< string > &  querypatterns,
bool  dorelations 
)
template<class ModelType = IndexedPatternModel<>>
void querymodel ( ModelType model,
ClassEncoder classencoder,
ClassDecoder classdecoder,
bool  dorelations,
bool  repeat = true 
)
void usage ( )
template<class ModelType = IndexedPatternModel<>>
void viewmodel ( ModelType model,
ClassDecoder classdecoder,
ClassEncoder classencoder,
bool  print,
bool  report,
bool  histogram,
bool  query,
bool  relations,
bool  info,
bool  printreverseindex,
int  cooc,
double  coocthreshold = 0.1 
)