mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
delete m_latticeSamplesCollector
This commit is contained in:
parent
25db86d16b
commit
62fe00b1a5
@ -175,7 +175,6 @@ int main(int argc, char** argv)
|
||||
// set up task of translating one sentence
|
||||
TranslationTask* task =
|
||||
new TranslationTask(lineCount,source, *ioWrapper,
|
||||
latticeSamplesCollector.get(),
|
||||
staticData.GetOutputSearchGraphSLF(),
|
||||
hypergraphOutput);
|
||||
// execute task
|
||||
|
@ -123,10 +123,6 @@ IOWrapper::IOWrapper(const std::vector<FactorType> &inputFactorOrder
|
||||
file->open(fileName.c_str());
|
||||
}
|
||||
|
||||
if (!m_surpressSingleBestOutput) {
|
||||
m_singleBestOutputCollector = new Moses::OutputCollector(&std::cout);
|
||||
}
|
||||
|
||||
if (!staticData.GetOutputUnknownsFile().empty()) {
|
||||
m_unknownsStream = new std::ofstream(staticData.GetOutputUnknownsFile().c_str());
|
||||
m_unknownsCollector = new Moses::OutputCollector(m_unknownsStream);
|
||||
@ -166,6 +162,10 @@ IOWrapper::IOWrapper(const std::vector<FactorType> &inputFactorOrder
|
||||
m_wordGraphCollector = new OutputCollector(m_outputWordGraphStream);
|
||||
}
|
||||
|
||||
if (!m_surpressSingleBestOutput) {
|
||||
m_singleBestOutputCollector = new Moses::OutputCollector(&std::cout);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
IOWrapper::~IOWrapper()
|
||||
|
@ -16,7 +16,6 @@ namespace MosesCmd
|
||||
{
|
||||
|
||||
TranslationTask::TranslationTask(size_t lineNumber, InputType* source, MosesCmd::IOWrapper &ioWrapper,
|
||||
OutputCollector* latticeSamplesCollector,
|
||||
bool outputSearchGraphSLF,
|
||||
boost::shared_ptr<HypergraphOutput<Manager> > hypergraphOutput) :
|
||||
m_source(source), m_lineNumber(lineNumber),
|
||||
|
@ -27,7 +27,6 @@ class TranslationTask : public Moses::Task
|
||||
public:
|
||||
|
||||
TranslationTask(size_t lineNumber, Moses::InputType* source, MosesCmd::IOWrapper &ioWrapper,
|
||||
Moses::OutputCollector* latticeSamplesCollector,
|
||||
bool outputSearchGraphSLF,
|
||||
boost::shared_ptr<Moses::HypergraphOutput<Moses::Manager> > hypergraphOutput);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user