mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 15:00:33 +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 "Vocab.h"
|
||||||
#include "Weights.h"
|
#include "Weights.h"
|
||||||
#include "util/pool.hh"
|
#include "util/pool.hh"
|
||||||
|
#include "moses/FactorCollection.h"
|
||||||
|
|
||||||
class FeatureFunction;
|
class FeatureFunction;
|
||||||
class StatefulFeatureFunction;
|
class StatefulFeatureFunction;
|
||||||
@ -40,6 +41,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
Vocab m_vocab;
|
Vocab m_vocab;
|
||||||
|
Moses::FactorCollection m_factors;
|
||||||
std::vector<const FeatureFunction*> m_featureFunctions;
|
std::vector<const FeatureFunction*> m_featureFunctions;
|
||||||
std::vector<const StatefulFeatureFunction*> m_statefulFeatureFunctions;
|
std::vector<const StatefulFeatureFunction*> m_statefulFeatureFunctions;
|
||||||
std::vector<const PhraseTable*> m_phraseTables;
|
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 "util/pool.hh"
|
||||||
#include "Factor.h"
|
#include "Factor.h"
|
||||||
|
|
||||||
|
class System;
|
||||||
|
|
||||||
namespace Moses
|
namespace Moses
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -66,6 +68,7 @@ struct FactorFriend {
|
|||||||
class FactorCollection
|
class FactorCollection
|
||||||
{
|
{
|
||||||
friend std::ostream& operator<<(std::ostream&, const FactorCollection&);
|
friend std::ostream& operator<<(std::ostream&, const FactorCollection&);
|
||||||
|
friend class ::System;
|
||||||
|
|
||||||
struct HashFactor : public std::unary_function<const FactorFriend &, std::size_t> {
|
struct HashFactor : public std::unary_function<const FactorFriend &, std::size_t> {
|
||||||
std::size_t operator()(const FactorFriend &factor) const {
|
std::size_t operator()(const FactorFriend &factor) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user