mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
36 lines
669 B
C++
36 lines
669 B
C++
/*
|
|
* Manager.cpp
|
|
*
|
|
* Created on: 23 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#include "Manager.h"
|
|
#include "PhraseTable.h"
|
|
#include "StaticData.h"
|
|
|
|
Manager::Manager(const StaticData &staticData, const std::string &inputStr)
|
|
:m_staticData(staticData)
|
|
{
|
|
m_input = Phrase::CreateFromString(m_pool, inputStr);
|
|
m_inputPaths.Init(*m_input, staticData);
|
|
|
|
const std::vector<const PhraseTable*> &pts = staticData.GetPhraseTables();
|
|
for (size_t i = 0; i < pts.size(); ++i) {
|
|
const PhraseTable &pt = *pts[i];
|
|
pt.Lookups(m_inputPaths);
|
|
}
|
|
|
|
m_stacks.resize(m_input->GetSize());
|
|
}
|
|
|
|
void Manager::Decode()
|
|
{
|
|
|
|
}
|
|
|
|
Manager::~Manager() {
|
|
// TODO Auto-generated destructor stub
|
|
}
|
|
|