mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
delete GetDecodeType(). Thinking of getting rid of class Dictionary altogther
This commit is contained in:
parent
be85bffb19
commit
4417f254a2
@ -44,10 +44,6 @@ public:
|
||||
//!Destructor
|
||||
virtual ~Dictionary();
|
||||
|
||||
|
||||
//! returns whether this dictionary is to be used for Translate or Generate
|
||||
virtual DecodeType GetDecodeType() const = 0;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -55,12 +55,6 @@ protected:
|
||||
public:
|
||||
GenerationDictionary(const std::string &line);
|
||||
virtual ~GenerationDictionary();
|
||||
|
||||
// returns Generate
|
||||
DecodeType GetDecodeType() const
|
||||
{
|
||||
return Generate;
|
||||
}
|
||||
|
||||
//! load data file
|
||||
bool Load(const std::string &filePath, FactorDirection direction);
|
||||
|
@ -65,9 +65,7 @@ public:
|
||||
size_t GetTableLimit() const {
|
||||
return m_tableLimit;
|
||||
}
|
||||
DecodeType GetDecodeType() const {
|
||||
return Translate;
|
||||
}
|
||||
|
||||
const PhraseDictionaryFeature* GetFeature() const;
|
||||
|
||||
//! find list of translations that can translates src. Only for phrase input
|
||||
|
@ -65,9 +65,6 @@ public:
|
||||
|
||||
virtual ~PhraseDictionaryTree();
|
||||
|
||||
DecodeType GetDecodeType() const {
|
||||
return Translate;
|
||||
}
|
||||
size_t GetSize() const {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user