source/sample/transformer/Config.cpp
void TranslationConfig::Load(int argsNum, const char** args)
{
    Create(argsNum, args);
    LoadString("input", inputFN, "");
    LoadString("output", outputFN, "");
    LoadInt("beam", &beamSize, 1);
    LoadInt("maxlen", &maxLen, 200);
    LoadFloat("lenalpha", &lenAlpha, 0.6F);
    LoadFloat("maxlenalpha", &maxLenAlpha, 1.25F);
}
/* load training configuration from the command */
load training configuration from the command
load training configuration from the command
void TranslationConfig::Load(int argsNum, const char** args)
{
    Create(argsNum, args);
    LoadString("input", inputFN, "");
    LoadString("output", outputFN, "");
    LoadInt("beam", &beamSize, 1);
    LoadInt("maxlen", &maxLen, 200);
    LoadFloat("lenalpha", &lenAlpha, 0.6F);
    LoadFloat("maxlenalpha", &maxLenAlpha, 1.25F);
}
void TranslationConfig :: Load ( int argsNum , const char * * args ) { Create ( argsNum , args ) ; LoadString ( " " , inputFN , " " ) ; LoadString ( " " , outputFN , " " ) ; LoadInt ( " " , & beamSize , 1 ) ; LoadInt ( " " , & maxLen , 200 ) ; LoadFloat ( " " , & lenAlpha , 0.6F ) ; LoadFloat ( " " , & maxLenAlpha , 1.25F ) ; }
load training configuration from the command
load training configuration from the command