mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
36 lines
500 B
C++
36 lines
500 B
C++
#pragma once
|
|
|
|
#include "InputFeature.h"
|
|
#include "StatelessFeatureFunction.h"
|
|
|
|
namespace Moses
|
|
{
|
|
|
|
|
|
class InputFeature : public StatelessFeatureFunction
|
|
{
|
|
protected:
|
|
size_t m_numInputScores;
|
|
size_t m_numRealWordCount;
|
|
|
|
public:
|
|
InputFeature(const std::string &line);
|
|
|
|
bool IsUseable(const FactorMask &mask) const {
|
|
return true;
|
|
}
|
|
|
|
size_t GetNumInputScores() const {
|
|
return m_numInputScores;
|
|
}
|
|
size_t GetNumRealWordsInInput() const {
|
|
return m_numRealWordCount;
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|