mosesdecoder/contrib/other-builds/moses2/TranslationModel/UnknownWordPenalty.h
2015-12-10 20:49:30 +00:00

36 lines
728 B
C++

/*
* UnknownWordPenalty.h
*
* Created on: 28 Oct 2015
* Author: hieu
*/
#ifndef UNKNOWNWORDPENALTY_H_
#define UNKNOWNWORDPENALTY_H_
#include "PhraseTable.h"
namespace Moses2
{
class UnknownWordPenalty : public PhraseTable
{
public:
UnknownWordPenalty(size_t startInd, const std::string &line);
virtual ~UnknownWordPenalty();
void Lookup(const Manager &mgr, InputPaths &inputPaths) const;
virtual TargetPhrases *Lookup(const Manager &mgr, MemPool &pool, InputPath &inputPath) const;
virtual void
EvaluateInIsolation(const System &system,
const Phrase &source, const TargetPhrase &targetPhrase,
Scores &scores,
Scores *estimatedScores) const;
};
}
#endif /* UNKNOWNWORDPENALTY_H_ */