37 boost::scoped_ptr< LoadLanguageModelTask<DisambigData > > mytask (
38 new LoadLanguageModelTask<DisambigData> ( rg ,
42 (
new LoadUnimapTask< DisambigData, ArcT > ( rg ,
45 (
new ReadFstTask<DisambigData, ArcT > ( rg ,
48 (
new DisambigTask<DisambigData, ArcT > ( rg ,
52 (
new WriteFstTask<DisambigData, ArcT > ( rg ,
60 data.sidx = ir->get();
61 mytask->chainrun ( data );
72 int main (
int argc,
const char* argv[] ) {
76 FORCELINFO ( rg.
dump (
"CONFIG parameters:\n=====================",
77 "=====================" ) ) ;
84 LERROR (
"Unknown semiring type!");
std::string const kHifstSemiring
std::string const kRecaserUnimapLoad
std::string const kRecaserLmLoad
T get(const std::string &key) const
Returns parsed value associated to key.
void initLogger(int argc, const char *argv[])
Inits logger, parses param options checking for –logger.verbose.
boost::scoped_ptr< NumberRangeInterface< unsigned > > IntRangePtr
std::string const kRecaserOutput
std::string const kHifstSemiringLexStdArc
int main(int argc, const char *argv[])
Main function for disambig tool. Single-threaded implementation only. Applies a unigram transduction ...
std::string const kHifstSemiringStdArc
Static variables for logger. Include only once from main file.
void run(ucam::util::RegistryPO const &rg)
std::string const kRecaserLmFeatureweight
std::string dump(const std::string &decorator_start="", const std::string &decorator_end="")
Dumps all configuration parameters into a string with a reasonably pretty format. ...
Included headers for the binary (disambig) should be defined here. This file should be included only ...
const std::string kRangeOne
std::string const kRecaserInput
Static variable for custom_assert. Include only once from main file.