mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-19 07:07:24 +03:00
change PhraseDictionaryTreeAdaptor --> PhraseDictionaryBinary
This commit is contained in:
parent
d5ebe61791
commit
34df0011a9
@ -34,7 +34,7 @@ PT::PT(const std::string &line, int numFeatures, bool isHierarchical, const pair
|
||||
switch (implementation)
|
||||
{
|
||||
case 0: name = "PhraseDictionaryMemory"; break;
|
||||
case 1: name = "PhraseDictionaryTreeAdaptor"; break;
|
||||
case 1: name = "PhraseDictionaryBinary"; break;
|
||||
case 2: name = "PhraseDictionaryOnDisk"; break;
|
||||
case 6: name = "PhraseDictionaryMemory"; break;
|
||||
default:name = "UnknownPtImplementation"; break;
|
||||
|
@ -410,7 +410,7 @@ void Parameter::ConvertWeightArgsPhraseModel(const string &oldWeightName)
|
||||
numInputScores.push_back("1");
|
||||
}
|
||||
|
||||
SetWeight("PhraseDictionaryTreeAdaptor", 0, inputWeights);
|
||||
SetWeight("PhraseDictionaryBinary", 0, inputWeights);
|
||||
}
|
||||
|
||||
// convert actually pt feature
|
||||
@ -469,7 +469,7 @@ void Parameter::ConvertWeightArgsPhraseModel(const string &oldWeightName)
|
||||
ptType = "PhraseDictionaryMemory";
|
||||
break;
|
||||
case Binary:
|
||||
ptType = "PhraseDictionaryTreeAdaptor";
|
||||
ptType = "PhraseDictionaryBinary";
|
||||
break;
|
||||
case OnDisk:
|
||||
ptType = "PhraseDictionaryOnDisk";
|
||||
|
@ -666,7 +666,7 @@ bool StaticData::LoadData(Parameter *parameter)
|
||||
SetWeights(model, weights);
|
||||
m_unknownWordPenaltyProducer = model;
|
||||
}
|
||||
else if (feature == "PhraseDictionaryTreeAdaptor") {
|
||||
else if (feature == "PhraseDictionaryBinary") {
|
||||
PhraseDictionaryTreeAdaptor* model = new PhraseDictionaryTreeAdaptor(line);
|
||||
vector<float> weights = m_parameter->GetWeights(model->GetScoreProducerDescription());
|
||||
SetWeights(model, weights);
|
||||
|
@ -20,18 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
***********************************************************************/
|
||||
|
||||
#include "moses/TranslationModel/PhraseDictionary.h"
|
||||
#include "moses/TranslationModel/PhraseDictionaryTreeAdaptor.h"
|
||||
#include "moses/TranslationModel/RuleTable/PhraseDictionarySCFG.h"
|
||||
#include "moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h"
|
||||
#include "moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h"
|
||||
#include "moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include "moses/TranslationModel/PhraseDictionaryDynSuffixArray.h"
|
||||
#include "moses/TranslationModel/CompactPT/PhraseDictionaryCompact.h"
|
||||
#endif
|
||||
#include "moses/TranslationModel/RuleTable/UTrie.h"
|
||||
|
||||
#include "moses/StaticData.h"
|
||||
#include "moses/InputType.h"
|
||||
#include "moses/TranslationOption.h"
|
||||
|
@ -26,7 +26,7 @@ namespace Moses
|
||||
|
||||
PhraseDictionaryTreeAdaptor::
|
||||
PhraseDictionaryTreeAdaptor(const std::string &line)
|
||||
: PhraseDictionary("PhraseDictionaryTreeAdaptor", line)
|
||||
: PhraseDictionary("PhraseDictionaryBinary", line)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user