00001 #ifndef SEARCH_CONFIG__ 00002 #define SEARCH_CONFIG__ 00003 00004 #include "search/types.hh" 00005 00006 namespace search { 00007 00008 struct NBestConfig { 00009 explicit NBestConfig(unsigned int in_size) { 00010 keep = in_size; 00011 size = in_size; 00012 } 00013 00014 unsigned int keep, size; 00015 }; 00016 00017 class Config { 00018 public: 00019 Config(Score lm_weight, unsigned int pop_limit, const NBestConfig &nbest) : 00020 lm_weight_(lm_weight), pop_limit_(pop_limit), nbest_(nbest) {} 00021 00022 Score LMWeight() const { return lm_weight_; } 00023 00024 unsigned int PopLimit() const { return pop_limit_; } 00025 00026 const NBestConfig &GetNBest() const { return nbest_; } 00027 00028 private: 00029 Score lm_weight_; 00030 00031 unsigned int pop_limit_; 00032 00033 NBestConfig nbest_; 00034 }; 00035 00036 } // namespace search 00037 00038 #endif // SEARCH_CONFIG__