2013-05-28 20:25:59 +04:00
|
|
|
#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;
|
2013-05-28 20:25:59 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
2013-05-28 20:25:59 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|