mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
user ManagerBase
This commit is contained in:
parent
8182946d3c
commit
00ada25b73
@ -17,7 +17,7 @@ namespace Moses2
|
||||
|
||||
class Sentence;
|
||||
class System;
|
||||
class Manager;
|
||||
class ManagerBase;
|
||||
|
||||
class InputPathsBase
|
||||
{
|
||||
@ -44,7 +44,7 @@ public:
|
||||
return m_inputPaths.end();
|
||||
}
|
||||
|
||||
virtual void Init(const Sentence &input, const Manager &mgr) = 0;
|
||||
virtual void Init(const Sentence &input, const ManagerBase &mgr) = 0;
|
||||
|
||||
const Matrix<InputPath*> &GetMatrix() const
|
||||
{ return *m_matrix; }
|
||||
|
@ -16,7 +16,7 @@ using namespace std;
|
||||
namespace Moses2
|
||||
{
|
||||
|
||||
void InputPaths::Init(const Sentence &input, const Manager &mgr)
|
||||
void InputPaths::Init(const Sentence &input, const ManagerBase &mgr)
|
||||
{
|
||||
MemPool &pool = mgr.GetPool();
|
||||
size_t numPt = mgr.system.mappings.size();
|
||||
|
@ -18,12 +18,11 @@ namespace Moses2
|
||||
|
||||
class Sentence;
|
||||
class System;
|
||||
class Manager;
|
||||
|
||||
class InputPaths : public InputPathsBase
|
||||
{
|
||||
public:
|
||||
void Init(const Sentence &input, const Manager &mgr);
|
||||
void Init(const Sentence &input, const ManagerBase &mgr);
|
||||
|
||||
const InputPath &GetBlank() const
|
||||
{ return *m_blank; }
|
||||
|
Loading…
Reference in New Issue
Block a user