File size: 516 Bytes
158b61b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
/*
* NBestColl.h
*
* Created on: 24 Aug 2016
* Author: hieu
*/
#pragma once
#include <boost/unordered_map.hpp>
#include "../../ArcLists.h"
namespace Moses2
{
namespace SCFG
{
class NBests;
class Manager;
class NBestColl
{
public:
virtual ~NBestColl();
void Add(const SCFG::Manager &mgr, const ArcList &arcList);
NBests &GetOrCreateNBests(const SCFG::Manager &mgr, const ArcList &arcList);
protected:
typedef boost::unordered_map<const ArcList*, NBests*> Coll;
Coll m_candidates;
};
}
}
|