mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
bug in on-disk pt due to refactoring
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3616 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
7463257be5
commit
620d92c68a
@ -19,6 +19,7 @@
|
||||
***********************************************************************/
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include "../../moses/src/StaticData.h"
|
||||
#include "ChartTranslationOptionList.h"
|
||||
#include "ChartTranslationOption.h"
|
||||
|
@ -129,7 +129,6 @@ Parameter::Parameter()
|
||||
AddParam("non-terminals", "list of non-term symbols, space separated");
|
||||
AddParam("rule-limit", "a little like table limit. But for chart decoding rules. Default is DEFAULT_MAX_TRANS_OPT_SIZE");
|
||||
AddParam("source-label-overlap", "What happens if a span already has a label. 0=add more. 1=replace. 2=discard. Default is 0");
|
||||
AddParam("glue-rule-type", "Left branching, or both branching. 0=left. 2=both. 1=right(not implemented). Default=0");
|
||||
AddParam("output-hypo-score", "Output the hypo score to stdout with the output string. For search error analysis. Default is false");
|
||||
AddParam("unknown-lhs", "file containing target lhs of unknown words. 1 per line: LHS prob");
|
||||
AddParam("translation-systems", "specify multiple translation systems, each consisting of an id, followed by a set of models ids, eg '0 T1 R1 L0'");
|
||||
|
@ -110,7 +110,6 @@ void PhraseDictionaryOnDisk::CleanUp()
|
||||
}
|
||||
m_cache.clear();
|
||||
|
||||
RemoveAllInColl(m_chartTargetPhraseColl);
|
||||
RemoveAllInColl(m_runningNodesVec);
|
||||
RemoveAllInColl(m_sourcePhraseNode);
|
||||
}
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "PhraseDictionary.h"
|
||||
#include "ChartTranslationOptionList.h"
|
||||
#include "../../OnDiskPt/src/OnDiskWrapper.h"
|
||||
#include "../../OnDiskPt/src/Word.h"
|
||||
#include "../../OnDiskPt/src/PhraseNode.h"
|
||||
@ -52,7 +51,6 @@ protected:
|
||||
mutable OnDiskPt::OnDiskWrapper m_dbWrapper;
|
||||
|
||||
mutable std::map<UINT64, const TargetPhraseCollection*> m_cache;
|
||||
mutable std::vector<ChartTranslationOptionList*> m_chartTargetPhraseColl;
|
||||
mutable std::list<const OnDiskPt::PhraseNode*> m_sourcePhraseNode;
|
||||
|
||||
mutable std::vector<ProcessedRuleStackOnDisk*> m_runningNodesVec;
|
||||
|
@ -43,8 +43,6 @@ namespace Moses
|
||||
// source phrase
|
||||
Phrase *cachedSource = new Phrase(src.GetSubString(range));
|
||||
|
||||
m_chartTargetPhraseColl.push_back(&outColl);
|
||||
|
||||
size_t relEndPos = range.GetEndPos() - range.GetStartPos();
|
||||
size_t absEndPos = range.GetEndPos();
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include "PhraseDictionary.h"
|
||||
#include "PhraseDictionaryNodeSCFG.h"
|
||||
#include "ChartTranslationOptionList.h"
|
||||
#include "CellCollection.h"
|
||||
|
||||
namespace Moses
|
||||
|
Loading…
Reference in New Issue
Block a user