mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-07-14 14:50:41 +03:00
FactorCollection is a friend of moses2 System
This commit is contained in:
parent
75c052dc66
commit
6d72539a22
@ -10,6 +10,7 @@
|
||||
#include "Vocab.h"
|
||||
#include "Weights.h"
|
||||
#include "util/pool.hh"
|
||||
#include "moses/FactorCollection.h"
|
||||
|
||||
class FeatureFunction;
|
||||
class StatefulFeatureFunction;
|
||||
@ -40,6 +41,7 @@ public:
|
||||
|
||||
protected:
|
||||
Vocab m_vocab;
|
||||
Moses::FactorCollection m_factors;
|
||||
std::vector<const FeatureFunction*> m_featureFunctions;
|
||||
std::vector<const StatefulFeatureFunction*> m_statefulFeatureFunctions;
|
||||
std::vector<const PhraseTable*> m_phraseTables;
|
||||
|
@ -41,6 +41,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include "util/pool.hh"
|
||||
#include "Factor.h"
|
||||
|
||||
class System;
|
||||
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
@ -66,6 +68,7 @@ struct FactorFriend {
|
||||
class FactorCollection
|
||||
{
|
||||
friend std::ostream& operator<<(std::ostream&, const FactorCollection&);
|
||||
friend class ::System;
|
||||
|
||||
struct HashFactor : public std::unary_function<const FactorFriend &, std::size_t> {
|
||||
std::size_t operator()(const FactorFriend &factor) const {
|
||||
|
Loading…
Reference in New Issue
Block a user