mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 20:46:59 +03:00
58 lines
1.0 KiB
C++
58 lines
1.0 KiB
C++
/*
|
|
* System.h
|
|
*
|
|
* Created on: 23 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#pragma once
|
|
#include <vector>
|
|
#include "FeatureFunctions.h"
|
|
#include "Weights.h"
|
|
#include "util/pool.hh"
|
|
#include "moses/FactorCollection.h"
|
|
#include "moses/Parameter.h"
|
|
|
|
class FeatureFunction;
|
|
class StatefulFeatureFunction;
|
|
class PhraseTable;
|
|
|
|
class System {
|
|
public:
|
|
System(const Moses::Parameter ¶ms);
|
|
virtual ~System();
|
|
|
|
size_t GetNumScores() const
|
|
{ return 55; }
|
|
|
|
const Weights &GetWeights() const
|
|
{ return m_weights; }
|
|
|
|
const FeatureFunctions &GetFeatureFunctions() const
|
|
{ return m_featureFunctions; }
|
|
|
|
util::Pool &GetSystemPool()
|
|
{ return m_systemPool; }
|
|
|
|
util::Pool &GetManagerPool()
|
|
{ return m_managerPool; }
|
|
|
|
Moses::FactorCollection &GetVocab() const
|
|
{ return m_vocab; }
|
|
|
|
const Moses::Parameter &GetParameter() const
|
|
{ return m_params; }
|
|
|
|
protected:
|
|
const Moses::Parameter &m_params;
|
|
|
|
mutable Moses::FactorCollection m_vocab;
|
|
util::Pool m_systemPool;
|
|
util::Pool m_managerPool;
|
|
FeatureFunctions m_featureFunctions;
|
|
Weights m_weights;
|
|
|
|
void LoadWeights();
|
|
};
|
|
|