mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +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;
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|