mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
51 lines
957 B
C++
51 lines
957 B
C++
/*
|
|
* System.h
|
|
*
|
|
* Created on: 23 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#pragma once
|
|
#include <vector>
|
|
#include "FF/FeatureFunctions.h"
|
|
#include "Weights.h"
|
|
#include "MemPool.h"
|
|
#include "Recycler.h"
|
|
#include "moses/FactorCollection.h"
|
|
#include "moses/Parameter.h"
|
|
|
|
class FeatureFunction;
|
|
class StatefulFeatureFunction;
|
|
class PhraseTable;
|
|
class Hypothesis;
|
|
|
|
class System {
|
|
public:
|
|
System(const Moses::Parameter ¶msArg);
|
|
virtual ~System();
|
|
|
|
MemPool &GetManagerPool() const
|
|
{ return m_managerPool; }
|
|
|
|
Recycler<Hypothesis*> &GetHypoRecycle() const
|
|
{ return m_hypoRecycle; }
|
|
|
|
const Moses::Parameter ¶ms;
|
|
mutable Moses::FactorCollection vocab;
|
|
FeatureFunctions featureFunctions;
|
|
Weights weights;
|
|
std::vector<const PhraseTable*> mappings;
|
|
|
|
MemPool systemPool;
|
|
|
|
size_t stackSize;
|
|
protected:
|
|
|
|
mutable MemPool m_managerPool;
|
|
mutable Recycler<Hypothesis*> m_hypoRecycle;
|
|
|
|
void LoadWeights();
|
|
void LoadMappings();
|
|
};
|
|
|