mosesdecoder/moses/FF/InputFeature.h

36 lines
500 B
C
Raw Normal View History

#pragma once
#include "InputFeature.h"
#include "StatelessFeatureFunction.h"
namespace Moses
{
class InputFeature : public StatelessFeatureFunction
{
2013-06-05 01:09:21 +04:00
protected:
size_t m_numInputScores;
size_t m_numRealWordCount;
public:
InputFeature(const std::string &line);
2013-06-05 16:42:56 +04:00
bool IsUseable(const FactorMask &mask) const {
return true;
}
size_t GetNumInputScores() const {
return m_numInputScores;
}
size_t GetNumRealWordsInInput() const {
return m_numRealWordCount;
}
2013-06-05 01:09:21 +04:00
};
}