void Manager::OutputNBest(OutputCollector *collector) const { if (collector) { const StaticData &staticData = StaticData::Instance(); long translationId = m_source.GetTranslationId(); KBestExtractor::KBestVec nBestList; ExtractKBest(staticData.GetNBestSize(), nBestList, staticData.GetDistinctNBest()); OutputNBestList(collector, nBestList, translationId); } }
void Manager::OutputNBest(OutputCollector *collector) const { if (collector) { const StaticData &staticData = StaticData::Instance(); long translationId = m_source.GetTranslationId(); KBestExtractor::KBestVec nBestList; ExtractKBest(staticData.options().nbest.nbest_size, nBestList, staticData.options().nbest.only_distinct); OutputNBestList(collector, nBestList, translationId); } }