mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
This commit is contained in:
parent
20381cbf89
commit
0313523d7d
@ -539,13 +539,15 @@ bool StaticData::LoadData(Parameter *parameter)
|
||||
|
||||
std::cerr <<"After StaticData::LoadDataStatic" << std::endl;
|
||||
|
||||
/*
|
||||
std::cerr <<"Before ShowWeights" << std::endl;
|
||||
// setting "-show-weights" -> just dump out weights and exit
|
||||
if (params.isParamSpecified("show-weights")) {
|
||||
if (m_parameter->isParamSpecified("show-weights")) {
|
||||
MosesCmd::ShowWeights();
|
||||
exit(0);
|
||||
}
|
||||
std::cerr <<"After ShowWeights" << std::endl;
|
||||
*/
|
||||
|
||||
std::cerr <<"Before LoadFeatureFunctions" << std::endl;
|
||||
LoadFeatureFunctions();
|
||||
|
@ -147,7 +147,7 @@ const TargetPhraseCollection* PhraseDictionaryDynamicCacheBased::GetTargetPhrase
|
||||
return ret;
|
||||
}
|
||||
|
||||
ChartRuleLookupManager* PhraseDictionaryDynamicCacheBased::CreateRuleLookupManager(const ChartParser &parser, const ChartCellCollectionBase &cellCollection)
|
||||
ChartRuleLookupManager* PhraseDictionaryDynamicCacheBased::CreateRuleLookupManager(const ChartParser &parser, const ChartCellCollectionBase &cellCollection, std::size_t /*maxChartSpan*/)
|
||||
{
|
||||
UTIL_THROW(util::Exception, "Phrase table used in chart decoder");
|
||||
}
|
||||
|
@ -44,6 +44,9 @@
|
||||
|
||||
namespace Moses
|
||||
{
|
||||
class ChartParser;
|
||||
class ChartCellCollectionBase;
|
||||
class ChartRuleLookupManager;
|
||||
|
||||
/** Implementation of a Cache-based phrase table.
|
||||
*/
|
||||
@ -88,9 +91,10 @@ public:
|
||||
const TargetPhraseCollection* GetTargetPhraseCollectionNonCacheLEGACY(Phrase const &src) const;
|
||||
|
||||
// for phrase-based model
|
||||
// void GetTargetPhraseCollectionBatch(const InputPathList &inputPathQueue) const;
|
||||
// void GetTargetPhraseCollectionBatch(const InputPathList &inputPathQueue) const;
|
||||
|
||||
ChartRuleLookupManager *CreateRuleLookupManager(const ChartParser &, const ChartCellCollectionBase &);
|
||||
// for syntax/hiero model (CKY+ decoding)
|
||||
ChartRuleLookupManager* CreateRuleLookupManager(const ChartParser&, const ChartCellCollectionBase&, std::size_t);
|
||||
|
||||
void SetParameter(const std::string& key, const std::string& value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user