mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
GenerationDictionary doesn't inherit from Dictionary
This commit is contained in:
parent
4417f254a2
commit
599d5bde3d
@ -35,7 +35,7 @@ namespace Moses
|
||||
{
|
||||
|
||||
GenerationDictionary::GenerationDictionary(const std::string &line)
|
||||
: Dictionary(2), DecodeFeature("Generation",2, line)
|
||||
: DecodeFeature("Generation", line)
|
||||
{
|
||||
string filePath;
|
||||
|
||||
|
@ -43,7 +43,7 @@ typedef std::map < Word , ScoreComponentCollection > OutputWordCollection;
|
||||
|
||||
/** Implementation of a generation table in a trie.
|
||||
*/
|
||||
class GenerationDictionary : public Dictionary, public DecodeFeature
|
||||
class GenerationDictionary : public DecodeFeature
|
||||
{
|
||||
typedef std::map<const Word* , OutputWordCollection, WordComparer> Collection;
|
||||
protected:
|
||||
|
@ -627,6 +627,7 @@ void Parameter::ConvertWeightArgsGeneration(const std::string &oldWeightName, co
|
||||
strme << "Generation "
|
||||
<< "input-factor=" << modelToks[0] << " "
|
||||
<< "output-factor=" << modelToks[1] << " "
|
||||
<< "num-features=" << modelToks[2] << " "
|
||||
<< "path=" << modelToks[3];
|
||||
AddFeature(strme.str());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user