GenerationDictionary doesn't inherit from Dictionary

This commit is contained in:
Hieu Hoang 2013-02-05 19:02:36 +00:00
parent 4417f254a2
commit 599d5bde3d
3 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@ namespace Moses
{
GenerationDictionary::GenerationDictionary(const std::string &line)
: Dictionary(2), DecodeFeature("Generation",2, line)
: DecodeFeature("Generation", line)
{
string filePath;

View File

@ -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:

View File

@ -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());
}