Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NBestColl.h « nbest « SCFG « moses2 « contrib - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ef8a56989f99024b4ba66b539cb5879ec5576a3 (plain)
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
/*
 * 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;

};

}
}