Ejemplo n.º 1
0
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);
  }
}
Ejemplo n.º 2
0
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);
  }
}