NGram  ngram-1.3.15
OpenGrm-NGram library
Functions
ngrammerge.cc File Reference
#include <fst/flags.h>
#include <ngram/ngram-model.h>
Include dependency graph for ngrammerge.cc:

Go to the source code of this file.

Functions

 DEFINE_double (alpha, 1.0,"Weight for first FST")
 
 DEFINE_double (beta, 1.0,"Weight for second (and subsequent) FST(s)")
 
 DEFINE_string (context_pattern,"","Context pattern for second FST")
 
 DEFINE_string (contexts,"","Context patterns file (all FSTs)")
 
 DEFINE_bool (normalize, false,"Normalize resulting model")
 
 DEFINE_string (method,"count_merge","One of: \"context_merge\", \"count_merge\", \"model_merge\" ""\"bayes_model_merge\", \"histogram_merge\", \"replace_merge\"")
 
 DEFINE_int32 (max_replace_order,-1,"Maximum order to replace in replace_merge, ignored if < 1.")
 
 DEFINE_string (ofile,"","Output file")
 
 DEFINE_int64 (backoff_label, 0,"Backoff label")
 
 DEFINE_double (norm_eps, ngram::kNormEps,"Normalization check epsilon")
 
 DEFINE_bool (check_consistency, false,"Check model consistency")
 
 DEFINE_bool (complete, false,"Complete partial models")
 
 DEFINE_bool (round_to_int, false,"Round all merged counts to integers")
 
int ngrammerge_main (int argc, char **argv)
 
int main (int argc, char **argv)
 

Function Documentation

DEFINE_bool ( normalize  ,
false  ,
"Normalize resulting model"   
)
DEFINE_bool ( check_consistency  ,
false  ,
"Check model consistency"   
)
DEFINE_bool ( complete  ,
false  ,
"Complete partial models"   
)
DEFINE_bool ( round_to_int  ,
false  ,
"Round all merged counts to integers"   
)
DEFINE_double ( alpha  ,
1.  0,
"Weight for first FST"   
)
DEFINE_double ( beta  ,
1.  0,
"Weight for second (and subsequent) FST(s)"   
)
DEFINE_double ( norm_eps  ,
ngram::kNormEps  ,
"Normalization check epsilon"   
)
DEFINE_int32 ( max_replace_order  ,
1,
"Maximum order to replace in  replace_merge 
)
DEFINE_int64 ( backoff_label  ,
,
"Backoff label"   
)
DEFINE_string ( context_pattern  ,
""  ,
"Context pattern for second FST"   
)
DEFINE_string ( contexts  ,
""  ,
"Context patterns file (all FSTs)"   
)
DEFINE_string ( method  ,
"count_merge"  ,
"One of: \"context_merge\"  ,
\"count_merge\"  ,
\"model_merge\" ""\"bayes_model_merge\"  ,
\"histogram_merge\"  ,
\"replace_merge\""   
)
DEFINE_string ( ofile  ,
""  ,
"Output file"   
)
int main ( int  argc,
char **  argv 
)

Definition at line 37 of file ngrammerge.cc.

int ngrammerge_main ( int  argc,
char **  argv 
)

Definition at line 115 of file ngrammerge-main.cc.